From a6c4ddf4bfcc1ce5e843872084079184dc7cd573 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 17 Jul 2020 20:16:33 +0000 Subject: [PATCH] Update from master --- .../src/containerServiceClient.ts | 2 + .../src/containerServiceClientContext.ts | 6 +- .../src/models/agentPoolsMappers.ts | 6 + .../src/models/containerServicesMappers.ts | 6 + .../arm-containerservice/src/models/index.ts | 320 ++++++++++++++++-- .../src/models/managedClustersMappers.ts | 6 + .../src/models/mappers.ts | 296 +++++++++++++++- .../models/openShiftManagedClustersMappers.ts | 6 + .../src/models/parameters.ts | 12 +- .../privateEndpointConnectionsMappers.ts | 66 ++++ .../src/operations/index.ts | 1 + .../src/operations/managedClusters.ts | 9 +- .../operations/privateEndpointConnections.ts | 287 ++++++++++++++++ 13 files changed, 979 insertions(+), 44 deletions(-) create mode 100644 sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts create mode 100644 sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index c9223ea22fc3..1dbcf82fdbf8 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -22,6 +22,7 @@ class ContainerServiceClient extends ContainerServiceClientContext { operations: operations.Operations; managedClusters: operations.ManagedClusters; agentPools: operations.AgentPools; + privateEndpointConnections: operations.PrivateEndpointConnections; /** * Initializes a new instance of the ContainerServiceClient class. @@ -37,6 +38,7 @@ class ContainerServiceClient extends ContainerServiceClientContext { this.operations = new operations.Operations(this); this.managedClusters = new operations.ManagedClusters(this); this.agentPools = new operations.AgentPools(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); } } diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts index b5402d3f7d73..2c68ffc7695a 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts @@ -37,7 +37,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -51,10 +51,10 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien 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; } } diff --git a/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts index 49ad2d5a96e6..62cdcb830b7d 100644 --- a/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts @@ -14,6 +14,7 @@ export { AgentPoolListResult, AgentPoolUpgradeProfile, AgentPoolUpgradeProfilePropertiesUpgradesItem, + AgentPoolUpgradeSettings, BaseResource, CloudError, ContainerService, @@ -39,6 +40,7 @@ export { ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, ManagedClusterIdentity, + ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterLoadBalancerProfile, ManagedClusterLoadBalancerProfileManagedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes, @@ -46,6 +48,7 @@ export { ManagedClusterPropertiesAutoScalerProfile, ManagedClusterPropertiesIdentityProfileValue, ManagedClusterServicePrincipalProfile, + ManagedClusterSKU, ManagedClusterWindowsProfile, NetworkProfile, OpenShiftManagedCluster, @@ -56,6 +59,9 @@ export { OpenShiftManagedClusterIdentityProvider, OpenShiftManagedClusterMasterPoolProfile, OpenShiftRouterProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, PurchasePlan, Resource, ResourceReference, diff --git a/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts b/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts index 4c84d94bb361..67faee88ab17 100644 --- a/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AgentPool, + AgentPoolUpgradeSettings, BaseResource, CloudError, ContainerService, @@ -35,6 +36,7 @@ export { ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, ManagedClusterIdentity, + ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterLoadBalancerProfile, ManagedClusterLoadBalancerProfileManagedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes, @@ -42,6 +44,7 @@ export { ManagedClusterPropertiesAutoScalerProfile, ManagedClusterPropertiesIdentityProfileValue, ManagedClusterServicePrincipalProfile, + ManagedClusterSKU, ManagedClusterWindowsProfile, NetworkProfile, OpenShiftManagedCluster, @@ -55,6 +58,9 @@ export { OrchestratorProfile, OrchestratorVersionProfile, OrchestratorVersionProfileListResult, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, PurchasePlan, Resource, ResourceReference, diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 744466c5ba9f..c612a75017e4 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -800,15 +800,26 @@ export interface ManagedClusterServicePrincipalProfile { secret?: string; } +/** + * Settings for upgrading an agentpool + */ +export interface AgentPoolUpgradeSettings { + /** + * Count or percentage of additional nodes to be added during upgrade. If empty uses AKS default + */ + maxSurge?: string; +} + /** * Properties for the container service agent pool profile. */ export interface ManagedClusterAgentPoolProfileProperties { /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to - * 100 (inclusive). The default value is 1. Default value: 1. + * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to + * 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The + * default value is 1. */ - count: number; + count?: number; /** * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', @@ -849,7 +860,7 @@ export interface ManagedClusterAgentPoolProfileProperties { * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' */ - vmSize: ContainerServiceVMSizeTypes; + vmSize?: ContainerServiceVMSizeTypes; /** * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent * pool. If you specify 0, it will apply the default osDisk size according to the vmSize @@ -886,10 +897,22 @@ export interface ManagedClusterAgentPoolProfileProperties { * 'VirtualMachineScaleSets', 'AvailabilitySet' */ type?: AgentPoolType; + /** + * AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User' + */ + mode?: AgentPoolMode; /** * Version of orchestrator specified when creating the managed cluster. */ orchestratorVersion?: string; + /** + * Version of node image + */ + nodeImageVersion?: string; + /** + * Settings for upgrading the agentpool + */ + upgradeSettings?: AgentPoolUpgradeSettings; /** * The current deployment or provisioning state, which only appears in the response. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -905,13 +928,13 @@ export interface ManagedClusterAgentPoolProfileProperties { enableNodePublicIP?: boolean; /** * ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. - * Possible values include: 'Spot', 'Low', 'Regular'. Default value: 'Regular'. + * Possible values include: 'Spot', 'Regular'. Default value: 'Regular'. */ scaleSetPriority?: ScaleSetPriority; /** - * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot or low priority virtual - * machine scale set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default - * value: 'Delete'. + * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale + * set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default value: + * 'Delete'. */ scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; /** @@ -933,6 +956,10 @@ export interface ManagedClusterAgentPoolProfileProperties { * key=value:NoSchedule. */ nodeTaints?: string[]; + /** + * The ID for Proximity Placement Group. + */ + proximityPlacementGroupID?: string; } /** @@ -950,10 +977,11 @@ export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolP */ export interface AgentPool extends SubResource { /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to - * 100 (inclusive). The default value is 1. Default value: 1. + * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to + * 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The + * default value is 1. */ - count: number; + count?: number; /** * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', @@ -994,7 +1022,7 @@ export interface AgentPool extends SubResource { * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' */ - vmSize: ContainerServiceVMSizeTypes; + vmSize?: ContainerServiceVMSizeTypes; /** * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent * pool. If you specify 0, it will apply the default osDisk size according to the vmSize @@ -1031,10 +1059,22 @@ export interface AgentPool extends SubResource { * 'VirtualMachineScaleSets', 'AvailabilitySet' */ agentPoolType?: AgentPoolType; + /** + * AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User' + */ + mode?: AgentPoolMode; /** * Version of orchestrator specified when creating the managed cluster. */ orchestratorVersion?: string; + /** + * Version of node image + */ + nodeImageVersion?: string; + /** + * Settings for upgrading the agentpool + */ + upgradeSettings?: AgentPoolUpgradeSettings; /** * The current deployment or provisioning state, which only appears in the response. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1050,13 +1090,13 @@ export interface AgentPool extends SubResource { enableNodePublicIP?: boolean; /** * ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. - * Possible values include: 'Spot', 'Low', 'Regular'. Default value: 'Regular'. + * Possible values include: 'Spot', 'Regular'. Default value: 'Regular'. */ scaleSetPriority?: ScaleSetPriority; /** - * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot or low priority virtual - * machine scale set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default - * value: 'Delete'. + * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale + * set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default value: + * 'Delete'. */ scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; /** @@ -1078,6 +1118,10 @@ export interface AgentPool extends SubResource { * key=value:NoSchedule. */ nodeTaints?: string[]; + /** + * The ID for Proximity Placement Group. + */ + proximityPlacementGroupID?: string; } /** @@ -1269,14 +1313,26 @@ export interface ManagedClusterAddonProfile { * AADProfile specifies attributes for Azure Active Directory integration. */ export interface ManagedClusterAADProfile { + /** + * Whether to enable managed AAD. + */ + managed?: boolean; + /** + * Whether to enable Azure RBAC for Kubernetes authorization. + */ + enableAzureRBAC?: boolean; + /** + * AAD group object IDs that will have admin role of the cluster. + */ + adminGroupObjectIDs?: string[]; /** * The client AAD application ID. */ - clientAppID: string; + clientAppID?: string; /** * The server AAD application ID. */ - serverAppID: string; + serverAppID?: string; /** * The server AAD application secret. */ @@ -1292,6 +1348,7 @@ export interface ManagedClusterAADProfile { * Parameters to be applied to the cluster-autoscaler when enabled */ export interface ManagedClusterPropertiesAutoScalerProfile { + balanceSimilarNodeGroups?: string; scanInterval?: string; scaleDownDelayAfterAdd?: string; scaleDownDelayAfterDelete?: string; @@ -1322,6 +1379,22 @@ export interface ManagedClusterAPIServerAccessProfile { export interface ManagedClusterPropertiesIdentityProfileValue extends UserAssignedIdentity { } +/** + * An interface representing ManagedClusterIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedClusterIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + /** * Identity for the managed cluster. */ @@ -1340,9 +1413,31 @@ export interface ManagedClusterIdentity { * The type of identity used for the managed cluster. Type 'SystemAssigned' will use an * implicitly created identity in master components and an auto-created user assigned identity in * MC_ resource group in agent nodes. Type 'None' will not use MSI for the managed cluster, - * service principal will be used instead. Possible values include: 'SystemAssigned', 'None' + * service principal will be used instead. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'None' */ type?: ResourceIdentityType; + /** + * The user identity associated with the managed cluster. This identity will be used in control + * plane and only one user assigned identity is allowed. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: ManagedClusterIdentityUserAssignedIdentitiesValue }; +} + +/** + * An interface representing ManagedClusterSKU. + */ +export interface ManagedClusterSKU { + /** + * Name of a managed cluster SKU. Possible values include: 'Basic' + */ + name?: ManagedClusterSKUName; + /** + * Tier of a managed cluster SKU. Possible values include: 'Paid', 'Free' + */ + tier?: ManagedClusterSKUTier; } /** @@ -1438,6 +1533,10 @@ export interface ManagedCluster extends Resource { * The identity of the managed cluster, if configured. */ identity?: ManagedClusterIdentity; + /** + * The managed cluster SKU. + */ + sku?: ManagedClusterSKU; } /** @@ -1562,6 +1661,10 @@ export interface AgentPoolUpgradeProfile { * List of orchestrator types and versions available for upgrade. */ upgrades?: AgentPoolUpgradeProfilePropertiesUpgradesItem[]; + /** + * LatestNodeImageVersion is the latest AKS supported node image version. + */ + latestNodeImageVersion?: string; } /** @@ -1634,6 +1737,77 @@ export interface CredentialResults { readonly kubeconfigs?: CredentialResult[]; } +/** + * Private endpoint which a connection belongs to. + */ +export interface PrivateEndpoint { + /** + * The resource Id for private endpoint + */ + id?: string; +} + +/** + * The state of a private link service connection. + */ +export interface PrivateLinkServiceConnectionState { + /** + * The private link service connection status. Possible values include: 'Pending', 'Approved', + * 'Rejected', 'Disconnected' + */ + status?: ConnectionStatus; + /** + * The private link service connection description. + */ + description?: string; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends BaseResource { + /** + * The ID of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The current provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; + /** + * The resource of private endpoint. + */ + privateEndpoint?: PrivateEndpoint; + /** + * A collection of information about the state of the connection between service consumer and + * provider. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; +} + +/** + * A list of private endpoint connections + */ +export interface PrivateEndpointConnectionListResult { + /** + * The collection value. + */ + value?: PrivateEndpointConnection[]; +} + /** * Optional Parameters. */ @@ -1811,13 +1985,21 @@ export type ContainerServiceOrchestratorTypes = 'Kubernetes' | 'Swarm' | 'DCOS' */ export type AgentPoolType = 'VirtualMachineScaleSets' | 'AvailabilitySet'; +/** + * Defines values for AgentPoolMode. + * Possible values include: 'System', 'User' + * @readonly + * @enum {string} + */ +export type AgentPoolMode = 'System' | 'User'; + /** * Defines values for ScaleSetPriority. - * Possible values include: 'Spot', 'Low', 'Regular' + * Possible values include: 'Spot', 'Regular' * @readonly * @enum {string} */ -export type ScaleSetPriority = 'Spot' | 'Low' | 'Regular'; +export type ScaleSetPriority = 'Spot' | 'Regular'; /** * Defines values for ScaleSetEvictionPolicy. @@ -1869,11 +2051,43 @@ export type LoadBalancerSku = 'standard' | 'basic'; /** * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'None' + * Possible values include: 'SystemAssigned', 'UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'None'; + +/** + * Defines values for ManagedClusterSKUName. + * Possible values include: 'Basic' + * @readonly + * @enum {string} + */ +export type ManagedClusterSKUName = 'Basic'; + +/** + * Defines values for ManagedClusterSKUTier. + * Possible values include: 'Paid', 'Free' * @readonly * @enum {string} */ -export type ResourceIdentityType = 'SystemAssigned' | 'None'; +export type ManagedClusterSKUTier = 'Paid' | 'Free'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; + +/** + * Defines values for ConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type ConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; /** * Contains response data for the list operation. @@ -2654,3 +2868,63 @@ export type AgentPoolsListNextResponse = AgentPoolListResult & { parsedBody: AgentPoolListResult; }; }; + +/** + * 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. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; diff --git a/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts b/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts index 6a0d92c8e771..b16ddcf75f19 100644 --- a/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AgentPool, + AgentPoolUpgradeSettings, BaseResource, CloudError, ContainerService, @@ -36,6 +37,7 @@ export { ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, ManagedClusterIdentity, + ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterListResult, ManagedClusterLoadBalancerProfile, ManagedClusterLoadBalancerProfileManagedOutboundIPs, @@ -46,6 +48,7 @@ export { ManagedClusterPropertiesAutoScalerProfile, ManagedClusterPropertiesIdentityProfileValue, ManagedClusterServicePrincipalProfile, + ManagedClusterSKU, ManagedClusterUpgradeProfile, ManagedClusterWindowsProfile, NetworkProfile, @@ -57,6 +60,9 @@ export { OpenShiftManagedClusterIdentityProvider, OpenShiftManagedClusterMasterPoolProfile, OpenShiftRouterProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, PurchasePlan, Resource, ResourceReference, diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 0e642ff00ef4..ba7f5fc97471 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -1167,6 +1167,22 @@ export const ManagedClusterServicePrincipalProfile: msRest.CompositeMapper = { } }; +export const AgentPoolUpgradeSettings: msRest.CompositeMapper = { + serializedName: "AgentPoolUpgradeSettings", + type: { + name: "Composite", + className: "AgentPoolUpgradeSettings", + modelProperties: { + maxSurge: { + serializedName: "maxSurge", + type: { + name: "String" + } + } + } + } +}; + export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = { serializedName: "ManagedClusterAgentPoolProfileProperties", type: { @@ -1174,19 +1190,12 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = className: "ManagedClusterAgentPoolProfileProperties", modelProperties: { count: { - required: true, serializedName: "count", - defaultValue: 1, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, type: { name: "Number" } }, vmSize: { - required: true, serializedName: "vmSize", type: { name: "String" @@ -1241,12 +1250,31 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = name: "String" } }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, orchestratorVersion: { serializedName: "orchestratorVersion", type: { name: "String" } }, + nodeImageVersion: { + serializedName: "nodeImageVersion", + type: { + name: "String" + } + }, + upgradeSettings: { + serializedName: "upgradeSettings", + type: { + name: "Composite", + className: "AgentPoolUpgradeSettings" + } + }, provisioningState: { readOnly: true, serializedName: "provisioningState", @@ -1323,6 +1351,12 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = } } } + }, + proximityPlacementGroupID: { + serializedName: "proximityPlacementGroupID", + type: { + name: "String" + } } } } @@ -1357,19 +1391,12 @@ export const AgentPool: msRest.CompositeMapper = { modelProperties: { ...SubResource.type.modelProperties, count: { - required: true, serializedName: "properties.count", - defaultValue: 1, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, type: { name: "Number" } }, vmSize: { - required: true, serializedName: "properties.vmSize", type: { name: "String" @@ -1424,12 +1451,31 @@ export const AgentPool: msRest.CompositeMapper = { name: "String" } }, + mode: { + serializedName: "properties.mode", + type: { + name: "String" + } + }, orchestratorVersion: { serializedName: "properties.orchestratorVersion", type: { name: "String" } }, + nodeImageVersion: { + serializedName: "properties.nodeImageVersion", + type: { + name: "String" + } + }, + upgradeSettings: { + serializedName: "properties.upgradeSettings", + type: { + name: "Composite", + className: "AgentPoolUpgradeSettings" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -1506,6 +1552,12 @@ export const AgentPool: msRest.CompositeMapper = { } } } + }, + proximityPlacementGroupID: { + serializedName: "properties.proximityPlacementGroupID", + type: { + name: "String" + } } } } @@ -1856,15 +1908,36 @@ export const ManagedClusterAADProfile: msRest.CompositeMapper = { name: "Composite", className: "ManagedClusterAADProfile", modelProperties: { + managed: { + serializedName: "managed", + type: { + name: "Boolean" + } + }, + enableAzureRBAC: { + serializedName: "enableAzureRBAC", + type: { + name: "Boolean" + } + }, + adminGroupObjectIDs: { + serializedName: "adminGroupObjectIDs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, clientAppID: { - required: true, serializedName: "clientAppID", type: { name: "String" } }, serverAppID: { - required: true, serializedName: "serverAppID", type: { name: "String" @@ -1892,6 +1965,12 @@ export const ManagedClusterPropertiesAutoScalerProfile: msRest.CompositeMapper = name: "Composite", className: "ManagedClusterPropertiesAutoScalerProfile", modelProperties: { + balanceSimilarNodeGroups: { + serializedName: "balance-similar-node-groups", + type: { + name: "String" + } + }, scanInterval: { serializedName: "scan-interval", type: { @@ -1982,6 +2061,30 @@ export const ManagedClusterPropertiesIdentityProfileValue: msRest.CompositeMappe } }; +export const ManagedClusterIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedClusterIdentity_userAssignedIdentitiesValue", + type: { + name: "Composite", + className: "ManagedClusterIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + export const ManagedClusterIdentity: msRest.CompositeMapper = { serializedName: "ManagedClusterIdentity", type: { @@ -2008,9 +2111,44 @@ export const ManagedClusterIdentity: msRest.CompositeMapper = { name: "Enum", allowedValues: [ "SystemAssigned", + "UserAssigned", "None" ] } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedClusterIdentityUserAssignedIdentitiesValue" + } + } + } + } + } + } +}; + +export const ManagedClusterSKU: msRest.CompositeMapper = { + serializedName: "ManagedClusterSKU", + type: { + name: "Composite", + className: "ManagedClusterSKU", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } } } } @@ -2178,6 +2316,13 @@ export const ManagedCluster: msRest.CompositeMapper = { name: "Composite", className: "ManagedClusterIdentity" } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ManagedClusterSKU" + } } } } @@ -2392,6 +2537,12 @@ export const AgentPoolUpgradeProfile: msRest.CompositeMapper = { } } } + }, + latestNodeImageVersion: { + serializedName: "properties.latestNodeImageVersion", + type: { + name: "String" + } } } } @@ -2515,6 +2666,119 @@ export const CredentialResults: msRest.CompositeMapper = { } }; +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + } + } + } +}; + +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 OpenShiftManagedClusterListResult: msRest.CompositeMapper = { serializedName: "OpenShiftManagedClusterListResult", type: { diff --git a/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts b/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts index 7458a1ef58ae..280e986c8c9c 100644 --- a/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AgentPool, + AgentPoolUpgradeSettings, BaseResource, CloudError, ContainerService, @@ -34,6 +35,7 @@ export { ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, ManagedClusterIdentity, + ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterLoadBalancerProfile, ManagedClusterLoadBalancerProfileManagedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes, @@ -41,6 +43,7 @@ export { ManagedClusterPropertiesAutoScalerProfile, ManagedClusterPropertiesIdentityProfileValue, ManagedClusterServicePrincipalProfile, + ManagedClusterSKU, ManagedClusterWindowsProfile, NetworkProfile, OpenShiftManagedCluster, @@ -52,6 +55,9 @@ export { OpenShiftManagedClusterListResult, OpenShiftManagedClusterMasterPoolProfile, OpenShiftRouterProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, PurchasePlan, Resource, ResourceReference, diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 8d1d0ce731d9..0bf7ee17c711 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -72,7 +72,7 @@ export const apiVersion3: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2020-02-01', + defaultValue: '2020-06-01', type: { name: "String" } @@ -109,6 +109,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; export const resourceGroupName0: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..a68d5ae6a5ed --- /dev/null +++ b/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AgentPool, + AgentPoolUpgradeSettings, + BaseResource, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceNetworkProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + KeyVaultSecretRef, + ManagedCluster, + ManagedClusterAADProfile, + ManagedClusterAccessProfile, + ManagedClusterAddonProfile, + ManagedClusterAddonProfileIdentity, + ManagedClusterAgentPoolProfile, + ManagedClusterAgentPoolProfileProperties, + ManagedClusterAPIServerAccessProfile, + ManagedClusterIdentity, + ManagedClusterIdentityUserAssignedIdentitiesValue, + ManagedClusterLoadBalancerProfile, + ManagedClusterLoadBalancerProfileManagedOutboundIPs, + ManagedClusterLoadBalancerProfileOutboundIPPrefixes, + ManagedClusterLoadBalancerProfileOutboundIPs, + ManagedClusterPropertiesAutoScalerProfile, + ManagedClusterPropertiesIdentityProfileValue, + ManagedClusterServicePrincipalProfile, + ManagedClusterSKU, + ManagedClusterWindowsProfile, + NetworkProfile, + OpenShiftManagedCluster, + OpenShiftManagedClusterAADIdentityProvider, + OpenShiftManagedClusterAgentPoolProfile, + OpenShiftManagedClusterAuthProfile, + OpenShiftManagedClusterBaseIdentityProvider, + OpenShiftManagedClusterIdentityProvider, + OpenShiftManagedClusterMasterPoolProfile, + OpenShiftRouterProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + PrivateLinkServiceConnectionState, + PurchasePlan, + Resource, + ResourceReference, + SubResource, + UserAssignedIdentity +} from "../models/mappers"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/index.ts b/sdk/containerservice/arm-containerservice/src/operations/index.ts index 8d5b6c7986df..0d10279e7a1f 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -13,3 +13,4 @@ export * from "./containerServices"; export * from "./operations"; export * from "./managedClusters"; export * from "./agentPools"; +export * from "./privateEndpointConnections"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index b012d3152045..f2d04b116621 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -119,12 +119,17 @@ export class ManagedClusters { /** * Gets the accessProfile for the specified role name of the managed cluster with a specified - * resource group and name. + * resource group and name. **WARNING**: This API will be deprecated. Instead use + * [ListClusterUserCredentials](https://docs.microsoft.com/en-us/rest/api/aks/managedclusters/listclusterusercredentials) + * or + * [ListClusterAdminCredentials](https://docs.microsoft.com/en-us/rest/api/aks/managedclusters/listclusteradmincredentials) + * . * @summary Gets an access profile of a managed cluster. * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: msRest.RequestOptionsBase): Promise; @@ -133,6 +138,7 @@ export class ManagedClusters { * @param resourceName The name of the managed cluster resource. * @param roleName The name of the role for managed cluster accessProfile resource. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, callback: msRest.ServiceCallback): void; /** @@ -141,6 +147,7 @@ export class ManagedClusters { * @param roleName The name of the role for managed cluster accessProfile resource. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..5c4e4237a306 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: ContainerServiceClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of private endpoint connections in the specified managed cluster. The operation + * returns properties of each private endpoint connection. + * @summary Gets a list of private endpoint connections in the specified managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param callback The callback + */ + list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the private endpoint connection by managed cluster and resource group. + * @summary Gets the private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates a private endpoint connection in the specified managed cluster. + * @summary Updates a private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters Parameters supplied to the Update a private endpoint connection operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters Parameters supplied to the Update a private endpoint connection operation. + * @param callback The callback + */ + update(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters Parameters supplied to the Update a private endpoint connection operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + privateEndpointConnectionName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the private endpoint connection in the specified managed cluster. + * @summary Deletes a private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Deletes the private endpoint connection in the specified managed cluster. + * @summary Deletes a private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName1 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName1, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName1, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName1, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};