@azure/arm-containerinstance 9.1.1-alpha.20241024.1 → 9.2.0-beta.1

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 (159) hide show
  1. package/CHANGELOG.md +41 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1855 -966
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js +40 -0
  11. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js.map +1 -0
  12. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js +55 -0
  15. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js.map +1 -0
  16. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js +260 -0
  19. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js +39 -0
  23. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/containerGroupProfilesGetSample.js +58 -0
  27. package/dist-esm/samples-dev/containerGroupProfilesGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js +54 -0
  31. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js.map +1 -0
  32. package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/containerGroupProfilesListSample.js +53 -0
  35. package/dist-esm/samples-dev/containerGroupProfilesListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js +42 -0
  39. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js.map +1 -0
  40. package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +88 -51
  41. package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
  42. package/dist-esm/samples-dev/containerGroupsDeleteSample.js +3 -2
  43. package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +1 -1
  44. package/dist-esm/samples-dev/containerGroupsGetSample.js +9 -6
  45. package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +3 -2
  47. package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
  48. package/dist-esm/samples-dev/containerGroupsListSample.js +3 -2
  49. package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
  50. package/dist-esm/samples-dev/containerGroupsRestartSample.js +3 -2
  51. package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +1 -1
  52. package/dist-esm/samples-dev/containerGroupsStartSample.js +3 -2
  53. package/dist-esm/samples-dev/containerGroupsStartSample.js.map +1 -1
  54. package/dist-esm/samples-dev/containerGroupsStopSample.js +3 -2
  55. package/dist-esm/samples-dev/containerGroupsStopSample.js.map +1 -1
  56. package/dist-esm/samples-dev/containerGroupsUpdateSample.js +5 -4
  57. package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +1 -1
  58. package/dist-esm/samples-dev/containersAttachSample.js +3 -2
  59. package/dist-esm/samples-dev/containersAttachSample.js.map +1 -1
  60. package/dist-esm/samples-dev/containersExecuteCommandSample.js +5 -4
  61. package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +1 -1
  62. package/dist-esm/samples-dev/containersListLogsSample.js +4 -3
  63. package/dist-esm/samples-dev/containersListLogsSample.js.map +1 -1
  64. package/dist-esm/samples-dev/locationListCachedImagesSample.js +3 -2
  65. package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
  66. package/dist-esm/samples-dev/locationListCapabilitiesSample.js +3 -2
  67. package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
  68. package/dist-esm/samples-dev/locationListUsageSample.js +3 -2
  69. package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
  70. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  71. package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +3 -2
  72. package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js.map +1 -1
  73. package/dist-esm/src/containerInstanceManagementClient.d.ts +4 -3
  74. package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -1
  75. package/dist-esm/src/containerInstanceManagementClient.js +13 -11
  76. package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
  77. package/dist-esm/src/lroImpl.js +1 -1
  78. package/dist-esm/src/models/index.d.ts +145 -3
  79. package/dist-esm/src/models/index.d.ts.map +1 -1
  80. package/dist-esm/src/models/index.js.map +1 -1
  81. package/dist-esm/src/models/mappers.d.ts +7 -0
  82. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  83. package/dist-esm/src/models/mappers.js +898 -640
  84. package/dist-esm/src/models/mappers.js.map +1 -1
  85. package/dist-esm/src/models/parameters.d.ts +4 -0
  86. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  87. package/dist-esm/src/models/parameters.js +87 -47
  88. package/dist-esm/src/models/parameters.js.map +1 -1
  89. package/dist-esm/src/operations/containerGroupProfileOperations.d.ts +55 -0
  90. package/dist-esm/src/operations/containerGroupProfileOperations.d.ts.map +1 -0
  91. package/dist-esm/src/operations/containerGroupProfileOperations.js +191 -0
  92. package/dist-esm/src/operations/containerGroupProfileOperations.js.map +1 -0
  93. package/dist-esm/src/operations/containerGroupProfiles.d.ts +95 -0
  94. package/dist-esm/src/operations/containerGroupProfiles.d.ts.map +1 -0
  95. package/dist-esm/src/operations/containerGroupProfiles.js +401 -0
  96. package/dist-esm/src/operations/containerGroupProfiles.js.map +1 -0
  97. package/dist-esm/src/operations/containerGroups.d.ts +15 -15
  98. package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
  99. package/dist-esm/src/operations/containerGroups.js +97 -97
  100. package/dist-esm/src/operations/containerGroups.js.map +1 -1
  101. package/dist-esm/src/operations/containers.d.ts +3 -3
  102. package/dist-esm/src/operations/containers.js +20 -20
  103. package/dist-esm/src/operations/containers.js.map +1 -1
  104. package/dist-esm/src/operations/index.d.ts +2 -0
  105. package/dist-esm/src/operations/index.d.ts.map +1 -1
  106. package/dist-esm/src/operations/index.js +2 -0
  107. package/dist-esm/src/operations/index.js.map +1 -1
  108. package/dist-esm/src/operations/location.d.ts +8 -8
  109. package/dist-esm/src/operations/location.js +36 -36
  110. package/dist-esm/src/operations/location.js.map +1 -1
  111. package/dist-esm/src/operations/operations.js +9 -9
  112. package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
  113. package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
  114. package/dist-esm/src/operations/subnetServiceAssociationLink.js +11 -11
  115. package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
  117. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
  121. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +13 -13
  125. package/dist-esm/src/operationsInterfaces/containers.d.ts +3 -3
  126. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  127. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  129. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  130. package/dist-esm/src/operationsInterfaces/location.d.ts +3 -3
  131. package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
  132. package/dist-esm/test/containerinstance_examples.d.ts.map +1 -1
  133. package/dist-esm/test/containerinstance_examples.js +1 -4
  134. package/dist-esm/test/containerinstance_examples.js.map +1 -1
  135. package/package.json +30 -31
  136. package/review/arm-containerinstance.api.md +155 -3
  137. package/src/containerInstanceManagementClient.ts +29 -20
  138. package/src/lroImpl.ts +3 -3
  139. package/src/models/index.ts +194 -17
  140. package/src/models/mappers.ts +974 -702
  141. package/src/models/parameters.ts +94 -48
  142. package/src/operations/containerGroupProfileOperations.ts +255 -0
  143. package/src/operations/containerGroupProfiles.ts +485 -0
  144. package/src/operations/containerGroups.ts +188 -201
  145. package/src/operations/containers.ts +30 -33
  146. package/src/operations/index.ts +2 -0
  147. package/src/operations/location.ts +63 -66
  148. package/src/operations/operations.ts +16 -16
  149. package/src/operations/subnetServiceAssociationLink.ts +24 -25
  150. package/src/operationsInterfaces/containerGroupProfileOperations.ts +50 -0
  151. package/src/operationsInterfaces/containerGroupProfiles.ts +99 -0
  152. package/src/operationsInterfaces/containerGroups.ts +28 -28
  153. package/src/operationsInterfaces/containers.ts +7 -7
  154. package/src/operationsInterfaces/index.ts +2 -0
  155. package/src/operationsInterfaces/location.ts +7 -7
  156. package/src/operationsInterfaces/operations.ts +1 -1
  157. package/src/operationsInterfaces/subnetServiceAssociationLink.ts +4 -4
  158. package/src/pagingHelper.ts +1 -1
  159. package/types/arm-containerinstance.d.ts +275 -26
@@ -18,7 +18,7 @@ import {
18
18
  ContainersExecuteCommandOptionalParams,
19
19
  ContainersExecuteCommandResponse,
20
20
  ContainersAttachOptionalParams,
21
- ContainersAttachResponse
21
+ ContainersAttachResponse,
22
22
  } from "../models";
23
23
 
24
24
  /** Class containing Containers operations. */
@@ -35,7 +35,7 @@ export class ContainersImpl implements Containers {
35
35
 
36
36
  /**
37
37
  * Get the logs for a specified container instance in a specified resource group and container group.
38
- * @param resourceGroupName The name of the resource group.
38
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
39
  * @param containerGroupName The name of the container group.
40
40
  * @param containerName The name of the container instance.
41
41
  * @param options The options parameters.
@@ -44,18 +44,18 @@ export class ContainersImpl implements Containers {
44
44
  resourceGroupName: string,
45
45
  containerGroupName: string,
46
46
  containerName: string,
47
- options?: ContainersListLogsOptionalParams
47
+ options?: ContainersListLogsOptionalParams,
48
48
  ): Promise<ContainersListLogsResponse> {
49
49
  return this.client.sendOperationRequest(
50
50
  { resourceGroupName, containerGroupName, containerName, options },
51
- listLogsOperationSpec
51
+ listLogsOperationSpec,
52
52
  );
53
53
  }
54
54
 
55
55
  /**
56
56
  * Executes a command for a specific container instance in a specified resource group and container
57
57
  * group.
58
- * @param resourceGroupName The name of the resource group.
58
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
59
59
  * @param containerGroupName The name of the container group.
60
60
  * @param containerName The name of the container instance.
61
61
  * @param containerExecRequest The request for the exec command.
@@ -66,7 +66,7 @@ export class ContainersImpl implements Containers {
66
66
  containerGroupName: string,
67
67
  containerName: string,
68
68
  containerExecRequest: ContainerExecRequest,
69
- options?: ContainersExecuteCommandOptionalParams
69
+ options?: ContainersExecuteCommandOptionalParams,
70
70
  ): Promise<ContainersExecuteCommandResponse> {
71
71
  return this.client.sendOperationRequest(
72
72
  {
@@ -74,16 +74,16 @@ export class ContainersImpl implements Containers {
74
74
  containerGroupName,
75
75
  containerName,
76
76
  containerExecRequest,
77
- options
77
+ options,
78
78
  },
79
- executeCommandOperationSpec
79
+ executeCommandOperationSpec,
80
80
  );
81
81
  }
82
82
 
83
83
  /**
84
84
  * Attach to the output stream of a specific container instance in a specified resource group and
85
85
  * container group.
86
- * @param resourceGroupName The name of the resource group.
86
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
87
87
  * @param containerGroupName The name of the container group.
88
88
  * @param containerName The name of the container instance.
89
89
  * @param options The options parameters.
@@ -92,11 +92,11 @@ export class ContainersImpl implements Containers {
92
92
  resourceGroupName: string,
93
93
  containerGroupName: string,
94
94
  containerName: string,
95
- options?: ContainersAttachOptionalParams
95
+ options?: ContainersAttachOptionalParams,
96
96
  ): Promise<ContainersAttachResponse> {
97
97
  return this.client.sendOperationRequest(
98
98
  { resourceGroupName, containerGroupName, containerName, options },
99
- attachOperationSpec
99
+ attachOperationSpec,
100
100
  );
101
101
  }
102
102
  }
@@ -104,43 +104,41 @@ export class ContainersImpl implements Containers {
104
104
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
105
 
106
106
  const listLogsOperationSpec: coreClient.OperationSpec = {
107
- path:
108
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
107
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
109
108
  httpMethod: "GET",
110
109
  responses: {
111
110
  200: {
112
- bodyMapper: Mappers.Logs
111
+ bodyMapper: Mappers.Logs,
113
112
  },
114
113
  default: {
115
- bodyMapper: Mappers.CloudError
116
- }
114
+ bodyMapper: Mappers.CloudError,
115
+ },
117
116
  },
118
117
  queryParameters: [
119
118
  Parameters.apiVersion,
120
119
  Parameters.tail,
121
- Parameters.timestamps
120
+ Parameters.timestamps,
122
121
  ],
123
122
  urlParameters: [
124
123
  Parameters.$host,
125
124
  Parameters.subscriptionId,
126
125
  Parameters.resourceGroupName,
127
126
  Parameters.containerGroupName,
128
- Parameters.containerName
127
+ Parameters.containerName,
129
128
  ],
130
129
  headerParameters: [Parameters.accept],
131
- serializer
130
+ serializer,
132
131
  };
133
132
  const executeCommandOperationSpec: coreClient.OperationSpec = {
134
- path:
135
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
133
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
136
134
  httpMethod: "POST",
137
135
  responses: {
138
136
  200: {
139
- bodyMapper: Mappers.ContainerExecResponse
137
+ bodyMapper: Mappers.ContainerExecResponse,
140
138
  },
141
139
  default: {
142
- bodyMapper: Mappers.CloudError
143
- }
140
+ bodyMapper: Mappers.CloudError,
141
+ },
144
142
  },
145
143
  requestBody: Parameters.containerExecRequest,
146
144
  queryParameters: [Parameters.apiVersion],
@@ -149,23 +147,22 @@ const executeCommandOperationSpec: coreClient.OperationSpec = {
149
147
  Parameters.subscriptionId,
150
148
  Parameters.resourceGroupName,
151
149
  Parameters.containerGroupName,
152
- Parameters.containerName
150
+ Parameters.containerName,
153
151
  ],
154
152
  headerParameters: [Parameters.accept, Parameters.contentType],
155
153
  mediaType: "json",
156
- serializer
154
+ serializer,
157
155
  };
158
156
  const attachOperationSpec: coreClient.OperationSpec = {
159
- path:
160
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
157
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
161
158
  httpMethod: "POST",
162
159
  responses: {
163
160
  200: {
164
- bodyMapper: Mappers.ContainerAttachResponse
161
+ bodyMapper: Mappers.ContainerAttachResponse,
165
162
  },
166
163
  default: {
167
- bodyMapper: Mappers.CloudError
168
- }
164
+ bodyMapper: Mappers.CloudError,
165
+ },
169
166
  },
170
167
  queryParameters: [Parameters.apiVersion],
171
168
  urlParameters: [
@@ -173,8 +170,8 @@ const attachOperationSpec: coreClient.OperationSpec = {
173
170
  Parameters.subscriptionId,
174
171
  Parameters.resourceGroupName,
175
172
  Parameters.containerGroupName,
176
- Parameters.containerName
173
+ Parameters.containerName,
177
174
  ],
178
175
  headerParameters: [Parameters.accept],
179
- serializer
176
+ serializer,
180
177
  };
@@ -11,3 +11,5 @@ export * from "./operations";
11
11
  export * from "./location";
12
12
  export * from "./containers";
13
13
  export * from "./subnetServiceAssociationLink";
14
+ export * from "./containerGroupProfiles";
15
+ export * from "./containerGroupProfileOperations";
@@ -26,7 +26,7 @@ import {
26
26
  LocationListCapabilitiesOptionalParams,
27
27
  LocationListCapabilitiesResponse,
28
28
  LocationListCachedImagesNextResponse,
29
- LocationListCapabilitiesNextResponse
29
+ LocationListCapabilitiesNextResponse,
30
30
  } from "../models";
31
31
 
32
32
  /// <reference lib="esnext.asynciterable" />
@@ -44,12 +44,12 @@ export class LocationImpl implements Location {
44
44
 
45
45
  /**
46
46
  * Get the usage for a subscription
47
- * @param location The identifier for the physical azure location.
47
+ * @param location The name of the Azure region.
48
48
  * @param options The options parameters.
49
49
  */
50
50
  public listUsage(
51
51
  location: string,
52
- options?: LocationListUsageOptionalParams
52
+ options?: LocationListUsageOptionalParams,
53
53
  ): PagedAsyncIterableIterator<Usage> {
54
54
  const iter = this.listUsagePagingAll(location, options);
55
55
  return {
@@ -64,14 +64,14 @@ export class LocationImpl implements Location {
64
64
  throw new Error("maxPageSize is not supported by this operation.");
65
65
  }
66
66
  return this.listUsagePagingPage(location, options, settings);
67
- }
67
+ },
68
68
  };
69
69
  }
70
70
 
71
71
  private async *listUsagePagingPage(
72
72
  location: string,
73
73
  options?: LocationListUsageOptionalParams,
74
- _settings?: PageSettings
74
+ _settings?: PageSettings,
75
75
  ): AsyncIterableIterator<Usage[]> {
76
76
  let result: LocationListUsageResponse;
77
77
  result = await this._listUsage(location, options);
@@ -80,7 +80,7 @@ export class LocationImpl implements Location {
80
80
 
81
81
  private async *listUsagePagingAll(
82
82
  location: string,
83
- options?: LocationListUsageOptionalParams
83
+ options?: LocationListUsageOptionalParams,
84
84
  ): AsyncIterableIterator<Usage> {
85
85
  for await (const page of this.listUsagePagingPage(location, options)) {
86
86
  yield* page;
@@ -89,12 +89,12 @@ export class LocationImpl implements Location {
89
89
 
90
90
  /**
91
91
  * Get the list of cached images on specific OS type for a subscription in a region.
92
- * @param location The identifier for the physical azure location.
92
+ * @param location The name of the Azure region.
93
93
  * @param options The options parameters.
94
94
  */
95
95
  public listCachedImages(
96
96
  location: string,
97
- options?: LocationListCachedImagesOptionalParams
97
+ options?: LocationListCachedImagesOptionalParams,
98
98
  ): PagedAsyncIterableIterator<CachedImages> {
99
99
  const iter = this.listCachedImagesPagingAll(location, options);
100
100
  return {
@@ -109,14 +109,14 @@ export class LocationImpl implements Location {
109
109
  throw new Error("maxPageSize is not supported by this operation.");
110
110
  }
111
111
  return this.listCachedImagesPagingPage(location, options, settings);
112
- }
112
+ },
113
113
  };
114
114
  }
115
115
 
116
116
  private async *listCachedImagesPagingPage(
117
117
  location: string,
118
118
  options?: LocationListCachedImagesOptionalParams,
119
- settings?: PageSettings
119
+ settings?: PageSettings,
120
120
  ): AsyncIterableIterator<CachedImages[]> {
121
121
  let result: LocationListCachedImagesResponse;
122
122
  let continuationToken = settings?.continuationToken;
@@ -131,7 +131,7 @@ export class LocationImpl implements Location {
131
131
  result = await this._listCachedImagesNext(
132
132
  location,
133
133
  continuationToken,
134
- options
134
+ options,
135
135
  );
136
136
  continuationToken = result.nextLink;
137
137
  let page = result.value || [];
@@ -142,11 +142,11 @@ export class LocationImpl implements Location {
142
142
 
143
143
  private async *listCachedImagesPagingAll(
144
144
  location: string,
145
- options?: LocationListCachedImagesOptionalParams
145
+ options?: LocationListCachedImagesOptionalParams,
146
146
  ): AsyncIterableIterator<CachedImages> {
147
147
  for await (const page of this.listCachedImagesPagingPage(
148
148
  location,
149
- options
149
+ options,
150
150
  )) {
151
151
  yield* page;
152
152
  }
@@ -154,12 +154,12 @@ export class LocationImpl implements Location {
154
154
 
155
155
  /**
156
156
  * Get the list of CPU/memory/GPU capabilities of a region.
157
- * @param location The identifier for the physical azure location.
157
+ * @param location The name of the Azure region.
158
158
  * @param options The options parameters.
159
159
  */
160
160
  public listCapabilities(
161
161
  location: string,
162
- options?: LocationListCapabilitiesOptionalParams
162
+ options?: LocationListCapabilitiesOptionalParams,
163
163
  ): PagedAsyncIterableIterator<Capabilities> {
164
164
  const iter = this.listCapabilitiesPagingAll(location, options);
165
165
  return {
@@ -174,14 +174,14 @@ export class LocationImpl implements Location {
174
174
  throw new Error("maxPageSize is not supported by this operation.");
175
175
  }
176
176
  return this.listCapabilitiesPagingPage(location, options, settings);
177
- }
177
+ },
178
178
  };
179
179
  }
180
180
 
181
181
  private async *listCapabilitiesPagingPage(
182
182
  location: string,
183
183
  options?: LocationListCapabilitiesOptionalParams,
184
- settings?: PageSettings
184
+ settings?: PageSettings,
185
185
  ): AsyncIterableIterator<Capabilities[]> {
186
186
  let result: LocationListCapabilitiesResponse;
187
187
  let continuationToken = settings?.continuationToken;
@@ -196,7 +196,7 @@ export class LocationImpl implements Location {
196
196
  result = await this._listCapabilitiesNext(
197
197
  location,
198
198
  continuationToken,
199
- options
199
+ options,
200
200
  );
201
201
  continuationToken = result.nextLink;
202
202
  let page = result.value || [];
@@ -207,11 +207,11 @@ export class LocationImpl implements Location {
207
207
 
208
208
  private async *listCapabilitiesPagingAll(
209
209
  location: string,
210
- options?: LocationListCapabilitiesOptionalParams
210
+ options?: LocationListCapabilitiesOptionalParams,
211
211
  ): AsyncIterableIterator<Capabilities> {
212
212
  for await (const page of this.listCapabilitiesPagingPage(
213
213
  location,
214
- options
214
+ options,
215
215
  )) {
216
216
  yield* page;
217
217
  }
@@ -219,80 +219,80 @@ export class LocationImpl implements Location {
219
219
 
220
220
  /**
221
221
  * Get the usage for a subscription
222
- * @param location The identifier for the physical azure location.
222
+ * @param location The name of the Azure region.
223
223
  * @param options The options parameters.
224
224
  */
225
225
  private _listUsage(
226
226
  location: string,
227
- options?: LocationListUsageOptionalParams
227
+ options?: LocationListUsageOptionalParams,
228
228
  ): Promise<LocationListUsageResponse> {
229
229
  return this.client.sendOperationRequest(
230
230
  { location, options },
231
- listUsageOperationSpec
231
+ listUsageOperationSpec,
232
232
  );
233
233
  }
234
234
 
235
235
  /**
236
236
  * Get the list of cached images on specific OS type for a subscription in a region.
237
- * @param location The identifier for the physical azure location.
237
+ * @param location The name of the Azure region.
238
238
  * @param options The options parameters.
239
239
  */
240
240
  private _listCachedImages(
241
241
  location: string,
242
- options?: LocationListCachedImagesOptionalParams
242
+ options?: LocationListCachedImagesOptionalParams,
243
243
  ): Promise<LocationListCachedImagesResponse> {
244
244
  return this.client.sendOperationRequest(
245
245
  { location, options },
246
- listCachedImagesOperationSpec
246
+ listCachedImagesOperationSpec,
247
247
  );
248
248
  }
249
249
 
250
250
  /**
251
251
  * Get the list of CPU/memory/GPU capabilities of a region.
252
- * @param location The identifier for the physical azure location.
252
+ * @param location The name of the Azure region.
253
253
  * @param options The options parameters.
254
254
  */
255
255
  private _listCapabilities(
256
256
  location: string,
257
- options?: LocationListCapabilitiesOptionalParams
257
+ options?: LocationListCapabilitiesOptionalParams,
258
258
  ): Promise<LocationListCapabilitiesResponse> {
259
259
  return this.client.sendOperationRequest(
260
260
  { location, options },
261
- listCapabilitiesOperationSpec
261
+ listCapabilitiesOperationSpec,
262
262
  );
263
263
  }
264
264
 
265
265
  /**
266
266
  * ListCachedImagesNext
267
- * @param location The identifier for the physical azure location.
267
+ * @param location The name of the Azure region.
268
268
  * @param nextLink The nextLink from the previous successful call to the ListCachedImages method.
269
269
  * @param options The options parameters.
270
270
  */
271
271
  private _listCachedImagesNext(
272
272
  location: string,
273
273
  nextLink: string,
274
- options?: LocationListCachedImagesNextOptionalParams
274
+ options?: LocationListCachedImagesNextOptionalParams,
275
275
  ): Promise<LocationListCachedImagesNextResponse> {
276
276
  return this.client.sendOperationRequest(
277
277
  { location, nextLink, options },
278
- listCachedImagesNextOperationSpec
278
+ listCachedImagesNextOperationSpec,
279
279
  );
280
280
  }
281
281
 
282
282
  /**
283
283
  * ListCapabilitiesNext
284
- * @param location The identifier for the physical azure location.
284
+ * @param location The name of the Azure region.
285
285
  * @param nextLink The nextLink from the previous successful call to the ListCapabilities method.
286
286
  * @param options The options parameters.
287
287
  */
288
288
  private _listCapabilitiesNext(
289
289
  location: string,
290
290
  nextLink: string,
291
- options?: LocationListCapabilitiesNextOptionalParams
291
+ options?: LocationListCapabilitiesNextOptionalParams,
292
292
  ): Promise<LocationListCapabilitiesNextResponse> {
293
293
  return this.client.sendOperationRequest(
294
294
  { location, nextLink, options },
295
- listCapabilitiesNextOperationSpec
295
+ listCapabilitiesNextOperationSpec,
296
296
  );
297
297
  }
298
298
  }
@@ -300,105 +300,102 @@ export class LocationImpl implements Location {
300
300
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
301
301
 
302
302
  const listUsageOperationSpec: coreClient.OperationSpec = {
303
- path:
304
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
303
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
305
304
  httpMethod: "GET",
306
305
  responses: {
307
306
  200: {
308
- bodyMapper: Mappers.UsageListResult
307
+ bodyMapper: Mappers.UsageListResult,
309
308
  },
310
309
  default: {
311
- bodyMapper: Mappers.CloudError
312
- }
310
+ bodyMapper: Mappers.CloudError,
311
+ },
313
312
  },
314
313
  queryParameters: [Parameters.apiVersion],
315
314
  urlParameters: [
316
315
  Parameters.$host,
317
316
  Parameters.subscriptionId,
318
- Parameters.location
317
+ Parameters.location,
319
318
  ],
320
319
  headerParameters: [Parameters.accept],
321
- serializer
320
+ serializer,
322
321
  };
323
322
  const listCachedImagesOperationSpec: coreClient.OperationSpec = {
324
- path:
325
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
323
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
326
324
  httpMethod: "GET",
327
325
  responses: {
328
326
  200: {
329
- bodyMapper: Mappers.CachedImagesListResult
327
+ bodyMapper: Mappers.CachedImagesListResult,
330
328
  },
331
329
  default: {
332
- bodyMapper: Mappers.CloudError
333
- }
330
+ bodyMapper: Mappers.CloudError,
331
+ },
334
332
  },
335
333
  queryParameters: [Parameters.apiVersion],
336
334
  urlParameters: [
337
335
  Parameters.$host,
338
336
  Parameters.subscriptionId,
339
- Parameters.location
337
+ Parameters.location,
340
338
  ],
341
339
  headerParameters: [Parameters.accept],
342
- serializer
340
+ serializer,
343
341
  };
344
342
  const listCapabilitiesOperationSpec: coreClient.OperationSpec = {
345
- path:
346
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
343
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
347
344
  httpMethod: "GET",
348
345
  responses: {
349
346
  200: {
350
- bodyMapper: Mappers.CapabilitiesListResult
347
+ bodyMapper: Mappers.CapabilitiesListResult,
351
348
  },
352
349
  default: {
353
- bodyMapper: Mappers.CloudError
354
- }
350
+ bodyMapper: Mappers.CloudError,
351
+ },
355
352
  },
356
353
  queryParameters: [Parameters.apiVersion],
357
354
  urlParameters: [
358
355
  Parameters.$host,
359
356
  Parameters.subscriptionId,
360
- Parameters.location
357
+ Parameters.location,
361
358
  ],
362
359
  headerParameters: [Parameters.accept],
363
- serializer
360
+ serializer,
364
361
  };
365
362
  const listCachedImagesNextOperationSpec: coreClient.OperationSpec = {
366
363
  path: "{nextLink}",
367
364
  httpMethod: "GET",
368
365
  responses: {
369
366
  200: {
370
- bodyMapper: Mappers.CachedImagesListResult
367
+ bodyMapper: Mappers.CachedImagesListResult,
371
368
  },
372
369
  default: {
373
- bodyMapper: Mappers.CloudError
374
- }
370
+ bodyMapper: Mappers.CloudError,
371
+ },
375
372
  },
376
373
  urlParameters: [
377
374
  Parameters.$host,
378
375
  Parameters.subscriptionId,
379
376
  Parameters.nextLink,
380
- Parameters.location
377
+ Parameters.location,
381
378
  ],
382
379
  headerParameters: [Parameters.accept],
383
- serializer
380
+ serializer,
384
381
  };
385
382
  const listCapabilitiesNextOperationSpec: coreClient.OperationSpec = {
386
383
  path: "{nextLink}",
387
384
  httpMethod: "GET",
388
385
  responses: {
389
386
  200: {
390
- bodyMapper: Mappers.CapabilitiesListResult
387
+ bodyMapper: Mappers.CapabilitiesListResult,
391
388
  },
392
389
  default: {
393
- bodyMapper: Mappers.CloudError
394
- }
390
+ bodyMapper: Mappers.CloudError,
391
+ },
395
392
  },
396
393
  urlParameters: [
397
394
  Parameters.$host,
398
395
  Parameters.subscriptionId,
399
396
  Parameters.nextLink,
400
- Parameters.location
397
+ Parameters.location,
401
398
  ],
402
399
  headerParameters: [Parameters.accept],
403
- serializer
400
+ serializer,
404
401
  };
@@ -18,7 +18,7 @@ import {
18
18
  OperationsListNextOptionalParams,
19
19
  OperationsListOptionalParams,
20
20
  OperationsListResponse,
21
- OperationsListNextResponse
21
+ OperationsListNextResponse,
22
22
  } from "../models";
23
23
 
24
24
  /// <reference lib="esnext.asynciterable" />
@@ -39,7 +39,7 @@ export class OperationsImpl implements Operations {
39
39
  * @param options The options parameters.
40
40
  */
41
41
  public list(
42
- options?: OperationsListOptionalParams
42
+ options?: OperationsListOptionalParams,
43
43
  ): PagedAsyncIterableIterator<Operation> {
44
44
  const iter = this.listPagingAll(options);
45
45
  return {
@@ -54,13 +54,13 @@ export class OperationsImpl implements Operations {
54
54
  throw new Error("maxPageSize is not supported by this operation.");
55
55
  }
56
56
  return this.listPagingPage(options, settings);
57
- }
57
+ },
58
58
  };
59
59
  }
60
60
 
61
61
  private async *listPagingPage(
62
62
  options?: OperationsListOptionalParams,
63
- settings?: PageSettings
63
+ settings?: PageSettings,
64
64
  ): AsyncIterableIterator<Operation[]> {
65
65
  let result: OperationsListResponse;
66
66
  let continuationToken = settings?.continuationToken;
@@ -81,7 +81,7 @@ export class OperationsImpl implements Operations {
81
81
  }
82
82
 
83
83
  private async *listPagingAll(
84
- options?: OperationsListOptionalParams
84
+ options?: OperationsListOptionalParams,
85
85
  ): AsyncIterableIterator<Operation> {
86
86
  for await (const page of this.listPagingPage(options)) {
87
87
  yield* page;
@@ -93,7 +93,7 @@ export class OperationsImpl implements Operations {
93
93
  * @param options The options parameters.
94
94
  */
95
95
  private _list(
96
- options?: OperationsListOptionalParams
96
+ options?: OperationsListOptionalParams,
97
97
  ): Promise<OperationsListResponse> {
98
98
  return this.client.sendOperationRequest({ options }, listOperationSpec);
99
99
  }
@@ -105,11 +105,11 @@ export class OperationsImpl implements Operations {
105
105
  */
106
106
  private _listNext(
107
107
  nextLink: string,
108
- options?: OperationsListNextOptionalParams
108
+ options?: OperationsListNextOptionalParams,
109
109
  ): Promise<OperationsListNextResponse> {
110
110
  return this.client.sendOperationRequest(
111
111
  { nextLink, options },
112
- listNextOperationSpec
112
+ listNextOperationSpec,
113
113
  );
114
114
  }
115
115
  }
@@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = {
121
121
  httpMethod: "GET",
122
122
  responses: {
123
123
  200: {
124
- bodyMapper: Mappers.OperationListResult
124
+ bodyMapper: Mappers.OperationListResult,
125
125
  },
126
126
  default: {
127
- bodyMapper: Mappers.CloudError
128
- }
127
+ bodyMapper: Mappers.CloudError,
128
+ },
129
129
  },
130
130
  queryParameters: [Parameters.apiVersion],
131
131
  urlParameters: [Parameters.$host],
132
132
  headerParameters: [Parameters.accept],
133
- serializer
133
+ serializer,
134
134
  };
135
135
  const listNextOperationSpec: coreClient.OperationSpec = {
136
136
  path: "{nextLink}",
137
137
  httpMethod: "GET",
138
138
  responses: {
139
139
  200: {
140
- bodyMapper: Mappers.OperationListResult
140
+ bodyMapper: Mappers.OperationListResult,
141
141
  },
142
142
  default: {
143
- bodyMapper: Mappers.CloudError
144
- }
143
+ bodyMapper: Mappers.CloudError,
144
+ },
145
145
  },
146
146
  urlParameters: [Parameters.$host, Parameters.nextLink],
147
147
  headerParameters: [Parameters.accept],
148
- serializer
148
+ serializer,
149
149
  };