@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,92 +3,109 @@
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/operationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operations } 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
+ Operation,
17
+ OperationsListNextOptionalParams,
18
+ OperationsListOptionalParams,
19
+ OperationsListResponse,
20
+ OperationsListNextResponse
21
+ } from "../models";
15
22
 
16
- /** Class representing a Operations. */
17
- export class Operations {
18
- private readonly client: ContainerInstanceManagementClientContext;
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing Operations operations. */
25
+ export class OperationsImpl implements Operations {
26
+ private readonly client: ContainerInstanceManagementClient;
19
27
 
20
28
  /**
21
- * Create a Operations.
22
- * @param {ContainerInstanceManagementClientContext} client Reference to the service client.
29
+ * Initialize a new instance of the class Operations class.
30
+ * @param client Reference to the service client
23
31
  */
24
- constructor(client: ContainerInstanceManagementClientContext) {
32
+ constructor(client: ContainerInstanceManagementClient) {
25
33
  this.client = client;
26
34
  }
27
35
 
28
36
  /**
29
37
  * List the operations for Azure Container Instance service.
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.OperationsListResponse>
38
+ * @param options The options parameters.
32
39
  */
33
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
34
- /**
35
- * @param callback The callback
36
- */
37
- list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
38
- /**
39
- * @param options The optional parameters
40
- * @param callback The callback
41
- */
42
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
43
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
44
- return this.client.sendOperationRequest(
45
- {
46
- options
40
+ public list(
41
+ options?: OperationsListOptionalParams
42
+ ): PagedAsyncIterableIterator<Operation> {
43
+ const iter = this.listPagingAll(options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
+ },
48
+ [Symbol.asyncIterator]() {
49
+ return this;
47
50
  },
48
- listOperationSpec,
49
- callback) as Promise<Models.OperationsListResponse>;
51
+ byPage: () => {
52
+ return this.listPagingPage(options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listPagingPage(
58
+ options?: OperationsListOptionalParams
59
+ ): AsyncIterableIterator<Operation[]> {
60
+ let result = await this._list(options);
61
+ yield result.value || [];
62
+ let continuationToken = result.nextLink;
63
+ while (continuationToken) {
64
+ result = await this._listNext(continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ yield result.value || [];
67
+ }
68
+ }
69
+
70
+ private async *listPagingAll(
71
+ options?: OperationsListOptionalParams
72
+ ): AsyncIterableIterator<Operation> {
73
+ for await (const page of this.listPagingPage(options)) {
74
+ yield* page;
75
+ }
50
76
  }
51
77
 
52
78
  /**
53
79
  * List the operations for Azure Container Instance service.
54
- * @param nextPageLink The NextLink from the previous successful call to List operation.
55
- * @param [options] The optional parameters
56
- * @returns Promise<Models.OperationsListNextResponse>
57
- */
58
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
59
- /**
60
- * @param nextPageLink The NextLink from the previous successful call to List operation.
61
- * @param callback The callback
80
+ * @param options The options parameters.
62
81
  */
63
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
82
+ private _list(
83
+ options?: OperationsListOptionalParams
84
+ ): Promise<OperationsListResponse> {
85
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
86
+ }
87
+
64
88
  /**
65
- * @param nextPageLink The NextLink from the previous successful call to List operation.
66
- * @param options The optional parameters
67
- * @param callback The callback
89
+ * ListNext
90
+ * @param nextLink The nextLink from the previous successful call to the List method.
91
+ * @param options The options parameters.
68
92
  */
69
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
70
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListNextResponse> {
93
+ private _listNext(
94
+ nextLink: string,
95
+ options?: OperationsListNextOptionalParams
96
+ ): Promise<OperationsListNextResponse> {
71
97
  return this.client.sendOperationRequest(
72
- {
73
- nextPageLink,
74
- options
75
- },
76
- listNextOperationSpec,
77
- callback) as Promise<Models.OperationsListNextResponse>;
98
+ { nextLink, options },
99
+ listNextOperationSpec
100
+ );
78
101
  }
79
102
  }
80
-
81
103
  // Operation Specifications
82
- const serializer = new msRest.Serializer(Mappers);
83
- const listOperationSpec: msRest.OperationSpec = {
104
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
+
106
+ const listOperationSpec: coreClient.OperationSpec = {
107
+ path: "/providers/Microsoft.ContainerInstance/operations",
84
108
  httpMethod: "GET",
85
- path: "providers/Microsoft.ContainerInstance/operations",
86
- queryParameters: [
87
- Parameters.apiVersion
88
- ],
89
- headerParameters: [
90
- Parameters.acceptLanguage
91
- ],
92
109
  responses: {
93
110
  200: {
94
111
  bodyMapper: Mappers.OperationListResult
@@ -97,22 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
97
114
  bodyMapper: Mappers.CloudError
98
115
  }
99
116
  },
117
+ queryParameters: [Parameters.apiVersion],
118
+ urlParameters: [Parameters.$host],
119
+ headerParameters: [Parameters.accept],
100
120
  serializer
101
121
  };
102
-
103
- const listNextOperationSpec: msRest.OperationSpec = {
104
- httpMethod: "GET",
105
- baseUrl: "https://management.azure.com",
122
+ const listNextOperationSpec: coreClient.OperationSpec = {
106
123
  path: "{nextLink}",
107
- urlParameters: [
108
- Parameters.nextPageLink
109
- ],
110
- queryParameters: [
111
- Parameters.apiVersion
112
- ],
113
- headerParameters: [
114
- Parameters.acceptLanguage
115
- ],
124
+ httpMethod: "GET",
116
125
  responses: {
117
126
  200: {
118
127
  bodyMapper: Mappers.OperationListResult
@@ -121,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
121
130
  bodyMapper: Mappers.CloudError
122
131
  }
123
132
  },
133
+ queryParameters: [Parameters.apiVersion],
134
+ urlParameters: [Parameters.$host, Parameters.nextLink],
135
+ headerParameters: [Parameters.accept],
124
136
  serializer
125
137
  };
@@ -0,0 +1,212 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ ContainerGroup,
13
+ ContainerGroupsListOptionalParams,
14
+ ContainerGroupsListByResourceGroupOptionalParams,
15
+ ContainerGroupsGetOptionalParams,
16
+ ContainerGroupsGetResponse,
17
+ ContainerGroupsCreateOrUpdateOptionalParams,
18
+ ContainerGroupsCreateOrUpdateResponse,
19
+ Resource,
20
+ ContainerGroupsUpdateOptionalParams,
21
+ ContainerGroupsUpdateResponse,
22
+ ContainerGroupsDeleteOptionalParams,
23
+ ContainerGroupsDeleteResponse,
24
+ ContainerGroupsRestartOptionalParams,
25
+ ContainerGroupsStopOptionalParams,
26
+ ContainerGroupsStartOptionalParams,
27
+ ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams,
28
+ ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse
29
+ } from "../models";
30
+
31
+ /// <reference lib="esnext.asynciterable" />
32
+ /** Interface representing a ContainerGroups. */
33
+ export interface ContainerGroups {
34
+ /**
35
+ * Get a list of container groups in the specified subscription. This operation returns properties of
36
+ * each container group including containers, image registry credentials, restart policy, IP address
37
+ * type, OS type, state, and volumes.
38
+ * @param options The options parameters.
39
+ */
40
+ list(
41
+ options?: ContainerGroupsListOptionalParams
42
+ ): PagedAsyncIterableIterator<ContainerGroup>;
43
+ /**
44
+ * Get a list of container groups in a specified subscription and resource group. This operation
45
+ * returns properties of each container group including containers, image registry credentials, restart
46
+ * policy, IP address type, OS type, state, and volumes.
47
+ * @param resourceGroupName The name of the resource group.
48
+ * @param options The options parameters.
49
+ */
50
+ listByResourceGroup(
51
+ resourceGroupName: string,
52
+ options?: ContainerGroupsListByResourceGroupOptionalParams
53
+ ): PagedAsyncIterableIterator<ContainerGroup>;
54
+ /**
55
+ * Gets the properties of the specified container group in the specified subscription and resource
56
+ * group. The operation returns the properties of each container group including containers, image
57
+ * registry credentials, restart policy, IP address type, OS type, state, and volumes.
58
+ * @param resourceGroupName The name of the resource group.
59
+ * @param containerGroupName The name of the container group.
60
+ * @param options The options parameters.
61
+ */
62
+ get(
63
+ resourceGroupName: string,
64
+ containerGroupName: string,
65
+ options?: ContainerGroupsGetOptionalParams
66
+ ): Promise<ContainerGroupsGetResponse>;
67
+ /**
68
+ * Create or update container groups with specified configurations.
69
+ * @param resourceGroupName The name of the resource group.
70
+ * @param containerGroupName The name of the container group.
71
+ * @param containerGroup The properties of the container group to be created or updated.
72
+ * @param options The options parameters.
73
+ */
74
+ beginCreateOrUpdate(
75
+ resourceGroupName: string,
76
+ containerGroupName: string,
77
+ containerGroup: ContainerGroup,
78
+ options?: ContainerGroupsCreateOrUpdateOptionalParams
79
+ ): Promise<
80
+ PollerLike<
81
+ PollOperationState<ContainerGroupsCreateOrUpdateResponse>,
82
+ ContainerGroupsCreateOrUpdateResponse
83
+ >
84
+ >;
85
+ /**
86
+ * Create or update container groups with specified configurations.
87
+ * @param resourceGroupName The name of the resource group.
88
+ * @param containerGroupName The name of the container group.
89
+ * @param containerGroup The properties of the container group to be created or updated.
90
+ * @param options The options parameters.
91
+ */
92
+ beginCreateOrUpdateAndWait(
93
+ resourceGroupName: string,
94
+ containerGroupName: string,
95
+ containerGroup: ContainerGroup,
96
+ options?: ContainerGroupsCreateOrUpdateOptionalParams
97
+ ): Promise<ContainerGroupsCreateOrUpdateResponse>;
98
+ /**
99
+ * Updates container group tags with specified values.
100
+ * @param resourceGroupName The name of the resource group.
101
+ * @param containerGroupName The name of the container group.
102
+ * @param resource The container group resource with just the tags to be updated.
103
+ * @param options The options parameters.
104
+ */
105
+ update(
106
+ resourceGroupName: string,
107
+ containerGroupName: string,
108
+ resource: Resource,
109
+ options?: ContainerGroupsUpdateOptionalParams
110
+ ): Promise<ContainerGroupsUpdateResponse>;
111
+ /**
112
+ * Delete the specified container group in the specified subscription and resource group. The operation
113
+ * does not delete other resources provided by the user, such as volumes.
114
+ * @param resourceGroupName The name of the resource group.
115
+ * @param containerGroupName The name of the container group.
116
+ * @param options The options parameters.
117
+ */
118
+ beginDelete(
119
+ resourceGroupName: string,
120
+ containerGroupName: string,
121
+ options?: ContainerGroupsDeleteOptionalParams
122
+ ): Promise<
123
+ PollerLike<
124
+ PollOperationState<ContainerGroupsDeleteResponse>,
125
+ ContainerGroupsDeleteResponse
126
+ >
127
+ >;
128
+ /**
129
+ * Delete the specified container group in the specified subscription and resource group. The operation
130
+ * does not delete other resources provided by the user, such as volumes.
131
+ * @param resourceGroupName The name of the resource group.
132
+ * @param containerGroupName The name of the container group.
133
+ * @param options The options parameters.
134
+ */
135
+ beginDeleteAndWait(
136
+ resourceGroupName: string,
137
+ containerGroupName: string,
138
+ options?: ContainerGroupsDeleteOptionalParams
139
+ ): Promise<ContainerGroupsDeleteResponse>;
140
+ /**
141
+ * Restarts all containers in a container group in place. If container image has updates, new image
142
+ * will be downloaded.
143
+ * @param resourceGroupName The name of the resource group.
144
+ * @param containerGroupName The name of the container group.
145
+ * @param options The options parameters.
146
+ */
147
+ beginRestart(
148
+ resourceGroupName: string,
149
+ containerGroupName: string,
150
+ options?: ContainerGroupsRestartOptionalParams
151
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
152
+ /**
153
+ * Restarts all containers in a container group in place. If container image has updates, new image
154
+ * will be downloaded.
155
+ * @param resourceGroupName The name of the resource group.
156
+ * @param containerGroupName The name of the container group.
157
+ * @param options The options parameters.
158
+ */
159
+ beginRestartAndWait(
160
+ resourceGroupName: string,
161
+ containerGroupName: string,
162
+ options?: ContainerGroupsRestartOptionalParams
163
+ ): Promise<void>;
164
+ /**
165
+ * Stops all containers in a container group. Compute resources will be deallocated and billing will
166
+ * stop.
167
+ * @param resourceGroupName The name of the resource group.
168
+ * @param containerGroupName The name of the container group.
169
+ * @param options The options parameters.
170
+ */
171
+ stop(
172
+ resourceGroupName: string,
173
+ containerGroupName: string,
174
+ options?: ContainerGroupsStopOptionalParams
175
+ ): Promise<void>;
176
+ /**
177
+ * Starts all containers in a container group. Compute resources will be allocated and billing will
178
+ * start.
179
+ * @param resourceGroupName The name of the resource group.
180
+ * @param containerGroupName The name of the container group.
181
+ * @param options The options parameters.
182
+ */
183
+ beginStart(
184
+ resourceGroupName: string,
185
+ containerGroupName: string,
186
+ options?: ContainerGroupsStartOptionalParams
187
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
188
+ /**
189
+ * Starts all containers in a container group. Compute resources will be allocated and billing will
190
+ * start.
191
+ * @param resourceGroupName The name of the resource group.
192
+ * @param containerGroupName The name of the container group.
193
+ * @param options The options parameters.
194
+ */
195
+ beginStartAndWait(
196
+ resourceGroupName: string,
197
+ containerGroupName: string,
198
+ options?: ContainerGroupsStartOptionalParams
199
+ ): Promise<void>;
200
+ /**
201
+ * Gets all the network dependencies for this container group to allow complete control of network
202
+ * setting and configuration. For container groups, this will always be an empty list.
203
+ * @param resourceGroupName The name of the resource group.
204
+ * @param containerGroupName The name of the container group.
205
+ * @param options The options parameters.
206
+ */
207
+ getOutboundNetworkDependenciesEndpoints(
208
+ resourceGroupName: string,
209
+ containerGroupName: string,
210
+ options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams
211
+ ): Promise<ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
212
+ }
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ ContainersListLogsOptionalParams,
11
+ ContainersListLogsResponse,
12
+ ContainerExecRequest,
13
+ ContainersExecuteCommandOptionalParams,
14
+ ContainersExecuteCommandResponse,
15
+ ContainersAttachOptionalParams,
16
+ ContainersAttachResponse
17
+ } from "../models";
18
+
19
+ /** Interface representing a Containers. */
20
+ export interface Containers {
21
+ /**
22
+ * Get the logs for a specified container instance in a specified resource group and container group.
23
+ * @param resourceGroupName The name of the resource group.
24
+ * @param containerGroupName The name of the container group.
25
+ * @param containerName The name of the container instance.
26
+ * @param options The options parameters.
27
+ */
28
+ listLogs(
29
+ resourceGroupName: string,
30
+ containerGroupName: string,
31
+ containerName: string,
32
+ options?: ContainersListLogsOptionalParams
33
+ ): Promise<ContainersListLogsResponse>;
34
+ /**
35
+ * Executes a command for a specific container instance in a specified resource group and container
36
+ * group.
37
+ * @param resourceGroupName The name of the resource group.
38
+ * @param containerGroupName The name of the container group.
39
+ * @param containerName The name of the container instance.
40
+ * @param containerExecRequest The request for the exec command.
41
+ * @param options The options parameters.
42
+ */
43
+ executeCommand(
44
+ resourceGroupName: string,
45
+ containerGroupName: string,
46
+ containerName: string,
47
+ containerExecRequest: ContainerExecRequest,
48
+ options?: ContainersExecuteCommandOptionalParams
49
+ ): Promise<ContainersExecuteCommandResponse>;
50
+ /**
51
+ * Attach to the output stream of a specific container instance in a specified resource group and
52
+ * container group.
53
+ * @param resourceGroupName The name of the resource group.
54
+ * @param containerGroupName The name of the container group.
55
+ * @param containerName The name of the container instance.
56
+ * @param options The options parameters.
57
+ */
58
+ attach(
59
+ resourceGroupName: string,
60
+ containerGroupName: string,
61
+ containerName: string,
62
+ options?: ContainersAttachOptionalParams
63
+ ): Promise<ContainersAttachResponse>;
64
+ }
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export * from "./containerGroups";
10
+ export * from "./operations";
11
+ export * from "./location";
12
+ export * from "./containers";
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Usage,
12
+ LocationListUsageOptionalParams,
13
+ CachedImages,
14
+ LocationListCachedImagesOptionalParams,
15
+ Capabilities,
16
+ LocationListCapabilitiesOptionalParams
17
+ } from "../models";
18
+
19
+ /// <reference lib="esnext.asynciterable" />
20
+ /** Interface representing a Location. */
21
+ export interface Location {
22
+ /**
23
+ * Get the usage for a subscription
24
+ * @param location The identifier for the physical azure location.
25
+ * @param options The options parameters.
26
+ */
27
+ listUsage(
28
+ location: string,
29
+ options?: LocationListUsageOptionalParams
30
+ ): PagedAsyncIterableIterator<Usage>;
31
+ /**
32
+ * Get the list of cached images on specific OS type for a subscription in a region.
33
+ * @param location The identifier for the physical azure location.
34
+ * @param options The options parameters.
35
+ */
36
+ listCachedImages(
37
+ location: string,
38
+ options?: LocationListCachedImagesOptionalParams
39
+ ): PagedAsyncIterableIterator<CachedImages>;
40
+ /**
41
+ * Get the list of CPU/memory/GPU capabilities of a region.
42
+ * @param location The identifier for the physical azure location.
43
+ * @param options The options parameters.
44
+ */
45
+ listCapabilities(
46
+ location: string,
47
+ options?: LocationListCapabilitiesOptionalParams
48
+ ): PagedAsyncIterableIterator<Capabilities>;
49
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * List the operations for Azure Container Instance service.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }