@azure/arm-azurestackhci 1.1.1 → 2.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +2369 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/azureStackHCIClient.d.ts +21 -0
- package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -0
- package/dist-esm/src/azureStackHCIClient.js +54 -0
- package/dist-esm/src/azureStackHCIClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +864 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +135 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +881 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +137 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/arcSettings.d.ts +72 -0
- package/dist-esm/src/operations/arcSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/arcSettings.js +281 -0
- package/dist-esm/src/operations/arcSettings.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +83 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +356 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +109 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +462 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-azurestackhci.api.md +650 -0
- package/rollup.config.js +181 -30
- package/src/azureStackHCIClient.ts +78 -37
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +775 -366
- package/src/models/mappers.ts +635 -239
- package/src/models/parameters.ts +112 -35
- package/src/operations/arcSettings.ts +394 -0
- package/src/operations/clusters.ts +279 -309
- package/src/operations/extensions.ts +672 -0
- package/src/operations/index.ts +6 -6
- package/src/operations/operations.ts +30 -45
- package/src/operationsInterfaces/arcSettings.ts +89 -0
- package/src/operationsInterfaces/clusters.ts +91 -0
- package/src/operationsInterfaces/extensions.ts +162 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/tsconfig.json +3 -3
- package/types/arm-azurestackhci.d.ts +1146 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-azurestackhci.js +0 -1151
- package/dist/arm-azurestackhci.js.map +0 -1
- package/dist/arm-azurestackhci.min.js +0 -1
- package/dist/arm-azurestackhci.min.js.map +0 -1
- package/esm/azureStackHCIClient.d.ts +0 -25
- package/esm/azureStackHCIClient.d.ts.map +0 -1
- package/esm/azureStackHCIClient.js +0 -39
- package/esm/azureStackHCIClient.js.map +0 -1
- package/esm/azureStackHCIClientContext.d.ts +0 -22
- package/esm/azureStackHCIClientContext.d.ts.map +0 -1
- package/esm/azureStackHCIClientContext.js +0 -61
- package/esm/azureStackHCIClientContext.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -509
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -527
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -82
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -169
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -273
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/azureStackHCIClientContext.ts +0 -68
- package/src/models/clustersMappers.ts +0 -23
- package/src/models/operationsMappers.ts +0 -16
|
@@ -1,113 +1,188 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Clusters } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { AzureStackHCIClient } from "../azureStackHCIClient";
|
|
15
|
+
import {
|
|
16
|
+
Cluster,
|
|
17
|
+
ClustersListBySubscriptionNextOptionalParams,
|
|
18
|
+
ClustersListBySubscriptionOptionalParams,
|
|
19
|
+
ClustersListByResourceGroupNextOptionalParams,
|
|
20
|
+
ClustersListByResourceGroupOptionalParams,
|
|
21
|
+
ClustersListBySubscriptionResponse,
|
|
22
|
+
ClustersListByResourceGroupResponse,
|
|
23
|
+
ClustersGetOptionalParams,
|
|
24
|
+
ClustersGetResponse,
|
|
25
|
+
ClustersCreateOptionalParams,
|
|
26
|
+
ClustersCreateResponse,
|
|
27
|
+
ClusterPatch,
|
|
28
|
+
ClustersUpdateOptionalParams,
|
|
29
|
+
ClustersUpdateResponse,
|
|
30
|
+
ClustersDeleteOptionalParams,
|
|
31
|
+
ClustersListBySubscriptionNextResponse,
|
|
32
|
+
ClustersListByResourceGroupNextResponse
|
|
33
|
+
} from "../models";
|
|
16
34
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing Clusters operations. */
|
|
37
|
+
export class ClustersImpl implements Clusters {
|
|
38
|
+
private readonly client: AzureStackHCIClient;
|
|
20
39
|
|
|
21
40
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
41
|
+
* Initialize a new instance of the class Clusters class.
|
|
42
|
+
* @param client Reference to the service client
|
|
24
43
|
*/
|
|
25
|
-
constructor(client:
|
|
44
|
+
constructor(client: AzureStackHCIClient) {
|
|
26
45
|
this.client = client;
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
/**
|
|
30
49
|
* List all HCI clusters in a subscription.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.ClustersListResponse>
|
|
50
|
+
* @param options The options parameters.
|
|
33
51
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ClusterList>): void;
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ClusterList>, callback?: msRest.ServiceCallback<Models.ClusterList>): Promise<Models.ClustersListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
52
|
+
public listBySubscription(
|
|
53
|
+
options?: ClustersListBySubscriptionOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
55
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
48
59
|
},
|
|
49
|
-
|
|
50
|
-
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listBySubscriptionPagingPage(options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listBySubscriptionPagingPage(
|
|
70
|
+
options?: ClustersListBySubscriptionOptionalParams
|
|
71
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
72
|
+
let result = await this._listBySubscription(options);
|
|
73
|
+
yield result.value || [];
|
|
74
|
+
let continuationToken = result.nextLink;
|
|
75
|
+
while (continuationToken) {
|
|
76
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
77
|
+
continuationToken = result.nextLink;
|
|
78
|
+
yield result.value || [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listBySubscriptionPagingAll(
|
|
83
|
+
options?: ClustersListBySubscriptionOptionalParams
|
|
84
|
+
): AsyncIterableIterator<Cluster> {
|
|
85
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
86
|
+
yield* page;
|
|
87
|
+
}
|
|
51
88
|
}
|
|
52
89
|
|
|
53
90
|
/**
|
|
54
91
|
* List all HCI clusters in a resource group.
|
|
55
92
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
56
|
-
* @param
|
|
57
|
-
* @returns Promise<Models.ClustersListByResourceGroupResponse>
|
|
58
|
-
*/
|
|
59
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListByResourceGroupResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
62
|
-
* @param callback The callback
|
|
93
|
+
* @param options The options parameters.
|
|
63
94
|
*/
|
|
64
|
-
listByResourceGroup(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
{
|
|
95
|
+
public listByResourceGroup(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
98
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
99
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
100
|
+
return {
|
|
101
|
+
next() {
|
|
102
|
+
return iter.next();
|
|
103
|
+
},
|
|
104
|
+
[Symbol.asyncIterator]() {
|
|
105
|
+
return this;
|
|
106
|
+
},
|
|
107
|
+
byPage: () => {
|
|
108
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
private async *listByResourceGroupPagingPage(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
116
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
117
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
118
|
+
yield result.value || [];
|
|
119
|
+
let continuationToken = result.nextLink;
|
|
120
|
+
while (continuationToken) {
|
|
121
|
+
result = await this._listByResourceGroupNext(
|
|
74
122
|
resourceGroupName,
|
|
123
|
+
continuationToken,
|
|
75
124
|
options
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
125
|
+
);
|
|
126
|
+
continuationToken = result.nextLink;
|
|
127
|
+
yield result.value || [];
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
private async *listByResourceGroupPagingAll(
|
|
132
|
+
resourceGroupName: string,
|
|
133
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
134
|
+
): AsyncIterableIterator<Cluster> {
|
|
135
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
136
|
+
resourceGroupName,
|
|
137
|
+
options
|
|
138
|
+
)) {
|
|
139
|
+
yield* page;
|
|
140
|
+
}
|
|
79
141
|
}
|
|
80
142
|
|
|
81
143
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @param
|
|
84
|
-
* @param clusterName The name of the cluster.
|
|
85
|
-
* @param [options] The optional parameters
|
|
86
|
-
* @returns Promise<Models.ClustersGetResponse>
|
|
144
|
+
* List all HCI clusters in a subscription.
|
|
145
|
+
* @param options The options parameters.
|
|
87
146
|
*/
|
|
88
|
-
|
|
147
|
+
private _listBySubscription(
|
|
148
|
+
options?: ClustersListBySubscriptionOptionalParams
|
|
149
|
+
): Promise<ClustersListBySubscriptionResponse> {
|
|
150
|
+
return this.client.sendOperationRequest(
|
|
151
|
+
{ options },
|
|
152
|
+
listBySubscriptionOperationSpec
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
89
156
|
/**
|
|
157
|
+
* List all HCI clusters in a resource group.
|
|
90
158
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
91
|
-
* @param
|
|
92
|
-
* @param callback The callback
|
|
159
|
+
* @param options The options parameters.
|
|
93
160
|
*/
|
|
94
|
-
|
|
161
|
+
private _listByResourceGroup(
|
|
162
|
+
resourceGroupName: string,
|
|
163
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
164
|
+
): Promise<ClustersListByResourceGroupResponse> {
|
|
165
|
+
return this.client.sendOperationRequest(
|
|
166
|
+
{ resourceGroupName, options },
|
|
167
|
+
listByResourceGroupOperationSpec
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
95
171
|
/**
|
|
172
|
+
* Get HCI cluster.
|
|
96
173
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
97
174
|
* @param clusterName The name of the cluster.
|
|
98
|
-
* @param options The
|
|
99
|
-
* @param callback The callback
|
|
175
|
+
* @param options The options parameters.
|
|
100
176
|
*/
|
|
101
|
-
get(
|
|
102
|
-
|
|
177
|
+
get(
|
|
178
|
+
resourceGroupName: string,
|
|
179
|
+
clusterName: string,
|
|
180
|
+
options?: ClustersGetOptionalParams
|
|
181
|
+
): Promise<ClustersGetResponse> {
|
|
103
182
|
return this.client.sendOperationRequest(
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
options
|
|
108
|
-
},
|
|
109
|
-
getOperationSpec,
|
|
110
|
-
callback) as Promise<Models.ClustersGetResponse>;
|
|
183
|
+
{ resourceGroupName, clusterName, options },
|
|
184
|
+
getOperationSpec
|
|
185
|
+
);
|
|
111
186
|
}
|
|
112
187
|
|
|
113
188
|
/**
|
|
@@ -115,172 +190,95 @@ export class Clusters {
|
|
|
115
190
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
116
191
|
* @param clusterName The name of the cluster.
|
|
117
192
|
* @param cluster Details of the HCI cluster.
|
|
118
|
-
* @param
|
|
119
|
-
* @returns Promise<Models.ClustersCreateResponse>
|
|
193
|
+
* @param options The options parameters.
|
|
120
194
|
*/
|
|
121
|
-
create(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
*/
|
|
128
|
-
create(resourceGroupName: string, clusterName: string, cluster: Models.Cluster, callback: msRest.ServiceCallback<Models.Cluster>): void;
|
|
129
|
-
/**
|
|
130
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
131
|
-
* @param clusterName The name of the cluster.
|
|
132
|
-
* @param cluster Details of the HCI cluster.
|
|
133
|
-
* @param options The optional parameters
|
|
134
|
-
* @param callback The callback
|
|
135
|
-
*/
|
|
136
|
-
create(resourceGroupName: string, clusterName: string, cluster: Models.Cluster, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Cluster>): void;
|
|
137
|
-
create(resourceGroupName: string, clusterName: string, cluster: Models.Cluster, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Cluster>, callback?: msRest.ServiceCallback<Models.Cluster>): Promise<Models.ClustersCreateResponse> {
|
|
195
|
+
create(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
clusterName: string,
|
|
198
|
+
cluster: Cluster,
|
|
199
|
+
options?: ClustersCreateOptionalParams
|
|
200
|
+
): Promise<ClustersCreateResponse> {
|
|
138
201
|
return this.client.sendOperationRequest(
|
|
139
|
-
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
cluster,
|
|
143
|
-
options
|
|
144
|
-
},
|
|
145
|
-
createOperationSpec,
|
|
146
|
-
callback) as Promise<Models.ClustersCreateResponse>;
|
|
202
|
+
{ resourceGroupName, clusterName, cluster, options },
|
|
203
|
+
createOperationSpec
|
|
204
|
+
);
|
|
147
205
|
}
|
|
148
206
|
|
|
149
207
|
/**
|
|
150
208
|
* Update an HCI cluster.
|
|
151
209
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
210
|
* @param clusterName The name of the cluster.
|
|
153
|
-
* @param
|
|
154
|
-
* @
|
|
155
|
-
*/
|
|
156
|
-
update(resourceGroupName: string, clusterName: string, options?: Models.ClustersUpdateOptionalParams): Promise<Models.ClustersUpdateResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
159
|
-
* @param clusterName The name of the cluster.
|
|
160
|
-
* @param callback The callback
|
|
161
|
-
*/
|
|
162
|
-
update(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback<Models.Cluster>): void;
|
|
163
|
-
/**
|
|
164
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
165
|
-
* @param clusterName The name of the cluster.
|
|
166
|
-
* @param options The optional parameters
|
|
167
|
-
* @param callback The callback
|
|
211
|
+
* @param cluster Details of the HCI cluster.
|
|
212
|
+
* @param options The options parameters.
|
|
168
213
|
*/
|
|
169
|
-
update(
|
|
170
|
-
|
|
214
|
+
update(
|
|
215
|
+
resourceGroupName: string,
|
|
216
|
+
clusterName: string,
|
|
217
|
+
cluster: ClusterPatch,
|
|
218
|
+
options?: ClustersUpdateOptionalParams
|
|
219
|
+
): Promise<ClustersUpdateResponse> {
|
|
171
220
|
return this.client.sendOperationRequest(
|
|
172
|
-
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
options
|
|
176
|
-
},
|
|
177
|
-
updateOperationSpec,
|
|
178
|
-
callback) as Promise<Models.ClustersUpdateResponse>;
|
|
221
|
+
{ resourceGroupName, clusterName, cluster, options },
|
|
222
|
+
updateOperationSpec
|
|
223
|
+
);
|
|
179
224
|
}
|
|
180
225
|
|
|
181
226
|
/**
|
|
182
227
|
* Delete an HCI cluster.
|
|
183
228
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
184
229
|
* @param clusterName The name of the cluster.
|
|
185
|
-
* @param
|
|
186
|
-
* @returns Promise<msRest.RestResponse>
|
|
187
|
-
*/
|
|
188
|
-
deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
189
|
-
/**
|
|
190
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
191
|
-
* @param clusterName The name of the cluster.
|
|
192
|
-
* @param callback The callback
|
|
193
|
-
*/
|
|
194
|
-
deleteMethod(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback<void>): void;
|
|
195
|
-
/**
|
|
196
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
197
|
-
* @param clusterName The name of the cluster.
|
|
198
|
-
* @param options The optional parameters
|
|
199
|
-
* @param callback The callback
|
|
230
|
+
* @param options The options parameters.
|
|
200
231
|
*/
|
|
201
|
-
|
|
202
|
-
|
|
232
|
+
delete(
|
|
233
|
+
resourceGroupName: string,
|
|
234
|
+
clusterName: string,
|
|
235
|
+
options?: ClustersDeleteOptionalParams
|
|
236
|
+
): Promise<void> {
|
|
203
237
|
return this.client.sendOperationRequest(
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
options
|
|
208
|
-
},
|
|
209
|
-
deleteMethodOperationSpec,
|
|
210
|
-
callback);
|
|
238
|
+
{ resourceGroupName, clusterName, options },
|
|
239
|
+
deleteOperationSpec
|
|
240
|
+
);
|
|
211
241
|
}
|
|
212
242
|
|
|
213
243
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @param
|
|
216
|
-
* @param
|
|
217
|
-
* @returns Promise<Models.ClustersListNextResponse>
|
|
218
|
-
*/
|
|
219
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListNextResponse>;
|
|
220
|
-
/**
|
|
221
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
222
|
-
* @param callback The callback
|
|
244
|
+
* ListBySubscriptionNext
|
|
245
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
246
|
+
* @param options The options parameters.
|
|
223
247
|
*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
* @param callback The callback
|
|
229
|
-
*/
|
|
230
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ClusterList>): void;
|
|
231
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ClusterList>, callback?: msRest.ServiceCallback<Models.ClusterList>): Promise<Models.ClustersListNextResponse> {
|
|
248
|
+
private _listBySubscriptionNext(
|
|
249
|
+
nextLink: string,
|
|
250
|
+
options?: ClustersListBySubscriptionNextOptionalParams
|
|
251
|
+
): Promise<ClustersListBySubscriptionNextResponse> {
|
|
232
252
|
return this.client.sendOperationRequest(
|
|
233
|
-
{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
listNextOperationSpec,
|
|
238
|
-
callback) as Promise<Models.ClustersListNextResponse>;
|
|
253
|
+
{ nextLink, options },
|
|
254
|
+
listBySubscriptionNextOperationSpec
|
|
255
|
+
);
|
|
239
256
|
}
|
|
240
257
|
|
|
241
258
|
/**
|
|
242
|
-
*
|
|
243
|
-
* @param
|
|
244
|
-
* @param
|
|
245
|
-
* @
|
|
246
|
-
*/
|
|
247
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListByResourceGroupNextResponse>;
|
|
248
|
-
/**
|
|
249
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
250
|
-
* @param callback The callback
|
|
251
|
-
*/
|
|
252
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ClusterList>): void;
|
|
253
|
-
/**
|
|
254
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
255
|
-
* @param options The optional parameters
|
|
256
|
-
* @param callback The callback
|
|
259
|
+
* ListByResourceGroupNext
|
|
260
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
261
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
262
|
+
* @param options The options parameters.
|
|
257
263
|
*/
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
private _listByResourceGroupNext(
|
|
265
|
+
resourceGroupName: string,
|
|
266
|
+
nextLink: string,
|
|
267
|
+
options?: ClustersListByResourceGroupNextOptionalParams
|
|
268
|
+
): Promise<ClustersListByResourceGroupNextResponse> {
|
|
260
269
|
return this.client.sendOperationRequest(
|
|
261
|
-
{
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
},
|
|
265
|
-
listByResourceGroupNextOperationSpec,
|
|
266
|
-
callback) as Promise<Models.ClustersListByResourceGroupNextResponse>;
|
|
270
|
+
{ resourceGroupName, nextLink, options },
|
|
271
|
+
listByResourceGroupNextOperationSpec
|
|
272
|
+
);
|
|
267
273
|
}
|
|
268
274
|
}
|
|
269
|
-
|
|
270
275
|
// Operation Specifications
|
|
271
|
-
const serializer =
|
|
272
|
-
|
|
276
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
277
|
+
|
|
278
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
279
|
+
path:
|
|
280
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters",
|
|
273
281
|
httpMethod: "GET",
|
|
274
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters",
|
|
275
|
-
urlParameters: [
|
|
276
|
-
Parameters.subscriptionId
|
|
277
|
-
],
|
|
278
|
-
queryParameters: [
|
|
279
|
-
Parameters.apiVersion
|
|
280
|
-
],
|
|
281
|
-
headerParameters: [
|
|
282
|
-
Parameters.acceptLanguage
|
|
283
|
-
],
|
|
284
282
|
responses: {
|
|
285
283
|
200: {
|
|
286
284
|
bodyMapper: Mappers.ClusterList
|
|
@@ -289,22 +287,15 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
289
287
|
bodyMapper: Mappers.ErrorResponse
|
|
290
288
|
}
|
|
291
289
|
},
|
|
290
|
+
queryParameters: [Parameters.apiVersion],
|
|
291
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
292
|
+
headerParameters: [Parameters.accept],
|
|
292
293
|
serializer
|
|
293
294
|
};
|
|
294
|
-
|
|
295
|
-
|
|
295
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
296
|
+
path:
|
|
297
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters",
|
|
296
298
|
httpMethod: "GET",
|
|
297
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters",
|
|
298
|
-
urlParameters: [
|
|
299
|
-
Parameters.subscriptionId,
|
|
300
|
-
Parameters.resourceGroupName
|
|
301
|
-
],
|
|
302
|
-
queryParameters: [
|
|
303
|
-
Parameters.apiVersion
|
|
304
|
-
],
|
|
305
|
-
headerParameters: [
|
|
306
|
-
Parameters.acceptLanguage
|
|
307
|
-
],
|
|
308
299
|
responses: {
|
|
309
300
|
200: {
|
|
310
301
|
bodyMapper: Mappers.ClusterList
|
|
@@ -313,23 +304,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
313
304
|
bodyMapper: Mappers.ErrorResponse
|
|
314
305
|
}
|
|
315
306
|
},
|
|
316
|
-
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
320
|
-
httpMethod: "GET",
|
|
321
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
307
|
+
queryParameters: [Parameters.apiVersion],
|
|
322
308
|
urlParameters: [
|
|
309
|
+
Parameters.$host,
|
|
323
310
|
Parameters.subscriptionId,
|
|
324
|
-
Parameters.resourceGroupName
|
|
325
|
-
Parameters.clusterName
|
|
326
|
-
],
|
|
327
|
-
queryParameters: [
|
|
328
|
-
Parameters.apiVersion
|
|
329
|
-
],
|
|
330
|
-
headerParameters: [
|
|
331
|
-
Parameters.acceptLanguage
|
|
311
|
+
Parameters.resourceGroupName
|
|
332
312
|
],
|
|
313
|
+
headerParameters: [Parameters.accept],
|
|
314
|
+
serializer
|
|
315
|
+
};
|
|
316
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
317
|
+
path:
|
|
318
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
319
|
+
httpMethod: "GET",
|
|
333
320
|
responses: {
|
|
334
321
|
200: {
|
|
335
322
|
bodyMapper: Mappers.Cluster
|
|
@@ -338,30 +325,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
338
325
|
bodyMapper: Mappers.ErrorResponse
|
|
339
326
|
}
|
|
340
327
|
},
|
|
341
|
-
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
const createOperationSpec: msRest.OperationSpec = {
|
|
345
|
-
httpMethod: "PUT",
|
|
346
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
328
|
+
queryParameters: [Parameters.apiVersion],
|
|
347
329
|
urlParameters: [
|
|
330
|
+
Parameters.$host,
|
|
348
331
|
Parameters.subscriptionId,
|
|
349
332
|
Parameters.resourceGroupName,
|
|
350
333
|
Parameters.clusterName
|
|
351
334
|
],
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
parameterPath: "cluster",
|
|
360
|
-
mapper: {
|
|
361
|
-
...Mappers.Cluster,
|
|
362
|
-
required: true
|
|
363
|
-
}
|
|
364
|
-
},
|
|
335
|
+
headerParameters: [Parameters.accept],
|
|
336
|
+
serializer
|
|
337
|
+
};
|
|
338
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
339
|
+
path:
|
|
340
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
341
|
+
httpMethod: "PUT",
|
|
365
342
|
responses: {
|
|
366
343
|
200: {
|
|
367
344
|
bodyMapper: Mappers.Cluster
|
|
@@ -370,35 +347,22 @@ const createOperationSpec: msRest.OperationSpec = {
|
|
|
370
347
|
bodyMapper: Mappers.ErrorResponse
|
|
371
348
|
}
|
|
372
349
|
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
377
|
-
httpMethod: "PATCH",
|
|
378
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
350
|
+
requestBody: Parameters.cluster,
|
|
351
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
352
|
urlParameters: [
|
|
353
|
+
Parameters.$host,
|
|
380
354
|
Parameters.subscriptionId,
|
|
381
355
|
Parameters.resourceGroupName,
|
|
382
356
|
Parameters.clusterName
|
|
383
357
|
],
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
tags: [
|
|
393
|
-
"options",
|
|
394
|
-
"tags"
|
|
395
|
-
]
|
|
396
|
-
},
|
|
397
|
-
mapper: {
|
|
398
|
-
...Mappers.ClusterUpdate,
|
|
399
|
-
required: true
|
|
400
|
-
}
|
|
401
|
-
},
|
|
358
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
359
|
+
mediaType: "json",
|
|
360
|
+
serializer
|
|
361
|
+
};
|
|
362
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
363
|
+
path:
|
|
364
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
365
|
+
httpMethod: "PATCH",
|
|
402
366
|
responses: {
|
|
403
367
|
200: {
|
|
404
368
|
bodyMapper: Mappers.Cluster
|
|
@@ -407,23 +371,22 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
407
371
|
bodyMapper: Mappers.ErrorResponse
|
|
408
372
|
}
|
|
409
373
|
},
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
414
|
-
httpMethod: "DELETE",
|
|
415
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
374
|
+
requestBody: Parameters.cluster1,
|
|
375
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
376
|
urlParameters: [
|
|
377
|
+
Parameters.$host,
|
|
417
378
|
Parameters.subscriptionId,
|
|
418
379
|
Parameters.resourceGroupName,
|
|
419
380
|
Parameters.clusterName
|
|
420
381
|
],
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
382
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
383
|
+
mediaType: "json",
|
|
384
|
+
serializer
|
|
385
|
+
};
|
|
386
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
387
|
+
path:
|
|
388
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
389
|
+
httpMethod: "DELETE",
|
|
427
390
|
responses: {
|
|
428
391
|
200: {},
|
|
429
392
|
204: {},
|
|
@@ -431,19 +394,19 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
431
394
|
bodyMapper: Mappers.ErrorResponse
|
|
432
395
|
}
|
|
433
396
|
},
|
|
397
|
+
queryParameters: [Parameters.apiVersion],
|
|
398
|
+
urlParameters: [
|
|
399
|
+
Parameters.$host,
|
|
400
|
+
Parameters.subscriptionId,
|
|
401
|
+
Parameters.resourceGroupName,
|
|
402
|
+
Parameters.clusterName
|
|
403
|
+
],
|
|
404
|
+
headerParameters: [Parameters.accept],
|
|
434
405
|
serializer
|
|
435
406
|
};
|
|
436
|
-
|
|
437
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
438
|
-
httpMethod: "GET",
|
|
439
|
-
baseUrl: "https://management.azure.com",
|
|
407
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
440
408
|
path: "{nextLink}",
|
|
441
|
-
|
|
442
|
-
Parameters.nextPageLink
|
|
443
|
-
],
|
|
444
|
-
headerParameters: [
|
|
445
|
-
Parameters.acceptLanguage
|
|
446
|
-
],
|
|
409
|
+
httpMethod: "GET",
|
|
447
410
|
responses: {
|
|
448
411
|
200: {
|
|
449
412
|
bodyMapper: Mappers.ClusterList
|
|
@@ -452,19 +415,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
452
415
|
bodyMapper: Mappers.ErrorResponse
|
|
453
416
|
}
|
|
454
417
|
},
|
|
418
|
+
queryParameters: [Parameters.apiVersion],
|
|
419
|
+
urlParameters: [
|
|
420
|
+
Parameters.$host,
|
|
421
|
+
Parameters.subscriptionId,
|
|
422
|
+
Parameters.nextLink
|
|
423
|
+
],
|
|
424
|
+
headerParameters: [Parameters.accept],
|
|
455
425
|
serializer
|
|
456
426
|
};
|
|
457
|
-
|
|
458
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
459
|
-
httpMethod: "GET",
|
|
460
|
-
baseUrl: "https://management.azure.com",
|
|
427
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
461
428
|
path: "{nextLink}",
|
|
462
|
-
|
|
463
|
-
Parameters.nextPageLink
|
|
464
|
-
],
|
|
465
|
-
headerParameters: [
|
|
466
|
-
Parameters.acceptLanguage
|
|
467
|
-
],
|
|
429
|
+
httpMethod: "GET",
|
|
468
430
|
responses: {
|
|
469
431
|
200: {
|
|
470
432
|
bodyMapper: Mappers.ClusterList
|
|
@@ -473,5 +435,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
473
435
|
bodyMapper: Mappers.ErrorResponse
|
|
474
436
|
}
|
|
475
437
|
},
|
|
438
|
+
queryParameters: [Parameters.apiVersion],
|
|
439
|
+
urlParameters: [
|
|
440
|
+
Parameters.$host,
|
|
441
|
+
Parameters.subscriptionId,
|
|
442
|
+
Parameters.resourceGroupName,
|
|
443
|
+
Parameters.nextLink
|
|
444
|
+
],
|
|
445
|
+
headerParameters: [Parameters.accept],
|
|
476
446
|
serializer
|
|
477
447
|
};
|