Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-containerservice] [Mirror] add clear-output-folder in resource-manager readme.typescript.md to f… #150

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
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand All @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,11 @@ export interface ManagedCluster extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly fqdn?: string;
/**
* FQDN of private cluster.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateFQDN?: string;
/**
* Properties of the agent pool.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,13 @@ export const ManagedCluster: msRest.CompositeMapper = {
name: "String"
}
},
privateFQDN: {
readOnly: true,
serializedName: "properties.privateFQDN",
type: {
name: "String"
}
},
agentPoolProfiles: {
serializedName: "properties.agentPoolProfiles",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ export const apiVersion2: msRest.OperationQueryParameter = {
}
}
};
export const apiVersion3: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2019-10-01',
type: {
name: "String"
}
}
};
export const containerServiceName: msRest.OperationURLParameter = {
parameterPath: "containerServiceName",
mapper: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,32 +170,28 @@ export class AgentPools {
* @summary Gets a list of supported versions for the specified agent pool.
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param [options] The optional parameters
* @returns Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse>
*/
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse>;
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param callback The callback
*/
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, agentPoolName: string, callback: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): void;
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceName The name of the managed cluster resource.
* @param agentPoolName The name of the agent pool.
* @param options The optional parameters
* @param callback The callback
*/
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, agentPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): void;
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolAvailableVersions>, callback?: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse> {
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): void;
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolAvailableVersions>, callback?: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
resourceName,
agentPoolName,
options
},
getAvailableAgentPoolVersionsOperationSpec,
Expand Down Expand Up @@ -288,7 +284,7 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -314,7 +310,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.agentPoolName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -340,7 +336,7 @@ const getUpgradeProfileOperationSpec: msRest.OperationSpec = {
Parameters.agentPoolName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -358,15 +354,14 @@ const getUpgradeProfileOperationSpec: msRest.OperationSpec = {

const getAvailableAgentPoolVersionsOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/availableAgentPoolVersions",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName0,
Parameters.resourceName1,
Parameters.agentPoolName
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -392,7 +387,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.agentPoolName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -428,7 +423,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.agentPoolName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,19 @@ export class ManagedClusters {
.then(lroPoller => lroPoller.pollUntilFinished());
}

/**
* Rotate certificates of a managed cluster.
* @summary Rotate certificates of a 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<msRest.RestResponse>
*/
rotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
return this.beginRotateClusterCertificates(resourceGroupName,resourceName,options)
.then(lroPoller => lroPoller.pollUntilFinished());
}

/**
* Creates or updates a managed cluster with the specified configuration for agents and Kubernetes
* version.
Expand Down Expand Up @@ -430,6 +443,25 @@ export class ManagedClusters {
options);
}

/**
* Rotate certificates of a managed cluster.
* @summary Rotate certificates of a 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<msRestAzure.LROPoller>
*/
beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
return this.client.sendLRORequest(
{
resourceGroupName,
resourceName,
options
},
beginRotateClusterCertificatesOperationSpec,
options);
}

/**
* Gets a list of managed clusters in the specified subscription. The operation returns properties
* of each managed cluster.
Expand Down Expand Up @@ -500,7 +532,7 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -524,7 +556,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
Parameters.resourceGroupName0
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -549,7 +581,7 @@ const getUpgradeProfileOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -575,7 +607,7 @@ const getAccessProfileOperationSpec: msRest.OperationSpec = {
Parameters.roleName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -600,7 +632,7 @@ const listClusterAdminCredentialsOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -625,7 +657,7 @@ const listClusterUserCredentialsOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -650,7 +682,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -675,7 +707,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -710,7 +742,7 @@ const beginUpdateTagsOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -742,7 +774,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -766,7 +798,7 @@ const beginResetServicePrincipalProfileOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -797,7 +829,7 @@ const beginResetAADProfileOperationSpec: msRest.OperationSpec = {
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -819,6 +851,30 @@ const beginResetAADProfileOperationSpec: msRest.OperationSpec = {
serializer
};

const beginRotateClusterCertificatesOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName0,
Parameters.resourceName1
],
queryParameters: [
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
202: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
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 @@ -57,7 +57,7 @@ const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "providers/Microsoft.ContainerService/operations",
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion3
],
headerParameters: [
Parameters.acceptLanguage
Expand Down