@azure/arm-containerinstance 6.3.0 → 8.0.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/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +70 -78
- package/dist/index.js +3335 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts +22 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.js +55 -0
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +964 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +54 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +799 -788
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +67 -37
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/containerGroups.d.ts +159 -0
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroups.js +678 -0
- package/dist-esm/src/operations/containerGroups.js.map +1 -0
- package/dist-esm/src/operations/containers.d.ts +40 -0
- package/dist-esm/src/operations/containers.d.ts.map +1 -0
- package/dist-esm/src/operations/containers.js +134 -0
- package/dist-esm/src/operations/containers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +70 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +310 -0
- package/dist-esm/src/operations/location.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +119 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/containerGroups.js} +2 -7
- package/dist-esm/src/operationsInterfaces/containerGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containers.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/containers.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/containers.js} +2 -2
- package/dist-esm/src/operationsInterfaces/containers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/location.js} +2 -1
- package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/models/containersMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/containerinstance_examples.d.ts +4 -0
- package/dist-esm/test/containerinstance_examples.d.ts.map +1 -0
- package/dist-esm/test/containerinstance_examples.js +156 -0
- package/dist-esm/test/containerinstance_examples.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-containerinstance.api.md +752 -0
- package/rollup.config.js +181 -30
- package/src/containerInstanceManagementClient.ts +78 -40
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +734 -1215
- package/src/models/mappers.ts +808 -793
- package/src/models/parameters.ts +90 -38
- package/src/operations/containerGroups.ts +660 -424
- package/src/operations/containers.ts +89 -143
- package/src/operations/index.ts +1 -2
- package/src/operations/location.ts +262 -179
- package/src/operations/operations.ts +85 -73
- package/src/operationsInterfaces/containerGroups.ts +212 -0
- package/src/operationsInterfaces/containers.ts +64 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/location.ts +49 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +3 -3
- package/types/arm-containerinstance.d.ts +1282 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-containerinstance.js +0 -3019
- package/dist/arm-containerinstance.js.map +0 -1
- package/dist/arm-containerinstance.min.js +0 -1
- package/dist/arm-containerinstance.min.js.map +0 -1
- package/esm/containerInstanceManagementClient.d.ts +0 -28
- package/esm/containerInstanceManagementClient.d.ts.map +0 -1
- package/esm/containerInstanceManagementClient.js +0 -41
- package/esm/containerInstanceManagementClient.js.map +0 -1
- package/esm/containerInstanceManagementClientContext.d.ts +0 -23
- package/esm/containerInstanceManagementClientContext.d.ts.map +0 -1
- package/esm/containerInstanceManagementClientContext.js +0 -61
- package/esm/containerInstanceManagementClientContext.js.map +0 -1
- package/esm/models/containerGroupsMappers.d.ts +0 -2
- package/esm/models/containerGroupsMappers.d.ts.map +0 -1
- package/esm/models/containerGroupsMappers.js +0 -9
- package/esm/models/containerGroupsMappers.js.map +0 -1
- package/esm/models/containersMappers.d.ts +0 -2
- package/esm/models/containersMappers.d.ts.map +0 -1
- package/esm/models/containersMappers.js +0 -9
- package/esm/models/containersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1469
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -54
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/containerGroups.d.ts +0 -247
- package/esm/operations/containerGroups.d.ts.map +0 -1
- package/esm/operations/containerGroups.js +0 -455
- package/esm/operations/containerGroups.js.map +0 -1
- package/esm/operations/containers.d.ts +0 -94
- package/esm/operations/containers.d.ts.map +0 -1
- package/esm/operations/containers.js +0 -133
- package/esm/operations/containers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -107
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -171
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/src/containerInstanceManagementClientContext.ts +0 -68
- package/src/models/containerGroupsMappers.ts +0 -46
- package/src/models/locationMappers.ts +0 -19
|
@@ -3,188 +3,276 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Location } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Usage,
|
|
17
|
+
LocationListUsageOptionalParams,
|
|
18
|
+
CachedImages,
|
|
19
|
+
LocationListCachedImagesNextOptionalParams,
|
|
20
|
+
LocationListCachedImagesOptionalParams,
|
|
21
|
+
Capabilities,
|
|
22
|
+
LocationListCapabilitiesNextOptionalParams,
|
|
23
|
+
LocationListCapabilitiesOptionalParams,
|
|
24
|
+
LocationListUsageResponse,
|
|
25
|
+
LocationListCachedImagesResponse,
|
|
26
|
+
LocationListCapabilitiesResponse,
|
|
27
|
+
LocationListCachedImagesNextResponse,
|
|
28
|
+
LocationListCapabilitiesNextResponse
|
|
29
|
+
} from "../models";
|
|
15
30
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing Location operations. */
|
|
33
|
+
export class LocationImpl implements Location {
|
|
34
|
+
private readonly client: ContainerInstanceManagementClient;
|
|
19
35
|
|
|
20
36
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
37
|
+
* Initialize a new instance of the class Location class.
|
|
38
|
+
* @param client Reference to the service client
|
|
23
39
|
*/
|
|
24
|
-
constructor(client:
|
|
40
|
+
constructor(client: ContainerInstanceManagementClient) {
|
|
25
41
|
this.client = client;
|
|
26
42
|
}
|
|
27
43
|
|
|
28
44
|
/**
|
|
29
45
|
* Get the usage for a subscription
|
|
30
46
|
* @param location The identifier for the physical azure location.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.LocationListUsageResponse>
|
|
47
|
+
* @param options The options parameters.
|
|
33
48
|
*/
|
|
34
|
-
listUsage(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
listUsage(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UsageListResult>): void;
|
|
46
|
-
listUsage(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UsageListResult>, callback?: msRest.ServiceCallback<Models.UsageListResult>): Promise<Models.LocationListUsageResponse> {
|
|
47
|
-
return this.client.sendOperationRequest(
|
|
48
|
-
{
|
|
49
|
-
location,
|
|
50
|
-
options
|
|
49
|
+
public listUsage(
|
|
50
|
+
location: string,
|
|
51
|
+
options?: LocationListUsageOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<Usage> {
|
|
53
|
+
const iter = this.listUsagePagingAll(location, options);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
57
|
+
},
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
51
60
|
},
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
byPage: () => {
|
|
62
|
+
return this.listUsagePagingPage(location, options);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private async *listUsagePagingPage(
|
|
68
|
+
location: string,
|
|
69
|
+
options?: LocationListUsageOptionalParams
|
|
70
|
+
): AsyncIterableIterator<Usage[]> {
|
|
71
|
+
let result = await this._listUsage(location, options);
|
|
72
|
+
yield result.value || [];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listUsagePagingAll(
|
|
76
|
+
location: string,
|
|
77
|
+
options?: LocationListUsageOptionalParams
|
|
78
|
+
): AsyncIterableIterator<Usage> {
|
|
79
|
+
for await (const page of this.listUsagePagingPage(location, options)) {
|
|
80
|
+
yield* page;
|
|
81
|
+
}
|
|
54
82
|
}
|
|
55
83
|
|
|
56
84
|
/**
|
|
57
85
|
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
58
|
-
* @summary Get the list of cached images.
|
|
59
86
|
* @param location The identifier for the physical azure location.
|
|
60
|
-
* @param
|
|
61
|
-
* @returns Promise<Models.LocationListCachedImagesResponse>
|
|
87
|
+
* @param options The options parameters.
|
|
62
88
|
*/
|
|
63
|
-
listCachedImages(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
89
|
+
public listCachedImages(
|
|
90
|
+
location: string,
|
|
91
|
+
options?: LocationListCachedImagesOptionalParams
|
|
92
|
+
): PagedAsyncIterableIterator<CachedImages> {
|
|
93
|
+
const iter = this.listCachedImagesPagingAll(location, options);
|
|
94
|
+
return {
|
|
95
|
+
next() {
|
|
96
|
+
return iter.next();
|
|
97
|
+
},
|
|
98
|
+
[Symbol.asyncIterator]() {
|
|
99
|
+
return this;
|
|
100
|
+
},
|
|
101
|
+
byPage: () => {
|
|
102
|
+
return this.listCachedImagesPagingPage(location, options);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private async *listCachedImagesPagingPage(
|
|
108
|
+
location: string,
|
|
109
|
+
options?: LocationListCachedImagesOptionalParams
|
|
110
|
+
): AsyncIterableIterator<CachedImages[]> {
|
|
111
|
+
let result = await this._listCachedImages(location, options);
|
|
112
|
+
yield result.value || [];
|
|
113
|
+
let continuationToken = result.nextLink;
|
|
114
|
+
while (continuationToken) {
|
|
115
|
+
result = await this._listCachedImagesNext(
|
|
78
116
|
location,
|
|
117
|
+
continuationToken,
|
|
79
118
|
options
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
119
|
+
);
|
|
120
|
+
continuationToken = result.nextLink;
|
|
121
|
+
yield result.value || [];
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private async *listCachedImagesPagingAll(
|
|
126
|
+
location: string,
|
|
127
|
+
options?: LocationListCachedImagesOptionalParams
|
|
128
|
+
): AsyncIterableIterator<CachedImages> {
|
|
129
|
+
for await (const page of this.listCachedImagesPagingPage(
|
|
130
|
+
location,
|
|
131
|
+
options
|
|
132
|
+
)) {
|
|
133
|
+
yield* page;
|
|
134
|
+
}
|
|
83
135
|
}
|
|
84
136
|
|
|
85
137
|
/**
|
|
86
138
|
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
87
|
-
* @summary Get the list of capabilities of the location.
|
|
88
|
-
* @param location The identifier for the physical azure location.
|
|
89
|
-
* @param [options] The optional parameters
|
|
90
|
-
* @returns Promise<Models.LocationListCapabilitiesResponse>
|
|
91
|
-
*/
|
|
92
|
-
listCapabilities(location: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationListCapabilitiesResponse>;
|
|
93
|
-
/**
|
|
94
139
|
* @param location The identifier for the physical azure location.
|
|
95
|
-
* @param
|
|
140
|
+
* @param options The options parameters.
|
|
96
141
|
*/
|
|
97
|
-
listCapabilities(
|
|
142
|
+
public listCapabilities(
|
|
143
|
+
location: string,
|
|
144
|
+
options?: LocationListCapabilitiesOptionalParams
|
|
145
|
+
): PagedAsyncIterableIterator<Capabilities> {
|
|
146
|
+
const iter = this.listCapabilitiesPagingAll(location, options);
|
|
147
|
+
return {
|
|
148
|
+
next() {
|
|
149
|
+
return iter.next();
|
|
150
|
+
},
|
|
151
|
+
[Symbol.asyncIterator]() {
|
|
152
|
+
return this;
|
|
153
|
+
},
|
|
154
|
+
byPage: () => {
|
|
155
|
+
return this.listCapabilitiesPagingPage(location, options);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
private async *listCapabilitiesPagingPage(
|
|
161
|
+
location: string,
|
|
162
|
+
options?: LocationListCapabilitiesOptionalParams
|
|
163
|
+
): AsyncIterableIterator<Capabilities[]> {
|
|
164
|
+
let result = await this._listCapabilities(location, options);
|
|
165
|
+
yield result.value || [];
|
|
166
|
+
let continuationToken = result.nextLink;
|
|
167
|
+
while (continuationToken) {
|
|
168
|
+
result = await this._listCapabilitiesNext(
|
|
169
|
+
location,
|
|
170
|
+
continuationToken,
|
|
171
|
+
options
|
|
172
|
+
);
|
|
173
|
+
continuationToken = result.nextLink;
|
|
174
|
+
yield result.value || [];
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
private async *listCapabilitiesPagingAll(
|
|
179
|
+
location: string,
|
|
180
|
+
options?: LocationListCapabilitiesOptionalParams
|
|
181
|
+
): AsyncIterableIterator<Capabilities> {
|
|
182
|
+
for await (const page of this.listCapabilitiesPagingPage(
|
|
183
|
+
location,
|
|
184
|
+
options
|
|
185
|
+
)) {
|
|
186
|
+
yield* page;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
98
190
|
/**
|
|
191
|
+
* Get the usage for a subscription
|
|
99
192
|
* @param location The identifier for the physical azure location.
|
|
100
|
-
* @param options The
|
|
101
|
-
* @param callback The callback
|
|
193
|
+
* @param options The options parameters.
|
|
102
194
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
195
|
+
private _listUsage(
|
|
196
|
+
location: string,
|
|
197
|
+
options?: LocationListUsageOptionalParams
|
|
198
|
+
): Promise<LocationListUsageResponse> {
|
|
105
199
|
return this.client.sendOperationRequest(
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
listCapabilitiesOperationSpec,
|
|
111
|
-
callback) as Promise<Models.LocationListCapabilitiesResponse>;
|
|
200
|
+
{ location, options },
|
|
201
|
+
listUsageOperationSpec
|
|
202
|
+
);
|
|
112
203
|
}
|
|
113
204
|
|
|
114
205
|
/**
|
|
115
206
|
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
116
|
-
* @
|
|
117
|
-
* @param
|
|
118
|
-
* @param [options] The optional parameters
|
|
119
|
-
* @returns Promise<Models.LocationListCachedImagesNextResponse>
|
|
120
|
-
*/
|
|
121
|
-
listCachedImagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationListCachedImagesNextResponse>;
|
|
122
|
-
/**
|
|
123
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
124
|
-
* @param callback The callback
|
|
125
|
-
*/
|
|
126
|
-
listCachedImagesNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CachedImagesListResult>): void;
|
|
127
|
-
/**
|
|
128
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
129
|
-
* @param options The optional parameters
|
|
130
|
-
* @param callback The callback
|
|
207
|
+
* @param location The identifier for the physical azure location.
|
|
208
|
+
* @param options The options parameters.
|
|
131
209
|
*/
|
|
132
|
-
|
|
133
|
-
|
|
210
|
+
private _listCachedImages(
|
|
211
|
+
location: string,
|
|
212
|
+
options?: LocationListCachedImagesOptionalParams
|
|
213
|
+
): Promise<LocationListCachedImagesResponse> {
|
|
134
214
|
return this.client.sendOperationRequest(
|
|
135
|
-
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
listCachedImagesNextOperationSpec,
|
|
140
|
-
callback) as Promise<Models.LocationListCachedImagesNextResponse>;
|
|
215
|
+
{ location, options },
|
|
216
|
+
listCachedImagesOperationSpec
|
|
217
|
+
);
|
|
141
218
|
}
|
|
142
219
|
|
|
143
220
|
/**
|
|
144
221
|
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
145
|
-
* @
|
|
146
|
-
* @param
|
|
147
|
-
* @param [options] The optional parameters
|
|
148
|
-
* @returns Promise<Models.LocationListCapabilitiesNextResponse>
|
|
222
|
+
* @param location The identifier for the physical azure location.
|
|
223
|
+
* @param options The options parameters.
|
|
149
224
|
*/
|
|
150
|
-
|
|
225
|
+
private _listCapabilities(
|
|
226
|
+
location: string,
|
|
227
|
+
options?: LocationListCapabilitiesOptionalParams
|
|
228
|
+
): Promise<LocationListCapabilitiesResponse> {
|
|
229
|
+
return this.client.sendOperationRequest(
|
|
230
|
+
{ location, options },
|
|
231
|
+
listCapabilitiesOperationSpec
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
151
235
|
/**
|
|
152
|
-
*
|
|
153
|
-
* @param
|
|
236
|
+
* ListCachedImagesNext
|
|
237
|
+
* @param location The identifier for the physical azure location.
|
|
238
|
+
* @param nextLink The nextLink from the previous successful call to the ListCachedImages method.
|
|
239
|
+
* @param options The options parameters.
|
|
154
240
|
*/
|
|
155
|
-
|
|
241
|
+
private _listCachedImagesNext(
|
|
242
|
+
location: string,
|
|
243
|
+
nextLink: string,
|
|
244
|
+
options?: LocationListCachedImagesNextOptionalParams
|
|
245
|
+
): Promise<LocationListCachedImagesNextResponse> {
|
|
246
|
+
return this.client.sendOperationRequest(
|
|
247
|
+
{ location, nextLink, options },
|
|
248
|
+
listCachedImagesNextOperationSpec
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
156
252
|
/**
|
|
157
|
-
*
|
|
158
|
-
* @param
|
|
159
|
-
* @param
|
|
253
|
+
* ListCapabilitiesNext
|
|
254
|
+
* @param location The identifier for the physical azure location.
|
|
255
|
+
* @param nextLink The nextLink from the previous successful call to the ListCapabilities method.
|
|
256
|
+
* @param options The options parameters.
|
|
160
257
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
258
|
+
private _listCapabilitiesNext(
|
|
259
|
+
location: string,
|
|
260
|
+
nextLink: string,
|
|
261
|
+
options?: LocationListCapabilitiesNextOptionalParams
|
|
262
|
+
): Promise<LocationListCapabilitiesNextResponse> {
|
|
163
263
|
return this.client.sendOperationRequest(
|
|
164
|
-
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
listCapabilitiesNextOperationSpec,
|
|
169
|
-
callback) as Promise<Models.LocationListCapabilitiesNextResponse>;
|
|
264
|
+
{ location, nextLink, options },
|
|
265
|
+
listCapabilitiesNextOperationSpec
|
|
266
|
+
);
|
|
170
267
|
}
|
|
171
268
|
}
|
|
172
|
-
|
|
173
269
|
// Operation Specifications
|
|
174
|
-
const serializer =
|
|
175
|
-
|
|
270
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
271
|
+
|
|
272
|
+
const listUsageOperationSpec: coreClient.OperationSpec = {
|
|
273
|
+
path:
|
|
274
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
|
|
176
275
|
httpMethod: "GET",
|
|
177
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
|
|
178
|
-
urlParameters: [
|
|
179
|
-
Parameters.subscriptionId,
|
|
180
|
-
Parameters.location
|
|
181
|
-
],
|
|
182
|
-
queryParameters: [
|
|
183
|
-
Parameters.apiVersion
|
|
184
|
-
],
|
|
185
|
-
headerParameters: [
|
|
186
|
-
Parameters.acceptLanguage
|
|
187
|
-
],
|
|
188
276
|
responses: {
|
|
189
277
|
200: {
|
|
190
278
|
bodyMapper: Mappers.UsageListResult
|
|
@@ -193,22 +281,19 @@ const listUsageOperationSpec: msRest.OperationSpec = {
|
|
|
193
281
|
bodyMapper: Mappers.CloudError
|
|
194
282
|
}
|
|
195
283
|
},
|
|
196
|
-
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
const listCachedImagesOperationSpec: msRest.OperationSpec = {
|
|
200
|
-
httpMethod: "GET",
|
|
201
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
|
|
284
|
+
queryParameters: [Parameters.apiVersion],
|
|
202
285
|
urlParameters: [
|
|
286
|
+
Parameters.$host,
|
|
203
287
|
Parameters.subscriptionId,
|
|
204
288
|
Parameters.location
|
|
205
289
|
],
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
290
|
+
headerParameters: [Parameters.accept],
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
const listCachedImagesOperationSpec: coreClient.OperationSpec = {
|
|
294
|
+
path:
|
|
295
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
|
|
296
|
+
httpMethod: "GET",
|
|
212
297
|
responses: {
|
|
213
298
|
200: {
|
|
214
299
|
bodyMapper: Mappers.CachedImagesListResult
|
|
@@ -217,22 +302,19 @@ const listCachedImagesOperationSpec: msRest.OperationSpec = {
|
|
|
217
302
|
bodyMapper: Mappers.CloudError
|
|
218
303
|
}
|
|
219
304
|
},
|
|
220
|
-
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
const listCapabilitiesOperationSpec: msRest.OperationSpec = {
|
|
224
|
-
httpMethod: "GET",
|
|
225
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
226
306
|
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
227
308
|
Parameters.subscriptionId,
|
|
228
309
|
Parameters.location
|
|
229
310
|
],
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
311
|
+
headerParameters: [Parameters.accept],
|
|
312
|
+
serializer
|
|
313
|
+
};
|
|
314
|
+
const listCapabilitiesOperationSpec: coreClient.OperationSpec = {
|
|
315
|
+
path:
|
|
316
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
|
|
317
|
+
httpMethod: "GET",
|
|
236
318
|
responses: {
|
|
237
319
|
200: {
|
|
238
320
|
bodyMapper: Mappers.CapabilitiesListResult
|
|
@@ -241,22 +323,18 @@ const listCapabilitiesOperationSpec: msRest.OperationSpec = {
|
|
|
241
323
|
bodyMapper: Mappers.CloudError
|
|
242
324
|
}
|
|
243
325
|
},
|
|
326
|
+
queryParameters: [Parameters.apiVersion],
|
|
327
|
+
urlParameters: [
|
|
328
|
+
Parameters.$host,
|
|
329
|
+
Parameters.subscriptionId,
|
|
330
|
+
Parameters.location
|
|
331
|
+
],
|
|
332
|
+
headerParameters: [Parameters.accept],
|
|
244
333
|
serializer
|
|
245
334
|
};
|
|
246
|
-
|
|
247
|
-
const listCachedImagesNextOperationSpec: msRest.OperationSpec = {
|
|
248
|
-
httpMethod: "GET",
|
|
249
|
-
baseUrl: "https://management.azure.com",
|
|
335
|
+
const listCachedImagesNextOperationSpec: coreClient.OperationSpec = {
|
|
250
336
|
path: "{nextLink}",
|
|
251
|
-
|
|
252
|
-
Parameters.nextPageLink
|
|
253
|
-
],
|
|
254
|
-
queryParameters: [
|
|
255
|
-
Parameters.apiVersion
|
|
256
|
-
],
|
|
257
|
-
headerParameters: [
|
|
258
|
-
Parameters.acceptLanguage
|
|
259
|
-
],
|
|
337
|
+
httpMethod: "GET",
|
|
260
338
|
responses: {
|
|
261
339
|
200: {
|
|
262
340
|
bodyMapper: Mappers.CachedImagesListResult
|
|
@@ -265,22 +343,19 @@ const listCachedImagesNextOperationSpec: msRest.OperationSpec = {
|
|
|
265
343
|
bodyMapper: Mappers.CloudError
|
|
266
344
|
}
|
|
267
345
|
},
|
|
346
|
+
queryParameters: [Parameters.apiVersion],
|
|
347
|
+
urlParameters: [
|
|
348
|
+
Parameters.$host,
|
|
349
|
+
Parameters.subscriptionId,
|
|
350
|
+
Parameters.nextLink,
|
|
351
|
+
Parameters.location
|
|
352
|
+
],
|
|
353
|
+
headerParameters: [Parameters.accept],
|
|
268
354
|
serializer
|
|
269
355
|
};
|
|
270
|
-
|
|
271
|
-
const listCapabilitiesNextOperationSpec: msRest.OperationSpec = {
|
|
272
|
-
httpMethod: "GET",
|
|
273
|
-
baseUrl: "https://management.azure.com",
|
|
356
|
+
const listCapabilitiesNextOperationSpec: coreClient.OperationSpec = {
|
|
274
357
|
path: "{nextLink}",
|
|
275
|
-
|
|
276
|
-
Parameters.nextPageLink
|
|
277
|
-
],
|
|
278
|
-
queryParameters: [
|
|
279
|
-
Parameters.apiVersion
|
|
280
|
-
],
|
|
281
|
-
headerParameters: [
|
|
282
|
-
Parameters.acceptLanguage
|
|
283
|
-
],
|
|
358
|
+
httpMethod: "GET",
|
|
284
359
|
responses: {
|
|
285
360
|
200: {
|
|
286
361
|
bodyMapper: Mappers.CapabilitiesListResult
|
|
@@ -289,5 +364,13 @@ const listCapabilitiesNextOperationSpec: msRest.OperationSpec = {
|
|
|
289
364
|
bodyMapper: Mappers.CloudError
|
|
290
365
|
}
|
|
291
366
|
},
|
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
|
368
|
+
urlParameters: [
|
|
369
|
+
Parameters.$host,
|
|
370
|
+
Parameters.subscriptionId,
|
|
371
|
+
Parameters.nextLink,
|
|
372
|
+
Parameters.location
|
|
373
|
+
],
|
|
374
|
+
headerParameters: [Parameters.accept],
|
|
292
375
|
serializer
|
|
293
376
|
};
|