@azure/arm-azurestackhci 2.1.1-alpha.20220422.1 → 3.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.
- package/CHANGELOG.md +45 -10
- package/README.md +1 -1
- package/dist/index.js +616 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.d.ts +2 -0
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.js +32 -0
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.js.map +1 -0
- package/dist-esm/samples-dev/arcSettingsCreateSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.d.ts +2 -0
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.js +32 -0
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.js.map +1 -0
- package/dist-esm/samples-dev/arcSettingsGetSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/arcSettingsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/arcSettingsUpdateSample.js +35 -0
- package/dist-esm/samples-dev/arcSettingsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.d.ts +2 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.js +31 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.js.map +1 -0
- package/dist-esm/samples-dev/clustersCreateSample.js +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +2 -2
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/clustersUploadCertificateSample.d.ts +2 -0
- package/dist-esm/samples-dev/clustersUploadCertificateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/clustersUploadCertificateSample.js +34 -0
- package/dist-esm/samples-dev/clustersUploadCertificateSample.js.map +1 -0
- package/dist-esm/samples-dev/deleteCluster.js +1 -1
- package/dist-esm/samples-dev/deleteCluster.js.map +1 -1
- package/dist-esm/samples-dev/extensionsCreateSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
- package/dist-esm/samples-dev/extensionsListByArcSettingSample.js +1 -1
- package/dist-esm/samples-dev/extensionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +3 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -1
- package/dist-esm/src/azureStackHCIClient.js +21 -3
- package/dist-esm/src/azureStackHCIClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +98 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +208 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/arcSettings.d.ts +34 -1
- package/dist-esm/src/operations/arcSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/arcSettings.js +155 -1
- package/dist-esm/src/operations/arcSettings.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +40 -2
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +209 -3
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +9 -3
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +34 -1
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +40 -2
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/package.json +3 -3
- package/review/arm-azurestackhci.api.md +119 -1
- package/src/azureStackHCIClient.ts +28 -3
- package/src/models/index.ts +117 -1
- package/src/models/mappers.ts +223 -0
- package/src/models/parameters.ts +13 -1
- package/src/operations/arcSettings.ts +223 -1
- package/src/operations/clusters.ts +308 -3
- package/src/operations/extensions.ts +9 -3
- package/src/operationsInterfaces/arcSettings.ts +67 -1
- package/src/operationsInterfaces/clusters.ts +71 -2
- package/types/arm-azurestackhci.d.ts +185 -1
- package/LICENSE.txt +0 -21
package/src/models/mappers.ts
CHANGED
|
@@ -193,6 +193,95 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
+
export const ArcSettingsPatch: coreClient.CompositeMapper = {
|
|
197
|
+
type: {
|
|
198
|
+
name: "Composite",
|
|
199
|
+
className: "ArcSettingsPatch",
|
|
200
|
+
modelProperties: {
|
|
201
|
+
tags: {
|
|
202
|
+
serializedName: "tags",
|
|
203
|
+
type: {
|
|
204
|
+
name: "Dictionary",
|
|
205
|
+
value: { type: { name: "String" } }
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
connectivityProperties: {
|
|
209
|
+
serializedName: "properties.connectivityProperties",
|
|
210
|
+
type: {
|
|
211
|
+
name: "Dictionary",
|
|
212
|
+
value: { type: { name: "any" } }
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export const PasswordCredential: coreClient.CompositeMapper = {
|
|
220
|
+
type: {
|
|
221
|
+
name: "Composite",
|
|
222
|
+
className: "PasswordCredential",
|
|
223
|
+
modelProperties: {
|
|
224
|
+
secretText: {
|
|
225
|
+
serializedName: "secretText",
|
|
226
|
+
type: {
|
|
227
|
+
name: "String"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
keyId: {
|
|
231
|
+
serializedName: "keyId",
|
|
232
|
+
type: {
|
|
233
|
+
name: "String"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
startDateTime: {
|
|
237
|
+
serializedName: "startDateTime",
|
|
238
|
+
type: {
|
|
239
|
+
name: "DateTime"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
endDateTime: {
|
|
243
|
+
serializedName: "endDateTime",
|
|
244
|
+
type: {
|
|
245
|
+
name: "DateTime"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export const ArcIdentityResponse: coreClient.CompositeMapper = {
|
|
253
|
+
type: {
|
|
254
|
+
name: "Composite",
|
|
255
|
+
className: "ArcIdentityResponse",
|
|
256
|
+
modelProperties: {
|
|
257
|
+
arcApplicationClientId: {
|
|
258
|
+
serializedName: "properties.arcApplicationClientId",
|
|
259
|
+
type: {
|
|
260
|
+
name: "String"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
arcApplicationTenantId: {
|
|
264
|
+
serializedName: "properties.arcApplicationTenantId",
|
|
265
|
+
type: {
|
|
266
|
+
name: "String"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
arcServicePrincipalObjectId: {
|
|
270
|
+
serializedName: "properties.arcServicePrincipalObjectId",
|
|
271
|
+
type: {
|
|
272
|
+
name: "String"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
arcApplicationObjectId: {
|
|
276
|
+
serializedName: "properties.arcApplicationObjectId",
|
|
277
|
+
type: {
|
|
278
|
+
name: "String"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
|
|
196
285
|
export const ClusterList: coreClient.CompositeMapper = {
|
|
197
286
|
type: {
|
|
198
287
|
name: "Composite",
|
|
@@ -425,6 +514,75 @@ export const ClusterPatch: coreClient.CompositeMapper = {
|
|
|
425
514
|
}
|
|
426
515
|
};
|
|
427
516
|
|
|
517
|
+
export const UploadCertificateRequest: coreClient.CompositeMapper = {
|
|
518
|
+
type: {
|
|
519
|
+
name: "Composite",
|
|
520
|
+
className: "UploadCertificateRequest",
|
|
521
|
+
modelProperties: {
|
|
522
|
+
properties: {
|
|
523
|
+
serializedName: "properties",
|
|
524
|
+
type: {
|
|
525
|
+
name: "Composite",
|
|
526
|
+
className: "RawCertificateData"
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
export const RawCertificateData: coreClient.CompositeMapper = {
|
|
534
|
+
type: {
|
|
535
|
+
name: "Composite",
|
|
536
|
+
className: "RawCertificateData",
|
|
537
|
+
modelProperties: {
|
|
538
|
+
certificates: {
|
|
539
|
+
serializedName: "certificates",
|
|
540
|
+
type: {
|
|
541
|
+
name: "Sequence",
|
|
542
|
+
element: {
|
|
543
|
+
type: {
|
|
544
|
+
name: "String"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
export const ClusterIdentityResponse: coreClient.CompositeMapper = {
|
|
554
|
+
type: {
|
|
555
|
+
name: "Composite",
|
|
556
|
+
className: "ClusterIdentityResponse",
|
|
557
|
+
modelProperties: {
|
|
558
|
+
aadClientId: {
|
|
559
|
+
serializedName: "properties.aadClientId",
|
|
560
|
+
type: {
|
|
561
|
+
name: "String"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
aadTenantId: {
|
|
565
|
+
serializedName: "properties.aadTenantId",
|
|
566
|
+
type: {
|
|
567
|
+
name: "String"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
aadServicePrincipalObjectId: {
|
|
571
|
+
serializedName: "properties.aadServicePrincipalObjectId",
|
|
572
|
+
type: {
|
|
573
|
+
name: "String"
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
aadApplicationObjectId: {
|
|
577
|
+
serializedName: "properties.aadApplicationObjectId",
|
|
578
|
+
type: {
|
|
579
|
+
name: "String"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
|
|
428
586
|
export const ExtensionList: coreClient.CompositeMapper = {
|
|
429
587
|
type: {
|
|
430
588
|
name: "Composite",
|
|
@@ -594,6 +752,21 @@ export const OperationDisplay: coreClient.CompositeMapper = {
|
|
|
594
752
|
}
|
|
595
753
|
};
|
|
596
754
|
|
|
755
|
+
export const ArcConnectivityProperties: coreClient.CompositeMapper = {
|
|
756
|
+
type: {
|
|
757
|
+
name: "Composite",
|
|
758
|
+
className: "ArcConnectivityProperties",
|
|
759
|
+
modelProperties: {
|
|
760
|
+
enabled: {
|
|
761
|
+
serializedName: "enabled",
|
|
762
|
+
type: {
|
|
763
|
+
name: "Boolean"
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
|
|
597
770
|
export const ProxyResource: coreClient.CompositeMapper = {
|
|
598
771
|
type: {
|
|
599
772
|
name: "Composite",
|
|
@@ -647,6 +820,30 @@ export const ArcSetting: coreClient.CompositeMapper = {
|
|
|
647
820
|
name: "String"
|
|
648
821
|
}
|
|
649
822
|
},
|
|
823
|
+
arcApplicationClientId: {
|
|
824
|
+
serializedName: "properties.arcApplicationClientId",
|
|
825
|
+
type: {
|
|
826
|
+
name: "String"
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
arcApplicationTenantId: {
|
|
830
|
+
serializedName: "properties.arcApplicationTenantId",
|
|
831
|
+
type: {
|
|
832
|
+
name: "String"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
arcServicePrincipalObjectId: {
|
|
836
|
+
serializedName: "properties.arcServicePrincipalObjectId",
|
|
837
|
+
type: {
|
|
838
|
+
name: "String"
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
arcApplicationObjectId: {
|
|
842
|
+
serializedName: "properties.arcApplicationObjectId",
|
|
843
|
+
type: {
|
|
844
|
+
name: "String"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
650
847
|
aggregateState: {
|
|
651
848
|
serializedName: "properties.aggregateState",
|
|
652
849
|
readOnly: true,
|
|
@@ -667,6 +864,13 @@ export const ArcSetting: coreClient.CompositeMapper = {
|
|
|
667
864
|
}
|
|
668
865
|
}
|
|
669
866
|
},
|
|
867
|
+
connectivityProperties: {
|
|
868
|
+
serializedName: "properties.connectivityProperties",
|
|
869
|
+
type: {
|
|
870
|
+
name: "Dictionary",
|
|
871
|
+
value: { type: { name: "any" } }
|
|
872
|
+
}
|
|
873
|
+
},
|
|
670
874
|
createdBy: {
|
|
671
875
|
serializedName: "systemData.createdBy",
|
|
672
876
|
type: {
|
|
@@ -870,6 +1074,18 @@ export const Cluster: coreClient.CompositeMapper = {
|
|
|
870
1074
|
name: "String"
|
|
871
1075
|
}
|
|
872
1076
|
},
|
|
1077
|
+
aadApplicationObjectId: {
|
|
1078
|
+
serializedName: "properties.aadApplicationObjectId",
|
|
1079
|
+
type: {
|
|
1080
|
+
name: "String"
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
aadServicePrincipalObjectId: {
|
|
1084
|
+
serializedName: "properties.aadServicePrincipalObjectId",
|
|
1085
|
+
type: {
|
|
1086
|
+
name: "String"
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
873
1089
|
desiredProperties: {
|
|
874
1090
|
serializedName: "properties.desiredProperties",
|
|
875
1091
|
type: {
|
|
@@ -919,6 +1135,13 @@ export const Cluster: coreClient.CompositeMapper = {
|
|
|
919
1135
|
name: "DateTime"
|
|
920
1136
|
}
|
|
921
1137
|
},
|
|
1138
|
+
serviceEndpoint: {
|
|
1139
|
+
serializedName: "properties.serviceEndpoint",
|
|
1140
|
+
readOnly: true,
|
|
1141
|
+
type: {
|
|
1142
|
+
name: "String"
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
922
1145
|
createdBy: {
|
|
923
1146
|
serializedName: "systemData.createdBy",
|
|
924
1147
|
type: {
|
package/src/models/parameters.ts
CHANGED
|
@@ -13,8 +13,10 @@ import {
|
|
|
13
13
|
} from "@azure/core-client";
|
|
14
14
|
import {
|
|
15
15
|
ArcSetting as ArcSettingMapper,
|
|
16
|
+
ArcSettingsPatch as ArcSettingsPatchMapper,
|
|
16
17
|
Cluster as ClusterMapper,
|
|
17
18
|
ClusterPatch as ClusterPatchMapper,
|
|
19
|
+
UploadCertificateRequest as UploadCertificateRequestMapper,
|
|
18
20
|
Extension as ExtensionMapper
|
|
19
21
|
} from "../models/mappers";
|
|
20
22
|
|
|
@@ -85,7 +87,7 @@ export const clusterName: OperationURLParameter = {
|
|
|
85
87
|
export const apiVersion: OperationQueryParameter = {
|
|
86
88
|
parameterPath: "apiVersion",
|
|
87
89
|
mapper: {
|
|
88
|
-
defaultValue: "2022-
|
|
90
|
+
defaultValue: "2022-05-01",
|
|
89
91
|
isConstant: true,
|
|
90
92
|
serializedName: "api-version",
|
|
91
93
|
type: {
|
|
@@ -122,6 +124,11 @@ export const arcSetting: OperationParameter = {
|
|
|
122
124
|
mapper: ArcSettingMapper
|
|
123
125
|
};
|
|
124
126
|
|
|
127
|
+
export const arcSetting1: OperationParameter = {
|
|
128
|
+
parameterPath: "arcSetting",
|
|
129
|
+
mapper: ArcSettingsPatchMapper
|
|
130
|
+
};
|
|
131
|
+
|
|
125
132
|
export const nextLink: OperationURLParameter = {
|
|
126
133
|
parameterPath: "nextLink",
|
|
127
134
|
mapper: {
|
|
@@ -144,6 +151,11 @@ export const cluster1: OperationParameter = {
|
|
|
144
151
|
mapper: ClusterPatchMapper
|
|
145
152
|
};
|
|
146
153
|
|
|
154
|
+
export const uploadCertificateRequest: OperationParameter = {
|
|
155
|
+
parameterPath: "uploadCertificateRequest",
|
|
156
|
+
mapper: UploadCertificateRequestMapper
|
|
157
|
+
};
|
|
158
|
+
|
|
147
159
|
export const extensionName: OperationURLParameter = {
|
|
148
160
|
parameterPath: "extensionName",
|
|
149
161
|
mapper: {
|
|
@@ -23,7 +23,14 @@ import {
|
|
|
23
23
|
ArcSettingsGetResponse,
|
|
24
24
|
ArcSettingsCreateOptionalParams,
|
|
25
25
|
ArcSettingsCreateResponse,
|
|
26
|
+
ArcSettingsPatch,
|
|
27
|
+
ArcSettingsUpdateOptionalParams,
|
|
28
|
+
ArcSettingsUpdateResponse,
|
|
26
29
|
ArcSettingsDeleteOptionalParams,
|
|
30
|
+
ArcSettingsGeneratePasswordOptionalParams,
|
|
31
|
+
ArcSettingsGeneratePasswordResponse,
|
|
32
|
+
ArcSettingsCreateIdentityOptionalParams,
|
|
33
|
+
ArcSettingsCreateIdentityResponse,
|
|
27
34
|
ArcSettingsListByClusterNextResponse
|
|
28
35
|
} from "../models";
|
|
29
36
|
|
|
@@ -168,6 +175,27 @@ export class ArcSettingsImpl implements ArcSettings {
|
|
|
168
175
|
);
|
|
169
176
|
}
|
|
170
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Update ArcSettings for HCI cluster.
|
|
180
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
181
|
+
* @param clusterName The name of the cluster.
|
|
182
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
183
|
+
* @param arcSetting ArcSettings parameters that needs to be updated
|
|
184
|
+
* @param options The options parameters.
|
|
185
|
+
*/
|
|
186
|
+
update(
|
|
187
|
+
resourceGroupName: string,
|
|
188
|
+
clusterName: string,
|
|
189
|
+
arcSettingName: string,
|
|
190
|
+
arcSetting: ArcSettingsPatch,
|
|
191
|
+
options?: ArcSettingsUpdateOptionalParams
|
|
192
|
+
): Promise<ArcSettingsUpdateResponse> {
|
|
193
|
+
return this.client.sendOperationRequest(
|
|
194
|
+
{ resourceGroupName, clusterName, arcSettingName, arcSetting, options },
|
|
195
|
+
updateOperationSpec
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
171
199
|
/**
|
|
172
200
|
* Delete ArcSetting resource details of HCI Cluster.
|
|
173
201
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -225,11 +253,13 @@ export class ArcSettingsImpl implements ArcSettings {
|
|
|
225
253
|
{ resourceGroupName, clusterName, arcSettingName, options },
|
|
226
254
|
deleteOperationSpec
|
|
227
255
|
);
|
|
228
|
-
|
|
256
|
+
const poller = new LroEngine(lro, {
|
|
229
257
|
resumeFrom: options?.resumeFrom,
|
|
230
258
|
intervalInMs: options?.updateIntervalInMs,
|
|
231
259
|
lroResourceLocationConfig: "azure-async-operation"
|
|
232
260
|
});
|
|
261
|
+
await poller.poll();
|
|
262
|
+
return poller;
|
|
233
263
|
}
|
|
234
264
|
|
|
235
265
|
/**
|
|
@@ -254,6 +284,118 @@ export class ArcSettingsImpl implements ArcSettings {
|
|
|
254
284
|
return poller.pollUntilDone();
|
|
255
285
|
}
|
|
256
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Generate password for arc settings.
|
|
289
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
290
|
+
* @param clusterName The name of the cluster.
|
|
291
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
292
|
+
* @param options The options parameters.
|
|
293
|
+
*/
|
|
294
|
+
generatePassword(
|
|
295
|
+
resourceGroupName: string,
|
|
296
|
+
clusterName: string,
|
|
297
|
+
arcSettingName: string,
|
|
298
|
+
options?: ArcSettingsGeneratePasswordOptionalParams
|
|
299
|
+
): Promise<ArcSettingsGeneratePasswordResponse> {
|
|
300
|
+
return this.client.sendOperationRequest(
|
|
301
|
+
{ resourceGroupName, clusterName, arcSettingName, options },
|
|
302
|
+
generatePasswordOperationSpec
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Create Aad identity for arc settings.
|
|
308
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
309
|
+
* @param clusterName The name of the cluster.
|
|
310
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
311
|
+
* @param options The options parameters.
|
|
312
|
+
*/
|
|
313
|
+
async beginCreateIdentity(
|
|
314
|
+
resourceGroupName: string,
|
|
315
|
+
clusterName: string,
|
|
316
|
+
arcSettingName: string,
|
|
317
|
+
options?: ArcSettingsCreateIdentityOptionalParams
|
|
318
|
+
): Promise<
|
|
319
|
+
PollerLike<
|
|
320
|
+
PollOperationState<ArcSettingsCreateIdentityResponse>,
|
|
321
|
+
ArcSettingsCreateIdentityResponse
|
|
322
|
+
>
|
|
323
|
+
> {
|
|
324
|
+
const directSendOperation = async (
|
|
325
|
+
args: coreClient.OperationArguments,
|
|
326
|
+
spec: coreClient.OperationSpec
|
|
327
|
+
): Promise<ArcSettingsCreateIdentityResponse> => {
|
|
328
|
+
return this.client.sendOperationRequest(args, spec);
|
|
329
|
+
};
|
|
330
|
+
const sendOperation = async (
|
|
331
|
+
args: coreClient.OperationArguments,
|
|
332
|
+
spec: coreClient.OperationSpec
|
|
333
|
+
) => {
|
|
334
|
+
let currentRawResponse:
|
|
335
|
+
| coreClient.FullOperationResponse
|
|
336
|
+
| undefined = undefined;
|
|
337
|
+
const providedCallback = args.options?.onResponse;
|
|
338
|
+
const callback: coreClient.RawResponseCallback = (
|
|
339
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
340
|
+
flatResponse: unknown
|
|
341
|
+
) => {
|
|
342
|
+
currentRawResponse = rawResponse;
|
|
343
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
344
|
+
};
|
|
345
|
+
const updatedArgs = {
|
|
346
|
+
...args,
|
|
347
|
+
options: {
|
|
348
|
+
...args.options,
|
|
349
|
+
onResponse: callback
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
353
|
+
return {
|
|
354
|
+
flatResponse,
|
|
355
|
+
rawResponse: {
|
|
356
|
+
statusCode: currentRawResponse!.status,
|
|
357
|
+
body: currentRawResponse!.parsedBody,
|
|
358
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
const lro = new LroImpl(
|
|
364
|
+
sendOperation,
|
|
365
|
+
{ resourceGroupName, clusterName, arcSettingName, options },
|
|
366
|
+
createIdentityOperationSpec
|
|
367
|
+
);
|
|
368
|
+
const poller = new LroEngine(lro, {
|
|
369
|
+
resumeFrom: options?.resumeFrom,
|
|
370
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
371
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
372
|
+
});
|
|
373
|
+
await poller.poll();
|
|
374
|
+
return poller;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Create Aad identity for arc settings.
|
|
379
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
380
|
+
* @param clusterName The name of the cluster.
|
|
381
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
382
|
+
* @param options The options parameters.
|
|
383
|
+
*/
|
|
384
|
+
async beginCreateIdentityAndWait(
|
|
385
|
+
resourceGroupName: string,
|
|
386
|
+
clusterName: string,
|
|
387
|
+
arcSettingName: string,
|
|
388
|
+
options?: ArcSettingsCreateIdentityOptionalParams
|
|
389
|
+
): Promise<ArcSettingsCreateIdentityResponse> {
|
|
390
|
+
const poller = await this.beginCreateIdentity(
|
|
391
|
+
resourceGroupName,
|
|
392
|
+
clusterName,
|
|
393
|
+
arcSettingName,
|
|
394
|
+
options
|
|
395
|
+
);
|
|
396
|
+
return poller.pollUntilDone();
|
|
397
|
+
}
|
|
398
|
+
|
|
257
399
|
/**
|
|
258
400
|
* ListByClusterNext
|
|
259
401
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -346,6 +488,31 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
346
488
|
mediaType: "json",
|
|
347
489
|
serializer
|
|
348
490
|
};
|
|
491
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
492
|
+
path:
|
|
493
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}",
|
|
494
|
+
httpMethod: "PATCH",
|
|
495
|
+
responses: {
|
|
496
|
+
200: {
|
|
497
|
+
bodyMapper: Mappers.ArcSetting
|
|
498
|
+
},
|
|
499
|
+
default: {
|
|
500
|
+
bodyMapper: Mappers.ErrorResponse
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
requestBody: Parameters.arcSetting1,
|
|
504
|
+
queryParameters: [Parameters.apiVersion],
|
|
505
|
+
urlParameters: [
|
|
506
|
+
Parameters.$host,
|
|
507
|
+
Parameters.subscriptionId,
|
|
508
|
+
Parameters.resourceGroupName,
|
|
509
|
+
Parameters.clusterName,
|
|
510
|
+
Parameters.arcSettingName
|
|
511
|
+
],
|
|
512
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
513
|
+
mediaType: "json",
|
|
514
|
+
serializer
|
|
515
|
+
};
|
|
349
516
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
350
517
|
path:
|
|
351
518
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}",
|
|
@@ -370,6 +537,61 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
370
537
|
headerParameters: [Parameters.accept],
|
|
371
538
|
serializer
|
|
372
539
|
};
|
|
540
|
+
const generatePasswordOperationSpec: coreClient.OperationSpec = {
|
|
541
|
+
path:
|
|
542
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/generatePassword",
|
|
543
|
+
httpMethod: "POST",
|
|
544
|
+
responses: {
|
|
545
|
+
200: {
|
|
546
|
+
bodyMapper: Mappers.PasswordCredential
|
|
547
|
+
},
|
|
548
|
+
default: {
|
|
549
|
+
bodyMapper: Mappers.ErrorResponse
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
queryParameters: [Parameters.apiVersion],
|
|
553
|
+
urlParameters: [
|
|
554
|
+
Parameters.$host,
|
|
555
|
+
Parameters.subscriptionId,
|
|
556
|
+
Parameters.resourceGroupName,
|
|
557
|
+
Parameters.clusterName,
|
|
558
|
+
Parameters.arcSettingName
|
|
559
|
+
],
|
|
560
|
+
headerParameters: [Parameters.accept],
|
|
561
|
+
serializer
|
|
562
|
+
};
|
|
563
|
+
const createIdentityOperationSpec: coreClient.OperationSpec = {
|
|
564
|
+
path:
|
|
565
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/createArcIdentity",
|
|
566
|
+
httpMethod: "POST",
|
|
567
|
+
responses: {
|
|
568
|
+
200: {
|
|
569
|
+
bodyMapper: Mappers.ArcIdentityResponse
|
|
570
|
+
},
|
|
571
|
+
201: {
|
|
572
|
+
bodyMapper: Mappers.ArcIdentityResponse
|
|
573
|
+
},
|
|
574
|
+
202: {
|
|
575
|
+
bodyMapper: Mappers.ArcIdentityResponse
|
|
576
|
+
},
|
|
577
|
+
204: {
|
|
578
|
+
bodyMapper: Mappers.ArcIdentityResponse
|
|
579
|
+
},
|
|
580
|
+
default: {
|
|
581
|
+
bodyMapper: Mappers.ErrorResponse
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
queryParameters: [Parameters.apiVersion],
|
|
585
|
+
urlParameters: [
|
|
586
|
+
Parameters.$host,
|
|
587
|
+
Parameters.subscriptionId,
|
|
588
|
+
Parameters.resourceGroupName,
|
|
589
|
+
Parameters.clusterName,
|
|
590
|
+
Parameters.arcSettingName
|
|
591
|
+
],
|
|
592
|
+
headerParameters: [Parameters.accept],
|
|
593
|
+
serializer
|
|
594
|
+
};
|
|
373
595
|
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
374
596
|
path: "{nextLink}",
|
|
375
597
|
httpMethod: "GET",
|