diff --git a/packages/@azure/arm-containerservice/lib/models/index.ts b/packages/@azure/arm-containerservice/lib/models/index.ts index 8e9c33b185c9..c3289ee98fe7 100644 --- a/packages/@azure/arm-containerservice/lib/models/index.ts +++ b/packages/@azure/arm-containerservice/lib/models/index.ts @@ -2090,6 +2090,44 @@ export type ManagedClustersUpdateTagsResponse = ManagedCluster & { }; }; +/** + * Contains response data for the resetServicePrincipalProfile operation. + */ +export type ManagedClustersResetServicePrincipalProfileResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the resetAADProfile operation. + */ +export type ManagedClustersResetAADProfileResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + /** * Contains response data for the beginCreateOrUpdate operation. */ @@ -2128,6 +2166,44 @@ export type ManagedClustersBeginUpdateTagsResponse = ManagedCluster & { }; }; +/** + * Contains response data for the beginResetServicePrincipalProfile operation. + */ +export type ManagedClustersBeginResetServicePrincipalProfileResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the beginResetAADProfile operation. + */ +export type ManagedClustersBeginResetAADProfileResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + /** * Contains response data for the listNext operation. */ diff --git a/packages/@azure/arm-containerservice/lib/operations/containerServices.ts b/packages/@azure/arm-containerservice/lib/operations/containerServices.ts index b191564aa213..be0857225f00 100644 --- a/packages/@azure/arm-containerservice/lib/operations/containerServices.ts +++ b/packages/@azure/arm-containerservice/lib/operations/containerServices.ts @@ -33,16 +33,19 @@ export class ContainerServices { * agents, and FQDNs of masters and agents. * @summary Gets a list of container services in the specified subscription. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ list(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -79,6 +82,7 @@ export class ContainerServices { * @param containerServiceName The name of the container service in the specified subscription and * resource group. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise; @@ -87,6 +91,7 @@ export class ContainerServices { * @param containerServiceName The name of the container service in the specified subscription and * resource group. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ get(resourceGroupName: string, containerServiceName: string, callback: msRest.ServiceCallback): void; /** @@ -95,6 +100,7 @@ export class ContainerServices { * resource group. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ get(resourceGroupName: string, containerServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -132,18 +138,21 @@ export class ContainerServices { * @summary Gets a list of container services in the specified resource group. * @param resourceGroupName The name of the resource group. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -239,18 +248,21 @@ export class ContainerServices { * @summary Gets a list of container services in the specified subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -270,18 +282,21 @@ export class ContainerServices { * @summary Gets a list of container services in the specified resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { diff --git a/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts b/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts index f234621c556a..5a3bbc4e2fa4 100644 --- a/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts +++ b/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts @@ -296,6 +296,35 @@ export class ManagedClusters { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Update the service principal Profile for a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset Service Principal Profile operation for a + * Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetServicePrincipalProfile(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update the AAD Profile for a managed cluster. + * @summary Reset AAD Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + resetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetAADProfile(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Creates or updates a managed cluster with the specified configuration for agents and Kubernetes * version. @@ -358,6 +387,49 @@ export class ManagedClusters { options); } + /** + * Update the service principal Profile for a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset Service Principal Profile operation for a + * Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginResetServicePrincipalProfileOperationSpec, + options); + } + + /** + * Update the AAD Profile for a managed cluster. + * @summary Reset AAD Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginResetAADProfileOperationSpec, + options); + } + /** * Gets a list of managed clusters in the specified subscription. The operation returns properties * of each managed cluster. @@ -685,6 +757,76 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginResetServicePrincipalProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedClusterServicePrincipalProfile, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedCluster + }, + 202: { + bodyMapper: Mappers.ManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetAADProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedClusterAADProfile, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedCluster + }, + 202: { + bodyMapper: Mappers.ManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com",