Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
[AutoPR containerservices/resource-manager] [AKS]: SP/AAD update oper…
Browse files Browse the repository at this point in the history
…ation for 2018-03-31 and 2018-08-01-preview (#4472)

* Generated from 705a889279c218f987a492183359414ebd6c205a

correct example fileName

* Generated from 739ebf423cf9fa4ff6c90e9056a080a5d19cfbac

add default response and 202, correct typo
  • Loading branch information
AutorestCI authored Dec 19, 2018
1 parent 737bed0 commit 3d922f1
Show file tree
Hide file tree
Showing 2 changed files with 1,417 additions and 63 deletions.
340 changes: 340 additions & 0 deletions lib/services/containerservicesManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3301,6 +3301,176 @@ export interface ManagedClusters {
deleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* @summary Reset Service Principal Profile of a managed cluster.
*
* Update the service principal Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset Service
* Principal Profile operation for a Managed Cluster.
*
* @param {string} parameters.clientId The ID for the service principal.
*
* @param {string} [parameters.secret] The secret password associated with the
* service principal in plain text.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ManagedCluster>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
resetServicePrincipalProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ManagedCluster>>;

/**
* @summary Reset Service Principal Profile of a managed cluster.
*
* Update the service principal Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset Service
* Principal Profile operation for a Managed Cluster.
*
* @param {string} parameters.clientId The ID for the service principal.
*
* @param {string} [parameters.secret] The secret password associated with the
* service principal in plain text.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {ManagedCluster} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {ManagedCluster} [result] - The deserialized result object if an error did not occur.
* See {@link ManagedCluster} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ManagedCluster>;
resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, callback: ServiceCallback<models.ManagedCluster>): void;
resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ManagedCluster>): void;


/**
* @summary Reset AAD Profile of a managed cluster.
*
* Update the AAD Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset AAD Profile
* operation for a Managed Cluster.
*
* @param {string} parameters.clientAppID The client AAD application ID.
*
* @param {string} parameters.serverAppID The server AAD application ID.
*
* @param {string} [parameters.serverAppSecret] The server AAD application
* secret.
*
* @param {string} [parameters.tenantID] The AAD tenant ID to use for
* authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ManagedCluster>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
resetAADProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ManagedCluster>>;

/**
* @summary Reset AAD Profile of a managed cluster.
*
* Update the AAD Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset AAD Profile
* operation for a Managed Cluster.
*
* @param {string} parameters.clientAppID The client AAD application ID.
*
* @param {string} parameters.serverAppID The server AAD application ID.
*
* @param {string} [parameters.serverAppSecret] The server AAD application
* secret.
*
* @param {string} [parameters.tenantID] The AAD tenant ID to use for
* authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {ManagedCluster} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {ManagedCluster} [result] - The deserialized result object if an error did not occur.
* See {@link ManagedCluster} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
resetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ManagedCluster>;
resetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, callback: ServiceCallback<models.ManagedCluster>): void;
resetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ManagedCluster>): void;


/**
* @summary Creates or updates a managed cluster.
*
Expand Down Expand Up @@ -3671,6 +3841,176 @@ export interface ManagedClusters {
beginDeleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* @summary Reset Service Principal Profile of a managed cluster.
*
* Update the service principal Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset Service
* Principal Profile operation for a Managed Cluster.
*
* @param {string} parameters.clientId The ID for the service principal.
*
* @param {string} [parameters.secret] The secret password associated with the
* service principal in plain text.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ManagedCluster>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
beginResetServicePrincipalProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ManagedCluster>>;

/**
* @summary Reset Service Principal Profile of a managed cluster.
*
* Update the service principal Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset Service
* Principal Profile operation for a Managed Cluster.
*
* @param {string} parameters.clientId The ID for the service principal.
*
* @param {string} [parameters.secret] The secret password associated with the
* service principal in plain text.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {ManagedCluster} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {ManagedCluster} [result] - The deserialized result object if an error did not occur.
* See {@link ManagedCluster} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ManagedCluster>;
beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, callback: ServiceCallback<models.ManagedCluster>): void;
beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ManagedCluster>): void;


/**
* @summary Reset AAD Profile of a managed cluster.
*
* Update the AAD Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset AAD Profile
* operation for a Managed Cluster.
*
* @param {string} parameters.clientAppID The client AAD application ID.
*
* @param {string} parameters.serverAppID The server AAD application ID.
*
* @param {string} [parameters.serverAppSecret] The server AAD application
* secret.
*
* @param {string} [parameters.tenantID] The AAD tenant ID to use for
* authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ManagedCluster>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
beginResetAADProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ManagedCluster>>;

/**
* @summary Reset AAD Profile of a managed cluster.
*
* Update the AAD Profile for a managed cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} resourceName The name of the managed cluster resource.
*
* @param {object} parameters Parameters supplied to the Reset AAD Profile
* operation for a Managed Cluster.
*
* @param {string} parameters.clientAppID The client AAD application ID.
*
* @param {string} parameters.serverAppID The server AAD application ID.
*
* @param {string} [parameters.serverAppSecret] The server AAD application
* secret.
*
* @param {string} [parameters.tenantID] The AAD tenant ID to use for
* authentication. If not specified, will use the tenant of the deployment
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {ManagedCluster} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {ManagedCluster} [result] - The deserialized result object if an error did not occur.
* See {@link ManagedCluster} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ManagedCluster>;
beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, callback: ServiceCallback<models.ManagedCluster>): void;
beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ManagedCluster>): void;


/**
* @summary Gets a list of managed clusters in the specified subscription.
*
Expand Down
Loading

0 comments on commit 3d922f1

Please sign in to comment.