Skip to content

Commit

Permalink
Update from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed May 1, 2020
1 parent 26065ac commit 6619057
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
const clusterResourceName = "managedClusters";
const clusterName = "testclusterName";
const sourceControlConfigurationName = "testsourceControlConfigurationName";
const apiVersion = "testapiVersion";
client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName, apiVersion).then((result) => {
client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand Down Expand Up @@ -89,8 +88,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
const clusterResourceName = "managedClusters";
const clusterName = "testclusterName";
const sourceControlConfigurationName = "testsourceControlConfigurationName";
const apiVersion = "testapiVersion";
client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName, apiVersion).then((result) => {
client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,22 @@ export class Operations {

/**
* List all the available operations the KubernetesConfiguration resource provider supports.
* @param apiVersion The API version to be used with the HTTP request.
* @param [options] The optional parameters
* @returns Promise<Models.OperationsListResponse>
*/
list(apiVersion: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
/**
* @param apiVersion The API version to be used with the HTTP request.
* @param callback The callback
*/
list(apiVersion: string, callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
list(callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
/**
* @param apiVersion The API version to be used with the HTTP request.
* @param options The optional parameters
* @param callback The callback
*/
list(apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
list(apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResourceProviderOperationList>, callback?: msRest.ServiceCallback<Models.ResourceProviderOperationList>): Promise<Models.OperationsListResponse> {
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResourceProviderOperationList>, callback?: msRest.ServiceCallback<Models.ResourceProviderOperationList>): Promise<Models.OperationsListResponse> {
return this.client.sendOperationRequest(
{
apiVersion,
options
},
listOperationSpec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param [options] The optional parameters
* @returns Promise<Models.SourceControlConfigurationsGetResponse>
*/
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise<Models.SourceControlConfigurationsGetResponse>;
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise<Models.SourceControlConfigurationsGetResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS
Expand All @@ -53,10 +52,9 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param callback The callback
*/
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS
Expand All @@ -67,20 +65,18 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param options The optional parameters
* @param callback The callback
*/
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SourceControlConfiguration>, callback?: msRest.ServiceCallback<Models.SourceControlConfiguration>): Promise<Models.SourceControlConfigurationsGetResponse> {
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
get(resourceGroupName: string, clusterRp: Models.ClusterRp, clusterResourceName: Models.ClusterResourceName, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SourceControlConfiguration>, callback?: msRest.ServiceCallback<Models.SourceControlConfiguration>): Promise<Models.SourceControlConfigurationsGetResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
clusterRp,
clusterResourceName,
clusterName,
sourceControlConfigurationName,
apiVersion,
options
},
getOperationSpec,
Expand All @@ -98,12 +94,11 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
* @param [options] The optional parameters
* @returns Promise<Models.SourceControlConfigurationsCreateOrUpdateResponse>
*/
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase): Promise<Models.SourceControlConfigurationsCreateOrUpdateResponse>;
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase): Promise<Models.SourceControlConfigurationsCreateOrUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS
Expand All @@ -114,11 +109,10 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, sourceControlConfiguration: Models.SourceControlConfiguration, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS
Expand All @@ -129,21 +123,19 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
* @param options The optional parameters
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, sourceControlConfiguration: Models.SourceControlConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SourceControlConfiguration>, callback?: msRest.ServiceCallback<Models.SourceControlConfiguration>): Promise<Models.SourceControlConfigurationsCreateOrUpdateResponse> {
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SourceControlConfiguration>): void;
createOrUpdate(resourceGroupName: string, clusterRp: Models.ClusterRp1, clusterResourceName: Models.ClusterResourceName1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: Models.SourceControlConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SourceControlConfiguration>, callback?: msRest.ServiceCallback<Models.SourceControlConfiguration>): Promise<Models.SourceControlConfigurationsCreateOrUpdateResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
clusterRp,
clusterResourceName,
clusterName,
sourceControlConfigurationName,
apiVersion,
sourceControlConfiguration,
options
},
Expand All @@ -163,12 +155,11 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
deleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
return this.beginDeleteMethod(resourceGroupName,clusterRp,clusterResourceName,clusterName,sourceControlConfigurationName,apiVersion,options)
deleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
return this.beginDeleteMethod(resourceGroupName,clusterRp,clusterResourceName,clusterName,sourceControlConfigurationName,options)
.then(lroPoller => lroPoller.pollUntilFinished());
}

Expand All @@ -182,11 +173,10 @@ export class SourceControlConfigurations {
* AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include:
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param apiVersion The API version to be used with the HTTP request.
* @param [options] The optional parameters
* @returns Promise<Models.SourceControlConfigurationsListResponse>
*/
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise<Models.SourceControlConfigurationsListResponse>;
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options?: msRest.RequestOptionsBase): Promise<Models.SourceControlConfigurationsListResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS
Expand All @@ -196,10 +186,9 @@ export class SourceControlConfigurations {
* AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include:
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param apiVersion The API version to be used with the HTTP request.
* @param callback The callback
*/
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, apiVersion: string, callback: msRest.ServiceCallback<Models.SourceControlConfigurationList>): void;
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, callback: msRest.ServiceCallback<Models.SourceControlConfigurationList>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS
Expand All @@ -209,19 +198,17 @@ export class SourceControlConfigurations {
* AKS clusters) or connectedClusters (for OnPrem K8S clusters). Possible values include:
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param apiVersion The API version to be used with the HTTP request.
* @param options The optional parameters
* @param callback The callback
*/
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, apiVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SourceControlConfigurationList>): void;
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, apiVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SourceControlConfigurationList>, callback?: msRest.ServiceCallback<Models.SourceControlConfigurationList>): Promise<Models.SourceControlConfigurationsListResponse> {
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SourceControlConfigurationList>): void;
list(resourceGroupName: string, clusterRp: Models.ClusterRp3, clusterResourceName: Models.ClusterResourceName3, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SourceControlConfigurationList>, callback?: msRest.ServiceCallback<Models.SourceControlConfigurationList>): Promise<Models.SourceControlConfigurationsListResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
clusterRp,
clusterResourceName,
clusterName,
apiVersion,
options
},
listOperationSpec,
Expand All @@ -240,19 +227,17 @@ export class SourceControlConfigurations {
* 'managedClusters', 'connectedClusters'
* @param clusterName The name of the kubernetes cluster.
* @param sourceControlConfigurationName Name of the Source Control Configuration.
* @param apiVersion The API version to be used with the HTTP request.
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
*/
beginDeleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, sourceControlConfigurationName: string, apiVersion: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
beginDeleteMethod(resourceGroupName: string, clusterRp: Models.ClusterRp2, clusterResourceName: Models.ClusterResourceName2, clusterName: string, sourceControlConfigurationName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
return this.client.sendLRORequest(
{
resourceGroupName,
clusterRp,
clusterResourceName,
clusterName,
sourceControlConfigurationName,
apiVersion,
options
},
beginDeleteMethodOperationSpec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const packageVersion = "1.0.0";
export class SourceControlConfigurationClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the SourceControlConfigurationClient class.
Expand All @@ -44,6 +45,7 @@ export class SourceControlConfigurationClientContext extends msRestAzure.AzureSe

super(credentials, options);

this.apiVersion = '2019-11-01-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down

0 comments on commit 6619057

Please sign in to comment.