Skip to content

Commit

Permalink
Generated from 8740d2c2165509b0ca5ec511f68747394bc60037
Browse files Browse the repository at this point in the history
Update StorageAccountListPrivateEndpointConnections.json

Fixed prettier check fix.
  • Loading branch information
SDK Automation committed May 5, 2020
1 parent b9114d4 commit 0da15e4
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,16 @@ export interface ManagementPolicy extends Resource {
policy: ManagementPolicySchema;
}

/**
* List of private endpoint connection associated with the specified storage account
*/
export interface PrivateEndpointConnectionListResult {
/**
* Array of private endpoint connections
*/
value?: PrivateEndpointConnection[];
}

/**
* A private link resource
*/
Expand Down Expand Up @@ -3354,6 +3364,26 @@ export type ManagementPoliciesCreateOrUpdateResponse = ManagementPolicy & {
};
};

/**
* Contains response data for the list operation.
*/
export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & {
/**
* 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: PrivateEndpointConnectionListResult;
};
};

/**
* Contains response data for the get operation.
*/
Expand Down
22 changes: 22 additions & 0 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,28 @@ export const ManagementPolicy: msRest.CompositeMapper = {
}
};

export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = {
serializedName: "PrivateEndpointConnectionListResult",
type: {
name: "Composite",
className: "PrivateEndpointConnectionListResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PrivateEndpointConnection"
}
}
}
}
}
}
};

export const PrivateLinkResource: msRest.CompositeMapper = {
serializedName: "PrivateLinkResource",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export {
ObjectReplicationPolicyRule,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionListResult,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,47 @@ export class PrivateEndpointConnections {
this.client = client;
}

/**
* List all the private endpoint connections associated with the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
* @param [options] The optional parameters
* @returns Promise<Models.PrivateEndpointConnectionsListResponse>
*/
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsListResponse>;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
* @param callback The callback
*/
list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
* @param options The optional parameters
* @param callback The callback
*/
list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): Promise<Models.PrivateEndpointConnectionsListResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
accountName,
options
},
listOperationSpec,
callback) as Promise<Models.PrivateEndpointConnectionsListResponse>;
}

/**
* Gets the specified private endpoint connection associated with the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name
Expand Down Expand Up @@ -177,6 +218,31 @@ export class PrivateEndpointConnections {

// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections",
urlParameters: [
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.PrivateEndpointConnectionListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};

const getOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
Expand Down

0 comments on commit 0da15e4

Please sign in to comment.