diff --git a/sdk/synapse/arm-synapse/src/models/index.ts b/sdk/synapse/arm-synapse/src/models/index.ts index dd515f83cf7b..1264775d42f0 100644 --- a/sdk/synapse/arm-synapse/src/models/index.ts +++ b/sdk/synapse/arm-synapse/src/models/index.ts @@ -4248,7 +4248,7 @@ export interface Workspace extends TrackedResource { */ readonly adlaResourceId?: string; /** - * Enable or Disable pubic network access to workspace. Possible values include: 'Enabled', + * Enable or Disable public network access to workspace. Possible values include: 'Enabled', * 'Disabled' */ publicNetworkAccess?: WorkspacePublicNetworkAccess; @@ -4318,7 +4318,7 @@ export interface WorkspacePatchInfo { */ encryption?: EncryptionDetails; /** - * Enable or Disable pubic network access to workspace. Possible values include: 'Enabled', + * Enable or Disable public network access to workspace. Possible values include: 'Enabled', * 'Disabled' */ publicNetworkAccess?: WorkspacePublicNetworkAccess; @@ -6817,6 +6817,26 @@ export type PrivateEndpointConnectionsPrivateLinkHubListResponse = PrivateEndpoi }; }; +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsPrivateLinkHubGetResponse = PrivateEndpointConnectionForPrivateLinkHub & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnectionForPrivateLinkHub; + }; +}; + /** * Contains response data for the listNext operation. */ diff --git a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts index c4b1ebfe2946..264bb96c6361 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts @@ -57,6 +57,42 @@ export class PrivateEndpointConnectionsPrivateLinkHub { callback) as Promise; } + /** + * Get all PrivateEndpointConnection in the PrivateLinkHub by name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param callback The callback + */ + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateLinkHubName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Get all PrivateEndpointConnections in the PrivateLinkHub * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -113,6 +149,32 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateLinkHubName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHub + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts index 5e44f5084cde..420cf8d5b3d1 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts @@ -36,14 +36,14 @@ export class SynapseManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2021-03-01'; + this.apiVersion = '2021-04-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -51,10 +51,10 @@ export class SynapseManagementClientContext extends msRestAzure.AzureServiceClie this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }