@azure/arm-servicefabricmesh 3.0.0-beta.3 → 3.0.0-beta.4
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 +2 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +321 -141
- 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/applicationCreateSample.js +11 -3
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +11 -3
- package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +11 -3
- package/dist-esm/samples-dev/applicationGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/applicationListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/applicationListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/codePackageGetContainerLogsSample.js +11 -3
- package/dist-esm/samples-dev/codePackageGetContainerLogsSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayCreateSample.js +11 -3
- package/dist-esm/samples-dev/gatewayCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayDeleteSample.js +11 -3
- package/dist-esm/samples-dev/gatewayDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayGetSample.js +11 -3
- package/dist-esm/samples-dev/gatewayGetSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/gatewayListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/gatewayListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/gatewayListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/networkCreateSample.js +11 -3
- package/dist-esm/samples-dev/networkCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/networkDeleteSample.js +11 -3
- package/dist-esm/samples-dev/networkDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/networkGetSample.js +11 -3
- package/dist-esm/samples-dev/networkGetSample.js.map +1 -1
- package/dist-esm/samples-dev/networkListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/networkListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/networkListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/networkListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/secretCreateSample.js +11 -3
- package/dist-esm/samples-dev/secretCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/secretDeleteSample.js +11 -3
- package/dist-esm/samples-dev/secretDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/secretGetSample.js +11 -3
- package/dist-esm/samples-dev/secretGetSample.js.map +1 -1
- package/dist-esm/samples-dev/secretListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/secretListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/secretListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/secretListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueCreateSample.js +11 -3
- package/dist-esm/samples-dev/secretValueCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueDeleteSample.js +11 -3
- package/dist-esm/samples-dev/secretValueDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueGetSample.js +11 -3
- package/dist-esm/samples-dev/secretValueGetSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueListSample.js +11 -3
- package/dist-esm/samples-dev/secretValueListSample.js.map +1 -1
- package/dist-esm/samples-dev/secretValueListValueSample.js +11 -3
- package/dist-esm/samples-dev/secretValueListValueSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceGetSample.js +11 -3
- package/dist-esm/samples-dev/serviceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceListSample.js +11 -3
- package/dist-esm/samples-dev/serviceListSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceReplicaGetSample.js +11 -3
- package/dist-esm/samples-dev/serviceReplicaGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceReplicaListSample.js +11 -3
- package/dist-esm/samples-dev/serviceReplicaListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeCreateSample.js +11 -3
- package/dist-esm/samples-dev/volumeCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeDeleteSample.js +11 -3
- package/dist-esm/samples-dev/volumeDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGetSample.js +11 -3
- package/dist-esm/samples-dev/volumeGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/volumeListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/volumeListBySubscriptionSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +67 -47
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +5 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -4
- package/dist-esm/src/models/mappers.js +10 -10
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/application.d.ts.map +1 -1
- package/dist-esm/src/operations/application.js +37 -16
- package/dist-esm/src/operations/application.js.map +1 -1
- package/dist-esm/src/operations/gateway.d.ts.map +1 -1
- package/dist-esm/src/operations/gateway.js +37 -16
- package/dist-esm/src/operations/gateway.js.map +1 -1
- package/dist-esm/src/operations/network.d.ts.map +1 -1
- package/dist-esm/src/operations/network.js +37 -16
- package/dist-esm/src/operations/network.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/secret.d.ts.map +1 -1
- package/dist-esm/src/operations/secret.js +37 -16
- package/dist-esm/src/operations/secret.js.map +1 -1
- package/dist-esm/src/operations/secretValueOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/secretValueOperations.js +19 -8
- package/dist-esm/src/operations/secretValueOperations.js.map +1 -1
- package/dist-esm/src/operations/service.d.ts.map +1 -1
- package/dist-esm/src/operations/service.js +19 -8
- package/dist-esm/src/operations/service.js.map +1 -1
- package/dist-esm/src/operations/serviceReplica.d.ts.map +1 -1
- package/dist-esm/src/operations/serviceReplica.js +19 -8
- package/dist-esm/src/operations/serviceReplica.js.map +1 -1
- package/dist-esm/src/operations/volume.d.ts.map +1 -1
- package/dist-esm/src/operations/volume.js +37 -16
- package/dist-esm/src/operations/volume.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.d.ts.map +1 -1
- package/dist-esm/src/serviceFabricMeshManagementClient.js +21 -19
- package/dist-esm/src/serviceFabricMeshManagementClient.js.map +1 -1
- package/package.json +9 -8
- package/review/arm-servicefabricmesh.api.md +87 -78
- package/src/index.ts +1 -0
- package/src/models/index.ts +79 -53
- package/src/models/mappers.ts +10 -10
- package/src/operations/application.ts +46 -19
- package/src/operations/gateway.ts +46 -19
- package/src/operations/network.ts +46 -19
- package/src/operations/operations.ts +21 -9
- package/src/operations/secret.ts +46 -19
- package/src/operations/secretValueOperations.ts +23 -14
- package/src/operations/service.ts +27 -14
- package/src/operations/serviceReplica.ts +28 -15
- package/src/operations/volume.ts +46 -19
- package/src/pagingHelper.ts +39 -0
- package/src/serviceFabricMeshManagementClient.ts +27 -21
- package/types/arm-servicefabricmesh.d.ts +76 -47
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Network } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,15 +17,15 @@ import {
|
|
|
16
17
|
NetworkResourceDescription,
|
|
17
18
|
NetworkListByResourceGroupNextOptionalParams,
|
|
18
19
|
NetworkListByResourceGroupOptionalParams,
|
|
20
|
+
NetworkListByResourceGroupResponse,
|
|
19
21
|
NetworkListBySubscriptionNextOptionalParams,
|
|
20
22
|
NetworkListBySubscriptionOptionalParams,
|
|
23
|
+
NetworkListBySubscriptionResponse,
|
|
21
24
|
NetworkCreateOptionalParams,
|
|
22
25
|
NetworkCreateResponse,
|
|
23
26
|
NetworkGetOptionalParams,
|
|
24
27
|
NetworkGetResponse,
|
|
25
28
|
NetworkDeleteOptionalParams,
|
|
26
|
-
NetworkListByResourceGroupResponse,
|
|
27
|
-
NetworkListBySubscriptionResponse,
|
|
28
29
|
NetworkListByResourceGroupNextResponse,
|
|
29
30
|
NetworkListBySubscriptionNextResponse
|
|
30
31
|
} from "../models";
|
|
@@ -60,19 +61,33 @@ export class NetworkImpl implements Network {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listByResourceGroupPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
72
|
+
);
|
|
65
73
|
}
|
|
66
74
|
};
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
private async *listByResourceGroupPagingPage(
|
|
70
78
|
resourceGroupName: string,
|
|
71
|
-
options?: NetworkListByResourceGroupOptionalParams
|
|
79
|
+
options?: NetworkListByResourceGroupOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
72
81
|
): AsyncIterableIterator<NetworkResourceDescription[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
let result: NetworkListByResourceGroupResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
86
|
+
let page = result.value || [];
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
setContinuationToken(page, continuationToken);
|
|
89
|
+
yield page;
|
|
90
|
+
}
|
|
76
91
|
while (continuationToken) {
|
|
77
92
|
result = await this._listByResourceGroupNext(
|
|
78
93
|
resourceGroupName,
|
|
@@ -80,7 +95,9 @@ export class NetworkImpl implements Network {
|
|
|
80
95
|
options
|
|
81
96
|
);
|
|
82
97
|
continuationToken = result.nextLink;
|
|
83
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
84
101
|
}
|
|
85
102
|
}
|
|
86
103
|
|
|
@@ -112,22 +129,34 @@ export class NetworkImpl implements Network {
|
|
|
112
129
|
[Symbol.asyncIterator]() {
|
|
113
130
|
return this;
|
|
114
131
|
},
|
|
115
|
-
byPage: () => {
|
|
116
|
-
|
|
132
|
+
byPage: (settings?: PageSettings) => {
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
134
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
135
|
+
}
|
|
136
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
117
137
|
}
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
private async *listBySubscriptionPagingPage(
|
|
122
|
-
options?: NetworkListBySubscriptionOptionalParams
|
|
142
|
+
options?: NetworkListBySubscriptionOptionalParams,
|
|
143
|
+
settings?: PageSettings
|
|
123
144
|
): AsyncIterableIterator<NetworkResourceDescription[]> {
|
|
124
|
-
let result
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
let result: NetworkListBySubscriptionResponse;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listBySubscription(options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
127
154
|
while (continuationToken) {
|
|
128
155
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
156
|
continuationToken = result.nextLink;
|
|
130
|
-
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -386,7 +415,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
386
415
|
bodyMapper: Mappers.ErrorModel
|
|
387
416
|
}
|
|
388
417
|
},
|
|
389
|
-
queryParameters: [Parameters.apiVersion],
|
|
390
418
|
urlParameters: [
|
|
391
419
|
Parameters.$host,
|
|
392
420
|
Parameters.nextLink,
|
|
@@ -407,7 +435,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
407
435
|
bodyMapper: Mappers.ErrorModel
|
|
408
436
|
}
|
|
409
437
|
},
|
|
410
|
-
queryParameters: [Parameters.apiVersion],
|
|
411
438
|
urlParameters: [
|
|
412
439
|
Parameters.$host,
|
|
413
440
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listPagingPage(
|
|
58
|
-
options?: OperationsListOptionalParams
|
|
62
|
+
options?: OperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<OperationResult[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OperationsListResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._list(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -130,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
130
143
|
bodyMapper: Mappers.ErrorModel
|
|
131
144
|
}
|
|
132
145
|
},
|
|
133
|
-
queryParameters: [Parameters.apiVersion],
|
|
134
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
147
|
headerParameters: [Parameters.accept],
|
|
136
148
|
serializer
|
package/src/operations/secret.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Secret } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,15 +17,15 @@ import {
|
|
|
16
17
|
SecretResourceDescription,
|
|
17
18
|
SecretListByResourceGroupNextOptionalParams,
|
|
18
19
|
SecretListByResourceGroupOptionalParams,
|
|
20
|
+
SecretListByResourceGroupResponse,
|
|
19
21
|
SecretListBySubscriptionNextOptionalParams,
|
|
20
22
|
SecretListBySubscriptionOptionalParams,
|
|
23
|
+
SecretListBySubscriptionResponse,
|
|
21
24
|
SecretCreateOptionalParams,
|
|
22
25
|
SecretCreateResponse,
|
|
23
26
|
SecretGetOptionalParams,
|
|
24
27
|
SecretGetResponse,
|
|
25
28
|
SecretDeleteOptionalParams,
|
|
26
|
-
SecretListByResourceGroupResponse,
|
|
27
|
-
SecretListBySubscriptionResponse,
|
|
28
29
|
SecretListByResourceGroupNextResponse,
|
|
29
30
|
SecretListBySubscriptionNextResponse
|
|
30
31
|
} from "../models";
|
|
@@ -60,19 +61,33 @@ export class SecretImpl implements Secret {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listByResourceGroupPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
72
|
+
);
|
|
65
73
|
}
|
|
66
74
|
};
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
private async *listByResourceGroupPagingPage(
|
|
70
78
|
resourceGroupName: string,
|
|
71
|
-
options?: SecretListByResourceGroupOptionalParams
|
|
79
|
+
options?: SecretListByResourceGroupOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
72
81
|
): AsyncIterableIterator<SecretResourceDescription[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
let result: SecretListByResourceGroupResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
86
|
+
let page = result.value || [];
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
setContinuationToken(page, continuationToken);
|
|
89
|
+
yield page;
|
|
90
|
+
}
|
|
76
91
|
while (continuationToken) {
|
|
77
92
|
result = await this._listByResourceGroupNext(
|
|
78
93
|
resourceGroupName,
|
|
@@ -80,7 +95,9 @@ export class SecretImpl implements Secret {
|
|
|
80
95
|
options
|
|
81
96
|
);
|
|
82
97
|
continuationToken = result.nextLink;
|
|
83
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
84
101
|
}
|
|
85
102
|
}
|
|
86
103
|
|
|
@@ -112,22 +129,34 @@ export class SecretImpl implements Secret {
|
|
|
112
129
|
[Symbol.asyncIterator]() {
|
|
113
130
|
return this;
|
|
114
131
|
},
|
|
115
|
-
byPage: () => {
|
|
116
|
-
|
|
132
|
+
byPage: (settings?: PageSettings) => {
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
134
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
135
|
+
}
|
|
136
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
117
137
|
}
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
private async *listBySubscriptionPagingPage(
|
|
122
|
-
options?: SecretListBySubscriptionOptionalParams
|
|
142
|
+
options?: SecretListBySubscriptionOptionalParams,
|
|
143
|
+
settings?: PageSettings
|
|
123
144
|
): AsyncIterableIterator<SecretResourceDescription[]> {
|
|
124
|
-
let result
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
let result: SecretListBySubscriptionResponse;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listBySubscription(options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
127
154
|
while (continuationToken) {
|
|
128
155
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
156
|
continuationToken = result.nextLink;
|
|
130
|
-
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -385,7 +414,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
385
414
|
bodyMapper: Mappers.ErrorModel
|
|
386
415
|
}
|
|
387
416
|
},
|
|
388
|
-
queryParameters: [Parameters.apiVersion],
|
|
389
417
|
urlParameters: [
|
|
390
418
|
Parameters.$host,
|
|
391
419
|
Parameters.nextLink,
|
|
@@ -406,7 +434,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
406
434
|
bodyMapper: Mappers.ErrorModel
|
|
407
435
|
}
|
|
408
436
|
},
|
|
409
|
-
queryParameters: [Parameters.apiVersion],
|
|
410
437
|
urlParameters: [
|
|
411
438
|
Parameters.$host,
|
|
412
439
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { SecretValueOperations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,12 +17,12 @@ import {
|
|
|
16
17
|
SecretValueResourceDescription,
|
|
17
18
|
SecretValueListNextOptionalParams,
|
|
18
19
|
SecretValueListOptionalParams,
|
|
20
|
+
SecretValueListResponse,
|
|
19
21
|
SecretValueCreateOptionalParams,
|
|
20
22
|
SecretValueCreateResponse,
|
|
21
23
|
SecretValueGetOptionalParams,
|
|
22
24
|
SecretValueGetResponse,
|
|
23
25
|
SecretValueDeleteOptionalParams,
|
|
24
|
-
SecretValueListResponse,
|
|
25
26
|
SecretValueListValueOptionalParams,
|
|
26
27
|
SecretValueListValueResponse,
|
|
27
28
|
SecretValueListNextResponse
|
|
@@ -64,11 +65,15 @@ export class SecretValueOperationsImpl implements SecretValueOperations {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listPagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
secretResourceName,
|
|
71
|
-
options
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
72
77
|
);
|
|
73
78
|
}
|
|
74
79
|
};
|
|
@@ -77,15 +82,18 @@ export class SecretValueOperationsImpl implements SecretValueOperations {
|
|
|
77
82
|
private async *listPagingPage(
|
|
78
83
|
resourceGroupName: string,
|
|
79
84
|
secretResourceName: string,
|
|
80
|
-
options?: SecretValueListOptionalParams
|
|
85
|
+
options?: SecretValueListOptionalParams,
|
|
86
|
+
settings?: PageSettings
|
|
81
87
|
): AsyncIterableIterator<SecretValueResourceDescription[]> {
|
|
82
|
-
let result
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
let result: SecretValueListResponse;
|
|
89
|
+
let continuationToken = settings?.continuationToken;
|
|
90
|
+
if (!continuationToken) {
|
|
91
|
+
result = await this._list(resourceGroupName, secretResourceName, options);
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
setContinuationToken(page, continuationToken);
|
|
95
|
+
yield page;
|
|
96
|
+
}
|
|
89
97
|
while (continuationToken) {
|
|
90
98
|
result = await this._listNext(
|
|
91
99
|
resourceGroupName,
|
|
@@ -94,7 +102,9 @@ export class SecretValueOperationsImpl implements SecretValueOperations {
|
|
|
94
102
|
options
|
|
95
103
|
);
|
|
96
104
|
continuationToken = result.nextLink;
|
|
97
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
98
108
|
}
|
|
99
109
|
}
|
|
100
110
|
|
|
@@ -390,7 +400,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
390
400
|
bodyMapper: Mappers.ErrorModel
|
|
391
401
|
}
|
|
392
402
|
},
|
|
393
|
-
queryParameters: [Parameters.apiVersion],
|
|
394
403
|
urlParameters: [
|
|
395
404
|
Parameters.$host,
|
|
396
405
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Service } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
ServiceResourceDescription,
|
|
17
18
|
ServiceListNextOptionalParams,
|
|
18
19
|
ServiceListOptionalParams,
|
|
20
|
+
ServiceListResponse,
|
|
19
21
|
ServiceGetOptionalParams,
|
|
20
22
|
ServiceGetResponse,
|
|
21
|
-
ServiceListResponse,
|
|
22
23
|
ServiceListNextResponse
|
|
23
24
|
} from "../models";
|
|
24
25
|
|
|
@@ -59,11 +60,15 @@ export class ServiceImpl implements Service {
|
|
|
59
60
|
[Symbol.asyncIterator]() {
|
|
60
61
|
return this;
|
|
61
62
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
63
67
|
return this.listPagingPage(
|
|
64
68
|
resourceGroupName,
|
|
65
69
|
applicationResourceName,
|
|
66
|
-
options
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
67
72
|
);
|
|
68
73
|
}
|
|
69
74
|
};
|
|
@@ -72,15 +77,22 @@ export class ServiceImpl implements Service {
|
|
|
72
77
|
private async *listPagingPage(
|
|
73
78
|
resourceGroupName: string,
|
|
74
79
|
applicationResourceName: string,
|
|
75
|
-
options?: ServiceListOptionalParams
|
|
80
|
+
options?: ServiceListOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
76
82
|
): AsyncIterableIterator<ServiceResourceDescription[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
let result: ServiceListResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._list(
|
|
87
|
+
resourceGroupName,
|
|
88
|
+
applicationResourceName,
|
|
89
|
+
options
|
|
90
|
+
);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
84
96
|
while (continuationToken) {
|
|
85
97
|
result = await this._listNext(
|
|
86
98
|
resourceGroupName,
|
|
@@ -89,7 +101,9 @@ export class ServiceImpl implements Service {
|
|
|
89
101
|
options
|
|
90
102
|
);
|
|
91
103
|
continuationToken = result.nextLink;
|
|
92
|
-
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
93
107
|
}
|
|
94
108
|
}
|
|
95
109
|
|
|
@@ -228,7 +242,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
228
242
|
bodyMapper: Mappers.ErrorModel
|
|
229
243
|
}
|
|
230
244
|
},
|
|
231
|
-
queryParameters: [Parameters.apiVersion],
|
|
232
245
|
urlParameters: [
|
|
233
246
|
Parameters.$host,
|
|
234
247
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ServiceReplica } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
ServiceReplicaDescription,
|
|
17
18
|
ServiceReplicaListNextOptionalParams,
|
|
18
19
|
ServiceReplicaListOptionalParams,
|
|
20
|
+
ServiceReplicaListResponse,
|
|
19
21
|
ServiceReplicaGetOptionalParams,
|
|
20
22
|
ServiceReplicaGetResponse,
|
|
21
|
-
ServiceReplicaListResponse,
|
|
22
23
|
ServiceReplicaListNextResponse
|
|
23
24
|
} from "../models";
|
|
24
25
|
|
|
@@ -62,12 +63,16 @@ export class ServiceReplicaImpl implements ServiceReplica {
|
|
|
62
63
|
[Symbol.asyncIterator]() {
|
|
63
64
|
return this;
|
|
64
65
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
66
70
|
return this.listPagingPage(
|
|
67
71
|
resourceGroupName,
|
|
68
72
|
applicationResourceName,
|
|
69
73
|
serviceResourceName,
|
|
70
|
-
options
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
@@ -77,16 +82,23 @@ export class ServiceReplicaImpl implements ServiceReplica {
|
|
|
77
82
|
resourceGroupName: string,
|
|
78
83
|
applicationResourceName: string,
|
|
79
84
|
serviceResourceName: string,
|
|
80
|
-
options?: ServiceReplicaListOptionalParams
|
|
85
|
+
options?: ServiceReplicaListOptionalParams,
|
|
86
|
+
settings?: PageSettings
|
|
81
87
|
): AsyncIterableIterator<ServiceReplicaDescription[]> {
|
|
82
|
-
let result
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
let result: ServiceReplicaListResponse;
|
|
89
|
+
let continuationToken = settings?.continuationToken;
|
|
90
|
+
if (!continuationToken) {
|
|
91
|
+
result = await this._list(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
applicationResourceName,
|
|
94
|
+
serviceResourceName,
|
|
95
|
+
options
|
|
96
|
+
);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
90
102
|
while (continuationToken) {
|
|
91
103
|
result = await this._listNext(
|
|
92
104
|
resourceGroupName,
|
|
@@ -96,7 +108,9 @@ export class ServiceReplicaImpl implements ServiceReplica {
|
|
|
96
108
|
options
|
|
97
109
|
);
|
|
98
110
|
continuationToken = result.nextLink;
|
|
99
|
-
|
|
111
|
+
let page = result.value || [];
|
|
112
|
+
setContinuationToken(page, continuationToken);
|
|
113
|
+
yield page;
|
|
100
114
|
}
|
|
101
115
|
}
|
|
102
116
|
|
|
@@ -257,7 +271,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
257
271
|
bodyMapper: Mappers.ErrorModel
|
|
258
272
|
}
|
|
259
273
|
},
|
|
260
|
-
queryParameters: [Parameters.apiVersion],
|
|
261
274
|
urlParameters: [
|
|
262
275
|
Parameters.$host,
|
|
263
276
|
Parameters.nextLink,
|