@azure/arm-azurestackhci 2.1.1-alpha.20220413.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 +4 -4
- 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/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusters.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/clusters.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,OAAO,EACP,wCAAwC,EACxC,yCAAyC,EACzC,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,YAAY,EACZ,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"clusters.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/clusters.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,OAAO,EACP,wCAAwC,EACxC,yCAAyC,EACzC,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,YAAY,EACZ,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,wBAAwB,EACxB,uCAAuC,EACvC,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAGnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACvC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACvC;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,YAAY,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,wBAAwB,EAClD,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;OAMG;IACH,6BAA6B,CAC3B,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,wBAAwB,EAClD,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,8BAA8B,CAAC,EAClD,8BAA8B,CAC/B,CACF,CAAC;IACF;;;;;OAKG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC5C"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for AzureStackHCIClient.",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "3.0.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.5.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
|
-
"@azure/core-rest-pipeline": "^1.
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"module": "./dist-esm/src/index.js",
|
|
29
29
|
"types": "./types/arm-azurestackhci.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@microsoft/api-extractor": "
|
|
31
|
+
"@microsoft/api-extractor": "7.18.11",
|
|
32
32
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
33
33
|
"@rollup/plugin-json": "^4.1.0",
|
|
34
34
|
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
@@ -13,12 +13,34 @@ import { PollOperationState } from '@azure/core-lro';
|
|
|
13
13
|
// @public
|
|
14
14
|
export type ActionType = string;
|
|
15
15
|
|
|
16
|
+
// @public
|
|
17
|
+
export interface ArcConnectivityProperties {
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// @public
|
|
22
|
+
export interface ArcIdentityResponse {
|
|
23
|
+
// (undocumented)
|
|
24
|
+
arcApplicationClientId?: string;
|
|
25
|
+
// (undocumented)
|
|
26
|
+
arcApplicationObjectId?: string;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
arcApplicationTenantId?: string;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
arcServicePrincipalObjectId?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
16
33
|
// @public
|
|
17
34
|
export type ArcSetting = ProxyResource & {
|
|
18
35
|
readonly provisioningState?: ProvisioningState;
|
|
19
36
|
arcInstanceResourceGroup?: string;
|
|
37
|
+
arcApplicationClientId?: string;
|
|
38
|
+
arcApplicationTenantId?: string;
|
|
39
|
+
arcServicePrincipalObjectId?: string;
|
|
40
|
+
arcApplicationObjectId?: string;
|
|
20
41
|
readonly aggregateState?: ArcSettingAggregateState;
|
|
21
42
|
readonly perNodeDetails?: PerNodeState[];
|
|
43
|
+
connectivityProperties?: Record<string, unknown>;
|
|
22
44
|
createdBy?: string;
|
|
23
45
|
createdByType?: CreatedByType;
|
|
24
46
|
createdAt?: Date;
|
|
@@ -38,13 +60,26 @@ export interface ArcSettingList {
|
|
|
38
60
|
|
|
39
61
|
// @public
|
|
40
62
|
export interface ArcSettings {
|
|
63
|
+
beginCreateIdentity(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsCreateIdentityOptionalParams): Promise<PollerLike<PollOperationState<ArcSettingsCreateIdentityResponse>, ArcSettingsCreateIdentityResponse>>;
|
|
64
|
+
beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsCreateIdentityOptionalParams): Promise<ArcSettingsCreateIdentityResponse>;
|
|
41
65
|
beginDelete(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
42
66
|
beginDeleteAndWait(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsDeleteOptionalParams): Promise<void>;
|
|
43
67
|
create(resourceGroupName: string, clusterName: string, arcSettingName: string, arcSetting: ArcSetting, options?: ArcSettingsCreateOptionalParams): Promise<ArcSettingsCreateResponse>;
|
|
68
|
+
generatePassword(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsGeneratePasswordOptionalParams): Promise<ArcSettingsGeneratePasswordResponse>;
|
|
44
69
|
get(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsGetOptionalParams): Promise<ArcSettingsGetResponse>;
|
|
45
70
|
listByCluster(resourceGroupName: string, clusterName: string, options?: ArcSettingsListByClusterOptionalParams): PagedAsyncIterableIterator<ArcSetting>;
|
|
71
|
+
update(resourceGroupName: string, clusterName: string, arcSettingName: string, arcSetting: ArcSettingsPatch, options?: ArcSettingsUpdateOptionalParams): Promise<ArcSettingsUpdateResponse>;
|
|
46
72
|
}
|
|
47
73
|
|
|
74
|
+
// @public
|
|
75
|
+
export interface ArcSettingsCreateIdentityOptionalParams extends coreClient.OperationOptions {
|
|
76
|
+
resumeFrom?: string;
|
|
77
|
+
updateIntervalInMs?: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// @public
|
|
81
|
+
export type ArcSettingsCreateIdentityResponse = ArcIdentityResponse;
|
|
82
|
+
|
|
48
83
|
// @public
|
|
49
84
|
export interface ArcSettingsCreateOptionalParams extends coreClient.OperationOptions {
|
|
50
85
|
}
|
|
@@ -58,6 +93,13 @@ export interface ArcSettingsDeleteOptionalParams extends coreClient.OperationOpt
|
|
|
58
93
|
updateIntervalInMs?: number;
|
|
59
94
|
}
|
|
60
95
|
|
|
96
|
+
// @public
|
|
97
|
+
export interface ArcSettingsGeneratePasswordOptionalParams extends coreClient.OperationOptions {
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// @public
|
|
101
|
+
export type ArcSettingsGeneratePasswordResponse = PasswordCredential;
|
|
102
|
+
|
|
61
103
|
// @public
|
|
62
104
|
export interface ArcSettingsGetOptionalParams extends coreClient.OperationOptions {
|
|
63
105
|
}
|
|
@@ -79,6 +121,21 @@ export interface ArcSettingsListByClusterOptionalParams extends coreClient.Opera
|
|
|
79
121
|
// @public
|
|
80
122
|
export type ArcSettingsListByClusterResponse = ArcSettingList;
|
|
81
123
|
|
|
124
|
+
// @public
|
|
125
|
+
export interface ArcSettingsPatch {
|
|
126
|
+
connectivityProperties?: Record<string, unknown>;
|
|
127
|
+
tags?: {
|
|
128
|
+
[propertyName: string]: string;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// @public
|
|
133
|
+
export interface ArcSettingsUpdateOptionalParams extends coreClient.OperationOptions {
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// @public
|
|
137
|
+
export type ArcSettingsUpdateResponse = ArcSetting;
|
|
138
|
+
|
|
82
139
|
// @public (undocumented)
|
|
83
140
|
export class AzureStackHCIClient extends coreClient.ServiceClient {
|
|
84
141
|
// (undocumented)
|
|
@@ -113,6 +170,8 @@ export type Cluster = TrackedResource & {
|
|
|
113
170
|
cloudManagementEndpoint?: string;
|
|
114
171
|
aadClientId?: string;
|
|
115
172
|
aadTenantId?: string;
|
|
173
|
+
aadApplicationObjectId?: string;
|
|
174
|
+
aadServicePrincipalObjectId?: string;
|
|
116
175
|
desiredProperties?: ClusterDesiredProperties;
|
|
117
176
|
readonly reportedProperties?: ClusterReportedProperties;
|
|
118
177
|
readonly trialDaysRemaining?: number;
|
|
@@ -120,6 +179,7 @@ export type Cluster = TrackedResource & {
|
|
|
120
179
|
readonly registrationTimestamp?: Date;
|
|
121
180
|
readonly lastSyncTimestamp?: Date;
|
|
122
181
|
readonly lastBillingTimestamp?: Date;
|
|
182
|
+
readonly serviceEndpoint?: string;
|
|
123
183
|
createdBy?: string;
|
|
124
184
|
createdByType?: CreatedByType;
|
|
125
185
|
createdAt?: Date;
|
|
@@ -134,6 +194,18 @@ export interface ClusterDesiredProperties {
|
|
|
134
194
|
windowsServerSubscription?: WindowsServerSubscription;
|
|
135
195
|
}
|
|
136
196
|
|
|
197
|
+
// @public
|
|
198
|
+
export interface ClusterIdentityResponse {
|
|
199
|
+
// (undocumented)
|
|
200
|
+
aadApplicationObjectId?: string;
|
|
201
|
+
// (undocumented)
|
|
202
|
+
aadClientId?: string;
|
|
203
|
+
// (undocumented)
|
|
204
|
+
aadServicePrincipalObjectId?: string;
|
|
205
|
+
// (undocumented)
|
|
206
|
+
aadTenantId?: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
137
209
|
// @public
|
|
138
210
|
export interface ClusterList {
|
|
139
211
|
readonly nextLink?: string;
|
|
@@ -178,14 +250,28 @@ export interface ClusterReportedProperties {
|
|
|
178
250
|
|
|
179
251
|
// @public
|
|
180
252
|
export interface Clusters {
|
|
253
|
+
beginCreateIdentity(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise<PollerLike<PollOperationState<ClustersCreateIdentityResponse>, ClustersCreateIdentityResponse>>;
|
|
254
|
+
beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise<ClustersCreateIdentityResponse>;
|
|
255
|
+
beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
256
|
+
beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<void>;
|
|
257
|
+
beginUploadCertificate(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
258
|
+
beginUploadCertificateAndWait(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise<void>;
|
|
181
259
|
create(resourceGroupName: string, clusterName: string, cluster: Cluster, options?: ClustersCreateOptionalParams): Promise<ClustersCreateResponse>;
|
|
182
|
-
delete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<void>;
|
|
183
260
|
get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise<ClustersGetResponse>;
|
|
184
261
|
listByResourceGroup(resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Cluster>;
|
|
185
262
|
listBySubscription(options?: ClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Cluster>;
|
|
186
263
|
update(resourceGroupName: string, clusterName: string, cluster: ClusterPatch, options?: ClustersUpdateOptionalParams): Promise<ClustersUpdateResponse>;
|
|
187
264
|
}
|
|
188
265
|
|
|
266
|
+
// @public
|
|
267
|
+
export interface ClustersCreateIdentityOptionalParams extends coreClient.OperationOptions {
|
|
268
|
+
resumeFrom?: string;
|
|
269
|
+
updateIntervalInMs?: number;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// @public
|
|
273
|
+
export type ClustersCreateIdentityResponse = ClusterIdentityResponse;
|
|
274
|
+
|
|
189
275
|
// @public
|
|
190
276
|
export interface ClustersCreateOptionalParams extends coreClient.OperationOptions {
|
|
191
277
|
}
|
|
@@ -195,6 +281,8 @@ export type ClustersCreateResponse = Cluster;
|
|
|
195
281
|
|
|
196
282
|
// @public
|
|
197
283
|
export interface ClustersDeleteOptionalParams extends coreClient.OperationOptions {
|
|
284
|
+
resumeFrom?: string;
|
|
285
|
+
updateIntervalInMs?: number;
|
|
198
286
|
}
|
|
199
287
|
|
|
200
288
|
// @public
|
|
@@ -239,6 +327,12 @@ export interface ClustersUpdateOptionalParams extends coreClient.OperationOption
|
|
|
239
327
|
// @public
|
|
240
328
|
export type ClustersUpdateResponse = Cluster;
|
|
241
329
|
|
|
330
|
+
// @public
|
|
331
|
+
export interface ClustersUploadCertificateOptionalParams extends coreClient.OperationOptions {
|
|
332
|
+
resumeFrom?: string;
|
|
333
|
+
updateIntervalInMs?: number;
|
|
334
|
+
}
|
|
335
|
+
|
|
242
336
|
// @public
|
|
243
337
|
export type CreatedByType = string;
|
|
244
338
|
|
|
@@ -604,6 +698,18 @@ export type OperationsListResponse = OperationListResult;
|
|
|
604
698
|
// @public
|
|
605
699
|
export type Origin = string;
|
|
606
700
|
|
|
701
|
+
// @public (undocumented)
|
|
702
|
+
export interface PasswordCredential {
|
|
703
|
+
// (undocumented)
|
|
704
|
+
endDateTime?: Date;
|
|
705
|
+
// (undocumented)
|
|
706
|
+
keyId?: string;
|
|
707
|
+
// (undocumented)
|
|
708
|
+
secretText?: string;
|
|
709
|
+
// (undocumented)
|
|
710
|
+
startDateTime?: Date;
|
|
711
|
+
}
|
|
712
|
+
|
|
607
713
|
// @public
|
|
608
714
|
export interface PerNodeExtensionState {
|
|
609
715
|
readonly extension?: string;
|
|
@@ -624,6 +730,12 @@ export type ProvisioningState = string;
|
|
|
624
730
|
// @public
|
|
625
731
|
export type ProxyResource = Resource & {};
|
|
626
732
|
|
|
733
|
+
// @public (undocumented)
|
|
734
|
+
export interface RawCertificateData {
|
|
735
|
+
// (undocumented)
|
|
736
|
+
certificates?: string[];
|
|
737
|
+
}
|
|
738
|
+
|
|
627
739
|
// @public
|
|
628
740
|
export interface Resource {
|
|
629
741
|
readonly id?: string;
|
|
@@ -642,6 +754,12 @@ export type TrackedResource = Resource & {
|
|
|
642
754
|
location: string;
|
|
643
755
|
};
|
|
644
756
|
|
|
757
|
+
// @public (undocumented)
|
|
758
|
+
export interface UploadCertificateRequest {
|
|
759
|
+
// (undocumented)
|
|
760
|
+
properties?: RawCertificateData;
|
|
761
|
+
}
|
|
762
|
+
|
|
645
763
|
// @public
|
|
646
764
|
export type WindowsServerSubscription = string;
|
|
647
765
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
11
|
import * as coreAuth from "@azure/core-auth";
|
|
11
12
|
import {
|
|
12
13
|
ArcSettingsImpl,
|
|
@@ -54,7 +55,7 @@ export class AzureStackHCIClient extends coreClient.ServiceClient {
|
|
|
54
55
|
credential: credentials
|
|
55
56
|
};
|
|
56
57
|
|
|
57
|
-
const packageDetails = `azsdk-js-arm-azurestackhci/
|
|
58
|
+
const packageDetails = `azsdk-js-arm-azurestackhci/3.0.0`;
|
|
58
59
|
const userAgentPrefix =
|
|
59
60
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
60
61
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -69,15 +70,39 @@ export class AzureStackHCIClient extends coreClient.ServiceClient {
|
|
|
69
70
|
userAgentOptions: {
|
|
70
71
|
userAgentPrefix
|
|
71
72
|
},
|
|
72
|
-
baseUri:
|
|
73
|
+
baseUri:
|
|
74
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
73
75
|
};
|
|
74
76
|
super(optionsWithDefaults);
|
|
77
|
+
|
|
78
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
79
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
80
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
81
|
+
(pipelinePolicy) =>
|
|
82
|
+
pipelinePolicy.name ===
|
|
83
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
84
|
+
);
|
|
85
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
86
|
+
this.pipeline.removePolicy({
|
|
87
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
88
|
+
});
|
|
89
|
+
this.pipeline.addPolicy(
|
|
90
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
91
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
92
|
+
challengeCallbacks: {
|
|
93
|
+
authorizeRequestOnChallenge:
|
|
94
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
95
|
+
}
|
|
96
|
+
})
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
75
100
|
// Parameter assignments
|
|
76
101
|
this.subscriptionId = subscriptionId;
|
|
77
102
|
|
|
78
103
|
// Assigning values to Constant parameters
|
|
79
104
|
this.$host = options.$host || "https://management.azure.com";
|
|
80
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
105
|
+
this.apiVersion = options.apiVersion || "2022-05-01";
|
|
81
106
|
this.arcSettings = new ArcSettingsImpl(this);
|
|
82
107
|
this.clusters = new ClustersImpl(this);
|
|
83
108
|
this.extensions = new ExtensionsImpl(this);
|
package/src/models/index.ts
CHANGED
|
@@ -109,6 +109,29 @@ export interface ErrorAdditionalInfo {
|
|
|
109
109
|
readonly info?: Record<string, unknown>;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
/** ArcSetting details to update. */
|
|
113
|
+
export interface ArcSettingsPatch {
|
|
114
|
+
/** Resource tags. */
|
|
115
|
+
tags?: { [propertyName: string]: string };
|
|
116
|
+
/** contains connectivity related configuration for ARC resources */
|
|
117
|
+
connectivityProperties?: Record<string, unknown>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface PasswordCredential {
|
|
121
|
+
secretText?: string;
|
|
122
|
+
keyId?: string;
|
|
123
|
+
startDateTime?: Date;
|
|
124
|
+
endDateTime?: Date;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** ArcIdentity details. */
|
|
128
|
+
export interface ArcIdentityResponse {
|
|
129
|
+
arcApplicationClientId?: string;
|
|
130
|
+
arcApplicationTenantId?: string;
|
|
131
|
+
arcServicePrincipalObjectId?: string;
|
|
132
|
+
arcApplicationObjectId?: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
112
135
|
/** List of clusters. */
|
|
113
136
|
export interface ClusterList {
|
|
114
137
|
/** List of clusters. */
|
|
@@ -232,6 +255,22 @@ export interface ClusterPatch {
|
|
|
232
255
|
desiredProperties?: ClusterDesiredProperties;
|
|
233
256
|
}
|
|
234
257
|
|
|
258
|
+
export interface UploadCertificateRequest {
|
|
259
|
+
properties?: RawCertificateData;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface RawCertificateData {
|
|
263
|
+
certificates?: string[];
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** Cluster Identity details. */
|
|
267
|
+
export interface ClusterIdentityResponse {
|
|
268
|
+
aadClientId?: string;
|
|
269
|
+
aadTenantId?: string;
|
|
270
|
+
aadServicePrincipalObjectId?: string;
|
|
271
|
+
aadApplicationObjectId?: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
235
274
|
/** List of Extensions in HCI cluster. */
|
|
236
275
|
export interface ExtensionList {
|
|
237
276
|
/**
|
|
@@ -329,6 +368,12 @@ export interface OperationDisplay {
|
|
|
329
368
|
readonly description?: string;
|
|
330
369
|
}
|
|
331
370
|
|
|
371
|
+
/** Connectivity related configuration required by arc server. */
|
|
372
|
+
export interface ArcConnectivityProperties {
|
|
373
|
+
/** True indicates ARC connectivity is enabled */
|
|
374
|
+
enabled?: boolean;
|
|
375
|
+
}
|
|
376
|
+
|
|
332
377
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
333
378
|
export type ProxyResource = Resource & {};
|
|
334
379
|
|
|
@@ -349,6 +394,14 @@ export type ArcSetting = ProxyResource & {
|
|
|
349
394
|
readonly provisioningState?: ProvisioningState;
|
|
350
395
|
/** The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. */
|
|
351
396
|
arcInstanceResourceGroup?: string;
|
|
397
|
+
/** App id of arc AAD identity. */
|
|
398
|
+
arcApplicationClientId?: string;
|
|
399
|
+
/** Tenant id of arc AAD identity. */
|
|
400
|
+
arcApplicationTenantId?: string;
|
|
401
|
+
/** Object id of arc AAD service principal. */
|
|
402
|
+
arcServicePrincipalObjectId?: string;
|
|
403
|
+
/** Object id of arc AAD identity. */
|
|
404
|
+
arcApplicationObjectId?: string;
|
|
352
405
|
/**
|
|
353
406
|
* Aggregate state of Arc agent across the nodes in this HCI cluster.
|
|
354
407
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -359,6 +412,8 @@ export type ArcSetting = ProxyResource & {
|
|
|
359
412
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
360
413
|
*/
|
|
361
414
|
readonly perNodeDetails?: PerNodeState[];
|
|
415
|
+
/** contains connectivity related configuration for ARC resources */
|
|
416
|
+
connectivityProperties?: Record<string, unknown>;
|
|
362
417
|
/** The identity that created the resource. */
|
|
363
418
|
createdBy?: string;
|
|
364
419
|
/** The type of identity that created the resource. */
|
|
@@ -441,6 +496,10 @@ export type Cluster = TrackedResource & {
|
|
|
441
496
|
aadClientId?: string;
|
|
442
497
|
/** Tenant id of cluster AAD identity. */
|
|
443
498
|
aadTenantId?: string;
|
|
499
|
+
/** Object id of cluster AAD identity. */
|
|
500
|
+
aadApplicationObjectId?: string;
|
|
501
|
+
/** Id of cluster identity service principal. */
|
|
502
|
+
aadServicePrincipalObjectId?: string;
|
|
444
503
|
/** Desired properties of the cluster. */
|
|
445
504
|
desiredProperties?: ClusterDesiredProperties;
|
|
446
505
|
/**
|
|
@@ -473,6 +532,11 @@ export type Cluster = TrackedResource & {
|
|
|
473
532
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
474
533
|
*/
|
|
475
534
|
readonly lastBillingTimestamp?: Date;
|
|
535
|
+
/**
|
|
536
|
+
* Region specific DataPath Endpoint of the cluster.
|
|
537
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
538
|
+
*/
|
|
539
|
+
readonly serviceEndpoint?: string;
|
|
476
540
|
/** The identity that created the resource. */
|
|
477
541
|
createdBy?: string;
|
|
478
542
|
/** The type of identity that created the resource. */
|
|
@@ -810,6 +874,13 @@ export interface ArcSettingsCreateOptionalParams
|
|
|
810
874
|
/** Contains response data for the create operation. */
|
|
811
875
|
export type ArcSettingsCreateResponse = ArcSetting;
|
|
812
876
|
|
|
877
|
+
/** Optional parameters. */
|
|
878
|
+
export interface ArcSettingsUpdateOptionalParams
|
|
879
|
+
extends coreClient.OperationOptions {}
|
|
880
|
+
|
|
881
|
+
/** Contains response data for the update operation. */
|
|
882
|
+
export type ArcSettingsUpdateResponse = ArcSetting;
|
|
883
|
+
|
|
813
884
|
/** Optional parameters. */
|
|
814
885
|
export interface ArcSettingsDeleteOptionalParams
|
|
815
886
|
extends coreClient.OperationOptions {
|
|
@@ -819,6 +890,25 @@ export interface ArcSettingsDeleteOptionalParams
|
|
|
819
890
|
resumeFrom?: string;
|
|
820
891
|
}
|
|
821
892
|
|
|
893
|
+
/** Optional parameters. */
|
|
894
|
+
export interface ArcSettingsGeneratePasswordOptionalParams
|
|
895
|
+
extends coreClient.OperationOptions {}
|
|
896
|
+
|
|
897
|
+
/** Contains response data for the generatePassword operation. */
|
|
898
|
+
export type ArcSettingsGeneratePasswordResponse = PasswordCredential;
|
|
899
|
+
|
|
900
|
+
/** Optional parameters. */
|
|
901
|
+
export interface ArcSettingsCreateIdentityOptionalParams
|
|
902
|
+
extends coreClient.OperationOptions {
|
|
903
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
904
|
+
updateIntervalInMs?: number;
|
|
905
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
906
|
+
resumeFrom?: string;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/** Contains response data for the createIdentity operation. */
|
|
910
|
+
export type ArcSettingsCreateIdentityResponse = ArcIdentityResponse;
|
|
911
|
+
|
|
822
912
|
/** Optional parameters. */
|
|
823
913
|
export interface ArcSettingsListByClusterNextOptionalParams
|
|
824
914
|
extends coreClient.OperationOptions {}
|
|
@@ -863,7 +953,33 @@ export type ClustersUpdateResponse = Cluster;
|
|
|
863
953
|
|
|
864
954
|
/** Optional parameters. */
|
|
865
955
|
export interface ClustersDeleteOptionalParams
|
|
866
|
-
extends coreClient.OperationOptions {
|
|
956
|
+
extends coreClient.OperationOptions {
|
|
957
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
958
|
+
updateIntervalInMs?: number;
|
|
959
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
960
|
+
resumeFrom?: string;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/** Optional parameters. */
|
|
964
|
+
export interface ClustersUploadCertificateOptionalParams
|
|
965
|
+
extends coreClient.OperationOptions {
|
|
966
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
967
|
+
updateIntervalInMs?: number;
|
|
968
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
969
|
+
resumeFrom?: string;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/** Optional parameters. */
|
|
973
|
+
export interface ClustersCreateIdentityOptionalParams
|
|
974
|
+
extends coreClient.OperationOptions {
|
|
975
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
976
|
+
updateIntervalInMs?: number;
|
|
977
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
978
|
+
resumeFrom?: string;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/** Contains response data for the createIdentity operation. */
|
|
982
|
+
export type ClustersCreateIdentityResponse = ClusterIdentityResponse;
|
|
867
983
|
|
|
868
984
|
/** Optional parameters. */
|
|
869
985
|
export interface ClustersListBySubscriptionNextOptionalParams
|