@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.
Files changed (154) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +70 -78
  4. package/dist/index.js +3335 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/containerInstanceManagementClient.d.ts +22 -0
  9. package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/containerInstanceManagementClient.js +55 -0
  11. package/dist-esm/src/containerInstanceManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +964 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +70 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +54 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +799 -788
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +17 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/parameters.js +67 -37
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/containerGroups.d.ts +159 -0
  33. package/dist-esm/src/operations/containerGroups.d.ts.map +1 -0
  34. package/dist-esm/src/operations/containerGroups.js +678 -0
  35. package/dist-esm/src/operations/containerGroups.js.map +1 -0
  36. package/dist-esm/src/operations/containers.d.ts +40 -0
  37. package/dist-esm/src/operations/containers.d.ts.map +1 -0
  38. package/dist-esm/src/operations/containers.js +134 -0
  39. package/dist-esm/src/operations/containers.js.map +1 -0
  40. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/operations/index.js +1 -2
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/location.d.ts +70 -0
  45. package/dist-esm/src/operations/location.d.ts.map +1 -0
  46. package/dist-esm/src/operations/location.js +310 -0
  47. package/dist-esm/src/operations/location.js.map +1 -0
  48. package/dist-esm/src/operations/operations.d.ts +32 -0
  49. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/operations.js +120 -0
  51. package/dist-esm/src/operations/operations.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +119 -0
  53. package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -0
  54. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/containerGroups.js} +2 -7
  55. package/dist-esm/src/operationsInterfaces/containerGroups.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/containers.d.ts +32 -0
  57. package/dist-esm/src/operationsInterfaces/containers.d.ts.map +1 -0
  58. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/containers.js} +2 -2
  59. package/dist-esm/src/operationsInterfaces/containers.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/location.d.ts +24 -0
  65. package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
  66. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/location.js} +2 -1
  67. package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/{src/models/containersMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -9
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/test/containerinstance_examples.d.ts +4 -0
  73. package/dist-esm/test/containerinstance_examples.d.ts.map +1 -0
  74. package/dist-esm/test/containerinstance_examples.js +156 -0
  75. package/dist-esm/test/containerinstance_examples.js.map +1 -0
  76. package/package.json +65 -32
  77. package/review/arm-containerinstance.api.md +752 -0
  78. package/rollup.config.js +181 -30
  79. package/src/containerInstanceManagementClient.ts +78 -40
  80. package/src/index.ts +12 -0
  81. package/src/lroImpl.ts +34 -0
  82. package/src/models/index.ts +734 -1215
  83. package/src/models/mappers.ts +808 -793
  84. package/src/models/parameters.ts +90 -38
  85. package/src/operations/containerGroups.ts +660 -424
  86. package/src/operations/containers.ts +89 -143
  87. package/src/operations/index.ts +1 -2
  88. package/src/operations/location.ts +262 -179
  89. package/src/operations/operations.ts +85 -73
  90. package/src/operationsInterfaces/containerGroups.ts +212 -0
  91. package/src/operationsInterfaces/containers.ts +64 -0
  92. package/src/operationsInterfaces/index.ts +12 -0
  93. package/src/operationsInterfaces/location.ts +49 -0
  94. package/src/operationsInterfaces/operations.ts +22 -0
  95. package/tsconfig.json +3 -3
  96. package/types/arm-containerinstance.d.ts +1282 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-containerinstance.js +0 -3019
  99. package/dist/arm-containerinstance.js.map +0 -1
  100. package/dist/arm-containerinstance.min.js +0 -1
  101. package/dist/arm-containerinstance.min.js.map +0 -1
  102. package/esm/containerInstanceManagementClient.d.ts +0 -28
  103. package/esm/containerInstanceManagementClient.d.ts.map +0 -1
  104. package/esm/containerInstanceManagementClient.js +0 -41
  105. package/esm/containerInstanceManagementClient.js.map +0 -1
  106. package/esm/containerInstanceManagementClientContext.d.ts +0 -23
  107. package/esm/containerInstanceManagementClientContext.d.ts.map +0 -1
  108. package/esm/containerInstanceManagementClientContext.js +0 -61
  109. package/esm/containerInstanceManagementClientContext.js.map +0 -1
  110. package/esm/models/containerGroupsMappers.d.ts +0 -2
  111. package/esm/models/containerGroupsMappers.d.ts.map +0 -1
  112. package/esm/models/containerGroupsMappers.js +0 -9
  113. package/esm/models/containerGroupsMappers.js.map +0 -1
  114. package/esm/models/containersMappers.d.ts +0 -2
  115. package/esm/models/containersMappers.d.ts.map +0 -1
  116. package/esm/models/containersMappers.js +0 -9
  117. package/esm/models/containersMappers.js.map +0 -1
  118. package/esm/models/index.d.ts +0 -1469
  119. package/esm/models/index.d.ts.map +0 -1
  120. package/esm/models/index.js.map +0 -1
  121. package/esm/models/locationMappers.d.ts +0 -2
  122. package/esm/models/locationMappers.d.ts.map +0 -1
  123. package/esm/models/locationMappers.js +0 -9
  124. package/esm/models/locationMappers.js.map +0 -1
  125. package/esm/models/mappers.d.ts +0 -54
  126. package/esm/models/mappers.d.ts.map +0 -1
  127. package/esm/models/mappers.js.map +0 -1
  128. package/esm/models/operationsMappers.d.ts +0 -2
  129. package/esm/models/operationsMappers.d.ts.map +0 -1
  130. package/esm/models/operationsMappers.js.map +0 -1
  131. package/esm/models/parameters.d.ts +0 -12
  132. package/esm/models/parameters.d.ts.map +0 -1
  133. package/esm/models/parameters.js.map +0 -1
  134. package/esm/operations/containerGroups.d.ts +0 -247
  135. package/esm/operations/containerGroups.d.ts.map +0 -1
  136. package/esm/operations/containerGroups.js +0 -455
  137. package/esm/operations/containerGroups.js.map +0 -1
  138. package/esm/operations/containers.d.ts +0 -94
  139. package/esm/operations/containers.d.ts.map +0 -1
  140. package/esm/operations/containers.js +0 -133
  141. package/esm/operations/containers.js.map +0 -1
  142. package/esm/operations/index.d.ts.map +0 -1
  143. package/esm/operations/index.js.map +0 -1
  144. package/esm/operations/location.d.ts +0 -107
  145. package/esm/operations/location.d.ts.map +0 -1
  146. package/esm/operations/location.js +0 -171
  147. package/esm/operations/location.js.map +0 -1
  148. package/esm/operations/operations.d.ts +0 -46
  149. package/esm/operations/operations.d.ts.map +0 -1
  150. package/esm/operations/operations.js +0 -79
  151. package/esm/operations/operations.js.map +0 -1
  152. package/src/containerInstanceManagementClientContext.ts +0 -68
  153. package/src/models/containerGroupsMappers.ts +0 -46
  154. 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 * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/locationMappers";
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 { ContainerInstanceManagementClientContext } from "../containerInstanceManagementClientContext";
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
- /** Class representing a Location. */
17
- export class Location {
18
- private readonly client: ContainerInstanceManagementClientContext;
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
- * Create a Location.
22
- * @param {ContainerInstanceManagementClientContext} client Reference to the service client.
37
+ * Initialize a new instance of the class Location class.
38
+ * @param client Reference to the service client
23
39
  */
24
- constructor(client: ContainerInstanceManagementClientContext) {
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 [options] The optional parameters
32
- * @returns Promise<Models.LocationListUsageResponse>
47
+ * @param options The options parameters.
33
48
  */
34
- listUsage(location: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationListUsageResponse>;
35
- /**
36
- * @param location The identifier for the physical azure location.
37
- * @param callback The callback
38
- */
39
- listUsage(location: string, callback: msRest.ServiceCallback<Models.UsageListResult>): void;
40
- /**
41
- * @param location The identifier for the physical azure location.
42
- * @param options The optional parameters
43
- * @param callback The callback
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
- listUsageOperationSpec,
53
- callback) as Promise<Models.LocationListUsageResponse>;
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 [options] The optional parameters
61
- * @returns Promise<Models.LocationListCachedImagesResponse>
87
+ * @param options The options parameters.
62
88
  */
63
- listCachedImages(location: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationListCachedImagesResponse>;
64
- /**
65
- * @param location The identifier for the physical azure location.
66
- * @param callback The callback
67
- */
68
- listCachedImages(location: string, callback: msRest.ServiceCallback<Models.CachedImagesListResult>): void;
69
- /**
70
- * @param location The identifier for the physical azure location.
71
- * @param options The optional parameters
72
- * @param callback The callback
73
- */
74
- listCachedImages(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CachedImagesListResult>): void;
75
- listCachedImages(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CachedImagesListResult>, callback?: msRest.ServiceCallback<Models.CachedImagesListResult>): Promise<Models.LocationListCachedImagesResponse> {
76
- return this.client.sendOperationRequest(
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
- listCachedImagesOperationSpec,
82
- callback) as Promise<Models.LocationListCachedImagesResponse>;
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 callback The callback
140
+ * @param options The options parameters.
96
141
  */
97
- listCapabilities(location: string, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
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 optional parameters
101
- * @param callback The callback
193
+ * @param options The options parameters.
102
194
  */
103
- listCapabilities(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
104
- listCapabilities(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CapabilitiesListResult>, callback?: msRest.ServiceCallback<Models.CapabilitiesListResult>): Promise<Models.LocationListCapabilitiesResponse> {
195
+ private _listUsage(
196
+ location: string,
197
+ options?: LocationListUsageOptionalParams
198
+ ): Promise<LocationListUsageResponse> {
105
199
  return this.client.sendOperationRequest(
106
- {
107
- location,
108
- options
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
- * @summary Get the list of cached images.
117
- * @param nextPageLink The NextLink from the previous successful call to List operation.
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
- listCachedImagesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CachedImagesListResult>): void;
133
- listCachedImagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CachedImagesListResult>, callback?: msRest.ServiceCallback<Models.CachedImagesListResult>): Promise<Models.LocationListCachedImagesNextResponse> {
210
+ private _listCachedImages(
211
+ location: string,
212
+ options?: LocationListCachedImagesOptionalParams
213
+ ): Promise<LocationListCachedImagesResponse> {
134
214
  return this.client.sendOperationRequest(
135
- {
136
- nextPageLink,
137
- options
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
- * @summary Get the list of capabilities of the location.
146
- * @param nextPageLink The NextLink from the previous successful call to List operation.
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
- listCapabilitiesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationListCapabilitiesNextResponse>;
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
- * @param nextPageLink The NextLink from the previous successful call to List operation.
153
- * @param callback The callback
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
- listCapabilitiesNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
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
- * @param nextPageLink The NextLink from the previous successful call to List operation.
158
- * @param options The optional parameters
159
- * @param callback The callback
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
- listCapabilitiesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
162
- listCapabilitiesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CapabilitiesListResult>, callback?: msRest.ServiceCallback<Models.CapabilitiesListResult>): Promise<Models.LocationListCapabilitiesNextResponse> {
258
+ private _listCapabilitiesNext(
259
+ location: string,
260
+ nextLink: string,
261
+ options?: LocationListCapabilitiesNextOptionalParams
262
+ ): Promise<LocationListCapabilitiesNextResponse> {
163
263
  return this.client.sendOperationRequest(
164
- {
165
- nextPageLink,
166
- options
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 = new msRest.Serializer(Mappers);
175
- const listUsageOperationSpec: msRest.OperationSpec = {
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
- serializer
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
- queryParameters: [
207
- Parameters.apiVersion
208
- ],
209
- headerParameters: [
210
- Parameters.acceptLanguage
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
- serializer
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
- queryParameters: [
231
- Parameters.apiVersion
232
- ],
233
- headerParameters: [
234
- Parameters.acceptLanguage
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
- urlParameters: [
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
- urlParameters: [
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
  };