@azure/arm-azurestackhci 2.1.1-alpha.20220422.1 → 3.0.1-alpha.20220527.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 (88) hide show
  1. package/CHANGELOG.md +46 -1
  2. package/README.md +1 -1
  3. package/dist/index.js +616 -10
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.d.ts +2 -0
  8. package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.js +32 -0
  10. package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.js.map +1 -0
  11. package/dist-esm/samples-dev/arcSettingsCreateSample.js +1 -1
  12. package/dist-esm/samples-dev/arcSettingsDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.d.ts +2 -0
  14. package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.js +32 -0
  16. package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.js.map +1 -0
  17. package/dist-esm/samples-dev/arcSettingsGetSample.js +1 -1
  18. package/dist-esm/samples-dev/arcSettingsListByClusterSample.js +1 -1
  19. package/dist-esm/samples-dev/arcSettingsUpdateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/arcSettingsUpdateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/arcSettingsUpdateSample.js +35 -0
  22. package/dist-esm/samples-dev/arcSettingsUpdateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/clustersCreateIdentitySample.d.ts +2 -0
  24. package/dist-esm/samples-dev/clustersCreateIdentitySample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/clustersCreateIdentitySample.js +31 -0
  26. package/dist-esm/samples-dev/clustersCreateIdentitySample.js.map +1 -0
  27. package/dist-esm/samples-dev/clustersCreateSample.js +1 -1
  28. package/dist-esm/samples-dev/clustersDeleteSample.js +2 -2
  29. package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
  30. package/dist-esm/samples-dev/clustersGetSample.js +1 -1
  31. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
  32. package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +1 -1
  33. package/dist-esm/samples-dev/clustersUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/clustersUploadCertificateSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/clustersUploadCertificateSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/clustersUploadCertificateSample.js +34 -0
  37. package/dist-esm/samples-dev/clustersUploadCertificateSample.js.map +1 -0
  38. package/dist-esm/samples-dev/deleteCluster.js +1 -1
  39. package/dist-esm/samples-dev/deleteCluster.js.map +1 -1
  40. package/dist-esm/samples-dev/extensionsCreateSample.js +1 -1
  41. package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
  42. package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
  43. package/dist-esm/samples-dev/extensionsListByArcSettingSample.js +1 -1
  44. package/dist-esm/samples-dev/extensionsUpdateSample.js +1 -1
  45. package/dist-esm/samples-dev/operationsListSample.js +3 -3
  46. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  47. package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -1
  48. package/dist-esm/src/azureStackHCIClient.js +21 -3
  49. package/dist-esm/src/azureStackHCIClient.js.map +1 -1
  50. package/dist-esm/src/models/index.d.ts +98 -0
  51. package/dist-esm/src/models/index.d.ts.map +1 -1
  52. package/dist-esm/src/models/index.js.map +1 -1
  53. package/dist-esm/src/models/mappers.d.ts +7 -0
  54. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  55. package/dist-esm/src/models/mappers.js +208 -0
  56. package/dist-esm/src/models/mappers.js.map +1 -1
  57. package/dist-esm/src/models/parameters.d.ts +2 -0
  58. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  59. package/dist-esm/src/models/parameters.js +10 -2
  60. package/dist-esm/src/models/parameters.js.map +1 -1
  61. package/dist-esm/src/operations/arcSettings.d.ts +34 -1
  62. package/dist-esm/src/operations/arcSettings.d.ts.map +1 -1
  63. package/dist-esm/src/operations/arcSettings.js +155 -1
  64. package/dist-esm/src/operations/arcSettings.js.map +1 -1
  65. package/dist-esm/src/operations/clusters.d.ts +40 -2
  66. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  67. package/dist-esm/src/operations/clusters.js +209 -3
  68. package/dist-esm/src/operations/clusters.js.map +1 -1
  69. package/dist-esm/src/operations/extensions.d.ts.map +1 -1
  70. package/dist-esm/src/operations/extensions.js +9 -3
  71. package/dist-esm/src/operations/extensions.js.map +1 -1
  72. package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +34 -1
  73. package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -1
  74. package/dist-esm/src/operationsInterfaces/clusters.d.ts +40 -2
  75. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
  76. package/package.json +3 -3
  77. package/review/arm-azurestackhci.api.md +119 -1
  78. package/src/azureStackHCIClient.ts +28 -3
  79. package/src/models/index.ts +117 -1
  80. package/src/models/mappers.ts +223 -0
  81. package/src/models/parameters.ts +13 -1
  82. package/src/operations/arcSettings.ts +223 -1
  83. package/src/operations/clusters.ts +308 -3
  84. package/src/operations/extensions.ts +9 -3
  85. package/src/operationsInterfaces/arcSettings.ts +67 -1
  86. package/src/operationsInterfaces/clusters.ts +71 -2
  87. package/types/arm-azurestackhci.d.ts +185 -1
  88. package/LICENSE.txt +0 -21
@@ -13,6 +13,20 @@ import { PollOperationState } from '@azure/core-lro';
13
13
  */
14
14
  export declare type ActionType = string;
15
15
 
16
+ /** Connectivity related configuration required by arc server. */
17
+ export declare interface ArcConnectivityProperties {
18
+ /** True indicates ARC connectivity is enabled */
19
+ enabled?: boolean;
20
+ }
21
+
22
+ /** ArcIdentity details. */
23
+ export declare interface ArcIdentityResponse {
24
+ arcApplicationClientId?: string;
25
+ arcApplicationTenantId?: string;
26
+ arcServicePrincipalObjectId?: string;
27
+ arcApplicationObjectId?: string;
28
+ }
29
+
16
30
  /** ArcSetting details. */
17
31
  export declare type ArcSetting = ProxyResource & {
18
32
  /**
@@ -22,6 +36,14 @@ export declare type ArcSetting = ProxyResource & {
22
36
  readonly provisioningState?: ProvisioningState;
23
37
  /** The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. */
24
38
  arcInstanceResourceGroup?: string;
39
+ /** App id of arc AAD identity. */
40
+ arcApplicationClientId?: string;
41
+ /** Tenant id of arc AAD identity. */
42
+ arcApplicationTenantId?: string;
43
+ /** Object id of arc AAD service principal. */
44
+ arcServicePrincipalObjectId?: string;
45
+ /** Object id of arc AAD identity. */
46
+ arcApplicationObjectId?: string;
25
47
  /**
26
48
  * Aggregate state of Arc agent across the nodes in this HCI cluster.
27
49
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -32,6 +54,8 @@ export declare type ArcSetting = ProxyResource & {
32
54
  * NOTE: This property will not be serialized. It can only be populated by the server.
33
55
  */
34
56
  readonly perNodeDetails?: PerNodeState[];
57
+ /** contains connectivity related configuration for ARC resources */
58
+ connectivityProperties?: Record<string, unknown>;
35
59
  /** The identity that created the resource. */
36
60
  createdBy?: string;
37
61
  /** The type of identity that created the resource. */
@@ -109,6 +133,15 @@ export declare interface ArcSettings {
109
133
  * @param options The options parameters.
110
134
  */
111
135
  create(resourceGroupName: string, clusterName: string, arcSettingName: string, arcSetting: ArcSetting, options?: ArcSettingsCreateOptionalParams): Promise<ArcSettingsCreateResponse>;
136
+ /**
137
+ * Update ArcSettings for HCI cluster.
138
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
139
+ * @param clusterName The name of the cluster.
140
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
141
+ * @param arcSetting ArcSettings parameters that needs to be updated
142
+ * @param options The options parameters.
143
+ */
144
+ update(resourceGroupName: string, clusterName: string, arcSettingName: string, arcSetting: ArcSettingsPatch, options?: ArcSettingsUpdateOptionalParams): Promise<ArcSettingsUpdateResponse>;
112
145
  /**
113
146
  * Delete ArcSetting resource details of HCI Cluster.
114
147
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -125,8 +158,43 @@ export declare interface ArcSettings {
125
158
  * @param options The options parameters.
126
159
  */
127
160
  beginDeleteAndWait(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsDeleteOptionalParams): Promise<void>;
161
+ /**
162
+ * Generate password for arc settings.
163
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
164
+ * @param clusterName The name of the cluster.
165
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
166
+ * @param options The options parameters.
167
+ */
168
+ generatePassword(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsGeneratePasswordOptionalParams): Promise<ArcSettingsGeneratePasswordResponse>;
169
+ /**
170
+ * Create Aad identity for arc settings.
171
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
172
+ * @param clusterName The name of the cluster.
173
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
174
+ * @param options The options parameters.
175
+ */
176
+ beginCreateIdentity(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsCreateIdentityOptionalParams): Promise<PollerLike<PollOperationState<ArcSettingsCreateIdentityResponse>, ArcSettingsCreateIdentityResponse>>;
177
+ /**
178
+ * Create Aad identity for arc settings.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param clusterName The name of the cluster.
181
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
182
+ * @param options The options parameters.
183
+ */
184
+ beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsCreateIdentityOptionalParams): Promise<ArcSettingsCreateIdentityResponse>;
128
185
  }
129
186
 
187
+ /** Optional parameters. */
188
+ export declare interface ArcSettingsCreateIdentityOptionalParams extends coreClient.OperationOptions {
189
+ /** Delay to wait until next poll, in milliseconds. */
190
+ updateIntervalInMs?: number;
191
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
192
+ resumeFrom?: string;
193
+ }
194
+
195
+ /** Contains response data for the createIdentity operation. */
196
+ export declare type ArcSettingsCreateIdentityResponse = ArcIdentityResponse;
197
+
130
198
  /** Optional parameters. */
131
199
  export declare interface ArcSettingsCreateOptionalParams extends coreClient.OperationOptions {
132
200
  }
@@ -142,6 +210,13 @@ export declare interface ArcSettingsDeleteOptionalParams extends coreClient.Oper
142
210
  resumeFrom?: string;
143
211
  }
144
212
 
213
+ /** Optional parameters. */
214
+ export declare interface ArcSettingsGeneratePasswordOptionalParams extends coreClient.OperationOptions {
215
+ }
216
+
217
+ /** Contains response data for the generatePassword operation. */
218
+ export declare type ArcSettingsGeneratePasswordResponse = PasswordCredential;
219
+
145
220
  /** Optional parameters. */
146
221
  export declare interface ArcSettingsGetOptionalParams extends coreClient.OperationOptions {
147
222
  }
@@ -163,6 +238,23 @@ export declare interface ArcSettingsListByClusterOptionalParams extends coreClie
163
238
  /** Contains response data for the listByCluster operation. */
164
239
  export declare type ArcSettingsListByClusterResponse = ArcSettingList;
165
240
 
241
+ /** ArcSetting details to update. */
242
+ export declare interface ArcSettingsPatch {
243
+ /** Resource tags. */
244
+ tags?: {
245
+ [propertyName: string]: string;
246
+ };
247
+ /** contains connectivity related configuration for ARC resources */
248
+ connectivityProperties?: Record<string, unknown>;
249
+ }
250
+
251
+ /** Optional parameters. */
252
+ export declare interface ArcSettingsUpdateOptionalParams extends coreClient.OperationOptions {
253
+ }
254
+
255
+ /** Contains response data for the update operation. */
256
+ export declare type ArcSettingsUpdateResponse = ArcSetting;
257
+
166
258
  export declare class AzureStackHCIClient extends coreClient.ServiceClient {
167
259
  $host: string;
168
260
  subscriptionId: string;
@@ -213,6 +305,10 @@ export declare type Cluster = TrackedResource & {
213
305
  aadClientId?: string;
214
306
  /** Tenant id of cluster AAD identity. */
215
307
  aadTenantId?: string;
308
+ /** Object id of cluster AAD identity. */
309
+ aadApplicationObjectId?: string;
310
+ /** Id of cluster identity service principal. */
311
+ aadServicePrincipalObjectId?: string;
216
312
  /** Desired properties of the cluster. */
217
313
  desiredProperties?: ClusterDesiredProperties;
218
314
  /**
@@ -245,6 +341,11 @@ export declare type Cluster = TrackedResource & {
245
341
  * NOTE: This property will not be serialized. It can only be populated by the server.
246
342
  */
247
343
  readonly lastBillingTimestamp?: Date;
344
+ /**
345
+ * Region specific DataPath Endpoint of the cluster.
346
+ * NOTE: This property will not be serialized. It can only be populated by the server.
347
+ */
348
+ readonly serviceEndpoint?: string;
248
349
  /** The identity that created the resource. */
249
350
  createdBy?: string;
250
351
  /** The type of identity that created the resource. */
@@ -267,6 +368,14 @@ export declare interface ClusterDesiredProperties {
267
368
  diagnosticLevel?: DiagnosticLevel;
268
369
  }
269
370
 
371
+ /** Cluster Identity details. */
372
+ export declare interface ClusterIdentityResponse {
373
+ aadClientId?: string;
374
+ aadTenantId?: string;
375
+ aadServicePrincipalObjectId?: string;
376
+ aadApplicationObjectId?: string;
377
+ }
378
+
270
379
  /** List of clusters. */
271
380
  export declare interface ClusterList {
272
381
  /** List of clusters. */
@@ -426,9 +535,57 @@ export declare interface Clusters {
426
535
  * @param clusterName The name of the cluster.
427
536
  * @param options The options parameters.
428
537
  */
429
- delete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<void>;
538
+ beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
539
+ /**
540
+ * Delete an HCI cluster.
541
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
542
+ * @param clusterName The name of the cluster.
543
+ * @param options The options parameters.
544
+ */
545
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<void>;
546
+ /**
547
+ * Upload certificate.
548
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
549
+ * @param clusterName The name of the cluster.
550
+ * @param uploadCertificateRequest Upload certificate request.
551
+ * @param options The options parameters.
552
+ */
553
+ beginUploadCertificate(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
554
+ /**
555
+ * Upload certificate.
556
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
557
+ * @param clusterName The name of the cluster.
558
+ * @param uploadCertificateRequest Upload certificate request.
559
+ * @param options The options parameters.
560
+ */
561
+ beginUploadCertificateAndWait(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise<void>;
562
+ /**
563
+ * Create cluster identity.
564
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
565
+ * @param clusterName The name of the cluster.
566
+ * @param options The options parameters.
567
+ */
568
+ beginCreateIdentity(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise<PollerLike<PollOperationState<ClustersCreateIdentityResponse>, ClustersCreateIdentityResponse>>;
569
+ /**
570
+ * Create cluster identity.
571
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
572
+ * @param clusterName The name of the cluster.
573
+ * @param options The options parameters.
574
+ */
575
+ beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise<ClustersCreateIdentityResponse>;
576
+ }
577
+
578
+ /** Optional parameters. */
579
+ export declare interface ClustersCreateIdentityOptionalParams extends coreClient.OperationOptions {
580
+ /** Delay to wait until next poll, in milliseconds. */
581
+ updateIntervalInMs?: number;
582
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
583
+ resumeFrom?: string;
430
584
  }
431
585
 
586
+ /** Contains response data for the createIdentity operation. */
587
+ export declare type ClustersCreateIdentityResponse = ClusterIdentityResponse;
588
+
432
589
  /** Optional parameters. */
433
590
  export declare interface ClustersCreateOptionalParams extends coreClient.OperationOptions {
434
591
  }
@@ -438,6 +595,10 @@ export declare type ClustersCreateResponse = Cluster;
438
595
 
439
596
  /** Optional parameters. */
440
597
  export declare interface ClustersDeleteOptionalParams extends coreClient.OperationOptions {
598
+ /** Delay to wait until next poll, in milliseconds. */
599
+ updateIntervalInMs?: number;
600
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
601
+ resumeFrom?: string;
441
602
  }
442
603
 
443
604
  /** Optional parameters. */
@@ -482,6 +643,14 @@ export declare interface ClustersUpdateOptionalParams extends coreClient.Operati
482
643
  /** Contains response data for the update operation. */
483
644
  export declare type ClustersUpdateResponse = Cluster;
484
645
 
646
+ /** Optional parameters. */
647
+ export declare interface ClustersUploadCertificateOptionalParams extends coreClient.OperationOptions {
648
+ /** Delay to wait until next poll, in milliseconds. */
649
+ updateIntervalInMs?: number;
650
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
651
+ resumeFrom?: string;
652
+ }
653
+
485
654
  /**
486
655
  * Defines values for CreatedByType. \
487
656
  * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
@@ -1034,6 +1203,13 @@ export declare type OperationsListResponse = OperationListResult;
1034
1203
  */
1035
1204
  export declare type Origin = string;
1036
1205
 
1206
+ export declare interface PasswordCredential {
1207
+ secretText?: string;
1208
+ keyId?: string;
1209
+ startDateTime?: Date;
1210
+ endDateTime?: Date;
1211
+ }
1212
+
1037
1213
  /** Status of Arc Extension for a particular node in HCI Cluster. */
1038
1214
  export declare interface PerNodeExtensionState {
1039
1215
  /**
@@ -1088,6 +1264,10 @@ export declare type ProvisioningState = string;
1088
1264
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
1089
1265
  export declare type ProxyResource = Resource & {};
1090
1266
 
1267
+ export declare interface RawCertificateData {
1268
+ certificates?: string[];
1269
+ }
1270
+
1091
1271
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
1092
1272
  export declare interface Resource {
1093
1273
  /**
@@ -1130,6 +1310,10 @@ export declare type TrackedResource = Resource & {
1130
1310
  location: string;
1131
1311
  };
1132
1312
 
1313
+ export declare interface UploadCertificateRequest {
1314
+ properties?: RawCertificateData;
1315
+ }
1316
+
1133
1317
  /**
1134
1318
  * Defines values for WindowsServerSubscription. \
1135
1319
  * {@link KnownWindowsServerSubscription} can be used interchangeably with WindowsServerSubscription,
package/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 Microsoft
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.