Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions sdk/synapse/arm-synapse/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,42 @@ export class PrivateEndpointConnectionsPrivateLinkHub {
callback) as Promise<Models.PrivateEndpointConnectionsPrivateLinkHubListResponse>;
}

/**
* 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<Models.PrivateEndpointConnectionsPrivateLinkHubGetResponse>
*/
get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsPrivateLinkHubGetResponse>;
/**
* @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<Models.PrivateEndpointConnectionForPrivateLinkHub>): 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<Models.PrivateEndpointConnectionForPrivateLinkHub>): void;
get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnectionForPrivateLinkHub>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnectionForPrivateLinkHub>): Promise<Models.PrivateEndpointConnectionsPrivateLinkHubGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
privateLinkHubName,
privateEndpointConnectionName,
options
},
getOperationSpec,
callback) as Promise<Models.PrivateEndpointConnectionsPrivateLinkHubGetResponse>;
}

/**
* Get all PrivateEndpointConnections in the PrivateLinkHub
* @param nextPageLink The NextLink from the previous successful call to List operation.
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ 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";
this.requestContentType = "application/json; charset=utf-8";
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;
}
}
Expand Down