@azure/arm-containerinstance 9.1.1-alpha.20241023.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 +31 -35
  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
@@ -14,14 +14,15 @@ import { ContainerInstanceManagementClient } from "../containerInstanceManagemen
14
14
  import {
15
15
  SimplePollerLike,
16
16
  OperationState,
17
- createHttpPoller
17
+ createHttpPoller,
18
18
  } from "@azure/core-lro";
19
19
  import { createLroSpec } from "../lroImpl";
20
20
  import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models";
21
21
 
22
22
  /** Class containing SubnetServiceAssociationLink operations. */
23
23
  export class SubnetServiceAssociationLinkImpl
24
- implements SubnetServiceAssociationLink {
24
+ implements SubnetServiceAssociationLink
25
+ {
25
26
  private readonly client: ContainerInstanceManagementClient;
26
27
 
27
28
  /**
@@ -35,7 +36,7 @@ export class SubnetServiceAssociationLinkImpl
35
36
  /**
36
37
  * Delete container group virtual network association links. The operation does not delete other
37
38
  * resources provided by the user.
38
- * @param resourceGroupName The name of the resource group.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
40
  * @param virtualNetworkName The name of the virtual network.
40
41
  * @param subnetName The name of the subnet.
41
42
  * @param options The options parameters.
@@ -44,25 +45,24 @@ export class SubnetServiceAssociationLinkImpl
44
45
  resourceGroupName: string,
45
46
  virtualNetworkName: string,
46
47
  subnetName: string,
47
- options?: SubnetServiceAssociationLinkDeleteOptionalParams
48
+ options?: SubnetServiceAssociationLinkDeleteOptionalParams,
48
49
  ): Promise<SimplePollerLike<OperationState<void>, void>> {
49
50
  const directSendOperation = async (
50
51
  args: coreClient.OperationArguments,
51
- spec: coreClient.OperationSpec
52
+ spec: coreClient.OperationSpec,
52
53
  ): Promise<void> => {
53
54
  return this.client.sendOperationRequest(args, spec);
54
55
  };
55
56
  const sendOperationFn = async (
56
57
  args: coreClient.OperationArguments,
57
- spec: coreClient.OperationSpec
58
+ spec: coreClient.OperationSpec,
58
59
  ) => {
59
- let currentRawResponse:
60
- | coreClient.FullOperationResponse
61
- | undefined = undefined;
60
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
61
+ undefined;
62
62
  const providedCallback = args.options?.onResponse;
63
63
  const callback: coreClient.RawResponseCallback = (
64
64
  rawResponse: coreClient.FullOperationResponse,
65
- flatResponse: unknown
65
+ flatResponse: unknown,
66
66
  ) => {
67
67
  currentRawResponse = rawResponse;
68
68
  providedCallback?.(rawResponse, flatResponse);
@@ -71,8 +71,8 @@ export class SubnetServiceAssociationLinkImpl
71
71
  ...args,
72
72
  options: {
73
73
  ...args.options,
74
- onResponse: callback
75
- }
74
+ onResponse: callback,
75
+ },
76
76
  };
77
77
  const flatResponse = await directSendOperation(updatedArgs, spec);
78
78
  return {
@@ -80,19 +80,19 @@ export class SubnetServiceAssociationLinkImpl
80
80
  rawResponse: {
81
81
  statusCode: currentRawResponse!.status,
82
82
  body: currentRawResponse!.parsedBody,
83
- headers: currentRawResponse!.headers.toJSON()
84
- }
83
+ headers: currentRawResponse!.headers.toJSON(),
84
+ },
85
85
  };
86
86
  };
87
87
 
88
88
  const lro = createLroSpec({
89
89
  sendOperationFn,
90
90
  args: { resourceGroupName, virtualNetworkName, subnetName, options },
91
- spec: deleteOperationSpec
91
+ spec: deleteOperationSpec,
92
92
  });
93
93
  const poller = await createHttpPoller<void, OperationState<void>>(lro, {
94
94
  restoreFrom: options?.resumeFrom,
95
- intervalInMs: options?.updateIntervalInMs
95
+ intervalInMs: options?.updateIntervalInMs,
96
96
  });
97
97
  await poller.poll();
98
98
  return poller;
@@ -101,7 +101,7 @@ export class SubnetServiceAssociationLinkImpl
101
101
  /**
102
102
  * Delete container group virtual network association links. The operation does not delete other
103
103
  * resources provided by the user.
104
- * @param resourceGroupName The name of the resource group.
104
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
105
105
  * @param virtualNetworkName The name of the virtual network.
106
106
  * @param subnetName The name of the subnet.
107
107
  * @param options The options parameters.
@@ -110,13 +110,13 @@ export class SubnetServiceAssociationLinkImpl
110
110
  resourceGroupName: string,
111
111
  virtualNetworkName: string,
112
112
  subnetName: string,
113
- options?: SubnetServiceAssociationLinkDeleteOptionalParams
113
+ options?: SubnetServiceAssociationLinkDeleteOptionalParams,
114
114
  ): Promise<void> {
115
115
  const poller = await this.beginDelete(
116
116
  resourceGroupName,
117
117
  virtualNetworkName,
118
118
  subnetName,
119
- options
119
+ options,
120
120
  );
121
121
  return poller.pollUntilDone();
122
122
  }
@@ -125,8 +125,7 @@ export class SubnetServiceAssociationLinkImpl
125
125
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
126
126
 
127
127
  const deleteOperationSpec: coreClient.OperationSpec = {
128
- path:
129
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default",
128
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default",
130
129
  httpMethod: "DELETE",
131
130
  responses: {
132
131
  200: {},
@@ -134,8 +133,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
134
133
  202: {},
135
134
  204: {},
136
135
  default: {
137
- bodyMapper: Mappers.CloudError
138
- }
136
+ bodyMapper: Mappers.CloudError,
137
+ },
139
138
  },
140
139
  queryParameters: [Parameters.apiVersion],
141
140
  urlParameters: [
@@ -143,8 +142,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
143
142
  Parameters.subscriptionId,
144
143
  Parameters.resourceGroupName,
145
144
  Parameters.virtualNetworkName,
146
- Parameters.subnetName
145
+ Parameters.subnetName,
147
146
  ],
148
147
  headerParameters: [Parameters.accept],
149
- serializer
148
+ serializer,
150
149
  };
@@ -0,0 +1,50 @@
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
+ ContainerGroupProfile,
12
+ ContainerGroupProfileListAllRevisionsOptionalParams,
13
+ ContainerGroupProfileGetByRevisionNumberOptionalParams,
14
+ ContainerGroupProfileGetByRevisionNumberResponse,
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a ContainerGroupProfileOperations. */
19
+ export interface ContainerGroupProfileOperations {
20
+ /**
21
+ * Get a list of all the revisions of the specified container group profile in the given subscription
22
+ * and resource group. This operation returns properties of each revision of the specified container
23
+ * group profile including containers, image registry credentials, restart policy, IP address type, OS
24
+ * type volumes, revision number, etc.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param containerGroupProfileName The name of the container group profile.
27
+ * @param options The options parameters.
28
+ */
29
+ listAllRevisions(
30
+ resourceGroupName: string,
31
+ containerGroupProfileName: string,
32
+ options?: ContainerGroupProfileListAllRevisionsOptionalParams,
33
+ ): PagedAsyncIterableIterator<ContainerGroupProfile>;
34
+ /**
35
+ * Gets the properties of the specified revision of the container group profile in the given
36
+ * subscription and resource group. The operation returns the properties of container group profile
37
+ * including containers, image registry credentials, restart policy, IP address type, OS type, volumes,
38
+ * current revision number, etc.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param containerGroupProfileName The name of the container group profile.
41
+ * @param revisionNumber The revision number of the container group profile.
42
+ * @param options The options parameters.
43
+ */
44
+ getByRevisionNumber(
45
+ resourceGroupName: string,
46
+ containerGroupProfileName: string,
47
+ revisionNumber: string,
48
+ options?: ContainerGroupProfileGetByRevisionNumberOptionalParams,
49
+ ): Promise<ContainerGroupProfileGetByRevisionNumberResponse>;
50
+ }
@@ -0,0 +1,99 @@
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
+ ContainerGroupProfile,
12
+ ContainerGroupProfilesListOptionalParams,
13
+ ContainerGroupProfilesListByResourceGroupOptionalParams,
14
+ ContainerGroupProfilesGetOptionalParams,
15
+ ContainerGroupProfilesGetResponse,
16
+ ContainerGroupProfilesCreateOrUpdateOptionalParams,
17
+ ContainerGroupProfilesCreateOrUpdateResponse,
18
+ ContainerGroupProfilePatch,
19
+ ContainerGroupProfilesPatchOptionalParams,
20
+ ContainerGroupProfilesPatchResponse,
21
+ ContainerGroupProfilesDeleteOptionalParams,
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a ContainerGroupProfiles. */
26
+ export interface ContainerGroupProfiles {
27
+ /**
28
+ * Get a list of container group profiles in the specified subscription. This operation returns
29
+ * properties of each container group profile including containers, image registry credentials, restart
30
+ * policy, IP address type, OS type,volumes,current revision number, etc.
31
+ * @param options The options parameters.
32
+ */
33
+ list(
34
+ options?: ContainerGroupProfilesListOptionalParams,
35
+ ): PagedAsyncIterableIterator<ContainerGroupProfile>;
36
+ /**
37
+ * Get a list of container group profiles in a specified subscription and resource group. This
38
+ * operation returns properties of each container group profile including containers, image registry
39
+ * credentials, restart policy, IP address type, OS type volumes, current revision number, etc.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param options The options parameters.
42
+ */
43
+ listByResourceGroup(
44
+ resourceGroupName: string,
45
+ options?: ContainerGroupProfilesListByResourceGroupOptionalParams,
46
+ ): PagedAsyncIterableIterator<ContainerGroupProfile>;
47
+ /**
48
+ * Gets the properties of the specified container group profile in the specified subscription and
49
+ * resource group. The operation returns the properties of container group profile including
50
+ * containers, image registry credentials, restart policy, IP address type, OS type, volumes, current
51
+ * revision number, etc.
52
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
53
+ * @param containerGroupProfileName The name of the container group profile.
54
+ * @param options The options parameters.
55
+ */
56
+ get(
57
+ resourceGroupName: string,
58
+ containerGroupProfileName: string,
59
+ options?: ContainerGroupProfilesGetOptionalParams,
60
+ ): Promise<ContainerGroupProfilesGetResponse>;
61
+ /**
62
+ * Create or update container group profiles with specified configurations.
63
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
64
+ * @param containerGroupProfileName The name of the container group profile.
65
+ * @param containerGroupProfile The properties of the container group profile to be created or updated.
66
+ * @param options The options parameters.
67
+ */
68
+ createOrUpdate(
69
+ resourceGroupName: string,
70
+ containerGroupProfileName: string,
71
+ containerGroupProfile: ContainerGroupProfile,
72
+ options?: ContainerGroupProfilesCreateOrUpdateOptionalParams,
73
+ ): Promise<ContainerGroupProfilesCreateOrUpdateResponse>;
74
+ /**
75
+ * Patches container group profile with specified properties.
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param containerGroupProfileName The name of the container group profile.
78
+ * @param properties The container group profile properties that need to be updated.
79
+ * @param options The options parameters.
80
+ */
81
+ patch(
82
+ resourceGroupName: string,
83
+ containerGroupProfileName: string,
84
+ properties: ContainerGroupProfilePatch,
85
+ options?: ContainerGroupProfilesPatchOptionalParams,
86
+ ): Promise<ContainerGroupProfilesPatchResponse>;
87
+ /**
88
+ * Delete the specified container group profile in the specified subscription and resource group. The
89
+ * operation does not delete other resources provided by the user, such as volumes.
90
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
+ * @param containerGroupProfileName The name of the container group profile.
92
+ * @param options The options parameters.
93
+ */
94
+ delete(
95
+ resourceGroupName: string,
96
+ containerGroupProfileName: string,
97
+ options?: ContainerGroupProfilesDeleteOptionalParams,
98
+ ): Promise<void>;
99
+ }
@@ -25,7 +25,7 @@ import {
25
25
  ContainerGroupsStopOptionalParams,
26
26
  ContainerGroupsStartOptionalParams,
27
27
  ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams,
28
- ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse
28
+ ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse,
29
29
  } from "../models";
30
30
 
31
31
  /// <reference lib="esnext.asynciterable" />
@@ -38,35 +38,35 @@ export interface ContainerGroups {
38
38
  * @param options The options parameters.
39
39
  */
40
40
  list(
41
- options?: ContainerGroupsListOptionalParams
41
+ options?: ContainerGroupsListOptionalParams,
42
42
  ): PagedAsyncIterableIterator<ContainerGroup>;
43
43
  /**
44
44
  * Get a list of container groups in a specified subscription and resource group. This operation
45
45
  * returns properties of each container group including containers, image registry credentials, restart
46
46
  * policy, IP address type, OS type, state, and volumes.
47
- * @param resourceGroupName The name of the resource group.
47
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
48
48
  * @param options The options parameters.
49
49
  */
50
50
  listByResourceGroup(
51
51
  resourceGroupName: string,
52
- options?: ContainerGroupsListByResourceGroupOptionalParams
52
+ options?: ContainerGroupsListByResourceGroupOptionalParams,
53
53
  ): PagedAsyncIterableIterator<ContainerGroup>;
54
54
  /**
55
55
  * Gets the properties of the specified container group in the specified subscription and resource
56
56
  * group. The operation returns the properties of each container group including containers, image
57
57
  * registry credentials, restart policy, IP address type, OS type, state, and volumes.
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 options The options parameters.
61
61
  */
62
62
  get(
63
63
  resourceGroupName: string,
64
64
  containerGroupName: string,
65
- options?: ContainerGroupsGetOptionalParams
65
+ options?: ContainerGroupsGetOptionalParams,
66
66
  ): Promise<ContainerGroupsGetResponse>;
67
67
  /**
68
68
  * Create or update container groups with specified configurations.
69
- * @param resourceGroupName The name of the resource group.
69
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
70
70
  * @param containerGroupName The name of the container group.
71
71
  * @param containerGroup The properties of the container group to be created or updated.
72
72
  * @param options The options parameters.
@@ -75,7 +75,7 @@ export interface ContainerGroups {
75
75
  resourceGroupName: string,
76
76
  containerGroupName: string,
77
77
  containerGroup: ContainerGroup,
78
- options?: ContainerGroupsCreateOrUpdateOptionalParams
78
+ options?: ContainerGroupsCreateOrUpdateOptionalParams,
79
79
  ): Promise<
80
80
  SimplePollerLike<
81
81
  OperationState<ContainerGroupsCreateOrUpdateResponse>,
@@ -84,7 +84,7 @@ export interface ContainerGroups {
84
84
  >;
85
85
  /**
86
86
  * Create or update container groups with specified configurations.
87
- * @param resourceGroupName The name of the resource group.
87
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
88
88
  * @param containerGroupName The name of the container group.
89
89
  * @param containerGroup The properties of the container group to be created or updated.
90
90
  * @param options The options parameters.
@@ -93,11 +93,11 @@ export interface ContainerGroups {
93
93
  resourceGroupName: string,
94
94
  containerGroupName: string,
95
95
  containerGroup: ContainerGroup,
96
- options?: ContainerGroupsCreateOrUpdateOptionalParams
96
+ options?: ContainerGroupsCreateOrUpdateOptionalParams,
97
97
  ): Promise<ContainerGroupsCreateOrUpdateResponse>;
98
98
  /**
99
99
  * Updates container group tags with specified values.
100
- * @param resourceGroupName The name of the resource group.
100
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
101
101
  * @param containerGroupName The name of the container group.
102
102
  * @param resource The container group resource with just the tags to be updated.
103
103
  * @param options The options parameters.
@@ -106,19 +106,19 @@ export interface ContainerGroups {
106
106
  resourceGroupName: string,
107
107
  containerGroupName: string,
108
108
  resource: Resource,
109
- options?: ContainerGroupsUpdateOptionalParams
109
+ options?: ContainerGroupsUpdateOptionalParams,
110
110
  ): Promise<ContainerGroupsUpdateResponse>;
111
111
  /**
112
112
  * Delete the specified container group in the specified subscription and resource group. The operation
113
113
  * does not delete other resources provided by the user, such as volumes.
114
- * @param resourceGroupName The name of the resource group.
114
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
115
115
  * @param containerGroupName The name of the container group.
116
116
  * @param options The options parameters.
117
117
  */
118
118
  beginDelete(
119
119
  resourceGroupName: string,
120
120
  containerGroupName: string,
121
- options?: ContainerGroupsDeleteOptionalParams
121
+ options?: ContainerGroupsDeleteOptionalParams,
122
122
  ): Promise<
123
123
  SimplePollerLike<
124
124
  OperationState<ContainerGroupsDeleteResponse>,
@@ -128,85 +128,85 @@ export interface ContainerGroups {
128
128
  /**
129
129
  * Delete the specified container group in the specified subscription and resource group. The operation
130
130
  * does not delete other resources provided by the user, such as volumes.
131
- * @param resourceGroupName The name of the resource group.
131
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
132
132
  * @param containerGroupName The name of the container group.
133
133
  * @param options The options parameters.
134
134
  */
135
135
  beginDeleteAndWait(
136
136
  resourceGroupName: string,
137
137
  containerGroupName: string,
138
- options?: ContainerGroupsDeleteOptionalParams
138
+ options?: ContainerGroupsDeleteOptionalParams,
139
139
  ): Promise<ContainerGroupsDeleteResponse>;
140
140
  /**
141
141
  * Restarts all containers in a container group in place. If container image has updates, new image
142
142
  * will be downloaded.
143
- * @param resourceGroupName The name of the resource group.
143
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
144
144
  * @param containerGroupName The name of the container group.
145
145
  * @param options The options parameters.
146
146
  */
147
147
  beginRestart(
148
148
  resourceGroupName: string,
149
149
  containerGroupName: string,
150
- options?: ContainerGroupsRestartOptionalParams
150
+ options?: ContainerGroupsRestartOptionalParams,
151
151
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
152
152
  /**
153
153
  * Restarts all containers in a container group in place. If container image has updates, new image
154
154
  * will be downloaded.
155
- * @param resourceGroupName The name of the resource group.
155
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
156
156
  * @param containerGroupName The name of the container group.
157
157
  * @param options The options parameters.
158
158
  */
159
159
  beginRestartAndWait(
160
160
  resourceGroupName: string,
161
161
  containerGroupName: string,
162
- options?: ContainerGroupsRestartOptionalParams
162
+ options?: ContainerGroupsRestartOptionalParams,
163
163
  ): Promise<void>;
164
164
  /**
165
165
  * Stops all containers in a container group. Compute resources will be deallocated and billing will
166
166
  * stop.
167
- * @param resourceGroupName The name of the resource group.
167
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
168
168
  * @param containerGroupName The name of the container group.
169
169
  * @param options The options parameters.
170
170
  */
171
171
  stop(
172
172
  resourceGroupName: string,
173
173
  containerGroupName: string,
174
- options?: ContainerGroupsStopOptionalParams
174
+ options?: ContainerGroupsStopOptionalParams,
175
175
  ): Promise<void>;
176
176
  /**
177
177
  * Starts all containers in a container group. Compute resources will be allocated and billing will
178
178
  * start.
179
- * @param resourceGroupName The name of the resource group.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
180
  * @param containerGroupName The name of the container group.
181
181
  * @param options The options parameters.
182
182
  */
183
183
  beginStart(
184
184
  resourceGroupName: string,
185
185
  containerGroupName: string,
186
- options?: ContainerGroupsStartOptionalParams
186
+ options?: ContainerGroupsStartOptionalParams,
187
187
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
188
188
  /**
189
189
  * Starts all containers in a container group. Compute resources will be allocated and billing will
190
190
  * start.
191
- * @param resourceGroupName The name of the resource group.
191
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
192
192
  * @param containerGroupName The name of the container group.
193
193
  * @param options The options parameters.
194
194
  */
195
195
  beginStartAndWait(
196
196
  resourceGroupName: string,
197
197
  containerGroupName: string,
198
- options?: ContainerGroupsStartOptionalParams
198
+ options?: ContainerGroupsStartOptionalParams,
199
199
  ): Promise<void>;
200
200
  /**
201
201
  * Gets all the network dependencies for this container group to allow complete control of network
202
202
  * setting and configuration. For container groups, this will always be an empty list.
203
- * @param resourceGroupName The name of the resource group.
203
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
204
204
  * @param containerGroupName The name of the container group.
205
205
  * @param options The options parameters.
206
206
  */
207
207
  getOutboundNetworkDependenciesEndpoints(
208
208
  resourceGroupName: string,
209
209
  containerGroupName: string,
210
- options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams
210
+ options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams,
211
211
  ): Promise<ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
212
212
  }
@@ -13,14 +13,14 @@ import {
13
13
  ContainersExecuteCommandOptionalParams,
14
14
  ContainersExecuteCommandResponse,
15
15
  ContainersAttachOptionalParams,
16
- ContainersAttachResponse
16
+ ContainersAttachResponse,
17
17
  } from "../models";
18
18
 
19
19
  /** Interface representing a Containers. */
20
20
  export interface Containers {
21
21
  /**
22
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.
23
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
24
24
  * @param containerGroupName The name of the container group.
25
25
  * @param containerName The name of the container instance.
26
26
  * @param options The options parameters.
@@ -29,12 +29,12 @@ export interface Containers {
29
29
  resourceGroupName: string,
30
30
  containerGroupName: string,
31
31
  containerName: string,
32
- options?: ContainersListLogsOptionalParams
32
+ options?: ContainersListLogsOptionalParams,
33
33
  ): Promise<ContainersListLogsResponse>;
34
34
  /**
35
35
  * Executes a command for a specific container instance in a specified resource group and container
36
36
  * group.
37
- * @param resourceGroupName The name of the resource group.
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
38
  * @param containerGroupName The name of the container group.
39
39
  * @param containerName The name of the container instance.
40
40
  * @param containerExecRequest The request for the exec command.
@@ -45,12 +45,12 @@ export interface Containers {
45
45
  containerGroupName: string,
46
46
  containerName: string,
47
47
  containerExecRequest: ContainerExecRequest,
48
- options?: ContainersExecuteCommandOptionalParams
48
+ options?: ContainersExecuteCommandOptionalParams,
49
49
  ): Promise<ContainersExecuteCommandResponse>;
50
50
  /**
51
51
  * Attach to the output stream of a specific container instance in a specified resource group and
52
52
  * container group.
53
- * @param resourceGroupName The name of the resource group.
53
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
54
54
  * @param containerGroupName The name of the container group.
55
55
  * @param containerName The name of the container instance.
56
56
  * @param options The options parameters.
@@ -59,6 +59,6 @@ export interface Containers {
59
59
  resourceGroupName: string,
60
60
  containerGroupName: string,
61
61
  containerName: string,
62
- options?: ContainersAttachOptionalParams
62
+ options?: ContainersAttachOptionalParams,
63
63
  ): Promise<ContainersAttachResponse>;
64
64
  }
@@ -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";
@@ -13,7 +13,7 @@ import {
13
13
  CachedImages,
14
14
  LocationListCachedImagesOptionalParams,
15
15
  Capabilities,
16
- LocationListCapabilitiesOptionalParams
16
+ LocationListCapabilitiesOptionalParams,
17
17
  } from "../models";
18
18
 
19
19
  /// <reference lib="esnext.asynciterable" />
@@ -21,29 +21,29 @@ import {
21
21
  export interface Location {
22
22
  /**
23
23
  * Get the usage for a subscription
24
- * @param location The identifier for the physical azure location.
24
+ * @param location The name of the Azure region.
25
25
  * @param options The options parameters.
26
26
  */
27
27
  listUsage(
28
28
  location: string,
29
- options?: LocationListUsageOptionalParams
29
+ options?: LocationListUsageOptionalParams,
30
30
  ): PagedAsyncIterableIterator<Usage>;
31
31
  /**
32
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.
33
+ * @param location The name of the Azure region.
34
34
  * @param options The options parameters.
35
35
  */
36
36
  listCachedImages(
37
37
  location: string,
38
- options?: LocationListCachedImagesOptionalParams
38
+ options?: LocationListCachedImagesOptionalParams,
39
39
  ): PagedAsyncIterableIterator<CachedImages>;
40
40
  /**
41
41
  * Get the list of CPU/memory/GPU capabilities of a region.
42
- * @param location The identifier for the physical azure location.
42
+ * @param location The name of the Azure region.
43
43
  * @param options The options parameters.
44
44
  */
45
45
  listCapabilities(
46
46
  location: string,
47
- options?: LocationListCapabilitiesOptionalParams
47
+ options?: LocationListCapabilitiesOptionalParams,
48
48
  ): PagedAsyncIterableIterator<Capabilities>;
49
49
  }
@@ -17,6 +17,6 @@ export interface Operations {
17
17
  * @param options The options parameters.
18
18
  */
19
19
  list(
20
- options?: OperationsListOptionalParams
20
+ options?: OperationsListOptionalParams,
21
21
  ): PagedAsyncIterableIterator<Operation>;
22
22
  }
@@ -14,7 +14,7 @@ export interface SubnetServiceAssociationLink {
14
14
  /**
15
15
  * Delete container group virtual network association links. The operation does not delete other
16
16
  * resources provided by the user.
17
- * @param resourceGroupName The name of the resource group.
17
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
18
18
  * @param virtualNetworkName The name of the virtual network.
19
19
  * @param subnetName The name of the subnet.
20
20
  * @param options The options parameters.
@@ -23,12 +23,12 @@ export interface SubnetServiceAssociationLink {
23
23
  resourceGroupName: string,
24
24
  virtualNetworkName: string,
25
25
  subnetName: string,
26
- options?: SubnetServiceAssociationLinkDeleteOptionalParams
26
+ options?: SubnetServiceAssociationLinkDeleteOptionalParams,
27
27
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
28
28
  /**
29
29
  * Delete container group virtual network association links. The operation does not delete other
30
30
  * resources provided by the user.
31
- * @param resourceGroupName The name of the resource group.
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
32
  * @param virtualNetworkName The name of the virtual network.
33
33
  * @param subnetName The name of the subnet.
34
34
  * @param options The options parameters.
@@ -37,6 +37,6 @@ export interface SubnetServiceAssociationLink {
37
37
  resourceGroupName: string,
38
38
  virtualNetworkName: string,
39
39
  subnetName: string,
40
- options?: SubnetServiceAssociationLinkDeleteOptionalParams
40
+ options?: SubnetServiceAssociationLinkDeleteOptionalParams,
41
41
  ): Promise<void>;
42
42
  }
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
28
28
 
29
29
  export function setContinuationToken(
30
30
  page: unknown,
31
- continuationToken: string | undefined
31
+ continuationToken: string | undefined,
32
32
  ): void {
33
33
  if (typeof page !== "object" || page === null || !continuationToken) {
34
34
  return;