@azure/arm-containerservice 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +21 -0
- package/README.md +106 -0
- package/dist/arm-containerservice.js +6451 -0
- package/dist/arm-containerservice.js.map +1 -0
- package/dist/arm-containerservice.min.js +1 -0
- package/dist/arm-containerservice.min.js.map +1 -0
- package/esm/containerServiceClient.d.ts +32 -0
- package/esm/containerServiceClient.d.ts.map +1 -0
- package/esm/containerServiceClient.js +45 -0
- package/esm/containerServiceClient.js.map +1 -0
- package/esm/containerServiceClientContext.d.ts +23 -0
- package/esm/containerServiceClientContext.d.ts.map +1 -0
- package/esm/containerServiceClientContext.js +61 -0
- package/esm/containerServiceClientContext.js.map +1 -0
- package/esm/models/agentPoolsMappers.d.ts +2 -0
- package/esm/models/agentPoolsMappers.d.ts.map +1 -0
- package/esm/models/agentPoolsMappers.js +9 -0
- package/esm/models/agentPoolsMappers.js.map +1 -0
- package/esm/models/index.d.ts +3479 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +8 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/maintenanceConfigurationsMappers.d.ts +2 -0
- package/esm/models/maintenanceConfigurationsMappers.d.ts.map +1 -0
- package/esm/models/maintenanceConfigurationsMappers.js +9 -0
- package/esm/models/maintenanceConfigurationsMappers.js.map +1 -0
- package/esm/models/managedClustersMappers.d.ts +2 -0
- package/esm/models/managedClustersMappers.d.ts.map +1 -0
- package/esm/models/managedClustersMappers.js +9 -0
- package/esm/models/managedClustersMappers.js.map +1 -0
- package/esm/models/mappers.d.ts +88 -0
- package/esm/models/mappers.d.ts.map +1 -0
- package/esm/models/mappers.js +3516 -0
- package/esm/models/mappers.js.map +1 -0
- package/esm/models/operationsMappers.d.ts +2 -0
- package/esm/models/operationsMappers.d.ts.map +1 -0
- package/esm/models/operationsMappers.js +9 -0
- package/esm/models/operationsMappers.js.map +1 -0
- package/esm/models/parameters.d.ts +16 -0
- package/esm/models/parameters.d.ts.map +1 -0
- package/esm/models/parameters.js +162 -0
- package/esm/models/parameters.js.map +1 -0
- package/esm/models/privateEndpointConnectionsMappers.d.ts +2 -0
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +1 -0
- package/esm/models/privateEndpointConnectionsMappers.js +9 -0
- package/esm/models/privateEndpointConnectionsMappers.js.map +1 -0
- package/esm/models/privateLinkResourcesMappers.d.ts +2 -0
- package/esm/models/privateLinkResourcesMappers.d.ts.map +1 -0
- package/esm/models/privateLinkResourcesMappers.js +9 -0
- package/esm/models/privateLinkResourcesMappers.js.map +1 -0
- package/esm/models/resolvePrivateLinkServiceIdMappers.d.ts +2 -0
- package/esm/models/resolvePrivateLinkServiceIdMappers.d.ts.map +1 -0
- package/esm/models/resolvePrivateLinkServiceIdMappers.js +9 -0
- package/esm/models/resolvePrivateLinkServiceIdMappers.js.map +1 -0
- package/esm/models/snapshotsMappers.d.ts +2 -0
- package/esm/models/snapshotsMappers.d.ts.map +1 -0
- package/esm/models/snapshotsMappers.js +9 -0
- package/esm/models/snapshotsMappers.js.map +1 -0
- package/esm/operations/agentPools.d.ts +187 -0
- package/esm/operations/agentPools.d.ts.map +1 -0
- package/esm/operations/agentPools.js +359 -0
- package/esm/operations/agentPools.js.map +1 -0
- package/esm/operations/index.d.ts +9 -0
- package/esm/operations/index.d.ts.map +1 -0
- package/esm/operations/index.js +17 -0
- package/esm/operations/index.js.map +1 -0
- package/esm/operations/maintenanceConfigurations.d.ts +127 -0
- package/esm/operations/maintenanceConfigurations.d.ts.map +1 -0
- package/esm/operations/maintenanceConfigurations.js +190 -0
- package/esm/operations/maintenanceConfigurations.js.map +1 -0
- package/esm/operations/managedClusters.d.ts +487 -0
- package/esm/operations/managedClusters.d.ts.map +1 -0
- package/esm/operations/managedClusters.js +956 -0
- package/esm/operations/managedClusters.js.map +1 -0
- package/esm/operations/operations.d.ts +28 -0
- package/esm/operations/operations.d.ts.map +1 -0
- package/esm/operations/operations.js +50 -0
- package/esm/operations/operations.js.map +1 -0
- package/esm/operations/privateEndpointConnections.d.ts +106 -0
- package/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/esm/operations/privateEndpointConnections.js +181 -0
- package/esm/operations/privateEndpointConnections.js.map +1 -0
- package/esm/operations/privateLinkResources.d.ts +35 -0
- package/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/esm/operations/privateLinkResources.js +57 -0
- package/esm/operations/privateLinkResources.js.map +1 -0
- package/esm/operations/resolvePrivateLinkServiceId.d.ts +37 -0
- package/esm/operations/resolvePrivateLinkServiceId.d.ts.map +1 -0
- package/esm/operations/resolvePrivateLinkServiceId.js +63 -0
- package/esm/operations/resolvePrivateLinkServiceId.js.map +1 -0
- package/esm/operations/snapshots.d.ts +172 -0
- package/esm/operations/snapshots.d.ts.map +1 -0
- package/esm/operations/snapshots.js +277 -0
- package/esm/operations/snapshots.js.map +1 -0
- package/package.json +59 -0
- package/rollup.config.js +37 -0
- package/src/containerServiceClient.ts +62 -0
- package/src/containerServiceClientContext.ts +68 -0
- package/src/models/agentPoolsMappers.ts +72 -0
- package/src/models/index.ts +3679 -0
- package/src/models/maintenanceConfigurationsMappers.ts +68 -0
- package/src/models/managedClustersMappers.ts +82 -0
- package/src/models/mappers.ts +3695 -0
- package/src/models/operationsMappers.ts +13 -0
- package/src/models/parameters.ts +164 -0
- package/src/models/privateEndpointConnectionsMappers.ts +68 -0
- package/src/models/privateLinkResourcesMappers.ts +13 -0
- package/src/models/resolvePrivateLinkServiceIdMappers.ts +12 -0
- package/src/models/snapshotsMappers.ts +69 -0
- package/src/operations/agentPools.ts +519 -0
- package/src/operations/index.ts +17 -0
- package/src/operations/maintenanceConfigurations.ts +334 -0
- package/src/operations/managedClusters.ts +1391 -0
- package/src/operations/operations.ts +73 -0
- package/src/operations/privateEndpointConnections.ts +282 -0
- package/src/operations/privateLinkResources.ts +87 -0
- package/src/operations/resolvePrivateLinkServiceId.ts +97 -0
- package/src/operations/snapshots.ts +484 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
+
* regenerated.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export * from "./operations";
|
|
11
|
+
export * from "./managedClusters";
|
|
12
|
+
export * from "./maintenanceConfigurations";
|
|
13
|
+
export * from "./agentPools";
|
|
14
|
+
export * from "./privateEndpointConnections";
|
|
15
|
+
export * from "./privateLinkResources";
|
|
16
|
+
export * from "./resolvePrivateLinkServiceId";
|
|
17
|
+
export * from "./snapshots";
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
+
* regenerated.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as msRest from "@azure/ms-rest-js";
|
|
11
|
+
import * as Models from "../models";
|
|
12
|
+
import * as Mappers from "../models/maintenanceConfigurationsMappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { ContainerServiceClientContext } from "../containerServiceClientContext";
|
|
15
|
+
|
|
16
|
+
/** Class representing a MaintenanceConfigurations. */
|
|
17
|
+
export class MaintenanceConfigurations {
|
|
18
|
+
private readonly client: ContainerServiceClientContext;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a MaintenanceConfigurations.
|
|
22
|
+
* @param {ContainerServiceClientContext} client Reference to the service client.
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: ContainerServiceClientContext) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @summary Gets a list of maintenance configurations in the specified managed cluster.
|
|
30
|
+
* @param resourceGroupName The name of the resource group.
|
|
31
|
+
* @param resourceName The name of the managed cluster resource.
|
|
32
|
+
* @param [options] The optional parameters
|
|
33
|
+
* @returns Promise<Models.MaintenanceConfigurationsListByManagedClusterResponse>
|
|
34
|
+
*/
|
|
35
|
+
listByManagedCluster(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.MaintenanceConfigurationsListByManagedClusterResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @param resourceGroupName The name of the resource group.
|
|
38
|
+
* @param resourceName The name of the managed cluster resource.
|
|
39
|
+
* @param callback The callback
|
|
40
|
+
*/
|
|
41
|
+
listByManagedCluster(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>): void;
|
|
42
|
+
/**
|
|
43
|
+
* @param resourceGroupName The name of the resource group.
|
|
44
|
+
* @param resourceName The name of the managed cluster resource.
|
|
45
|
+
* @param options The optional parameters
|
|
46
|
+
* @param callback The callback
|
|
47
|
+
*/
|
|
48
|
+
listByManagedCluster(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>): void;
|
|
49
|
+
listByManagedCluster(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>, callback?: msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>): Promise<Models.MaintenanceConfigurationsListByManagedClusterResponse> {
|
|
50
|
+
return this.client.sendOperationRequest(
|
|
51
|
+
{
|
|
52
|
+
resourceGroupName,
|
|
53
|
+
resourceName,
|
|
54
|
+
options
|
|
55
|
+
},
|
|
56
|
+
listByManagedClusterOperationSpec,
|
|
57
|
+
callback) as Promise<Models.MaintenanceConfigurationsListByManagedClusterResponse>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @summary Gets the specified maintenance configuration of a managed cluster.
|
|
62
|
+
* @param resourceGroupName The name of the resource group.
|
|
63
|
+
* @param resourceName The name of the managed cluster resource.
|
|
64
|
+
* @param configName The name of the maintenance configuration.
|
|
65
|
+
* @param [options] The optional parameters
|
|
66
|
+
* @returns Promise<Models.MaintenanceConfigurationsGetResponse>
|
|
67
|
+
*/
|
|
68
|
+
get(resourceGroupName: string, resourceName: string, configName: string, options?: msRest.RequestOptionsBase): Promise<Models.MaintenanceConfigurationsGetResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* @param resourceGroupName The name of the resource group.
|
|
71
|
+
* @param resourceName The name of the managed cluster resource.
|
|
72
|
+
* @param configName The name of the maintenance configuration.
|
|
73
|
+
* @param callback The callback
|
|
74
|
+
*/
|
|
75
|
+
get(resourceGroupName: string, resourceName: string, configName: string, callback: msRest.ServiceCallback<Models.MaintenanceConfiguration>): void;
|
|
76
|
+
/**
|
|
77
|
+
* @param resourceGroupName The name of the resource group.
|
|
78
|
+
* @param resourceName The name of the managed cluster resource.
|
|
79
|
+
* @param configName The name of the maintenance configuration.
|
|
80
|
+
* @param options The optional parameters
|
|
81
|
+
* @param callback The callback
|
|
82
|
+
*/
|
|
83
|
+
get(resourceGroupName: string, resourceName: string, configName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MaintenanceConfiguration>): void;
|
|
84
|
+
get(resourceGroupName: string, resourceName: string, configName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MaintenanceConfiguration>, callback?: msRest.ServiceCallback<Models.MaintenanceConfiguration>): Promise<Models.MaintenanceConfigurationsGetResponse> {
|
|
85
|
+
return this.client.sendOperationRequest(
|
|
86
|
+
{
|
|
87
|
+
resourceGroupName,
|
|
88
|
+
resourceName,
|
|
89
|
+
configName,
|
|
90
|
+
options
|
|
91
|
+
},
|
|
92
|
+
getOperationSpec,
|
|
93
|
+
callback) as Promise<Models.MaintenanceConfigurationsGetResponse>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @summary Creates or updates a maintenance configuration in the specified managed cluster.
|
|
98
|
+
* @param resourceGroupName The name of the resource group.
|
|
99
|
+
* @param resourceName The name of the managed cluster resource.
|
|
100
|
+
* @param configName The name of the maintenance configuration.
|
|
101
|
+
* @param parameters The maintenance configuration to create or update.
|
|
102
|
+
* @param [options] The optional parameters
|
|
103
|
+
* @returns Promise<Models.MaintenanceConfigurationsCreateOrUpdateResponse>
|
|
104
|
+
*/
|
|
105
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, configName: string, parameters: Models.MaintenanceConfiguration, options?: msRest.RequestOptionsBase): Promise<Models.MaintenanceConfigurationsCreateOrUpdateResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* @param resourceGroupName The name of the resource group.
|
|
108
|
+
* @param resourceName The name of the managed cluster resource.
|
|
109
|
+
* @param configName The name of the maintenance configuration.
|
|
110
|
+
* @param parameters The maintenance configuration to create or update.
|
|
111
|
+
* @param callback The callback
|
|
112
|
+
*/
|
|
113
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, configName: string, parameters: Models.MaintenanceConfiguration, callback: msRest.ServiceCallback<Models.MaintenanceConfiguration>): void;
|
|
114
|
+
/**
|
|
115
|
+
* @param resourceGroupName The name of the resource group.
|
|
116
|
+
* @param resourceName The name of the managed cluster resource.
|
|
117
|
+
* @param configName The name of the maintenance configuration.
|
|
118
|
+
* @param parameters The maintenance configuration to create or update.
|
|
119
|
+
* @param options The optional parameters
|
|
120
|
+
* @param callback The callback
|
|
121
|
+
*/
|
|
122
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, configName: string, parameters: Models.MaintenanceConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MaintenanceConfiguration>): void;
|
|
123
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, configName: string, parameters: Models.MaintenanceConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MaintenanceConfiguration>, callback?: msRest.ServiceCallback<Models.MaintenanceConfiguration>): Promise<Models.MaintenanceConfigurationsCreateOrUpdateResponse> {
|
|
124
|
+
return this.client.sendOperationRequest(
|
|
125
|
+
{
|
|
126
|
+
resourceGroupName,
|
|
127
|
+
resourceName,
|
|
128
|
+
configName,
|
|
129
|
+
parameters,
|
|
130
|
+
options
|
|
131
|
+
},
|
|
132
|
+
createOrUpdateOperationSpec,
|
|
133
|
+
callback) as Promise<Models.MaintenanceConfigurationsCreateOrUpdateResponse>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @summary Deletes a maintenance configuration.
|
|
138
|
+
* @param resourceGroupName The name of the resource group.
|
|
139
|
+
* @param resourceName The name of the managed cluster resource.
|
|
140
|
+
* @param configName The name of the maintenance configuration.
|
|
141
|
+
* @param [options] The optional parameters
|
|
142
|
+
* @returns Promise<msRest.RestResponse>
|
|
143
|
+
*/
|
|
144
|
+
deleteMethod(resourceGroupName: string, resourceName: string, configName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* @param resourceGroupName The name of the resource group.
|
|
147
|
+
* @param resourceName The name of the managed cluster resource.
|
|
148
|
+
* @param configName The name of the maintenance configuration.
|
|
149
|
+
* @param callback The callback
|
|
150
|
+
*/
|
|
151
|
+
deleteMethod(resourceGroupName: string, resourceName: string, configName: string, callback: msRest.ServiceCallback<void>): void;
|
|
152
|
+
/**
|
|
153
|
+
* @param resourceGroupName The name of the resource group.
|
|
154
|
+
* @param resourceName The name of the managed cluster resource.
|
|
155
|
+
* @param configName The name of the maintenance configuration.
|
|
156
|
+
* @param options The optional parameters
|
|
157
|
+
* @param callback The callback
|
|
158
|
+
*/
|
|
159
|
+
deleteMethod(resourceGroupName: string, resourceName: string, configName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
160
|
+
deleteMethod(resourceGroupName: string, resourceName: string, configName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
161
|
+
return this.client.sendOperationRequest(
|
|
162
|
+
{
|
|
163
|
+
resourceGroupName,
|
|
164
|
+
resourceName,
|
|
165
|
+
configName,
|
|
166
|
+
options
|
|
167
|
+
},
|
|
168
|
+
deleteMethodOperationSpec,
|
|
169
|
+
callback);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @summary Gets a list of maintenance configurations in the specified managed cluster.
|
|
174
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
175
|
+
* @param [options] The optional parameters
|
|
176
|
+
* @returns Promise<Models.MaintenanceConfigurationsListByManagedClusterNextResponse>
|
|
177
|
+
*/
|
|
178
|
+
listByManagedClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.MaintenanceConfigurationsListByManagedClusterNextResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
181
|
+
* @param callback The callback
|
|
182
|
+
*/
|
|
183
|
+
listByManagedClusterNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>): void;
|
|
184
|
+
/**
|
|
185
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
186
|
+
* @param options The optional parameters
|
|
187
|
+
* @param callback The callback
|
|
188
|
+
*/
|
|
189
|
+
listByManagedClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>): void;
|
|
190
|
+
listByManagedClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>, callback?: msRest.ServiceCallback<Models.MaintenanceConfigurationListResult>): Promise<Models.MaintenanceConfigurationsListByManagedClusterNextResponse> {
|
|
191
|
+
return this.client.sendOperationRequest(
|
|
192
|
+
{
|
|
193
|
+
nextPageLink,
|
|
194
|
+
options
|
|
195
|
+
},
|
|
196
|
+
listByManagedClusterNextOperationSpec,
|
|
197
|
+
callback) as Promise<Models.MaintenanceConfigurationsListByManagedClusterNextResponse>;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Operation Specifications
|
|
202
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
203
|
+
const listByManagedClusterOperationSpec: msRest.OperationSpec = {
|
|
204
|
+
httpMethod: "GET",
|
|
205
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations",
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.subscriptionId,
|
|
208
|
+
Parameters.resourceGroupName,
|
|
209
|
+
Parameters.resourceName
|
|
210
|
+
],
|
|
211
|
+
queryParameters: [
|
|
212
|
+
Parameters.apiVersion
|
|
213
|
+
],
|
|
214
|
+
headerParameters: [
|
|
215
|
+
Parameters.acceptLanguage
|
|
216
|
+
],
|
|
217
|
+
responses: {
|
|
218
|
+
200: {
|
|
219
|
+
bodyMapper: Mappers.MaintenanceConfigurationListResult
|
|
220
|
+
},
|
|
221
|
+
default: {
|
|
222
|
+
bodyMapper: Mappers.CloudError
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
serializer
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
229
|
+
httpMethod: "GET",
|
|
230
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}",
|
|
231
|
+
urlParameters: [
|
|
232
|
+
Parameters.subscriptionId,
|
|
233
|
+
Parameters.resourceGroupName,
|
|
234
|
+
Parameters.resourceName,
|
|
235
|
+
Parameters.configName
|
|
236
|
+
],
|
|
237
|
+
queryParameters: [
|
|
238
|
+
Parameters.apiVersion
|
|
239
|
+
],
|
|
240
|
+
headerParameters: [
|
|
241
|
+
Parameters.acceptLanguage
|
|
242
|
+
],
|
|
243
|
+
responses: {
|
|
244
|
+
200: {
|
|
245
|
+
bodyMapper: Mappers.MaintenanceConfiguration
|
|
246
|
+
},
|
|
247
|
+
default: {
|
|
248
|
+
bodyMapper: Mappers.CloudError
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
serializer
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
255
|
+
httpMethod: "PUT",
|
|
256
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}",
|
|
257
|
+
urlParameters: [
|
|
258
|
+
Parameters.subscriptionId,
|
|
259
|
+
Parameters.resourceGroupName,
|
|
260
|
+
Parameters.resourceName,
|
|
261
|
+
Parameters.configName
|
|
262
|
+
],
|
|
263
|
+
queryParameters: [
|
|
264
|
+
Parameters.apiVersion
|
|
265
|
+
],
|
|
266
|
+
headerParameters: [
|
|
267
|
+
Parameters.acceptLanguage
|
|
268
|
+
],
|
|
269
|
+
requestBody: {
|
|
270
|
+
parameterPath: "parameters",
|
|
271
|
+
mapper: {
|
|
272
|
+
...Mappers.MaintenanceConfiguration,
|
|
273
|
+
required: true
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
responses: {
|
|
277
|
+
200: {
|
|
278
|
+
bodyMapper: Mappers.MaintenanceConfiguration
|
|
279
|
+
},
|
|
280
|
+
default: {
|
|
281
|
+
bodyMapper: Mappers.CloudError
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
serializer
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
288
|
+
httpMethod: "DELETE",
|
|
289
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}",
|
|
290
|
+
urlParameters: [
|
|
291
|
+
Parameters.subscriptionId,
|
|
292
|
+
Parameters.resourceGroupName,
|
|
293
|
+
Parameters.resourceName,
|
|
294
|
+
Parameters.configName
|
|
295
|
+
],
|
|
296
|
+
queryParameters: [
|
|
297
|
+
Parameters.apiVersion
|
|
298
|
+
],
|
|
299
|
+
headerParameters: [
|
|
300
|
+
Parameters.acceptLanguage
|
|
301
|
+
],
|
|
302
|
+
responses: {
|
|
303
|
+
200: {},
|
|
304
|
+
204: {},
|
|
305
|
+
default: {
|
|
306
|
+
bodyMapper: Mappers.CloudError
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
serializer
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
const listByManagedClusterNextOperationSpec: msRest.OperationSpec = {
|
|
313
|
+
httpMethod: "GET",
|
|
314
|
+
baseUrl: "https://management.azure.com",
|
|
315
|
+
path: "{nextLink}",
|
|
316
|
+
urlParameters: [
|
|
317
|
+
Parameters.nextPageLink
|
|
318
|
+
],
|
|
319
|
+
queryParameters: [
|
|
320
|
+
Parameters.apiVersion
|
|
321
|
+
],
|
|
322
|
+
headerParameters: [
|
|
323
|
+
Parameters.acceptLanguage
|
|
324
|
+
],
|
|
325
|
+
responses: {
|
|
326
|
+
200: {
|
|
327
|
+
bodyMapper: Mappers.MaintenanceConfigurationListResult
|
|
328
|
+
},
|
|
329
|
+
default: {
|
|
330
|
+
bodyMapper: Mappers.CloudError
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
serializer
|
|
334
|
+
};
|
|
@@ -0,0 +1,1391 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
+
* regenerated.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as msRest from "@azure/ms-rest-js";
|
|
11
|
+
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
12
|
+
import * as Models from "../models";
|
|
13
|
+
import * as Mappers from "../models/managedClustersMappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { ContainerServiceClientContext } from "../containerServiceClientContext";
|
|
16
|
+
|
|
17
|
+
/** Class representing a ManagedClusters. */
|
|
18
|
+
export class ManagedClusters {
|
|
19
|
+
private readonly client: ContainerServiceClientContext;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a ManagedClusters.
|
|
23
|
+
* @param {ContainerServiceClientContext} client Reference to the service client.
|
|
24
|
+
*/
|
|
25
|
+
constructor(client: ContainerServiceClientContext) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @summary Gets supported OS options in the specified subscription.
|
|
31
|
+
* @param location The name of a supported Azure region.
|
|
32
|
+
* @param [options] The optional parameters
|
|
33
|
+
* @returns Promise<Models.ManagedClustersGetOSOptionsResponse>
|
|
34
|
+
*/
|
|
35
|
+
getOSOptions(location: string, options?: Models.ManagedClustersGetOSOptionsOptionalParams): Promise<Models.ManagedClustersGetOSOptionsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @param location The name of a supported Azure region.
|
|
38
|
+
* @param callback The callback
|
|
39
|
+
*/
|
|
40
|
+
getOSOptions(location: string, callback: msRest.ServiceCallback<Models.OSOptionProfile>): void;
|
|
41
|
+
/**
|
|
42
|
+
* @param location The name of a supported Azure region.
|
|
43
|
+
* @param options The optional parameters
|
|
44
|
+
* @param callback The callback
|
|
45
|
+
*/
|
|
46
|
+
getOSOptions(location: string, options: Models.ManagedClustersGetOSOptionsOptionalParams, callback: msRest.ServiceCallback<Models.OSOptionProfile>): void;
|
|
47
|
+
getOSOptions(location: string, options?: Models.ManagedClustersGetOSOptionsOptionalParams | msRest.ServiceCallback<Models.OSOptionProfile>, callback?: msRest.ServiceCallback<Models.OSOptionProfile>): Promise<Models.ManagedClustersGetOSOptionsResponse> {
|
|
48
|
+
return this.client.sendOperationRequest(
|
|
49
|
+
{
|
|
50
|
+
location,
|
|
51
|
+
options
|
|
52
|
+
},
|
|
53
|
+
getOSOptionsOperationSpec,
|
|
54
|
+
callback) as Promise<Models.ManagedClustersGetOSOptionsResponse>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @summary Gets a list of managed clusters in the specified subscription.
|
|
59
|
+
* @param [options] The optional parameters
|
|
60
|
+
* @returns Promise<Models.ManagedClustersListResponse>
|
|
61
|
+
*/
|
|
62
|
+
list(options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersListResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* @param callback The callback
|
|
65
|
+
*/
|
|
66
|
+
list(callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
67
|
+
/**
|
|
68
|
+
* @param options The optional parameters
|
|
69
|
+
* @param callback The callback
|
|
70
|
+
*/
|
|
71
|
+
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
72
|
+
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedClusterListResult>, callback?: msRest.ServiceCallback<Models.ManagedClusterListResult>): Promise<Models.ManagedClustersListResponse> {
|
|
73
|
+
return this.client.sendOperationRequest(
|
|
74
|
+
{
|
|
75
|
+
options
|
|
76
|
+
},
|
|
77
|
+
listOperationSpec,
|
|
78
|
+
callback) as Promise<Models.ManagedClustersListResponse>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @summary Lists managed clusters in the specified subscription and resource group.
|
|
83
|
+
* @param resourceGroupName The name of the resource group.
|
|
84
|
+
* @param [options] The optional parameters
|
|
85
|
+
* @returns Promise<Models.ManagedClustersListByResourceGroupResponse>
|
|
86
|
+
*/
|
|
87
|
+
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersListByResourceGroupResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* @param resourceGroupName The name of the resource group.
|
|
90
|
+
* @param callback The callback
|
|
91
|
+
*/
|
|
92
|
+
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
93
|
+
/**
|
|
94
|
+
* @param resourceGroupName The name of the resource group.
|
|
95
|
+
* @param options The optional parameters
|
|
96
|
+
* @param callback The callback
|
|
97
|
+
*/
|
|
98
|
+
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
99
|
+
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedClusterListResult>, callback?: msRest.ServiceCallback<Models.ManagedClusterListResult>): Promise<Models.ManagedClustersListByResourceGroupResponse> {
|
|
100
|
+
return this.client.sendOperationRequest(
|
|
101
|
+
{
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
options
|
|
104
|
+
},
|
|
105
|
+
listByResourceGroupOperationSpec,
|
|
106
|
+
callback) as Promise<Models.ManagedClustersListByResourceGroupResponse>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @summary Gets the upgrade profile of a managed cluster.
|
|
111
|
+
* @param resourceGroupName The name of the resource group.
|
|
112
|
+
* @param resourceName The name of the managed cluster resource.
|
|
113
|
+
* @param [options] The optional parameters
|
|
114
|
+
* @returns Promise<Models.ManagedClustersGetUpgradeProfileResponse>
|
|
115
|
+
*/
|
|
116
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersGetUpgradeProfileResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* @param resourceGroupName The name of the resource group.
|
|
119
|
+
* @param resourceName The name of the managed cluster resource.
|
|
120
|
+
* @param callback The callback
|
|
121
|
+
*/
|
|
122
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.ManagedClusterUpgradeProfile>): void;
|
|
123
|
+
/**
|
|
124
|
+
* @param resourceGroupName The name of the resource group.
|
|
125
|
+
* @param resourceName The name of the managed cluster resource.
|
|
126
|
+
* @param options The optional parameters
|
|
127
|
+
* @param callback The callback
|
|
128
|
+
*/
|
|
129
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedClusterUpgradeProfile>): void;
|
|
130
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedClusterUpgradeProfile>, callback?: msRest.ServiceCallback<Models.ManagedClusterUpgradeProfile>): Promise<Models.ManagedClustersGetUpgradeProfileResponse> {
|
|
131
|
+
return this.client.sendOperationRequest(
|
|
132
|
+
{
|
|
133
|
+
resourceGroupName,
|
|
134
|
+
resourceName,
|
|
135
|
+
options
|
|
136
|
+
},
|
|
137
|
+
getUpgradeProfileOperationSpec,
|
|
138
|
+
callback) as Promise<Models.ManagedClustersGetUpgradeProfileResponse>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* **WARNING**: This API will be deprecated. Instead use
|
|
143
|
+
* [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials)
|
|
144
|
+
* or
|
|
145
|
+
* [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials)
|
|
146
|
+
* .
|
|
147
|
+
* @summary Gets an access profile of a managed cluster.
|
|
148
|
+
* @param resourceGroupName The name of the resource group.
|
|
149
|
+
* @param resourceName The name of the managed cluster resource.
|
|
150
|
+
* @param roleName The name of the role for managed cluster accessProfile resource.
|
|
151
|
+
* @param [options] The optional parameters
|
|
152
|
+
* @deprecated This operation is deprecated. Please do not use it any longer.
|
|
153
|
+
* @returns Promise<Models.ManagedClustersGetAccessProfileResponse>
|
|
154
|
+
*/
|
|
155
|
+
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersGetAccessProfileResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* @param resourceGroupName The name of the resource group.
|
|
158
|
+
* @param resourceName The name of the managed cluster resource.
|
|
159
|
+
* @param roleName The name of the role for managed cluster accessProfile resource.
|
|
160
|
+
* @param callback The callback
|
|
161
|
+
* @deprecated This operation is deprecated. Please do not use it any longer.
|
|
162
|
+
*/
|
|
163
|
+
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, callback: msRest.ServiceCallback<Models.ManagedClusterAccessProfile>): void;
|
|
164
|
+
/**
|
|
165
|
+
* @param resourceGroupName The name of the resource group.
|
|
166
|
+
* @param resourceName The name of the managed cluster resource.
|
|
167
|
+
* @param roleName The name of the role for managed cluster accessProfile resource.
|
|
168
|
+
* @param options The optional parameters
|
|
169
|
+
* @param callback The callback
|
|
170
|
+
* @deprecated This operation is deprecated. Please do not use it any longer.
|
|
171
|
+
*/
|
|
172
|
+
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedClusterAccessProfile>): void;
|
|
173
|
+
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedClusterAccessProfile>, callback?: msRest.ServiceCallback<Models.ManagedClusterAccessProfile>): Promise<Models.ManagedClustersGetAccessProfileResponse> {
|
|
174
|
+
return this.client.sendOperationRequest(
|
|
175
|
+
{
|
|
176
|
+
resourceGroupName,
|
|
177
|
+
resourceName,
|
|
178
|
+
roleName,
|
|
179
|
+
options
|
|
180
|
+
},
|
|
181
|
+
getAccessProfileOperationSpec,
|
|
182
|
+
callback) as Promise<Models.ManagedClustersGetAccessProfileResponse>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @summary Lists the admin credentials of a managed cluster.
|
|
187
|
+
* @param resourceGroupName The name of the resource group.
|
|
188
|
+
* @param resourceName The name of the managed cluster resource.
|
|
189
|
+
* @param [options] The optional parameters
|
|
190
|
+
* @returns Promise<Models.ManagedClustersListClusterAdminCredentialsResponse>
|
|
191
|
+
*/
|
|
192
|
+
listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options?: Models.ManagedClustersListClusterAdminCredentialsOptionalParams): Promise<Models.ManagedClustersListClusterAdminCredentialsResponse>;
|
|
193
|
+
/**
|
|
194
|
+
* @param resourceGroupName The name of the resource group.
|
|
195
|
+
* @param resourceName The name of the managed cluster resource.
|
|
196
|
+
* @param callback The callback
|
|
197
|
+
*/
|
|
198
|
+
listClusterAdminCredentials(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.CredentialResults>): void;
|
|
199
|
+
/**
|
|
200
|
+
* @param resourceGroupName The name of the resource group.
|
|
201
|
+
* @param resourceName The name of the managed cluster resource.
|
|
202
|
+
* @param options The optional parameters
|
|
203
|
+
* @param callback The callback
|
|
204
|
+
*/
|
|
205
|
+
listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options: Models.ManagedClustersListClusterAdminCredentialsOptionalParams, callback: msRest.ServiceCallback<Models.CredentialResults>): void;
|
|
206
|
+
listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options?: Models.ManagedClustersListClusterAdminCredentialsOptionalParams | msRest.ServiceCallback<Models.CredentialResults>, callback?: msRest.ServiceCallback<Models.CredentialResults>): Promise<Models.ManagedClustersListClusterAdminCredentialsResponse> {
|
|
207
|
+
return this.client.sendOperationRequest(
|
|
208
|
+
{
|
|
209
|
+
resourceGroupName,
|
|
210
|
+
resourceName,
|
|
211
|
+
options
|
|
212
|
+
},
|
|
213
|
+
listClusterAdminCredentialsOperationSpec,
|
|
214
|
+
callback) as Promise<Models.ManagedClustersListClusterAdminCredentialsResponse>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @summary Lists the user credentials of a managed cluster.
|
|
219
|
+
* @param resourceGroupName The name of the resource group.
|
|
220
|
+
* @param resourceName The name of the managed cluster resource.
|
|
221
|
+
* @param [options] The optional parameters
|
|
222
|
+
* @returns Promise<Models.ManagedClustersListClusterUserCredentialsResponse>
|
|
223
|
+
*/
|
|
224
|
+
listClusterUserCredentials(resourceGroupName: string, resourceName: string, options?: Models.ManagedClustersListClusterUserCredentialsOptionalParams): Promise<Models.ManagedClustersListClusterUserCredentialsResponse>;
|
|
225
|
+
/**
|
|
226
|
+
* @param resourceGroupName The name of the resource group.
|
|
227
|
+
* @param resourceName The name of the managed cluster resource.
|
|
228
|
+
* @param callback The callback
|
|
229
|
+
*/
|
|
230
|
+
listClusterUserCredentials(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.CredentialResults>): void;
|
|
231
|
+
/**
|
|
232
|
+
* @param resourceGroupName The name of the resource group.
|
|
233
|
+
* @param resourceName The name of the managed cluster resource.
|
|
234
|
+
* @param options The optional parameters
|
|
235
|
+
* @param callback The callback
|
|
236
|
+
*/
|
|
237
|
+
listClusterUserCredentials(resourceGroupName: string, resourceName: string, options: Models.ManagedClustersListClusterUserCredentialsOptionalParams, callback: msRest.ServiceCallback<Models.CredentialResults>): void;
|
|
238
|
+
listClusterUserCredentials(resourceGroupName: string, resourceName: string, options?: Models.ManagedClustersListClusterUserCredentialsOptionalParams | msRest.ServiceCallback<Models.CredentialResults>, callback?: msRest.ServiceCallback<Models.CredentialResults>): Promise<Models.ManagedClustersListClusterUserCredentialsResponse> {
|
|
239
|
+
return this.client.sendOperationRequest(
|
|
240
|
+
{
|
|
241
|
+
resourceGroupName,
|
|
242
|
+
resourceName,
|
|
243
|
+
options
|
|
244
|
+
},
|
|
245
|
+
listClusterUserCredentialsOperationSpec,
|
|
246
|
+
callback) as Promise<Models.ManagedClustersListClusterUserCredentialsResponse>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @summary Lists the cluster monitoring user credentials of a managed cluster.
|
|
251
|
+
* @param resourceGroupName The name of the resource group.
|
|
252
|
+
* @param resourceName The name of the managed cluster resource.
|
|
253
|
+
* @param [options] The optional parameters
|
|
254
|
+
* @returns Promise<Models.ManagedClustersListClusterMonitoringUserCredentialsResponse>
|
|
255
|
+
*/
|
|
256
|
+
listClusterMonitoringUserCredentials(resourceGroupName: string, resourceName: string, options?: Models.ManagedClustersListClusterMonitoringUserCredentialsOptionalParams): Promise<Models.ManagedClustersListClusterMonitoringUserCredentialsResponse>;
|
|
257
|
+
/**
|
|
258
|
+
* @param resourceGroupName The name of the resource group.
|
|
259
|
+
* @param resourceName The name of the managed cluster resource.
|
|
260
|
+
* @param callback The callback
|
|
261
|
+
*/
|
|
262
|
+
listClusterMonitoringUserCredentials(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.CredentialResults>): void;
|
|
263
|
+
/**
|
|
264
|
+
* @param resourceGroupName The name of the resource group.
|
|
265
|
+
* @param resourceName The name of the managed cluster resource.
|
|
266
|
+
* @param options The optional parameters
|
|
267
|
+
* @param callback The callback
|
|
268
|
+
*/
|
|
269
|
+
listClusterMonitoringUserCredentials(resourceGroupName: string, resourceName: string, options: Models.ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, callback: msRest.ServiceCallback<Models.CredentialResults>): void;
|
|
270
|
+
listClusterMonitoringUserCredentials(resourceGroupName: string, resourceName: string, options?: Models.ManagedClustersListClusterMonitoringUserCredentialsOptionalParams | msRest.ServiceCallback<Models.CredentialResults>, callback?: msRest.ServiceCallback<Models.CredentialResults>): Promise<Models.ManagedClustersListClusterMonitoringUserCredentialsResponse> {
|
|
271
|
+
return this.client.sendOperationRequest(
|
|
272
|
+
{
|
|
273
|
+
resourceGroupName,
|
|
274
|
+
resourceName,
|
|
275
|
+
options
|
|
276
|
+
},
|
|
277
|
+
listClusterMonitoringUserCredentialsOperationSpec,
|
|
278
|
+
callback) as Promise<Models.ManagedClustersListClusterMonitoringUserCredentialsResponse>;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @summary Gets a managed cluster.
|
|
283
|
+
* @param resourceGroupName The name of the resource group.
|
|
284
|
+
* @param resourceName The name of the managed cluster resource.
|
|
285
|
+
* @param [options] The optional parameters
|
|
286
|
+
* @returns Promise<Models.ManagedClustersGetResponse>
|
|
287
|
+
*/
|
|
288
|
+
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersGetResponse>;
|
|
289
|
+
/**
|
|
290
|
+
* @param resourceGroupName The name of the resource group.
|
|
291
|
+
* @param resourceName The name of the managed cluster resource.
|
|
292
|
+
* @param callback The callback
|
|
293
|
+
*/
|
|
294
|
+
get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.ManagedCluster>): void;
|
|
295
|
+
/**
|
|
296
|
+
* @param resourceGroupName The name of the resource group.
|
|
297
|
+
* @param resourceName The name of the managed cluster resource.
|
|
298
|
+
* @param options The optional parameters
|
|
299
|
+
* @param callback The callback
|
|
300
|
+
*/
|
|
301
|
+
get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedCluster>): void;
|
|
302
|
+
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedCluster>, callback?: msRest.ServiceCallback<Models.ManagedCluster>): Promise<Models.ManagedClustersGetResponse> {
|
|
303
|
+
return this.client.sendOperationRequest(
|
|
304
|
+
{
|
|
305
|
+
resourceGroupName,
|
|
306
|
+
resourceName,
|
|
307
|
+
options
|
|
308
|
+
},
|
|
309
|
+
getOperationSpec,
|
|
310
|
+
callback) as Promise<Models.ManagedClustersGetResponse>;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @summary Creates or updates a managed cluster.
|
|
315
|
+
* @param resourceGroupName The name of the resource group.
|
|
316
|
+
* @param resourceName The name of the managed cluster resource.
|
|
317
|
+
* @param parameters The managed cluster to create or update.
|
|
318
|
+
* @param [options] The optional parameters
|
|
319
|
+
* @returns Promise<Models.ManagedClustersCreateOrUpdateResponse>
|
|
320
|
+
*/
|
|
321
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.ManagedCluster, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersCreateOrUpdateResponse> {
|
|
322
|
+
return this.beginCreateOrUpdate(resourceGroupName,resourceName,parameters,options)
|
|
323
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ManagedClustersCreateOrUpdateResponse>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @summary Updates tags on a managed cluster.
|
|
328
|
+
* @param resourceGroupName The name of the resource group.
|
|
329
|
+
* @param resourceName The name of the managed cluster resource.
|
|
330
|
+
* @param parameters Parameters supplied to the Update Managed Cluster Tags operation.
|
|
331
|
+
* @param [options] The optional parameters
|
|
332
|
+
* @returns Promise<Models.ManagedClustersUpdateTagsResponse>
|
|
333
|
+
*/
|
|
334
|
+
updateTags(resourceGroupName: string, resourceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersUpdateTagsResponse> {
|
|
335
|
+
return this.beginUpdateTags(resourceGroupName,resourceName,parameters,options)
|
|
336
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ManagedClustersUpdateTagsResponse>;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @summary Deletes a managed cluster.
|
|
341
|
+
* @param resourceGroupName The name of the resource group.
|
|
342
|
+
* @param resourceName The name of the managed cluster resource.
|
|
343
|
+
* @param [options] The optional parameters
|
|
344
|
+
* @returns Promise<msRest.RestResponse>
|
|
345
|
+
*/
|
|
346
|
+
deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
347
|
+
return this.beginDeleteMethod(resourceGroupName,resourceName,options)
|
|
348
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* This action cannot be performed on a cluster that is not using a service principal
|
|
353
|
+
* @summary Reset the Service Principal Profile of a managed cluster.
|
|
354
|
+
* @param resourceGroupName The name of the resource group.
|
|
355
|
+
* @param resourceName The name of the managed cluster resource.
|
|
356
|
+
* @param parameters The service principal profile to set on the managed cluster.
|
|
357
|
+
* @param [options] The optional parameters
|
|
358
|
+
* @returns Promise<msRest.RestResponse>
|
|
359
|
+
*/
|
|
360
|
+
resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
361
|
+
return this.beginResetServicePrincipalProfile(resourceGroupName,resourceName,parameters,options)
|
|
362
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @summary Reset the AAD Profile of a managed cluster.
|
|
367
|
+
* @param resourceGroupName The name of the resource group.
|
|
368
|
+
* @param resourceName The name of the managed cluster resource.
|
|
369
|
+
* @param parameters The AAD profile to set on the Managed Cluster
|
|
370
|
+
* @param [options] The optional parameters
|
|
371
|
+
* @returns Promise<msRest.RestResponse>
|
|
372
|
+
*/
|
|
373
|
+
resetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
374
|
+
return this.beginResetAADProfile(resourceGroupName,resourceName,parameters,options)
|
|
375
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
|
|
380
|
+
* details about rotating managed cluster certificates.
|
|
381
|
+
* @summary Rotates the certificates of a managed cluster.
|
|
382
|
+
* @param resourceGroupName The name of the resource group.
|
|
383
|
+
* @param resourceName The name of the managed cluster resource.
|
|
384
|
+
* @param [options] The optional parameters
|
|
385
|
+
* @returns Promise<msRest.RestResponse>
|
|
386
|
+
*/
|
|
387
|
+
rotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
388
|
+
return this.beginRotateClusterCertificates(resourceGroupName,resourceName,options)
|
|
389
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a
|
|
394
|
+
* cluster stops the control plane and agent nodes entirely, while maintaining all object and
|
|
395
|
+
* cluster state. A cluster does not accrue charges while it is stopped. See [stopping a
|
|
396
|
+
* cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about
|
|
397
|
+
* stopping a cluster.
|
|
398
|
+
* @summary Stops a Managed Cluster
|
|
399
|
+
* @param resourceGroupName The name of the resource group.
|
|
400
|
+
* @param resourceName The name of the managed cluster resource.
|
|
401
|
+
* @param [options] The optional parameters
|
|
402
|
+
* @returns Promise<msRest.RestResponse>
|
|
403
|
+
*/
|
|
404
|
+
stop(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
405
|
+
return this.beginStop(resourceGroupName,resourceName,options)
|
|
406
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more
|
|
411
|
+
* details about starting a cluster.
|
|
412
|
+
* @summary Starts a previously stopped Managed Cluster
|
|
413
|
+
* @param resourceGroupName The name of the resource group.
|
|
414
|
+
* @param resourceName The name of the managed cluster resource.
|
|
415
|
+
* @param [options] The optional parameters
|
|
416
|
+
* @returns Promise<msRest.RestResponse>
|
|
417
|
+
*/
|
|
418
|
+
start(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
419
|
+
return this.beginStart(resourceGroupName,resourceName,options)
|
|
420
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* AKS will create a pod to run the command. This is primarily useful for private clusters. For
|
|
425
|
+
* more information see [AKS Run
|
|
426
|
+
* Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview).
|
|
427
|
+
* @summary Submits a command to run against the Managed Cluster.
|
|
428
|
+
* @param resourceGroupName The name of the resource group.
|
|
429
|
+
* @param resourceName The name of the managed cluster resource.
|
|
430
|
+
* @param requestPayload The run command request
|
|
431
|
+
* @param [options] The optional parameters
|
|
432
|
+
* @returns Promise<Models.ManagedClustersRunCommandResponse>
|
|
433
|
+
*/
|
|
434
|
+
runCommand(resourceGroupName: string, resourceName: string, requestPayload: Models.RunCommandRequest, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersRunCommandResponse> {
|
|
435
|
+
return this.beginRunCommand(resourceGroupName,resourceName,requestPayload,options)
|
|
436
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ManagedClustersRunCommandResponse>;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @summary Gets the results of a command which has been run on the Managed Cluster.
|
|
441
|
+
* @param resourceGroupName The name of the resource group.
|
|
442
|
+
* @param resourceName The name of the managed cluster resource.
|
|
443
|
+
* @param commandId Id of the command.
|
|
444
|
+
* @param [options] The optional parameters
|
|
445
|
+
* @returns Promise<Models.ManagedClustersGetCommandResultResponse>
|
|
446
|
+
*/
|
|
447
|
+
getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersGetCommandResultResponse>;
|
|
448
|
+
/**
|
|
449
|
+
* @param resourceGroupName The name of the resource group.
|
|
450
|
+
* @param resourceName The name of the managed cluster resource.
|
|
451
|
+
* @param commandId Id of the command.
|
|
452
|
+
* @param callback The callback
|
|
453
|
+
*/
|
|
454
|
+
getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, callback: msRest.ServiceCallback<Models.RunCommandResult>): void;
|
|
455
|
+
/**
|
|
456
|
+
* @param resourceGroupName The name of the resource group.
|
|
457
|
+
* @param resourceName The name of the managed cluster resource.
|
|
458
|
+
* @param commandId Id of the command.
|
|
459
|
+
* @param options The optional parameters
|
|
460
|
+
* @param callback The callback
|
|
461
|
+
*/
|
|
462
|
+
getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RunCommandResult>): void;
|
|
463
|
+
getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RunCommandResult>, callback?: msRest.ServiceCallback<Models.RunCommandResult>): Promise<Models.ManagedClustersGetCommandResultResponse> {
|
|
464
|
+
return this.client.sendOperationRequest(
|
|
465
|
+
{
|
|
466
|
+
resourceGroupName,
|
|
467
|
+
resourceName,
|
|
468
|
+
commandId,
|
|
469
|
+
options
|
|
470
|
+
},
|
|
471
|
+
getCommandResultOperationSpec,
|
|
472
|
+
callback) as Promise<Models.ManagedClustersGetCommandResultResponse>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the
|
|
477
|
+
* specified managed cluster. The operation returns properties of each egress endpoint.
|
|
478
|
+
* @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the
|
|
479
|
+
* specified managed cluster.
|
|
480
|
+
* @param resourceGroupName The name of the resource group.
|
|
481
|
+
* @param resourceName The name of the managed cluster resource.
|
|
482
|
+
* @param [options] The optional parameters
|
|
483
|
+
* @returns Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsResponse>
|
|
484
|
+
*/
|
|
485
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsResponse>;
|
|
486
|
+
/**
|
|
487
|
+
* @param resourceGroupName The name of the resource group.
|
|
488
|
+
* @param resourceName The name of the managed cluster resource.
|
|
489
|
+
* @param callback The callback
|
|
490
|
+
*/
|
|
491
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>): void;
|
|
492
|
+
/**
|
|
493
|
+
* @param resourceGroupName The name of the resource group.
|
|
494
|
+
* @param resourceName The name of the managed cluster resource.
|
|
495
|
+
* @param options The optional parameters
|
|
496
|
+
* @param callback The callback
|
|
497
|
+
*/
|
|
498
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>): void;
|
|
499
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>, callback?: msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>): Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsResponse> {
|
|
500
|
+
return this.client.sendOperationRequest(
|
|
501
|
+
{
|
|
502
|
+
resourceGroupName,
|
|
503
|
+
resourceName,
|
|
504
|
+
options
|
|
505
|
+
},
|
|
506
|
+
listOutboundNetworkDependenciesEndpointsOperationSpec,
|
|
507
|
+
callback) as Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsResponse>;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @summary Creates or updates a managed cluster.
|
|
512
|
+
* @param resourceGroupName The name of the resource group.
|
|
513
|
+
* @param resourceName The name of the managed cluster resource.
|
|
514
|
+
* @param parameters The managed cluster to create or update.
|
|
515
|
+
* @param [options] The optional parameters
|
|
516
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
517
|
+
*/
|
|
518
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.ManagedCluster, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
519
|
+
return this.client.sendLRORequest(
|
|
520
|
+
{
|
|
521
|
+
resourceGroupName,
|
|
522
|
+
resourceName,
|
|
523
|
+
parameters,
|
|
524
|
+
options
|
|
525
|
+
},
|
|
526
|
+
beginCreateOrUpdateOperationSpec,
|
|
527
|
+
options);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @summary Updates tags on a managed cluster.
|
|
532
|
+
* @param resourceGroupName The name of the resource group.
|
|
533
|
+
* @param resourceName The name of the managed cluster resource.
|
|
534
|
+
* @param parameters Parameters supplied to the Update Managed Cluster Tags operation.
|
|
535
|
+
* @param [options] The optional parameters
|
|
536
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
537
|
+
*/
|
|
538
|
+
beginUpdateTags(resourceGroupName: string, resourceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
539
|
+
return this.client.sendLRORequest(
|
|
540
|
+
{
|
|
541
|
+
resourceGroupName,
|
|
542
|
+
resourceName,
|
|
543
|
+
parameters,
|
|
544
|
+
options
|
|
545
|
+
},
|
|
546
|
+
beginUpdateTagsOperationSpec,
|
|
547
|
+
options);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @summary Deletes a managed cluster.
|
|
552
|
+
* @param resourceGroupName The name of the resource group.
|
|
553
|
+
* @param resourceName The name of the managed cluster resource.
|
|
554
|
+
* @param [options] The optional parameters
|
|
555
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
556
|
+
*/
|
|
557
|
+
beginDeleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
558
|
+
return this.client.sendLRORequest(
|
|
559
|
+
{
|
|
560
|
+
resourceGroupName,
|
|
561
|
+
resourceName,
|
|
562
|
+
options
|
|
563
|
+
},
|
|
564
|
+
beginDeleteMethodOperationSpec,
|
|
565
|
+
options);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* This action cannot be performed on a cluster that is not using a service principal
|
|
570
|
+
* @summary Reset the Service Principal Profile of a managed cluster.
|
|
571
|
+
* @param resourceGroupName The name of the resource group.
|
|
572
|
+
* @param resourceName The name of the managed cluster resource.
|
|
573
|
+
* @param parameters The service principal profile to set on the managed cluster.
|
|
574
|
+
* @param [options] The optional parameters
|
|
575
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
576
|
+
*/
|
|
577
|
+
beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
578
|
+
return this.client.sendLRORequest(
|
|
579
|
+
{
|
|
580
|
+
resourceGroupName,
|
|
581
|
+
resourceName,
|
|
582
|
+
parameters,
|
|
583
|
+
options
|
|
584
|
+
},
|
|
585
|
+
beginResetServicePrincipalProfileOperationSpec,
|
|
586
|
+
options);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @summary Reset the AAD Profile of a managed cluster.
|
|
591
|
+
* @param resourceGroupName The name of the resource group.
|
|
592
|
+
* @param resourceName The name of the managed cluster resource.
|
|
593
|
+
* @param parameters The AAD profile to set on the Managed Cluster
|
|
594
|
+
* @param [options] The optional parameters
|
|
595
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
596
|
+
*/
|
|
597
|
+
beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
598
|
+
return this.client.sendLRORequest(
|
|
599
|
+
{
|
|
600
|
+
resourceGroupName,
|
|
601
|
+
resourceName,
|
|
602
|
+
parameters,
|
|
603
|
+
options
|
|
604
|
+
},
|
|
605
|
+
beginResetAADProfileOperationSpec,
|
|
606
|
+
options);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more
|
|
611
|
+
* details about rotating managed cluster certificates.
|
|
612
|
+
* @summary Rotates the certificates of a managed cluster.
|
|
613
|
+
* @param resourceGroupName The name of the resource group.
|
|
614
|
+
* @param resourceName The name of the managed cluster resource.
|
|
615
|
+
* @param [options] The optional parameters
|
|
616
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
617
|
+
*/
|
|
618
|
+
beginRotateClusterCertificates(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
619
|
+
return this.client.sendLRORequest(
|
|
620
|
+
{
|
|
621
|
+
resourceGroupName,
|
|
622
|
+
resourceName,
|
|
623
|
+
options
|
|
624
|
+
},
|
|
625
|
+
beginRotateClusterCertificatesOperationSpec,
|
|
626
|
+
options);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a
|
|
631
|
+
* cluster stops the control plane and agent nodes entirely, while maintaining all object and
|
|
632
|
+
* cluster state. A cluster does not accrue charges while it is stopped. See [stopping a
|
|
633
|
+
* cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about
|
|
634
|
+
* stopping a cluster.
|
|
635
|
+
* @summary Stops a Managed Cluster
|
|
636
|
+
* @param resourceGroupName The name of the resource group.
|
|
637
|
+
* @param resourceName The name of the managed cluster resource.
|
|
638
|
+
* @param [options] The optional parameters
|
|
639
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
640
|
+
*/
|
|
641
|
+
beginStop(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
642
|
+
return this.client.sendLRORequest(
|
|
643
|
+
{
|
|
644
|
+
resourceGroupName,
|
|
645
|
+
resourceName,
|
|
646
|
+
options
|
|
647
|
+
},
|
|
648
|
+
beginStopOperationSpec,
|
|
649
|
+
options);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more
|
|
654
|
+
* details about starting a cluster.
|
|
655
|
+
* @summary Starts a previously stopped Managed Cluster
|
|
656
|
+
* @param resourceGroupName The name of the resource group.
|
|
657
|
+
* @param resourceName The name of the managed cluster resource.
|
|
658
|
+
* @param [options] The optional parameters
|
|
659
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
660
|
+
*/
|
|
661
|
+
beginStart(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
662
|
+
return this.client.sendLRORequest(
|
|
663
|
+
{
|
|
664
|
+
resourceGroupName,
|
|
665
|
+
resourceName,
|
|
666
|
+
options
|
|
667
|
+
},
|
|
668
|
+
beginStartOperationSpec,
|
|
669
|
+
options);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* AKS will create a pod to run the command. This is primarily useful for private clusters. For
|
|
674
|
+
* more information see [AKS Run
|
|
675
|
+
* Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview).
|
|
676
|
+
* @summary Submits a command to run against the Managed Cluster.
|
|
677
|
+
* @param resourceGroupName The name of the resource group.
|
|
678
|
+
* @param resourceName The name of the managed cluster resource.
|
|
679
|
+
* @param requestPayload The run command request
|
|
680
|
+
* @param [options] The optional parameters
|
|
681
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
682
|
+
*/
|
|
683
|
+
beginRunCommand(resourceGroupName: string, resourceName: string, requestPayload: Models.RunCommandRequest, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
684
|
+
return this.client.sendLRORequest(
|
|
685
|
+
{
|
|
686
|
+
resourceGroupName,
|
|
687
|
+
resourceName,
|
|
688
|
+
requestPayload,
|
|
689
|
+
options
|
|
690
|
+
},
|
|
691
|
+
beginRunCommandOperationSpec,
|
|
692
|
+
options);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @summary Gets a list of managed clusters in the specified subscription.
|
|
697
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
698
|
+
* @param [options] The optional parameters
|
|
699
|
+
* @returns Promise<Models.ManagedClustersListNextResponse>
|
|
700
|
+
*/
|
|
701
|
+
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersListNextResponse>;
|
|
702
|
+
/**
|
|
703
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
704
|
+
* @param callback The callback
|
|
705
|
+
*/
|
|
706
|
+
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
707
|
+
/**
|
|
708
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
709
|
+
* @param options The optional parameters
|
|
710
|
+
* @param callback The callback
|
|
711
|
+
*/
|
|
712
|
+
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
713
|
+
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedClusterListResult>, callback?: msRest.ServiceCallback<Models.ManagedClusterListResult>): Promise<Models.ManagedClustersListNextResponse> {
|
|
714
|
+
return this.client.sendOperationRequest(
|
|
715
|
+
{
|
|
716
|
+
nextPageLink,
|
|
717
|
+
options
|
|
718
|
+
},
|
|
719
|
+
listNextOperationSpec,
|
|
720
|
+
callback) as Promise<Models.ManagedClustersListNextResponse>;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* @summary Lists managed clusters in the specified subscription and resource group.
|
|
725
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
726
|
+
* @param [options] The optional parameters
|
|
727
|
+
* @returns Promise<Models.ManagedClustersListByResourceGroupNextResponse>
|
|
728
|
+
*/
|
|
729
|
+
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersListByResourceGroupNextResponse>;
|
|
730
|
+
/**
|
|
731
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
732
|
+
* @param callback The callback
|
|
733
|
+
*/
|
|
734
|
+
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
735
|
+
/**
|
|
736
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
737
|
+
* @param options The optional parameters
|
|
738
|
+
* @param callback The callback
|
|
739
|
+
*/
|
|
740
|
+
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagedClusterListResult>): void;
|
|
741
|
+
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagedClusterListResult>, callback?: msRest.ServiceCallback<Models.ManagedClusterListResult>): Promise<Models.ManagedClustersListByResourceGroupNextResponse> {
|
|
742
|
+
return this.client.sendOperationRequest(
|
|
743
|
+
{
|
|
744
|
+
nextPageLink,
|
|
745
|
+
options
|
|
746
|
+
},
|
|
747
|
+
listByResourceGroupNextOperationSpec,
|
|
748
|
+
callback) as Promise<Models.ManagedClustersListByResourceGroupNextResponse>;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the
|
|
753
|
+
* specified managed cluster. The operation returns properties of each egress endpoint.
|
|
754
|
+
* @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the
|
|
755
|
+
* specified managed cluster.
|
|
756
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
757
|
+
* @param [options] The optional parameters
|
|
758
|
+
* @returns Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse>
|
|
759
|
+
*/
|
|
760
|
+
listOutboundNetworkDependenciesEndpointsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse>;
|
|
761
|
+
/**
|
|
762
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
763
|
+
* @param callback The callback
|
|
764
|
+
*/
|
|
765
|
+
listOutboundNetworkDependenciesEndpointsNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>): void;
|
|
766
|
+
/**
|
|
767
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
768
|
+
* @param options The optional parameters
|
|
769
|
+
* @param callback The callback
|
|
770
|
+
*/
|
|
771
|
+
listOutboundNetworkDependenciesEndpointsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>): void;
|
|
772
|
+
listOutboundNetworkDependenciesEndpointsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>, callback?: msRest.ServiceCallback<Models.OutboundEnvironmentEndpointCollection>): Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse> {
|
|
773
|
+
return this.client.sendOperationRequest(
|
|
774
|
+
{
|
|
775
|
+
nextPageLink,
|
|
776
|
+
options
|
|
777
|
+
},
|
|
778
|
+
listOutboundNetworkDependenciesEndpointsNextOperationSpec,
|
|
779
|
+
callback) as Promise<Models.ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse>;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// Operation Specifications
|
|
784
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
785
|
+
const getOSOptionsOperationSpec: msRest.OperationSpec = {
|
|
786
|
+
httpMethod: "GET",
|
|
787
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default",
|
|
788
|
+
urlParameters: [
|
|
789
|
+
Parameters.subscriptionId,
|
|
790
|
+
Parameters.location
|
|
791
|
+
],
|
|
792
|
+
queryParameters: [
|
|
793
|
+
Parameters.apiVersion,
|
|
794
|
+
Parameters.resourceType
|
|
795
|
+
],
|
|
796
|
+
headerParameters: [
|
|
797
|
+
Parameters.acceptLanguage
|
|
798
|
+
],
|
|
799
|
+
responses: {
|
|
800
|
+
200: {
|
|
801
|
+
bodyMapper: Mappers.OSOptionProfile
|
|
802
|
+
},
|
|
803
|
+
default: {
|
|
804
|
+
bodyMapper: Mappers.CloudError
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
serializer
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
811
|
+
httpMethod: "GET",
|
|
812
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters",
|
|
813
|
+
urlParameters: [
|
|
814
|
+
Parameters.subscriptionId
|
|
815
|
+
],
|
|
816
|
+
queryParameters: [
|
|
817
|
+
Parameters.apiVersion
|
|
818
|
+
],
|
|
819
|
+
headerParameters: [
|
|
820
|
+
Parameters.acceptLanguage
|
|
821
|
+
],
|
|
822
|
+
responses: {
|
|
823
|
+
200: {
|
|
824
|
+
bodyMapper: Mappers.ManagedClusterListResult
|
|
825
|
+
},
|
|
826
|
+
default: {
|
|
827
|
+
bodyMapper: Mappers.CloudError
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
serializer
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
834
|
+
httpMethod: "GET",
|
|
835
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters",
|
|
836
|
+
urlParameters: [
|
|
837
|
+
Parameters.subscriptionId,
|
|
838
|
+
Parameters.resourceGroupName
|
|
839
|
+
],
|
|
840
|
+
queryParameters: [
|
|
841
|
+
Parameters.apiVersion
|
|
842
|
+
],
|
|
843
|
+
headerParameters: [
|
|
844
|
+
Parameters.acceptLanguage
|
|
845
|
+
],
|
|
846
|
+
responses: {
|
|
847
|
+
200: {
|
|
848
|
+
bodyMapper: Mappers.ManagedClusterListResult
|
|
849
|
+
},
|
|
850
|
+
default: {
|
|
851
|
+
bodyMapper: Mappers.CloudError
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
serializer
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
const getUpgradeProfileOperationSpec: msRest.OperationSpec = {
|
|
858
|
+
httpMethod: "GET",
|
|
859
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default",
|
|
860
|
+
urlParameters: [
|
|
861
|
+
Parameters.subscriptionId,
|
|
862
|
+
Parameters.resourceGroupName,
|
|
863
|
+
Parameters.resourceName
|
|
864
|
+
],
|
|
865
|
+
queryParameters: [
|
|
866
|
+
Parameters.apiVersion
|
|
867
|
+
],
|
|
868
|
+
headerParameters: [
|
|
869
|
+
Parameters.acceptLanguage
|
|
870
|
+
],
|
|
871
|
+
responses: {
|
|
872
|
+
200: {
|
|
873
|
+
bodyMapper: Mappers.ManagedClusterUpgradeProfile
|
|
874
|
+
},
|
|
875
|
+
default: {
|
|
876
|
+
bodyMapper: Mappers.CloudError
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
serializer
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
const getAccessProfileOperationSpec: msRest.OperationSpec = {
|
|
883
|
+
httpMethod: "POST",
|
|
884
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential",
|
|
885
|
+
urlParameters: [
|
|
886
|
+
Parameters.subscriptionId,
|
|
887
|
+
Parameters.resourceGroupName,
|
|
888
|
+
Parameters.resourceName,
|
|
889
|
+
Parameters.roleName
|
|
890
|
+
],
|
|
891
|
+
queryParameters: [
|
|
892
|
+
Parameters.apiVersion
|
|
893
|
+
],
|
|
894
|
+
headerParameters: [
|
|
895
|
+
Parameters.acceptLanguage
|
|
896
|
+
],
|
|
897
|
+
responses: {
|
|
898
|
+
200: {
|
|
899
|
+
bodyMapper: Mappers.ManagedClusterAccessProfile
|
|
900
|
+
},
|
|
901
|
+
default: {
|
|
902
|
+
bodyMapper: Mappers.CloudError
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
serializer
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
const listClusterAdminCredentialsOperationSpec: msRest.OperationSpec = {
|
|
909
|
+
httpMethod: "POST",
|
|
910
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential",
|
|
911
|
+
urlParameters: [
|
|
912
|
+
Parameters.subscriptionId,
|
|
913
|
+
Parameters.resourceGroupName,
|
|
914
|
+
Parameters.resourceName
|
|
915
|
+
],
|
|
916
|
+
queryParameters: [
|
|
917
|
+
Parameters.apiVersion,
|
|
918
|
+
Parameters.serverFqdn
|
|
919
|
+
],
|
|
920
|
+
headerParameters: [
|
|
921
|
+
Parameters.acceptLanguage
|
|
922
|
+
],
|
|
923
|
+
responses: {
|
|
924
|
+
200: {
|
|
925
|
+
bodyMapper: Mappers.CredentialResults
|
|
926
|
+
},
|
|
927
|
+
default: {
|
|
928
|
+
bodyMapper: Mappers.CloudError
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
serializer
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
const listClusterUserCredentialsOperationSpec: msRest.OperationSpec = {
|
|
935
|
+
httpMethod: "POST",
|
|
936
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential",
|
|
937
|
+
urlParameters: [
|
|
938
|
+
Parameters.subscriptionId,
|
|
939
|
+
Parameters.resourceGroupName,
|
|
940
|
+
Parameters.resourceName
|
|
941
|
+
],
|
|
942
|
+
queryParameters: [
|
|
943
|
+
Parameters.apiVersion,
|
|
944
|
+
Parameters.serverFqdn
|
|
945
|
+
],
|
|
946
|
+
headerParameters: [
|
|
947
|
+
Parameters.acceptLanguage
|
|
948
|
+
],
|
|
949
|
+
responses: {
|
|
950
|
+
200: {
|
|
951
|
+
bodyMapper: Mappers.CredentialResults
|
|
952
|
+
},
|
|
953
|
+
default: {
|
|
954
|
+
bodyMapper: Mappers.CloudError
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
serializer
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
const listClusterMonitoringUserCredentialsOperationSpec: msRest.OperationSpec = {
|
|
961
|
+
httpMethod: "POST",
|
|
962
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential",
|
|
963
|
+
urlParameters: [
|
|
964
|
+
Parameters.subscriptionId,
|
|
965
|
+
Parameters.resourceGroupName,
|
|
966
|
+
Parameters.resourceName
|
|
967
|
+
],
|
|
968
|
+
queryParameters: [
|
|
969
|
+
Parameters.apiVersion,
|
|
970
|
+
Parameters.serverFqdn
|
|
971
|
+
],
|
|
972
|
+
headerParameters: [
|
|
973
|
+
Parameters.acceptLanguage
|
|
974
|
+
],
|
|
975
|
+
responses: {
|
|
976
|
+
200: {
|
|
977
|
+
bodyMapper: Mappers.CredentialResults
|
|
978
|
+
},
|
|
979
|
+
default: {
|
|
980
|
+
bodyMapper: Mappers.CloudError
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
serializer
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
987
|
+
httpMethod: "GET",
|
|
988
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}",
|
|
989
|
+
urlParameters: [
|
|
990
|
+
Parameters.subscriptionId,
|
|
991
|
+
Parameters.resourceGroupName,
|
|
992
|
+
Parameters.resourceName
|
|
993
|
+
],
|
|
994
|
+
queryParameters: [
|
|
995
|
+
Parameters.apiVersion
|
|
996
|
+
],
|
|
997
|
+
headerParameters: [
|
|
998
|
+
Parameters.acceptLanguage
|
|
999
|
+
],
|
|
1000
|
+
responses: {
|
|
1001
|
+
200: {
|
|
1002
|
+
bodyMapper: Mappers.ManagedCluster
|
|
1003
|
+
},
|
|
1004
|
+
default: {
|
|
1005
|
+
bodyMapper: Mappers.CloudError
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
serializer
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
const getCommandResultOperationSpec: msRest.OperationSpec = {
|
|
1012
|
+
httpMethod: "GET",
|
|
1013
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}",
|
|
1014
|
+
urlParameters: [
|
|
1015
|
+
Parameters.subscriptionId,
|
|
1016
|
+
Parameters.resourceGroupName,
|
|
1017
|
+
Parameters.resourceName,
|
|
1018
|
+
Parameters.commandId
|
|
1019
|
+
],
|
|
1020
|
+
queryParameters: [
|
|
1021
|
+
Parameters.apiVersion
|
|
1022
|
+
],
|
|
1023
|
+
headerParameters: [
|
|
1024
|
+
Parameters.acceptLanguage
|
|
1025
|
+
],
|
|
1026
|
+
responses: {
|
|
1027
|
+
200: {
|
|
1028
|
+
bodyMapper: Mappers.RunCommandResult
|
|
1029
|
+
},
|
|
1030
|
+
202: {},
|
|
1031
|
+
default: {
|
|
1032
|
+
bodyMapper: Mappers.CloudError
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
serializer
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
const listOutboundNetworkDependenciesEndpointsOperationSpec: msRest.OperationSpec = {
|
|
1039
|
+
httpMethod: "GET",
|
|
1040
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints",
|
|
1041
|
+
urlParameters: [
|
|
1042
|
+
Parameters.subscriptionId,
|
|
1043
|
+
Parameters.resourceGroupName,
|
|
1044
|
+
Parameters.resourceName
|
|
1045
|
+
],
|
|
1046
|
+
queryParameters: [
|
|
1047
|
+
Parameters.apiVersion
|
|
1048
|
+
],
|
|
1049
|
+
headerParameters: [
|
|
1050
|
+
Parameters.acceptLanguage
|
|
1051
|
+
],
|
|
1052
|
+
responses: {
|
|
1053
|
+
200: {
|
|
1054
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1055
|
+
},
|
|
1056
|
+
default: {
|
|
1057
|
+
bodyMapper: Mappers.CloudError
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
serializer
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
1064
|
+
httpMethod: "PUT",
|
|
1065
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}",
|
|
1066
|
+
urlParameters: [
|
|
1067
|
+
Parameters.subscriptionId,
|
|
1068
|
+
Parameters.resourceGroupName,
|
|
1069
|
+
Parameters.resourceName
|
|
1070
|
+
],
|
|
1071
|
+
queryParameters: [
|
|
1072
|
+
Parameters.apiVersion
|
|
1073
|
+
],
|
|
1074
|
+
headerParameters: [
|
|
1075
|
+
Parameters.acceptLanguage
|
|
1076
|
+
],
|
|
1077
|
+
requestBody: {
|
|
1078
|
+
parameterPath: "parameters",
|
|
1079
|
+
mapper: {
|
|
1080
|
+
...Mappers.ManagedCluster,
|
|
1081
|
+
required: true
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
responses: {
|
|
1085
|
+
200: {
|
|
1086
|
+
bodyMapper: Mappers.ManagedCluster
|
|
1087
|
+
},
|
|
1088
|
+
201: {
|
|
1089
|
+
bodyMapper: Mappers.ManagedCluster
|
|
1090
|
+
},
|
|
1091
|
+
default: {
|
|
1092
|
+
bodyMapper: Mappers.CloudError
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
serializer
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
const beginUpdateTagsOperationSpec: msRest.OperationSpec = {
|
|
1099
|
+
httpMethod: "PATCH",
|
|
1100
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}",
|
|
1101
|
+
urlParameters: [
|
|
1102
|
+
Parameters.subscriptionId,
|
|
1103
|
+
Parameters.resourceGroupName,
|
|
1104
|
+
Parameters.resourceName
|
|
1105
|
+
],
|
|
1106
|
+
queryParameters: [
|
|
1107
|
+
Parameters.apiVersion
|
|
1108
|
+
],
|
|
1109
|
+
headerParameters: [
|
|
1110
|
+
Parameters.acceptLanguage
|
|
1111
|
+
],
|
|
1112
|
+
requestBody: {
|
|
1113
|
+
parameterPath: "parameters",
|
|
1114
|
+
mapper: {
|
|
1115
|
+
...Mappers.TagsObject,
|
|
1116
|
+
required: true
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
responses: {
|
|
1120
|
+
200: {
|
|
1121
|
+
bodyMapper: Mappers.ManagedCluster
|
|
1122
|
+
},
|
|
1123
|
+
default: {
|
|
1124
|
+
bodyMapper: Mappers.CloudError
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
serializer
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
1131
|
+
httpMethod: "DELETE",
|
|
1132
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}",
|
|
1133
|
+
urlParameters: [
|
|
1134
|
+
Parameters.subscriptionId,
|
|
1135
|
+
Parameters.resourceGroupName,
|
|
1136
|
+
Parameters.resourceName
|
|
1137
|
+
],
|
|
1138
|
+
queryParameters: [
|
|
1139
|
+
Parameters.apiVersion
|
|
1140
|
+
],
|
|
1141
|
+
headerParameters: [
|
|
1142
|
+
Parameters.acceptLanguage
|
|
1143
|
+
],
|
|
1144
|
+
responses: {
|
|
1145
|
+
202: {},
|
|
1146
|
+
204: {},
|
|
1147
|
+
default: {
|
|
1148
|
+
bodyMapper: Mappers.CloudError
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
serializer
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
const beginResetServicePrincipalProfileOperationSpec: msRest.OperationSpec = {
|
|
1155
|
+
httpMethod: "POST",
|
|
1156
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile",
|
|
1157
|
+
urlParameters: [
|
|
1158
|
+
Parameters.subscriptionId,
|
|
1159
|
+
Parameters.resourceGroupName,
|
|
1160
|
+
Parameters.resourceName
|
|
1161
|
+
],
|
|
1162
|
+
queryParameters: [
|
|
1163
|
+
Parameters.apiVersion
|
|
1164
|
+
],
|
|
1165
|
+
headerParameters: [
|
|
1166
|
+
Parameters.acceptLanguage
|
|
1167
|
+
],
|
|
1168
|
+
requestBody: {
|
|
1169
|
+
parameterPath: "parameters",
|
|
1170
|
+
mapper: {
|
|
1171
|
+
...Mappers.ManagedClusterServicePrincipalProfile,
|
|
1172
|
+
required: true
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
responses: {
|
|
1176
|
+
200: {},
|
|
1177
|
+
202: {},
|
|
1178
|
+
default: {
|
|
1179
|
+
bodyMapper: Mappers.CloudError
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
serializer
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
const beginResetAADProfileOperationSpec: msRest.OperationSpec = {
|
|
1186
|
+
httpMethod: "POST",
|
|
1187
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile",
|
|
1188
|
+
urlParameters: [
|
|
1189
|
+
Parameters.subscriptionId,
|
|
1190
|
+
Parameters.resourceGroupName,
|
|
1191
|
+
Parameters.resourceName
|
|
1192
|
+
],
|
|
1193
|
+
queryParameters: [
|
|
1194
|
+
Parameters.apiVersion
|
|
1195
|
+
],
|
|
1196
|
+
headerParameters: [
|
|
1197
|
+
Parameters.acceptLanguage
|
|
1198
|
+
],
|
|
1199
|
+
requestBody: {
|
|
1200
|
+
parameterPath: "parameters",
|
|
1201
|
+
mapper: {
|
|
1202
|
+
...Mappers.ManagedClusterAADProfile,
|
|
1203
|
+
required: true
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
responses: {
|
|
1207
|
+
200: {},
|
|
1208
|
+
202: {},
|
|
1209
|
+
default: {
|
|
1210
|
+
bodyMapper: Mappers.CloudError
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
serializer
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
const beginRotateClusterCertificatesOperationSpec: msRest.OperationSpec = {
|
|
1217
|
+
httpMethod: "POST",
|
|
1218
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates",
|
|
1219
|
+
urlParameters: [
|
|
1220
|
+
Parameters.subscriptionId,
|
|
1221
|
+
Parameters.resourceGroupName,
|
|
1222
|
+
Parameters.resourceName
|
|
1223
|
+
],
|
|
1224
|
+
queryParameters: [
|
|
1225
|
+
Parameters.apiVersion
|
|
1226
|
+
],
|
|
1227
|
+
headerParameters: [
|
|
1228
|
+
Parameters.acceptLanguage
|
|
1229
|
+
],
|
|
1230
|
+
responses: {
|
|
1231
|
+
202: {},
|
|
1232
|
+
204: {},
|
|
1233
|
+
default: {
|
|
1234
|
+
bodyMapper: Mappers.CloudError
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
serializer
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
const beginStopOperationSpec: msRest.OperationSpec = {
|
|
1241
|
+
httpMethod: "POST",
|
|
1242
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop",
|
|
1243
|
+
urlParameters: [
|
|
1244
|
+
Parameters.subscriptionId,
|
|
1245
|
+
Parameters.resourceGroupName,
|
|
1246
|
+
Parameters.resourceName
|
|
1247
|
+
],
|
|
1248
|
+
queryParameters: [
|
|
1249
|
+
Parameters.apiVersion
|
|
1250
|
+
],
|
|
1251
|
+
headerParameters: [
|
|
1252
|
+
Parameters.acceptLanguage
|
|
1253
|
+
],
|
|
1254
|
+
responses: {
|
|
1255
|
+
202: {},
|
|
1256
|
+
204: {},
|
|
1257
|
+
default: {
|
|
1258
|
+
bodyMapper: Mappers.CloudError
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
serializer
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
const beginStartOperationSpec: msRest.OperationSpec = {
|
|
1265
|
+
httpMethod: "POST",
|
|
1266
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start",
|
|
1267
|
+
urlParameters: [
|
|
1268
|
+
Parameters.subscriptionId,
|
|
1269
|
+
Parameters.resourceGroupName,
|
|
1270
|
+
Parameters.resourceName
|
|
1271
|
+
],
|
|
1272
|
+
queryParameters: [
|
|
1273
|
+
Parameters.apiVersion
|
|
1274
|
+
],
|
|
1275
|
+
headerParameters: [
|
|
1276
|
+
Parameters.acceptLanguage
|
|
1277
|
+
],
|
|
1278
|
+
responses: {
|
|
1279
|
+
202: {},
|
|
1280
|
+
204: {},
|
|
1281
|
+
default: {
|
|
1282
|
+
bodyMapper: Mappers.CloudError
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
serializer
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
const beginRunCommandOperationSpec: msRest.OperationSpec = {
|
|
1289
|
+
httpMethod: "POST",
|
|
1290
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand",
|
|
1291
|
+
urlParameters: [
|
|
1292
|
+
Parameters.subscriptionId,
|
|
1293
|
+
Parameters.resourceGroupName,
|
|
1294
|
+
Parameters.resourceName
|
|
1295
|
+
],
|
|
1296
|
+
queryParameters: [
|
|
1297
|
+
Parameters.apiVersion
|
|
1298
|
+
],
|
|
1299
|
+
headerParameters: [
|
|
1300
|
+
Parameters.acceptLanguage
|
|
1301
|
+
],
|
|
1302
|
+
requestBody: {
|
|
1303
|
+
parameterPath: "requestPayload",
|
|
1304
|
+
mapper: {
|
|
1305
|
+
...Mappers.RunCommandRequest,
|
|
1306
|
+
required: true
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
responses: {
|
|
1310
|
+
200: {
|
|
1311
|
+
bodyMapper: Mappers.RunCommandResult
|
|
1312
|
+
},
|
|
1313
|
+
202: {},
|
|
1314
|
+
default: {
|
|
1315
|
+
bodyMapper: Mappers.CloudError
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
serializer
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
const listNextOperationSpec: msRest.OperationSpec = {
|
|
1322
|
+
httpMethod: "GET",
|
|
1323
|
+
baseUrl: "https://management.azure.com",
|
|
1324
|
+
path: "{nextLink}",
|
|
1325
|
+
urlParameters: [
|
|
1326
|
+
Parameters.nextPageLink
|
|
1327
|
+
],
|
|
1328
|
+
queryParameters: [
|
|
1329
|
+
Parameters.apiVersion
|
|
1330
|
+
],
|
|
1331
|
+
headerParameters: [
|
|
1332
|
+
Parameters.acceptLanguage
|
|
1333
|
+
],
|
|
1334
|
+
responses: {
|
|
1335
|
+
200: {
|
|
1336
|
+
bodyMapper: Mappers.ManagedClusterListResult
|
|
1337
|
+
},
|
|
1338
|
+
default: {
|
|
1339
|
+
bodyMapper: Mappers.CloudError
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
serializer
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
1346
|
+
httpMethod: "GET",
|
|
1347
|
+
baseUrl: "https://management.azure.com",
|
|
1348
|
+
path: "{nextLink}",
|
|
1349
|
+
urlParameters: [
|
|
1350
|
+
Parameters.nextPageLink
|
|
1351
|
+
],
|
|
1352
|
+
queryParameters: [
|
|
1353
|
+
Parameters.apiVersion
|
|
1354
|
+
],
|
|
1355
|
+
headerParameters: [
|
|
1356
|
+
Parameters.acceptLanguage
|
|
1357
|
+
],
|
|
1358
|
+
responses: {
|
|
1359
|
+
200: {
|
|
1360
|
+
bodyMapper: Mappers.ManagedClusterListResult
|
|
1361
|
+
},
|
|
1362
|
+
default: {
|
|
1363
|
+
bodyMapper: Mappers.CloudError
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
serializer
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: msRest.OperationSpec = {
|
|
1370
|
+
httpMethod: "GET",
|
|
1371
|
+
baseUrl: "https://management.azure.com",
|
|
1372
|
+
path: "{nextLink}",
|
|
1373
|
+
urlParameters: [
|
|
1374
|
+
Parameters.nextPageLink
|
|
1375
|
+
],
|
|
1376
|
+
queryParameters: [
|
|
1377
|
+
Parameters.apiVersion
|
|
1378
|
+
],
|
|
1379
|
+
headerParameters: [
|
|
1380
|
+
Parameters.acceptLanguage
|
|
1381
|
+
],
|
|
1382
|
+
responses: {
|
|
1383
|
+
200: {
|
|
1384
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1385
|
+
},
|
|
1386
|
+
default: {
|
|
1387
|
+
bodyMapper: Mappers.CloudError
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
serializer
|
|
1391
|
+
};
|