@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,13 @@
|
|
|
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 regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
CloudError,
|
|
11
|
+
OperationListResult,
|
|
12
|
+
OperationValue
|
|
13
|
+
} from "../models/mappers";
|
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
|
|
12
|
+
export const acceptLanguage: msRest.OperationParameter = {
|
|
13
|
+
parameterPath: "acceptLanguage",
|
|
14
|
+
mapper: {
|
|
15
|
+
serializedName: "accept-language",
|
|
16
|
+
defaultValue: 'en-US',
|
|
17
|
+
type: {
|
|
18
|
+
name: "String"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export const agentPoolName: msRest.OperationURLParameter = {
|
|
23
|
+
parameterPath: "agentPoolName",
|
|
24
|
+
mapper: {
|
|
25
|
+
required: true,
|
|
26
|
+
serializedName: "agentPoolName",
|
|
27
|
+
type: {
|
|
28
|
+
name: "String"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export const apiVersion: msRest.OperationQueryParameter = {
|
|
33
|
+
parameterPath: "apiVersion",
|
|
34
|
+
mapper: {
|
|
35
|
+
required: true,
|
|
36
|
+
serializedName: "api-version",
|
|
37
|
+
type: {
|
|
38
|
+
name: "String"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export const commandId: msRest.OperationURLParameter = {
|
|
43
|
+
parameterPath: "commandId",
|
|
44
|
+
mapper: {
|
|
45
|
+
required: true,
|
|
46
|
+
serializedName: "commandId",
|
|
47
|
+
type: {
|
|
48
|
+
name: "String"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export const configName: msRest.OperationURLParameter = {
|
|
53
|
+
parameterPath: "configName",
|
|
54
|
+
mapper: {
|
|
55
|
+
required: true,
|
|
56
|
+
serializedName: "configName",
|
|
57
|
+
type: {
|
|
58
|
+
name: "String"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
export const location: msRest.OperationURLParameter = {
|
|
63
|
+
parameterPath: "location",
|
|
64
|
+
mapper: {
|
|
65
|
+
required: true,
|
|
66
|
+
serializedName: "location",
|
|
67
|
+
type: {
|
|
68
|
+
name: "String"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export const nextPageLink: msRest.OperationURLParameter = {
|
|
73
|
+
parameterPath: "nextPageLink",
|
|
74
|
+
mapper: {
|
|
75
|
+
required: true,
|
|
76
|
+
serializedName: "nextLink",
|
|
77
|
+
type: {
|
|
78
|
+
name: "String"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
skipEncoding: true
|
|
82
|
+
};
|
|
83
|
+
export const privateEndpointConnectionName: msRest.OperationURLParameter = {
|
|
84
|
+
parameterPath: "privateEndpointConnectionName",
|
|
85
|
+
mapper: {
|
|
86
|
+
required: true,
|
|
87
|
+
serializedName: "privateEndpointConnectionName",
|
|
88
|
+
type: {
|
|
89
|
+
name: "String"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
export const resourceGroupName: msRest.OperationURLParameter = {
|
|
94
|
+
parameterPath: "resourceGroupName",
|
|
95
|
+
mapper: {
|
|
96
|
+
required: true,
|
|
97
|
+
serializedName: "resourceGroupName",
|
|
98
|
+
constraints: {
|
|
99
|
+
MinLength: 1
|
|
100
|
+
},
|
|
101
|
+
type: {
|
|
102
|
+
name: "String"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
export const resourceName: msRest.OperationURLParameter = {
|
|
107
|
+
parameterPath: "resourceName",
|
|
108
|
+
mapper: {
|
|
109
|
+
required: true,
|
|
110
|
+
serializedName: "resourceName",
|
|
111
|
+
constraints: {
|
|
112
|
+
MaxLength: 63,
|
|
113
|
+
MinLength: 1,
|
|
114
|
+
Pattern: /^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$/
|
|
115
|
+
},
|
|
116
|
+
type: {
|
|
117
|
+
name: "String"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
export const resourceType: msRest.OperationQueryParameter = {
|
|
122
|
+
parameterPath: [
|
|
123
|
+
"options",
|
|
124
|
+
"resourceType"
|
|
125
|
+
],
|
|
126
|
+
mapper: {
|
|
127
|
+
serializedName: "resource-type",
|
|
128
|
+
type: {
|
|
129
|
+
name: "String"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
export const roleName: msRest.OperationURLParameter = {
|
|
134
|
+
parameterPath: "roleName",
|
|
135
|
+
mapper: {
|
|
136
|
+
required: true,
|
|
137
|
+
serializedName: "roleName",
|
|
138
|
+
type: {
|
|
139
|
+
name: "String"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
export const serverFqdn: msRest.OperationQueryParameter = {
|
|
144
|
+
parameterPath: [
|
|
145
|
+
"options",
|
|
146
|
+
"serverFqdn"
|
|
147
|
+
],
|
|
148
|
+
mapper: {
|
|
149
|
+
serializedName: "server-fqdn",
|
|
150
|
+
type: {
|
|
151
|
+
name: "String"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
export const subscriptionId: msRest.OperationURLParameter = {
|
|
156
|
+
parameterPath: "subscriptionId",
|
|
157
|
+
mapper: {
|
|
158
|
+
required: true,
|
|
159
|
+
serializedName: "subscriptionId",
|
|
160
|
+
type: {
|
|
161
|
+
name: "String"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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 regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
AgentPool,
|
|
11
|
+
AgentPoolUpgradeSettings,
|
|
12
|
+
BaseResource,
|
|
13
|
+
CloudError,
|
|
14
|
+
ContainerServiceLinuxProfile,
|
|
15
|
+
ContainerServiceNetworkProfile,
|
|
16
|
+
ContainerServiceSshConfiguration,
|
|
17
|
+
ContainerServiceSshPublicKey,
|
|
18
|
+
CreationData,
|
|
19
|
+
ExtendedLocation,
|
|
20
|
+
KubeletConfig,
|
|
21
|
+
LinuxOSConfig,
|
|
22
|
+
MaintenanceConfiguration,
|
|
23
|
+
ManagedCluster,
|
|
24
|
+
ManagedClusterAADProfile,
|
|
25
|
+
ManagedClusterAccessProfile,
|
|
26
|
+
ManagedClusterAddonProfile,
|
|
27
|
+
ManagedClusterAddonProfileIdentity,
|
|
28
|
+
ManagedClusterAgentPoolProfile,
|
|
29
|
+
ManagedClusterAgentPoolProfileProperties,
|
|
30
|
+
ManagedClusterAPIServerAccessProfile,
|
|
31
|
+
ManagedClusterAutoUpgradeProfile,
|
|
32
|
+
ManagedClusterHTTPProxyConfig,
|
|
33
|
+
ManagedClusterIdentity,
|
|
34
|
+
ManagedClusterIdentityUserAssignedIdentitiesValue,
|
|
35
|
+
ManagedClusterLoadBalancerProfile,
|
|
36
|
+
ManagedClusterLoadBalancerProfileManagedOutboundIPs,
|
|
37
|
+
ManagedClusterLoadBalancerProfileOutboundIPPrefixes,
|
|
38
|
+
ManagedClusterLoadBalancerProfileOutboundIPs,
|
|
39
|
+
ManagedClusterManagedOutboundIPProfile,
|
|
40
|
+
ManagedClusterNATGatewayProfile,
|
|
41
|
+
ManagedClusterPodIdentity,
|
|
42
|
+
ManagedClusterPodIdentityException,
|
|
43
|
+
ManagedClusterPodIdentityProfile,
|
|
44
|
+
ManagedClusterPodIdentityProvisioningError,
|
|
45
|
+
ManagedClusterPodIdentityProvisioningErrorBody,
|
|
46
|
+
ManagedClusterPodIdentityProvisioningInfo,
|
|
47
|
+
ManagedClusterPropertiesAutoScalerProfile,
|
|
48
|
+
ManagedClusterSecurityProfile,
|
|
49
|
+
ManagedClusterSecurityProfileAzureDefender,
|
|
50
|
+
ManagedClusterServicePrincipalProfile,
|
|
51
|
+
ManagedClusterSKU,
|
|
52
|
+
ManagedClusterWindowsProfile,
|
|
53
|
+
PowerState,
|
|
54
|
+
PrivateEndpoint,
|
|
55
|
+
PrivateEndpointConnection,
|
|
56
|
+
PrivateEndpointConnectionListResult,
|
|
57
|
+
PrivateLinkResource,
|
|
58
|
+
PrivateLinkServiceConnectionState,
|
|
59
|
+
Resource,
|
|
60
|
+
ResourceReference,
|
|
61
|
+
Snapshot,
|
|
62
|
+
SubResource,
|
|
63
|
+
SysctlConfig,
|
|
64
|
+
SystemData,
|
|
65
|
+
TimeInWeek,
|
|
66
|
+
TimeSpan,
|
|
67
|
+
UserAssignedIdentity
|
|
68
|
+
} from "../models/mappers";
|
|
@@ -0,0 +1,13 @@
|
|
|
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 regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
CloudError,
|
|
11
|
+
PrivateLinkResource,
|
|
12
|
+
PrivateLinkResourcesListResult
|
|
13
|
+
} from "../models/mappers";
|
|
@@ -0,0 +1,12 @@
|
|
|
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 regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
CloudError,
|
|
11
|
+
PrivateLinkResource
|
|
12
|
+
} from "../models/mappers";
|
|
@@ -0,0 +1,69 @@
|
|
|
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 regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
AgentPool,
|
|
11
|
+
AgentPoolUpgradeSettings,
|
|
12
|
+
BaseResource,
|
|
13
|
+
CloudError,
|
|
14
|
+
ContainerServiceLinuxProfile,
|
|
15
|
+
ContainerServiceNetworkProfile,
|
|
16
|
+
ContainerServiceSshConfiguration,
|
|
17
|
+
ContainerServiceSshPublicKey,
|
|
18
|
+
CreationData,
|
|
19
|
+
ExtendedLocation,
|
|
20
|
+
KubeletConfig,
|
|
21
|
+
LinuxOSConfig,
|
|
22
|
+
MaintenanceConfiguration,
|
|
23
|
+
ManagedCluster,
|
|
24
|
+
ManagedClusterAADProfile,
|
|
25
|
+
ManagedClusterAccessProfile,
|
|
26
|
+
ManagedClusterAddonProfile,
|
|
27
|
+
ManagedClusterAddonProfileIdentity,
|
|
28
|
+
ManagedClusterAgentPoolProfile,
|
|
29
|
+
ManagedClusterAgentPoolProfileProperties,
|
|
30
|
+
ManagedClusterAPIServerAccessProfile,
|
|
31
|
+
ManagedClusterAutoUpgradeProfile,
|
|
32
|
+
ManagedClusterHTTPProxyConfig,
|
|
33
|
+
ManagedClusterIdentity,
|
|
34
|
+
ManagedClusterIdentityUserAssignedIdentitiesValue,
|
|
35
|
+
ManagedClusterLoadBalancerProfile,
|
|
36
|
+
ManagedClusterLoadBalancerProfileManagedOutboundIPs,
|
|
37
|
+
ManagedClusterLoadBalancerProfileOutboundIPPrefixes,
|
|
38
|
+
ManagedClusterLoadBalancerProfileOutboundIPs,
|
|
39
|
+
ManagedClusterManagedOutboundIPProfile,
|
|
40
|
+
ManagedClusterNATGatewayProfile,
|
|
41
|
+
ManagedClusterPodIdentity,
|
|
42
|
+
ManagedClusterPodIdentityException,
|
|
43
|
+
ManagedClusterPodIdentityProfile,
|
|
44
|
+
ManagedClusterPodIdentityProvisioningError,
|
|
45
|
+
ManagedClusterPodIdentityProvisioningErrorBody,
|
|
46
|
+
ManagedClusterPodIdentityProvisioningInfo,
|
|
47
|
+
ManagedClusterPropertiesAutoScalerProfile,
|
|
48
|
+
ManagedClusterSecurityProfile,
|
|
49
|
+
ManagedClusterSecurityProfileAzureDefender,
|
|
50
|
+
ManagedClusterServicePrincipalProfile,
|
|
51
|
+
ManagedClusterSKU,
|
|
52
|
+
ManagedClusterWindowsProfile,
|
|
53
|
+
PowerState,
|
|
54
|
+
PrivateEndpoint,
|
|
55
|
+
PrivateEndpointConnection,
|
|
56
|
+
PrivateLinkResource,
|
|
57
|
+
PrivateLinkServiceConnectionState,
|
|
58
|
+
Resource,
|
|
59
|
+
ResourceReference,
|
|
60
|
+
Snapshot,
|
|
61
|
+
SnapshotListResult,
|
|
62
|
+
SubResource,
|
|
63
|
+
SysctlConfig,
|
|
64
|
+
SystemData,
|
|
65
|
+
TagsObject,
|
|
66
|
+
TimeInWeek,
|
|
67
|
+
TimeSpan,
|
|
68
|
+
UserAssignedIdentity
|
|
69
|
+
} from "../models/mappers";
|
|
@@ -0,0 +1,519 @@
|
|
|
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/agentPoolsMappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { ContainerServiceClientContext } from "../containerServiceClientContext";
|
|
16
|
+
|
|
17
|
+
/** Class representing a AgentPools. */
|
|
18
|
+
export class AgentPools {
|
|
19
|
+
private readonly client: ContainerServiceClientContext;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a AgentPools.
|
|
23
|
+
* @param {ContainerServiceClientContext} client Reference to the service client.
|
|
24
|
+
*/
|
|
25
|
+
constructor(client: ContainerServiceClientContext) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @summary Gets a list of agent pools in the specified managed cluster.
|
|
31
|
+
* @param resourceGroupName The name of the resource group.
|
|
32
|
+
* @param resourceName The name of the managed cluster resource.
|
|
33
|
+
* @param [options] The optional parameters
|
|
34
|
+
* @returns Promise<Models.AgentPoolsListResponse>
|
|
35
|
+
*/
|
|
36
|
+
list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsListResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* @param resourceGroupName The name of the resource group.
|
|
39
|
+
* @param resourceName The name of the managed cluster resource.
|
|
40
|
+
* @param callback The callback
|
|
41
|
+
*/
|
|
42
|
+
list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
|
|
43
|
+
/**
|
|
44
|
+
* @param resourceGroupName The name of the resource group.
|
|
45
|
+
* @param resourceName The name of the managed cluster resource.
|
|
46
|
+
* @param options The optional parameters
|
|
47
|
+
* @param callback The callback
|
|
48
|
+
*/
|
|
49
|
+
list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
|
|
50
|
+
list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolListResult>, callback?: msRest.ServiceCallback<Models.AgentPoolListResult>): Promise<Models.AgentPoolsListResponse> {
|
|
51
|
+
return this.client.sendOperationRequest(
|
|
52
|
+
{
|
|
53
|
+
resourceGroupName,
|
|
54
|
+
resourceName,
|
|
55
|
+
options
|
|
56
|
+
},
|
|
57
|
+
listOperationSpec,
|
|
58
|
+
callback) as Promise<Models.AgentPoolsListResponse>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @summary Gets the specified managed cluster agent pool.
|
|
63
|
+
* @param resourceGroupName The name of the resource group.
|
|
64
|
+
* @param resourceName The name of the managed cluster resource.
|
|
65
|
+
* @param agentPoolName The name of the agent pool.
|
|
66
|
+
* @param [options] The optional parameters
|
|
67
|
+
* @returns Promise<Models.AgentPoolsGetResponse>
|
|
68
|
+
*/
|
|
69
|
+
get(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* @param resourceGroupName The name of the resource group.
|
|
72
|
+
* @param resourceName The name of the managed cluster resource.
|
|
73
|
+
* @param agentPoolName The name of the agent pool.
|
|
74
|
+
* @param callback The callback
|
|
75
|
+
*/
|
|
76
|
+
get(resourceGroupName: string, resourceName: string, agentPoolName: string, callback: msRest.ServiceCallback<Models.AgentPool>): void;
|
|
77
|
+
/**
|
|
78
|
+
* @param resourceGroupName The name of the resource group.
|
|
79
|
+
* @param resourceName The name of the managed cluster resource.
|
|
80
|
+
* @param agentPoolName The name of the agent pool.
|
|
81
|
+
* @param options The optional parameters
|
|
82
|
+
* @param callback The callback
|
|
83
|
+
*/
|
|
84
|
+
get(resourceGroupName: string, resourceName: string, agentPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPool>): void;
|
|
85
|
+
get(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPool>, callback?: msRest.ServiceCallback<Models.AgentPool>): Promise<Models.AgentPoolsGetResponse> {
|
|
86
|
+
return this.client.sendOperationRequest(
|
|
87
|
+
{
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
resourceName,
|
|
90
|
+
agentPoolName,
|
|
91
|
+
options
|
|
92
|
+
},
|
|
93
|
+
getOperationSpec,
|
|
94
|
+
callback) as Promise<Models.AgentPoolsGetResponse>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @summary Creates or updates an agent pool in the specified managed cluster.
|
|
99
|
+
* @param resourceGroupName The name of the resource group.
|
|
100
|
+
* @param resourceName The name of the managed cluster resource.
|
|
101
|
+
* @param agentPoolName The name of the agent pool.
|
|
102
|
+
* @param parameters The agent pool to create or update.
|
|
103
|
+
* @param [options] The optional parameters
|
|
104
|
+
* @returns Promise<Models.AgentPoolsCreateOrUpdateResponse>
|
|
105
|
+
*/
|
|
106
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, agentPoolName: string, parameters: Models.AgentPool, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsCreateOrUpdateResponse> {
|
|
107
|
+
return this.beginCreateOrUpdate(resourceGroupName,resourceName,agentPoolName,parameters,options)
|
|
108
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AgentPoolsCreateOrUpdateResponse>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @summary Deletes an agent pool in the specified managed cluster.
|
|
113
|
+
* @param resourceGroupName The name of the resource group.
|
|
114
|
+
* @param resourceName The name of the managed cluster resource.
|
|
115
|
+
* @param agentPoolName The name of the agent pool.
|
|
116
|
+
* @param [options] The optional parameters
|
|
117
|
+
* @returns Promise<msRest.RestResponse>
|
|
118
|
+
*/
|
|
119
|
+
deleteMethod(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
120
|
+
return this.beginDeleteMethod(resourceGroupName,resourceName,agentPoolName,options)
|
|
121
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @summary Gets the upgrade profile for an agent pool.
|
|
126
|
+
* @param resourceGroupName The name of the resource group.
|
|
127
|
+
* @param resourceName The name of the managed cluster resource.
|
|
128
|
+
* @param agentPoolName The name of the agent pool.
|
|
129
|
+
* @param [options] The optional parameters
|
|
130
|
+
* @returns Promise<Models.AgentPoolsGetUpgradeProfileResponse>
|
|
131
|
+
*/
|
|
132
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetUpgradeProfileResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* @param resourceGroupName The name of the resource group.
|
|
135
|
+
* @param resourceName The name of the managed cluster resource.
|
|
136
|
+
* @param agentPoolName The name of the agent pool.
|
|
137
|
+
* @param callback The callback
|
|
138
|
+
*/
|
|
139
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, agentPoolName: string, callback: msRest.ServiceCallback<Models.AgentPoolUpgradeProfile>): void;
|
|
140
|
+
/**
|
|
141
|
+
* @param resourceGroupName The name of the resource group.
|
|
142
|
+
* @param resourceName The name of the managed cluster resource.
|
|
143
|
+
* @param agentPoolName The name of the agent pool.
|
|
144
|
+
* @param options The optional parameters
|
|
145
|
+
* @param callback The callback
|
|
146
|
+
*/
|
|
147
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, agentPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolUpgradeProfile>): void;
|
|
148
|
+
getUpgradeProfile(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolUpgradeProfile>, callback?: msRest.ServiceCallback<Models.AgentPoolUpgradeProfile>): Promise<Models.AgentPoolsGetUpgradeProfileResponse> {
|
|
149
|
+
return this.client.sendOperationRequest(
|
|
150
|
+
{
|
|
151
|
+
resourceGroupName,
|
|
152
|
+
resourceName,
|
|
153
|
+
agentPoolName,
|
|
154
|
+
options
|
|
155
|
+
},
|
|
156
|
+
getUpgradeProfileOperationSpec,
|
|
157
|
+
callback) as Promise<Models.AgentPoolsGetUpgradeProfileResponse>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* See [supported Kubernetes
|
|
162
|
+
* versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details
|
|
163
|
+
* about the version lifecycle.
|
|
164
|
+
* @summary Gets a list of supported Kubernetes versions for the specified agent pool.
|
|
165
|
+
* @param resourceGroupName The name of the resource group.
|
|
166
|
+
* @param resourceName The name of the managed cluster resource.
|
|
167
|
+
* @param [options] The optional parameters
|
|
168
|
+
* @returns Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse>
|
|
169
|
+
*/
|
|
170
|
+
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* @param resourceGroupName The name of the resource group.
|
|
173
|
+
* @param resourceName The name of the managed cluster resource.
|
|
174
|
+
* @param callback The callback
|
|
175
|
+
*/
|
|
176
|
+
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): void;
|
|
177
|
+
/**
|
|
178
|
+
* @param resourceGroupName The name of the resource group.
|
|
179
|
+
* @param resourceName The name of the managed cluster resource.
|
|
180
|
+
* @param options The optional parameters
|
|
181
|
+
* @param callback The callback
|
|
182
|
+
*/
|
|
183
|
+
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): void;
|
|
184
|
+
getAvailableAgentPoolVersions(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolAvailableVersions>, callback?: msRest.ServiceCallback<Models.AgentPoolAvailableVersions>): Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse> {
|
|
185
|
+
return this.client.sendOperationRequest(
|
|
186
|
+
{
|
|
187
|
+
resourceGroupName,
|
|
188
|
+
resourceName,
|
|
189
|
+
options
|
|
190
|
+
},
|
|
191
|
+
getAvailableAgentPoolVersionsOperationSpec,
|
|
192
|
+
callback) as Promise<Models.AgentPoolsGetAvailableAgentPoolVersionsResponse>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Upgrading the node image version of an agent pool applies the newest OS and runtime updates to
|
|
197
|
+
* the nodes. AKS provides one new image per week with the latest updates. For more details on node
|
|
198
|
+
* image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
|
|
199
|
+
* @summary Upgrades the node image version of an agent pool to the latest.
|
|
200
|
+
* @param resourceGroupName The name of the resource group.
|
|
201
|
+
* @param resourceName The name of the managed cluster resource.
|
|
202
|
+
* @param agentPoolName The name of the agent pool.
|
|
203
|
+
* @param [options] The optional parameters
|
|
204
|
+
* @returns Promise<Models.AgentPoolsUpgradeNodeImageVersionResponse>
|
|
205
|
+
*/
|
|
206
|
+
upgradeNodeImageVersion(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsUpgradeNodeImageVersionResponse> {
|
|
207
|
+
return this.beginUpgradeNodeImageVersion(resourceGroupName,resourceName,agentPoolName,options)
|
|
208
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AgentPoolsUpgradeNodeImageVersionResponse>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @summary Creates or updates an agent pool in the specified managed cluster.
|
|
213
|
+
* @param resourceGroupName The name of the resource group.
|
|
214
|
+
* @param resourceName The name of the managed cluster resource.
|
|
215
|
+
* @param agentPoolName The name of the agent pool.
|
|
216
|
+
* @param parameters The agent pool to create or update.
|
|
217
|
+
* @param [options] The optional parameters
|
|
218
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
219
|
+
*/
|
|
220
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, agentPoolName: string, parameters: Models.AgentPool, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
221
|
+
return this.client.sendLRORequest(
|
|
222
|
+
{
|
|
223
|
+
resourceGroupName,
|
|
224
|
+
resourceName,
|
|
225
|
+
agentPoolName,
|
|
226
|
+
parameters,
|
|
227
|
+
options
|
|
228
|
+
},
|
|
229
|
+
beginCreateOrUpdateOperationSpec,
|
|
230
|
+
options);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @summary Deletes an agent pool in the specified managed cluster.
|
|
235
|
+
* @param resourceGroupName The name of the resource group.
|
|
236
|
+
* @param resourceName The name of the managed cluster resource.
|
|
237
|
+
* @param agentPoolName The name of the agent pool.
|
|
238
|
+
* @param [options] The optional parameters
|
|
239
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
240
|
+
*/
|
|
241
|
+
beginDeleteMethod(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
242
|
+
return this.client.sendLRORequest(
|
|
243
|
+
{
|
|
244
|
+
resourceGroupName,
|
|
245
|
+
resourceName,
|
|
246
|
+
agentPoolName,
|
|
247
|
+
options
|
|
248
|
+
},
|
|
249
|
+
beginDeleteMethodOperationSpec,
|
|
250
|
+
options);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Upgrading the node image version of an agent pool applies the newest OS and runtime updates to
|
|
255
|
+
* the nodes. AKS provides one new image per week with the latest updates. For more details on node
|
|
256
|
+
* image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade
|
|
257
|
+
* @summary Upgrades the node image version of an agent pool to the latest.
|
|
258
|
+
* @param resourceGroupName The name of the resource group.
|
|
259
|
+
* @param resourceName The name of the managed cluster resource.
|
|
260
|
+
* @param agentPoolName The name of the agent pool.
|
|
261
|
+
* @param [options] The optional parameters
|
|
262
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
263
|
+
*/
|
|
264
|
+
beginUpgradeNodeImageVersion(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
265
|
+
return this.client.sendLRORequest(
|
|
266
|
+
{
|
|
267
|
+
resourceGroupName,
|
|
268
|
+
resourceName,
|
|
269
|
+
agentPoolName,
|
|
270
|
+
options
|
|
271
|
+
},
|
|
272
|
+
beginUpgradeNodeImageVersionOperationSpec,
|
|
273
|
+
options);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @summary Gets a list of agent pools in the specified managed cluster.
|
|
278
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
279
|
+
* @param [options] The optional parameters
|
|
280
|
+
* @returns Promise<Models.AgentPoolsListNextResponse>
|
|
281
|
+
*/
|
|
282
|
+
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsListNextResponse>;
|
|
283
|
+
/**
|
|
284
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
285
|
+
* @param callback The callback
|
|
286
|
+
*/
|
|
287
|
+
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
|
|
288
|
+
/**
|
|
289
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
290
|
+
* @param options The optional parameters
|
|
291
|
+
* @param callback The callback
|
|
292
|
+
*/
|
|
293
|
+
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
|
|
294
|
+
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolListResult>, callback?: msRest.ServiceCallback<Models.AgentPoolListResult>): Promise<Models.AgentPoolsListNextResponse> {
|
|
295
|
+
return this.client.sendOperationRequest(
|
|
296
|
+
{
|
|
297
|
+
nextPageLink,
|
|
298
|
+
options
|
|
299
|
+
},
|
|
300
|
+
listNextOperationSpec,
|
|
301
|
+
callback) as Promise<Models.AgentPoolsListNextResponse>;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Operation Specifications
|
|
306
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
307
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
308
|
+
httpMethod: "GET",
|
|
309
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools",
|
|
310
|
+
urlParameters: [
|
|
311
|
+
Parameters.subscriptionId,
|
|
312
|
+
Parameters.resourceGroupName,
|
|
313
|
+
Parameters.resourceName
|
|
314
|
+
],
|
|
315
|
+
queryParameters: [
|
|
316
|
+
Parameters.apiVersion
|
|
317
|
+
],
|
|
318
|
+
headerParameters: [
|
|
319
|
+
Parameters.acceptLanguage
|
|
320
|
+
],
|
|
321
|
+
responses: {
|
|
322
|
+
200: {
|
|
323
|
+
bodyMapper: Mappers.AgentPoolListResult
|
|
324
|
+
},
|
|
325
|
+
default: {
|
|
326
|
+
bodyMapper: Mappers.CloudError
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
serializer
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
333
|
+
httpMethod: "GET",
|
|
334
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}",
|
|
335
|
+
urlParameters: [
|
|
336
|
+
Parameters.subscriptionId,
|
|
337
|
+
Parameters.resourceGroupName,
|
|
338
|
+
Parameters.resourceName,
|
|
339
|
+
Parameters.agentPoolName
|
|
340
|
+
],
|
|
341
|
+
queryParameters: [
|
|
342
|
+
Parameters.apiVersion
|
|
343
|
+
],
|
|
344
|
+
headerParameters: [
|
|
345
|
+
Parameters.acceptLanguage
|
|
346
|
+
],
|
|
347
|
+
responses: {
|
|
348
|
+
200: {
|
|
349
|
+
bodyMapper: Mappers.AgentPool
|
|
350
|
+
},
|
|
351
|
+
default: {
|
|
352
|
+
bodyMapper: Mappers.CloudError
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
serializer
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
const getUpgradeProfileOperationSpec: msRest.OperationSpec = {
|
|
359
|
+
httpMethod: "GET",
|
|
360
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default",
|
|
361
|
+
urlParameters: [
|
|
362
|
+
Parameters.subscriptionId,
|
|
363
|
+
Parameters.resourceGroupName,
|
|
364
|
+
Parameters.resourceName,
|
|
365
|
+
Parameters.agentPoolName
|
|
366
|
+
],
|
|
367
|
+
queryParameters: [
|
|
368
|
+
Parameters.apiVersion
|
|
369
|
+
],
|
|
370
|
+
headerParameters: [
|
|
371
|
+
Parameters.acceptLanguage
|
|
372
|
+
],
|
|
373
|
+
responses: {
|
|
374
|
+
200: {
|
|
375
|
+
bodyMapper: Mappers.AgentPoolUpgradeProfile
|
|
376
|
+
},
|
|
377
|
+
default: {
|
|
378
|
+
bodyMapper: Mappers.CloudError
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
serializer
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
const getAvailableAgentPoolVersionsOperationSpec: msRest.OperationSpec = {
|
|
385
|
+
httpMethod: "GET",
|
|
386
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions",
|
|
387
|
+
urlParameters: [
|
|
388
|
+
Parameters.subscriptionId,
|
|
389
|
+
Parameters.resourceGroupName,
|
|
390
|
+
Parameters.resourceName
|
|
391
|
+
],
|
|
392
|
+
queryParameters: [
|
|
393
|
+
Parameters.apiVersion
|
|
394
|
+
],
|
|
395
|
+
headerParameters: [
|
|
396
|
+
Parameters.acceptLanguage
|
|
397
|
+
],
|
|
398
|
+
responses: {
|
|
399
|
+
200: {
|
|
400
|
+
bodyMapper: Mappers.AgentPoolAvailableVersions
|
|
401
|
+
},
|
|
402
|
+
default: {
|
|
403
|
+
bodyMapper: Mappers.CloudError
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
serializer
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
410
|
+
httpMethod: "PUT",
|
|
411
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}",
|
|
412
|
+
urlParameters: [
|
|
413
|
+
Parameters.subscriptionId,
|
|
414
|
+
Parameters.resourceGroupName,
|
|
415
|
+
Parameters.resourceName,
|
|
416
|
+
Parameters.agentPoolName
|
|
417
|
+
],
|
|
418
|
+
queryParameters: [
|
|
419
|
+
Parameters.apiVersion
|
|
420
|
+
],
|
|
421
|
+
headerParameters: [
|
|
422
|
+
Parameters.acceptLanguage
|
|
423
|
+
],
|
|
424
|
+
requestBody: {
|
|
425
|
+
parameterPath: "parameters",
|
|
426
|
+
mapper: {
|
|
427
|
+
...Mappers.AgentPool,
|
|
428
|
+
required: true
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
responses: {
|
|
432
|
+
200: {
|
|
433
|
+
bodyMapper: Mappers.AgentPool
|
|
434
|
+
},
|
|
435
|
+
201: {
|
|
436
|
+
bodyMapper: Mappers.AgentPool
|
|
437
|
+
},
|
|
438
|
+
default: {
|
|
439
|
+
bodyMapper: Mappers.CloudError
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
serializer
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
446
|
+
httpMethod: "DELETE",
|
|
447
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}",
|
|
448
|
+
urlParameters: [
|
|
449
|
+
Parameters.subscriptionId,
|
|
450
|
+
Parameters.resourceGroupName,
|
|
451
|
+
Parameters.resourceName,
|
|
452
|
+
Parameters.agentPoolName
|
|
453
|
+
],
|
|
454
|
+
queryParameters: [
|
|
455
|
+
Parameters.apiVersion
|
|
456
|
+
],
|
|
457
|
+
headerParameters: [
|
|
458
|
+
Parameters.acceptLanguage
|
|
459
|
+
],
|
|
460
|
+
responses: {
|
|
461
|
+
202: {},
|
|
462
|
+
204: {},
|
|
463
|
+
default: {
|
|
464
|
+
bodyMapper: Mappers.CloudError
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
serializer
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
const beginUpgradeNodeImageVersionOperationSpec: msRest.OperationSpec = {
|
|
471
|
+
httpMethod: "POST",
|
|
472
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion",
|
|
473
|
+
urlParameters: [
|
|
474
|
+
Parameters.subscriptionId,
|
|
475
|
+
Parameters.resourceGroupName,
|
|
476
|
+
Parameters.resourceName,
|
|
477
|
+
Parameters.agentPoolName
|
|
478
|
+
],
|
|
479
|
+
queryParameters: [
|
|
480
|
+
Parameters.apiVersion
|
|
481
|
+
],
|
|
482
|
+
headerParameters: [
|
|
483
|
+
Parameters.acceptLanguage
|
|
484
|
+
],
|
|
485
|
+
responses: {
|
|
486
|
+
200: {},
|
|
487
|
+
202: {
|
|
488
|
+
bodyMapper: Mappers.AgentPool
|
|
489
|
+
},
|
|
490
|
+
default: {
|
|
491
|
+
bodyMapper: Mappers.CloudError
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
serializer
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
const listNextOperationSpec: msRest.OperationSpec = {
|
|
498
|
+
httpMethod: "GET",
|
|
499
|
+
baseUrl: "https://management.azure.com",
|
|
500
|
+
path: "{nextLink}",
|
|
501
|
+
urlParameters: [
|
|
502
|
+
Parameters.nextPageLink
|
|
503
|
+
],
|
|
504
|
+
queryParameters: [
|
|
505
|
+
Parameters.apiVersion
|
|
506
|
+
],
|
|
507
|
+
headerParameters: [
|
|
508
|
+
Parameters.acceptLanguage
|
|
509
|
+
],
|
|
510
|
+
responses: {
|
|
511
|
+
200: {
|
|
512
|
+
bodyMapper: Mappers.AgentPoolListResult
|
|
513
|
+
},
|
|
514
|
+
default: {
|
|
515
|
+
bodyMapper: Mappers.CloudError
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
serializer
|
|
519
|
+
};
|