@azure/arm-servicefabric 2.1.1-alpha.20231113.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 +25 -9
- package/LICENSE +1 -1
- package/dist/index.js +749 -111
- 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/applicationTypeVersionsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypeVersionsListSample.js +30 -6
- package/dist-esm/samples-dev/applicationTypeVersionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationTypesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationTypesListSample.js +30 -6
- package/dist-esm/samples-dev/applicationTypesListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +19 -9
- package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsListSample.js +30 -6
- package/dist-esm/samples-dev/applicationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsGetSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js.map +1 -1
- package/dist-esm/samples-dev/clusterVersionsListSample.js +10 -2
- package/dist-esm/samples-dev/clusterVersionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +15 -6
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +11 -3
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +11 -3
- package/dist-esm/samples-dev/clustersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +30 -6
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +29 -5
- package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js +15 -6
- package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +11 -3
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +15 -6
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +11 -3
- package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +30 -6
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +38 -8
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +7 -7
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +11 -11
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationTypeVersions.d.ts +26 -5
- package/dist-esm/src/operations/applicationTypeVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationTypeVersions.js +139 -19
- package/dist-esm/src/operations/applicationTypeVersions.js.map +1 -1
- package/dist-esm/src/operations/applicationTypes.d.ts +23 -4
- package/dist-esm/src/operations/applicationTypes.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationTypes.js +109 -8
- package/dist-esm/src/operations/applicationTypes.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts +25 -6
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +137 -16
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/clusterVersions.d.ts +3 -3
- package/dist-esm/src/operations/clusterVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/clusterVersions.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +37 -6
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +204 -13
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts +27 -6
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +148 -30
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/applicationTypeVersions.d.ts +14 -13
- package/dist-esm/src/operationsInterfaces/applicationTypeVersions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/applicationTypes.d.ts +12 -11
- package/dist-esm/src/operationsInterfaces/applicationTypes.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/applications.d.ts +14 -13
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusterVersions.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/clusterVersions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +18 -17
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/services.d.ts +15 -14
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
- package/dist-esm/src/serviceFabricManagementClient.js +1 -1
- package/dist-esm/test/servicefabric_examples.spec.js +73 -11
- package/dist-esm/test/servicefabric_examples.spec.js.map +1 -1
- package/package.json +13 -10
- package/review/arm-servicefabric.api.md +72 -30
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +50 -8
- package/src/models/parameters.ts +12 -12
- package/src/operations/applicationTypeVersions.ts +186 -25
- package/src/operations/applicationTypes.ts +141 -15
- package/src/operations/applications.ts +179 -35
- package/src/operations/clusterVersions.ts +3 -3
- package/src/operations/clusters.ts +245 -30
- package/src/operations/services.ts +193 -35
- package/src/operationsInterfaces/applicationTypeVersions.ts +23 -22
- package/src/operationsInterfaces/applicationTypes.ts +19 -18
- package/src/operationsInterfaces/applications.ts +23 -22
- package/src/operationsInterfaces/clusterVersions.ts +3 -3
- package/src/operationsInterfaces/clusters.ts +28 -26
- package/src/operationsInterfaces/services.ts +25 -24
- package/src/serviceFabricManagementClient.ts +1 -1
- package/types/arm-servicefabric.d.ts +125 -83
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,31 +6,42 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
9
11
|
import { Clusters } from "../operationsInterfaces";
|
|
10
12
|
import * as coreClient from "@azure/core-client";
|
|
11
13
|
import * as Mappers from "../models/mappers";
|
|
12
14
|
import * as Parameters from "../models/parameters";
|
|
13
15
|
import { ServiceFabricManagementClient } from "../serviceFabricManagementClient";
|
|
14
|
-
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
-
import { LroImpl } from "../lroImpl";
|
|
16
16
|
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
Cluster,
|
|
24
|
+
ClustersListByResourceGroupNextOptionalParams,
|
|
25
|
+
ClustersListByResourceGroupOptionalParams,
|
|
26
|
+
ClustersListByResourceGroupResponse,
|
|
27
|
+
ClustersListNextOptionalParams,
|
|
28
|
+
ClustersListOptionalParams,
|
|
29
|
+
ClustersListResponse,
|
|
17
30
|
ClustersGetOptionalParams,
|
|
18
31
|
ClustersGetResponse,
|
|
19
|
-
Cluster,
|
|
20
32
|
ClustersCreateOrUpdateOptionalParams,
|
|
21
33
|
ClustersCreateOrUpdateResponse,
|
|
22
34
|
ClusterUpdateParameters,
|
|
23
35
|
ClustersUpdateOptionalParams,
|
|
24
36
|
ClustersUpdateResponse,
|
|
25
37
|
ClustersDeleteOptionalParams,
|
|
26
|
-
ClustersListByResourceGroupOptionalParams,
|
|
27
|
-
ClustersListByResourceGroupResponse,
|
|
28
|
-
ClustersListOptionalParams,
|
|
29
|
-
ClustersListResponse,
|
|
30
38
|
ClustersListUpgradableVersionsOptionalParams,
|
|
31
|
-
ClustersListUpgradableVersionsResponse
|
|
39
|
+
ClustersListUpgradableVersionsResponse,
|
|
40
|
+
ClustersListByResourceGroupNextResponse,
|
|
41
|
+
ClustersListNextResponse
|
|
32
42
|
} from "../models";
|
|
33
43
|
|
|
44
|
+
/// <reference lib="esnext.asynciterable" />
|
|
34
45
|
/** Class containing Clusters operations. */
|
|
35
46
|
export class ClustersImpl implements Clusters {
|
|
36
47
|
private readonly client: ServiceFabricManagementClient;
|
|
@@ -43,6 +54,131 @@ export class ClustersImpl implements Clusters {
|
|
|
43
54
|
this.client = client;
|
|
44
55
|
}
|
|
45
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Gets all Service Fabric cluster resources created or in the process of being created in the resource
|
|
59
|
+
* group.
|
|
60
|
+
* @param resourceGroupName The name of the resource group.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
public listByResourceGroup(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
66
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
67
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
68
|
+
return {
|
|
69
|
+
next() {
|
|
70
|
+
return iter.next();
|
|
71
|
+
},
|
|
72
|
+
[Symbol.asyncIterator]() {
|
|
73
|
+
return this;
|
|
74
|
+
},
|
|
75
|
+
byPage: (settings?: PageSettings) => {
|
|
76
|
+
if (settings?.maxPageSize) {
|
|
77
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
78
|
+
}
|
|
79
|
+
return this.listByResourceGroupPagingPage(
|
|
80
|
+
resourceGroupName,
|
|
81
|
+
options,
|
|
82
|
+
settings
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listByResourceGroupPagingPage(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
options?: ClustersListByResourceGroupOptionalParams,
|
|
91
|
+
settings?: PageSettings
|
|
92
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
93
|
+
let result: ClustersListByResourceGroupResponse;
|
|
94
|
+
let continuationToken = settings?.continuationToken;
|
|
95
|
+
if (!continuationToken) {
|
|
96
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
102
|
+
while (continuationToken) {
|
|
103
|
+
result = await this._listByResourceGroupNext(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
continuationToken,
|
|
106
|
+
options
|
|
107
|
+
);
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
private async *listByResourceGroupPagingAll(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
118
|
+
): AsyncIterableIterator<Cluster> {
|
|
119
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
120
|
+
resourceGroupName,
|
|
121
|
+
options
|
|
122
|
+
)) {
|
|
123
|
+
yield* page;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Gets all Service Fabric cluster resources created or in the process of being created in the
|
|
129
|
+
* subscription.
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
public list(
|
|
133
|
+
options?: ClustersListOptionalParams
|
|
134
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
135
|
+
const iter = this.listPagingAll(options);
|
|
136
|
+
return {
|
|
137
|
+
next() {
|
|
138
|
+
return iter.next();
|
|
139
|
+
},
|
|
140
|
+
[Symbol.asyncIterator]() {
|
|
141
|
+
return this;
|
|
142
|
+
},
|
|
143
|
+
byPage: (settings?: PageSettings) => {
|
|
144
|
+
if (settings?.maxPageSize) {
|
|
145
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
146
|
+
}
|
|
147
|
+
return this.listPagingPage(options, settings);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
private async *listPagingPage(
|
|
153
|
+
options?: ClustersListOptionalParams,
|
|
154
|
+
settings?: PageSettings
|
|
155
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
156
|
+
let result: ClustersListResponse;
|
|
157
|
+
let continuationToken = settings?.continuationToken;
|
|
158
|
+
if (!continuationToken) {
|
|
159
|
+
result = await this._list(options);
|
|
160
|
+
let page = result.value || [];
|
|
161
|
+
continuationToken = result.nextLink;
|
|
162
|
+
setContinuationToken(page, continuationToken);
|
|
163
|
+
yield page;
|
|
164
|
+
}
|
|
165
|
+
while (continuationToken) {
|
|
166
|
+
result = await this._listNext(continuationToken, options);
|
|
167
|
+
continuationToken = result.nextLink;
|
|
168
|
+
let page = result.value || [];
|
|
169
|
+
setContinuationToken(page, continuationToken);
|
|
170
|
+
yield page;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
private async *listPagingAll(
|
|
175
|
+
options?: ClustersListOptionalParams
|
|
176
|
+
): AsyncIterableIterator<Cluster> {
|
|
177
|
+
for await (const page of this.listPagingPage(options)) {
|
|
178
|
+
yield* page;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
46
182
|
/**
|
|
47
183
|
* Get a Service Fabric cluster resource created or in the process of being created in the specified
|
|
48
184
|
* resource group.
|
|
@@ -74,8 +210,8 @@ export class ClustersImpl implements Clusters {
|
|
|
74
210
|
parameters: Cluster,
|
|
75
211
|
options?: ClustersCreateOrUpdateOptionalParams
|
|
76
212
|
): Promise<
|
|
77
|
-
|
|
78
|
-
|
|
213
|
+
SimplePollerLike<
|
|
214
|
+
OperationState<ClustersCreateOrUpdateResponse>,
|
|
79
215
|
ClustersCreateOrUpdateResponse
|
|
80
216
|
>
|
|
81
217
|
> {
|
|
@@ -85,7 +221,7 @@ export class ClustersImpl implements Clusters {
|
|
|
85
221
|
): Promise<ClustersCreateOrUpdateResponse> => {
|
|
86
222
|
return this.client.sendOperationRequest(args, spec);
|
|
87
223
|
};
|
|
88
|
-
const
|
|
224
|
+
const sendOperationFn = async (
|
|
89
225
|
args: coreClient.OperationArguments,
|
|
90
226
|
spec: coreClient.OperationSpec
|
|
91
227
|
) => {
|
|
@@ -118,13 +254,16 @@ export class ClustersImpl implements Clusters {
|
|
|
118
254
|
};
|
|
119
255
|
};
|
|
120
256
|
|
|
121
|
-
const lro =
|
|
122
|
-
|
|
123
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
124
|
-
createOrUpdateOperationSpec
|
|
125
|
-
);
|
|
126
|
-
const poller =
|
|
127
|
-
|
|
257
|
+
const lro = createLroSpec({
|
|
258
|
+
sendOperationFn,
|
|
259
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
260
|
+
spec: createOrUpdateOperationSpec
|
|
261
|
+
});
|
|
262
|
+
const poller = await createHttpPoller<
|
|
263
|
+
ClustersCreateOrUpdateResponse,
|
|
264
|
+
OperationState<ClustersCreateOrUpdateResponse>
|
|
265
|
+
>(lro, {
|
|
266
|
+
restoreFrom: options?.resumeFrom,
|
|
128
267
|
intervalInMs: options?.updateIntervalInMs
|
|
129
268
|
});
|
|
130
269
|
await poller.poll();
|
|
@@ -167,8 +306,8 @@ export class ClustersImpl implements Clusters {
|
|
|
167
306
|
parameters: ClusterUpdateParameters,
|
|
168
307
|
options?: ClustersUpdateOptionalParams
|
|
169
308
|
): Promise<
|
|
170
|
-
|
|
171
|
-
|
|
309
|
+
SimplePollerLike<
|
|
310
|
+
OperationState<ClustersUpdateResponse>,
|
|
172
311
|
ClustersUpdateResponse
|
|
173
312
|
>
|
|
174
313
|
> {
|
|
@@ -178,7 +317,7 @@ export class ClustersImpl implements Clusters {
|
|
|
178
317
|
): Promise<ClustersUpdateResponse> => {
|
|
179
318
|
return this.client.sendOperationRequest(args, spec);
|
|
180
319
|
};
|
|
181
|
-
const
|
|
320
|
+
const sendOperationFn = async (
|
|
182
321
|
args: coreClient.OperationArguments,
|
|
183
322
|
spec: coreClient.OperationSpec
|
|
184
323
|
) => {
|
|
@@ -211,13 +350,16 @@ export class ClustersImpl implements Clusters {
|
|
|
211
350
|
};
|
|
212
351
|
};
|
|
213
352
|
|
|
214
|
-
const lro =
|
|
215
|
-
|
|
216
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
217
|
-
updateOperationSpec
|
|
218
|
-
);
|
|
219
|
-
const poller =
|
|
220
|
-
|
|
353
|
+
const lro = createLroSpec({
|
|
354
|
+
sendOperationFn,
|
|
355
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
356
|
+
spec: updateOperationSpec
|
|
357
|
+
});
|
|
358
|
+
const poller = await createHttpPoller<
|
|
359
|
+
ClustersUpdateResponse,
|
|
360
|
+
OperationState<ClustersUpdateResponse>
|
|
361
|
+
>(lro, {
|
|
362
|
+
restoreFrom: options?.resumeFrom,
|
|
221
363
|
intervalInMs: options?.updateIntervalInMs
|
|
222
364
|
});
|
|
223
365
|
await poller.poll();
|
|
@@ -270,7 +412,7 @@ export class ClustersImpl implements Clusters {
|
|
|
270
412
|
* @param resourceGroupName The name of the resource group.
|
|
271
413
|
* @param options The options parameters.
|
|
272
414
|
*/
|
|
273
|
-
|
|
415
|
+
private _listByResourceGroup(
|
|
274
416
|
resourceGroupName: string,
|
|
275
417
|
options?: ClustersListByResourceGroupOptionalParams
|
|
276
418
|
): Promise<ClustersListByResourceGroupResponse> {
|
|
@@ -285,7 +427,9 @@ export class ClustersImpl implements Clusters {
|
|
|
285
427
|
* subscription.
|
|
286
428
|
* @param options The options parameters.
|
|
287
429
|
*/
|
|
288
|
-
|
|
430
|
+
private _list(
|
|
431
|
+
options?: ClustersListOptionalParams
|
|
432
|
+
): Promise<ClustersListResponse> {
|
|
289
433
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
290
434
|
}
|
|
291
435
|
|
|
@@ -307,6 +451,38 @@ export class ClustersImpl implements Clusters {
|
|
|
307
451
|
listUpgradableVersionsOperationSpec
|
|
308
452
|
);
|
|
309
453
|
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* ListByResourceGroupNext
|
|
457
|
+
* @param resourceGroupName The name of the resource group.
|
|
458
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
459
|
+
* @param options The options parameters.
|
|
460
|
+
*/
|
|
461
|
+
private _listByResourceGroupNext(
|
|
462
|
+
resourceGroupName: string,
|
|
463
|
+
nextLink: string,
|
|
464
|
+
options?: ClustersListByResourceGroupNextOptionalParams
|
|
465
|
+
): Promise<ClustersListByResourceGroupNextResponse> {
|
|
466
|
+
return this.client.sendOperationRequest(
|
|
467
|
+
{ resourceGroupName, nextLink, options },
|
|
468
|
+
listByResourceGroupNextOperationSpec
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* ListNext
|
|
474
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
475
|
+
* @param options The options parameters.
|
|
476
|
+
*/
|
|
477
|
+
private _listNext(
|
|
478
|
+
nextLink: string,
|
|
479
|
+
options?: ClustersListNextOptionalParams
|
|
480
|
+
): Promise<ClustersListNextResponse> {
|
|
481
|
+
return this.client.sendOperationRequest(
|
|
482
|
+
{ nextLink, options },
|
|
483
|
+
listNextOperationSpec
|
|
484
|
+
);
|
|
485
|
+
}
|
|
310
486
|
}
|
|
311
487
|
// Operation Specifications
|
|
312
488
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -482,3 +658,42 @@ const listUpgradableVersionsOperationSpec: coreClient.OperationSpec = {
|
|
|
482
658
|
mediaType: "json",
|
|
483
659
|
serializer
|
|
484
660
|
};
|
|
661
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
662
|
+
path: "{nextLink}",
|
|
663
|
+
httpMethod: "GET",
|
|
664
|
+
responses: {
|
|
665
|
+
200: {
|
|
666
|
+
bodyMapper: Mappers.ClusterListResult
|
|
667
|
+
},
|
|
668
|
+
default: {
|
|
669
|
+
bodyMapper: Mappers.ErrorModel
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
urlParameters: [
|
|
673
|
+
Parameters.$host,
|
|
674
|
+
Parameters.resourceGroupName,
|
|
675
|
+
Parameters.subscriptionId,
|
|
676
|
+
Parameters.nextLink
|
|
677
|
+
],
|
|
678
|
+
headerParameters: [Parameters.accept],
|
|
679
|
+
serializer
|
|
680
|
+
};
|
|
681
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
682
|
+
path: "{nextLink}",
|
|
683
|
+
httpMethod: "GET",
|
|
684
|
+
responses: {
|
|
685
|
+
200: {
|
|
686
|
+
bodyMapper: Mappers.ClusterListResult
|
|
687
|
+
},
|
|
688
|
+
default: {
|
|
689
|
+
bodyMapper: Mappers.ErrorModel
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
urlParameters: [
|
|
693
|
+
Parameters.$host,
|
|
694
|
+
Parameters.subscriptionId,
|
|
695
|
+
Parameters.nextLink
|
|
696
|
+
],
|
|
697
|
+
headerParameters: [Parameters.accept],
|
|
698
|
+
serializer
|
|
699
|
+
};
|