@azure/arm-confluent 3.0.0-beta.2 → 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 +4 -4
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +1575 -211
- 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/accessInviteUserSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessInviteUserSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessInviteUserSample.js +45 -0
- package/dist-esm/samples-dev/accessInviteUserSample.js.map +1 -0
- package/dist-esm/samples-dev/accessListClustersSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessListClustersSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessListClustersSample.js +42 -0
- package/dist-esm/samples-dev/accessListClustersSample.js.map +1 -0
- package/dist-esm/samples-dev/accessListEnvironmentsSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessListEnvironmentsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessListEnvironmentsSample.js +42 -0
- package/dist-esm/samples-dev/accessListEnvironmentsSample.js.map +1 -0
- package/dist-esm/samples-dev/accessListInvitationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessListInvitationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessListInvitationsSample.js +46 -0
- package/dist-esm/samples-dev/accessListInvitationsSample.js.map +1 -0
- package/dist-esm/samples-dev/accessListRoleBindingsSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessListRoleBindingsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessListRoleBindingsSample.js +42 -0
- package/dist-esm/samples-dev/accessListRoleBindingsSample.js.map +1 -0
- package/dist-esm/samples-dev/accessListServiceAccountsSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessListServiceAccountsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessListServiceAccountsSample.js +42 -0
- package/dist-esm/samples-dev/accessListServiceAccountsSample.js.map +1 -0
- package/dist-esm/samples-dev/accessListUsersSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessListUsersSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessListUsersSample.js +42 -0
- package/dist-esm/samples-dev/accessListUsersSample.js.map +1 -0
- package/dist-esm/samples-dev/marketplaceAgreementsCreateSample.js +11 -3
- package/dist-esm/samples-dev/marketplaceAgreementsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js +17 -7
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationCreateSample.js +18 -5
- package/dist-esm/samples-dev/organizationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationDeleteSample.js +12 -4
- package/dist-esm/samples-dev/organizationDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationGetSample.js +12 -4
- package/dist-esm/samples-dev/organizationGetSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationListByResourceGroupSample.js +18 -8
- package/dist-esm/samples-dev/organizationListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationListBySubscriptionSample.js +17 -7
- package/dist-esm/samples-dev/organizationListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationOperationsListSample.js +16 -8
- package/dist-esm/samples-dev/organizationOperationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/organizationUpdateSample.js +12 -4
- package/dist-esm/samples-dev/organizationUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/validationsValidateOrganizationSample.js +17 -5
- package/dist-esm/samples-dev/validationsValidateOrganizationSample.js.map +1 -1
- package/dist-esm/samples-dev/validationsValidateOrganizationV2Sample.d.ts +2 -0
- package/dist-esm/samples-dev/validationsValidateOrganizationV2Sample.d.ts.map +1 -0
- package/dist-esm/samples-dev/validationsValidateOrganizationV2Sample.js +59 -0
- package/dist-esm/samples-dev/validationsValidateOrganizationV2Sample.js.map +1 -0
- package/dist-esm/src/confluentManagementClient.d.ts +7 -3
- package/dist-esm/src/confluentManagementClient.d.ts.map +1 -1
- package/dist-esm/src/confluentManagementClient.js +64 -17
- package/dist-esm/src/confluentManagementClient.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/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 +368 -21
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +23 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +25 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +896 -3
- 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 +15 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/access.d.ts +69 -0
- package/dist-esm/src/operations/access.d.ts.map +1 -0
- package/dist-esm/src/operations/access.js +254 -0
- package/dist-esm/src/operations/access.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/marketplaceAgreements.d.ts.map +1 -1
- package/dist-esm/src/operations/marketplaceAgreements.js +25 -12
- package/dist-esm/src/operations/marketplaceAgreements.js.map +1 -1
- package/dist-esm/src/operations/organization.d.ts +12 -12
- package/dist-esm/src/operations/organization.d.ts.map +1 -1
- package/dist-esm/src/operations/organization.js +78 -45
- package/dist-esm/src/operations/organization.js.map +1 -1
- package/dist-esm/src/operations/organizationOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/organizationOperations.js +25 -12
- package/dist-esm/src/operations/organizationOperations.js.map +1 -1
- package/dist-esm/src/operations/validations.d.ts +10 -2
- package/dist-esm/src/operations/validations.d.ts.map +1 -1
- package/dist-esm/src/operations/validations.js +34 -1
- package/dist-esm/src/operations/validations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/access.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/access.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/access.js +9 -0
- package/dist-esm/src/operationsInterfaces/access.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/organization.d.ts +10 -10
- package/dist-esm/src/operationsInterfaces/organization.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/validations.d.ts +10 -2
- package/dist-esm/src/operationsInterfaces/validations.d.ts.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/test/confluent_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/confluent_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/confluent_operations_test.spec.js +73 -0
- package/dist-esm/test/confluent_operations_test.spec.js.map +1 -0
- package/package.json +27 -26
- package/review/arm-confluent.api.md +288 -29
- package/src/confluentManagementClient.ts +94 -12
- package/src/index.ts +1 -0
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +389 -5
- package/src/models/mappers.ts +921 -3
- package/src/models/parameters.ts +19 -3
- package/src/operations/access.ts +348 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/marketplaceAgreements.ts +21 -9
- package/src/operations/organization.ts +84 -50
- package/src/operations/organizationOperations.ts +21 -9
- package/src/operations/validations.ts +47 -2
- package/src/operationsInterfaces/access.ts +121 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/organization.ts +11 -11
- package/src/operationsInterfaces/validations.ts +17 -2
- package/src/pagingHelper.ts +39 -0
- package/types/arm-confluent.d.ts +488 -19
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
|
@@ -6,21 +6,26 @@
|
|
|
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 { Organization } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { ConfluentManagementClient } from "../confluentManagementClient";
|
|
15
|
-
import {
|
|
16
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
17
22
|
import {
|
|
18
23
|
OrganizationResource,
|
|
19
24
|
OrganizationListBySubscriptionNextOptionalParams,
|
|
20
25
|
OrganizationListBySubscriptionOptionalParams,
|
|
26
|
+
OrganizationListBySubscriptionResponse,
|
|
21
27
|
OrganizationListByResourceGroupNextOptionalParams,
|
|
22
28
|
OrganizationListByResourceGroupOptionalParams,
|
|
23
|
-
OrganizationListBySubscriptionResponse,
|
|
24
29
|
OrganizationListByResourceGroupResponse,
|
|
25
30
|
OrganizationGetOptionalParams,
|
|
26
31
|
OrganizationGetResponse,
|
|
@@ -61,22 +66,34 @@ export class OrganizationImpl implements Organization {
|
|
|
61
66
|
[Symbol.asyncIterator]() {
|
|
62
67
|
return this;
|
|
63
68
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
-
|
|
69
|
+
byPage: (settings?: PageSettings) => {
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
71
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
+
}
|
|
73
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
66
74
|
}
|
|
67
75
|
};
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
private async *listBySubscriptionPagingPage(
|
|
71
|
-
options?: OrganizationListBySubscriptionOptionalParams
|
|
79
|
+
options?: OrganizationListBySubscriptionOptionalParams,
|
|
80
|
+
settings?: PageSettings
|
|
72
81
|
): AsyncIterableIterator<OrganizationResource[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
let result: OrganizationListBySubscriptionResponse;
|
|
83
|
+
let continuationToken = settings?.continuationToken;
|
|
84
|
+
if (!continuationToken) {
|
|
85
|
+
result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);
|
|
78
93
|
continuationToken = result.nextLink;
|
|
79
|
-
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
setContinuationToken(page, continuationToken);
|
|
96
|
+
yield page;
|
|
80
97
|
}
|
|
81
98
|
}
|
|
82
99
|
|
|
@@ -90,7 +107,7 @@ export class OrganizationImpl implements Organization {
|
|
|
90
107
|
|
|
91
108
|
/**
|
|
92
109
|
* List all Organizations under the specified resource group.
|
|
93
|
-
* @param resourceGroupName
|
|
110
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
94
111
|
* @param options The options parameters.
|
|
95
112
|
*/
|
|
96
113
|
public listByResourceGroup(
|
|
@@ -105,19 +122,33 @@ export class OrganizationImpl implements Organization {
|
|
|
105
122
|
[Symbol.asyncIterator]() {
|
|
106
123
|
return this;
|
|
107
124
|
},
|
|
108
|
-
byPage: () => {
|
|
109
|
-
|
|
125
|
+
byPage: (settings?: PageSettings) => {
|
|
126
|
+
if (settings?.maxPageSize) {
|
|
127
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
128
|
+
}
|
|
129
|
+
return this.listByResourceGroupPagingPage(
|
|
130
|
+
resourceGroupName,
|
|
131
|
+
options,
|
|
132
|
+
settings
|
|
133
|
+
);
|
|
110
134
|
}
|
|
111
135
|
};
|
|
112
136
|
}
|
|
113
137
|
|
|
114
138
|
private async *listByResourceGroupPagingPage(
|
|
115
139
|
resourceGroupName: string,
|
|
116
|
-
options?: OrganizationListByResourceGroupOptionalParams
|
|
140
|
+
options?: OrganizationListByResourceGroupOptionalParams,
|
|
141
|
+
settings?: PageSettings
|
|
117
142
|
): AsyncIterableIterator<OrganizationResource[]> {
|
|
118
|
-
let result
|
|
119
|
-
|
|
120
|
-
|
|
143
|
+
let result: OrganizationListByResourceGroupResponse;
|
|
144
|
+
let continuationToken = settings?.continuationToken;
|
|
145
|
+
if (!continuationToken) {
|
|
146
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
147
|
+
let page = result.value || [];
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
setContinuationToken(page, continuationToken);
|
|
150
|
+
yield page;
|
|
151
|
+
}
|
|
121
152
|
while (continuationToken) {
|
|
122
153
|
result = await this._listByResourceGroupNext(
|
|
123
154
|
resourceGroupName,
|
|
@@ -125,7 +156,9 @@ export class OrganizationImpl implements Organization {
|
|
|
125
156
|
options
|
|
126
157
|
);
|
|
127
158
|
continuationToken = result.nextLink;
|
|
128
|
-
|
|
159
|
+
let page = result.value || [];
|
|
160
|
+
setContinuationToken(page, continuationToken);
|
|
161
|
+
yield page;
|
|
129
162
|
}
|
|
130
163
|
}
|
|
131
164
|
|
|
@@ -156,7 +189,7 @@ export class OrganizationImpl implements Organization {
|
|
|
156
189
|
|
|
157
190
|
/**
|
|
158
191
|
* List all Organizations under the specified resource group.
|
|
159
|
-
* @param resourceGroupName
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
160
193
|
* @param options The options parameters.
|
|
161
194
|
*/
|
|
162
195
|
private _listByResourceGroup(
|
|
@@ -171,7 +204,7 @@ export class OrganizationImpl implements Organization {
|
|
|
171
204
|
|
|
172
205
|
/**
|
|
173
206
|
* Get the properties of a specific Organization resource.
|
|
174
|
-
* @param resourceGroupName
|
|
207
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
175
208
|
* @param organizationName Organization resource name
|
|
176
209
|
* @param options The options parameters.
|
|
177
210
|
*/
|
|
@@ -188,7 +221,7 @@ export class OrganizationImpl implements Organization {
|
|
|
188
221
|
|
|
189
222
|
/**
|
|
190
223
|
* Create Organization resource
|
|
191
|
-
* @param resourceGroupName
|
|
224
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
192
225
|
* @param organizationName Organization resource name
|
|
193
226
|
* @param options The options parameters.
|
|
194
227
|
*/
|
|
@@ -197,8 +230,8 @@ export class OrganizationImpl implements Organization {
|
|
|
197
230
|
organizationName: string,
|
|
198
231
|
options?: OrganizationCreateOptionalParams
|
|
199
232
|
): Promise<
|
|
200
|
-
|
|
201
|
-
|
|
233
|
+
SimplePollerLike<
|
|
234
|
+
OperationState<OrganizationCreateResponse>,
|
|
202
235
|
OrganizationCreateResponse
|
|
203
236
|
>
|
|
204
237
|
> {
|
|
@@ -208,7 +241,7 @@ export class OrganizationImpl implements Organization {
|
|
|
208
241
|
): Promise<OrganizationCreateResponse> => {
|
|
209
242
|
return this.client.sendOperationRequest(args, spec);
|
|
210
243
|
};
|
|
211
|
-
const
|
|
244
|
+
const sendOperationFn = async (
|
|
212
245
|
args: coreClient.OperationArguments,
|
|
213
246
|
spec: coreClient.OperationSpec
|
|
214
247
|
) => {
|
|
@@ -241,15 +274,18 @@ export class OrganizationImpl implements Organization {
|
|
|
241
274
|
};
|
|
242
275
|
};
|
|
243
276
|
|
|
244
|
-
const lro =
|
|
245
|
-
|
|
246
|
-
{ resourceGroupName, organizationName, options },
|
|
247
|
-
createOperationSpec
|
|
248
|
-
);
|
|
249
|
-
const poller =
|
|
250
|
-
|
|
277
|
+
const lro = createLroSpec({
|
|
278
|
+
sendOperationFn,
|
|
279
|
+
args: { resourceGroupName, organizationName, options },
|
|
280
|
+
spec: createOperationSpec
|
|
281
|
+
});
|
|
282
|
+
const poller = await createHttpPoller<
|
|
283
|
+
OrganizationCreateResponse,
|
|
284
|
+
OperationState<OrganizationCreateResponse>
|
|
285
|
+
>(lro, {
|
|
286
|
+
restoreFrom: options?.resumeFrom,
|
|
251
287
|
intervalInMs: options?.updateIntervalInMs,
|
|
252
|
-
|
|
288
|
+
resourceLocationConfig: "azure-async-operation"
|
|
253
289
|
});
|
|
254
290
|
await poller.poll();
|
|
255
291
|
return poller;
|
|
@@ -257,7 +293,7 @@ export class OrganizationImpl implements Organization {
|
|
|
257
293
|
|
|
258
294
|
/**
|
|
259
295
|
* Create Organization resource
|
|
260
|
-
* @param resourceGroupName
|
|
296
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
261
297
|
* @param organizationName Organization resource name
|
|
262
298
|
* @param options The options parameters.
|
|
263
299
|
*/
|
|
@@ -276,7 +312,7 @@ export class OrganizationImpl implements Organization {
|
|
|
276
312
|
|
|
277
313
|
/**
|
|
278
314
|
* Update Organization resource
|
|
279
|
-
* @param resourceGroupName
|
|
315
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
280
316
|
* @param organizationName Organization resource name
|
|
281
317
|
* @param options The options parameters.
|
|
282
318
|
*/
|
|
@@ -293,7 +329,7 @@ export class OrganizationImpl implements Organization {
|
|
|
293
329
|
|
|
294
330
|
/**
|
|
295
331
|
* Delete Organization resource
|
|
296
|
-
* @param resourceGroupName
|
|
332
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
297
333
|
* @param organizationName Organization resource name
|
|
298
334
|
* @param options The options parameters.
|
|
299
335
|
*/
|
|
@@ -301,14 +337,14 @@ export class OrganizationImpl implements Organization {
|
|
|
301
337
|
resourceGroupName: string,
|
|
302
338
|
organizationName: string,
|
|
303
339
|
options?: OrganizationDeleteOptionalParams
|
|
304
|
-
): Promise<
|
|
340
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
305
341
|
const directSendOperation = async (
|
|
306
342
|
args: coreClient.OperationArguments,
|
|
307
343
|
spec: coreClient.OperationSpec
|
|
308
344
|
): Promise<void> => {
|
|
309
345
|
return this.client.sendOperationRequest(args, spec);
|
|
310
346
|
};
|
|
311
|
-
const
|
|
347
|
+
const sendOperationFn = async (
|
|
312
348
|
args: coreClient.OperationArguments,
|
|
313
349
|
spec: coreClient.OperationSpec
|
|
314
350
|
) => {
|
|
@@ -341,15 +377,15 @@ export class OrganizationImpl implements Organization {
|
|
|
341
377
|
};
|
|
342
378
|
};
|
|
343
379
|
|
|
344
|
-
const lro =
|
|
345
|
-
|
|
346
|
-
{ resourceGroupName, organizationName, options },
|
|
347
|
-
deleteOperationSpec
|
|
348
|
-
);
|
|
349
|
-
const poller =
|
|
350
|
-
|
|
380
|
+
const lro = createLroSpec({
|
|
381
|
+
sendOperationFn,
|
|
382
|
+
args: { resourceGroupName, organizationName, options },
|
|
383
|
+
spec: deleteOperationSpec
|
|
384
|
+
});
|
|
385
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
386
|
+
restoreFrom: options?.resumeFrom,
|
|
351
387
|
intervalInMs: options?.updateIntervalInMs,
|
|
352
|
-
|
|
388
|
+
resourceLocationConfig: "location"
|
|
353
389
|
});
|
|
354
390
|
await poller.poll();
|
|
355
391
|
return poller;
|
|
@@ -357,7 +393,7 @@ export class OrganizationImpl implements Organization {
|
|
|
357
393
|
|
|
358
394
|
/**
|
|
359
395
|
* Delete Organization resource
|
|
360
|
-
* @param resourceGroupName
|
|
396
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
361
397
|
* @param organizationName Organization resource name
|
|
362
398
|
* @param options The options parameters.
|
|
363
399
|
*/
|
|
@@ -391,7 +427,7 @@ export class OrganizationImpl implements Organization {
|
|
|
391
427
|
|
|
392
428
|
/**
|
|
393
429
|
* ListByResourceGroupNext
|
|
394
|
-
* @param resourceGroupName
|
|
430
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
395
431
|
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
396
432
|
* @param options The options parameters.
|
|
397
433
|
*/
|
|
@@ -560,7 +596,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
560
596
|
bodyMapper: Mappers.ResourceProviderDefaultErrorResponse
|
|
561
597
|
}
|
|
562
598
|
},
|
|
563
|
-
queryParameters: [Parameters.apiVersion],
|
|
564
599
|
urlParameters: [
|
|
565
600
|
Parameters.$host,
|
|
566
601
|
Parameters.subscriptionId,
|
|
@@ -580,7 +615,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
580
615
|
bodyMapper: Mappers.ResourceProviderDefaultErrorResponse
|
|
581
616
|
}
|
|
582
617
|
},
|
|
583
|
-
queryParameters: [Parameters.apiVersion],
|
|
584
618
|
urlParameters: [
|
|
585
619
|
Parameters.$host,
|
|
586
620
|
Parameters.subscriptionId,
|
|
@@ -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 { OrganizationOperations } 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 OrganizationOperationsImpl implements OrganizationOperations {
|
|
|
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?: OrganizationOperationsListOptionalParams
|
|
62
|
+
options?: OrganizationOperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<OperationResult[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OrganizationOperationsListResponse;
|
|
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.ResourceProviderDefaultErrorResponse
|
|
131
144
|
}
|
|
132
145
|
},
|
|
133
|
-
queryParameters: [Parameters.apiVersion],
|
|
134
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
147
|
headerParameters: [Parameters.accept],
|
|
136
148
|
serializer
|
|
@@ -14,7 +14,9 @@ import { ConfluentManagementClient } from "../confluentManagementClient";
|
|
|
14
14
|
import {
|
|
15
15
|
OrganizationResource,
|
|
16
16
|
ValidationsValidateOrganizationOptionalParams,
|
|
17
|
-
ValidationsValidateOrganizationResponse
|
|
17
|
+
ValidationsValidateOrganizationResponse,
|
|
18
|
+
ValidationsValidateOrganizationV2OptionalParams,
|
|
19
|
+
ValidationsValidateOrganizationV2Response
|
|
18
20
|
} from "../models";
|
|
19
21
|
|
|
20
22
|
/** Class containing Validations operations. */
|
|
@@ -31,7 +33,7 @@ export class ValidationsImpl implements Validations {
|
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
35
|
* Organization Validate proxy resource
|
|
34
|
-
* @param resourceGroupName
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
37
|
* @param organizationName Organization resource name
|
|
36
38
|
* @param body Organization resource model
|
|
37
39
|
* @param options The options parameters.
|
|
@@ -47,6 +49,25 @@ export class ValidationsImpl implements Validations {
|
|
|
47
49
|
validateOrganizationOperationSpec
|
|
48
50
|
);
|
|
49
51
|
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Organization Validate proxy resource
|
|
55
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
56
|
+
* @param organizationName Organization resource name
|
|
57
|
+
* @param body Organization resource model
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
validateOrganizationV2(
|
|
61
|
+
resourceGroupName: string,
|
|
62
|
+
organizationName: string,
|
|
63
|
+
body: OrganizationResource,
|
|
64
|
+
options?: ValidationsValidateOrganizationV2OptionalParams
|
|
65
|
+
): Promise<ValidationsValidateOrganizationV2Response> {
|
|
66
|
+
return this.client.sendOperationRequest(
|
|
67
|
+
{ resourceGroupName, organizationName, body, options },
|
|
68
|
+
validateOrganizationV2OperationSpec
|
|
69
|
+
);
|
|
70
|
+
}
|
|
50
71
|
}
|
|
51
72
|
// Operation Specifications
|
|
52
73
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -75,3 +96,27 @@ const validateOrganizationOperationSpec: coreClient.OperationSpec = {
|
|
|
75
96
|
mediaType: "json",
|
|
76
97
|
serializer
|
|
77
98
|
};
|
|
99
|
+
const validateOrganizationV2OperationSpec: coreClient.OperationSpec = {
|
|
100
|
+
path:
|
|
101
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidateV2",
|
|
102
|
+
httpMethod: "POST",
|
|
103
|
+
responses: {
|
|
104
|
+
200: {
|
|
105
|
+
bodyMapper: Mappers.ValidationResponse
|
|
106
|
+
},
|
|
107
|
+
default: {
|
|
108
|
+
bodyMapper: Mappers.ResourceProviderDefaultErrorResponse
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
requestBody: Parameters.body3,
|
|
112
|
+
queryParameters: [Parameters.apiVersion],
|
|
113
|
+
urlParameters: [
|
|
114
|
+
Parameters.$host,
|
|
115
|
+
Parameters.subscriptionId,
|
|
116
|
+
Parameters.resourceGroupName,
|
|
117
|
+
Parameters.organizationName
|
|
118
|
+
],
|
|
119
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
120
|
+
mediaType: "json",
|
|
121
|
+
serializer
|
|
122
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
ListAccessRequestModel,
|
|
11
|
+
AccessListUsersOptionalParams,
|
|
12
|
+
AccessListUsersResponse,
|
|
13
|
+
AccessListServiceAccountsOptionalParams,
|
|
14
|
+
AccessListServiceAccountsResponse,
|
|
15
|
+
AccessListInvitationsOptionalParams,
|
|
16
|
+
AccessListInvitationsResponse,
|
|
17
|
+
AccessInviteUserAccountModel,
|
|
18
|
+
AccessInviteUserOptionalParams,
|
|
19
|
+
AccessInviteUserResponse,
|
|
20
|
+
AccessListEnvironmentsOptionalParams,
|
|
21
|
+
AccessListEnvironmentsResponse,
|
|
22
|
+
AccessListClustersOptionalParams,
|
|
23
|
+
AccessListClustersResponse,
|
|
24
|
+
AccessListRoleBindingsOptionalParams,
|
|
25
|
+
AccessListRoleBindingsResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/** Interface representing a Access. */
|
|
29
|
+
export interface Access {
|
|
30
|
+
/**
|
|
31
|
+
* Organization users details
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param organizationName Organization resource name
|
|
34
|
+
* @param body List Access Request Model
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
listUsers(
|
|
38
|
+
resourceGroupName: string,
|
|
39
|
+
organizationName: string,
|
|
40
|
+
body: ListAccessRequestModel,
|
|
41
|
+
options?: AccessListUsersOptionalParams
|
|
42
|
+
): Promise<AccessListUsersResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Organization service accounts details
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
46
|
+
* @param organizationName Organization resource name
|
|
47
|
+
* @param body List Access Request Model
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
listServiceAccounts(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
organizationName: string,
|
|
53
|
+
body: ListAccessRequestModel,
|
|
54
|
+
options?: AccessListServiceAccountsOptionalParams
|
|
55
|
+
): Promise<AccessListServiceAccountsResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Organization accounts invitation details
|
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
59
|
+
* @param organizationName Organization resource name
|
|
60
|
+
* @param body List Access Request Model
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
listInvitations(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
organizationName: string,
|
|
66
|
+
body: ListAccessRequestModel,
|
|
67
|
+
options?: AccessListInvitationsOptionalParams
|
|
68
|
+
): Promise<AccessListInvitationsResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Invite user to the organization
|
|
71
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
72
|
+
* @param organizationName Organization resource name
|
|
73
|
+
* @param body Invite user account model
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
inviteUser(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
organizationName: string,
|
|
79
|
+
body: AccessInviteUserAccountModel,
|
|
80
|
+
options?: AccessInviteUserOptionalParams
|
|
81
|
+
): Promise<AccessInviteUserResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Environment list of an organization
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param organizationName Organization resource name
|
|
86
|
+
* @param body List Access Request Model
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
listEnvironments(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
organizationName: string,
|
|
92
|
+
body: ListAccessRequestModel,
|
|
93
|
+
options?: AccessListEnvironmentsOptionalParams
|
|
94
|
+
): Promise<AccessListEnvironmentsResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Cluster details
|
|
97
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
98
|
+
* @param organizationName Organization resource name
|
|
99
|
+
* @param body List Access Request Model
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
listClusters(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
organizationName: string,
|
|
105
|
+
body: ListAccessRequestModel,
|
|
106
|
+
options?: AccessListClustersOptionalParams
|
|
107
|
+
): Promise<AccessListClustersResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* Organization role bindings
|
|
110
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
111
|
+
* @param organizationName Organization resource name
|
|
112
|
+
* @param body List Access Request Model
|
|
113
|
+
* @param options The options parameters.
|
|
114
|
+
*/
|
|
115
|
+
listRoleBindings(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
organizationName: string,
|
|
118
|
+
body: ListAccessRequestModel,
|
|
119
|
+
options?: AccessListRoleBindingsOptionalParams
|
|
120
|
+
): Promise<AccessListRoleBindingsResponse>;
|
|
121
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
OrganizationResource,
|
|
13
13
|
OrganizationListBySubscriptionOptionalParams,
|
|
@@ -33,7 +33,7 @@ export interface Organization {
|
|
|
33
33
|
): PagedAsyncIterableIterator<OrganizationResource>;
|
|
34
34
|
/**
|
|
35
35
|
* List all Organizations under the specified resource group.
|
|
36
|
-
* @param resourceGroupName
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
37
|
* @param options The options parameters.
|
|
38
38
|
*/
|
|
39
39
|
listByResourceGroup(
|
|
@@ -42,7 +42,7 @@ export interface Organization {
|
|
|
42
42
|
): PagedAsyncIterableIterator<OrganizationResource>;
|
|
43
43
|
/**
|
|
44
44
|
* Get the properties of a specific Organization resource.
|
|
45
|
-
* @param resourceGroupName
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
46
46
|
* @param organizationName Organization resource name
|
|
47
47
|
* @param options The options parameters.
|
|
48
48
|
*/
|
|
@@ -53,7 +53,7 @@ export interface Organization {
|
|
|
53
53
|
): Promise<OrganizationGetResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Create Organization resource
|
|
56
|
-
* @param resourceGroupName
|
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
57
|
* @param organizationName Organization resource name
|
|
58
58
|
* @param options The options parameters.
|
|
59
59
|
*/
|
|
@@ -62,14 +62,14 @@ export interface Organization {
|
|
|
62
62
|
organizationName: string,
|
|
63
63
|
options?: OrganizationCreateOptionalParams
|
|
64
64
|
): Promise<
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
SimplePollerLike<
|
|
66
|
+
OperationState<OrganizationCreateResponse>,
|
|
67
67
|
OrganizationCreateResponse
|
|
68
68
|
>
|
|
69
69
|
>;
|
|
70
70
|
/**
|
|
71
71
|
* Create Organization resource
|
|
72
|
-
* @param resourceGroupName
|
|
72
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
73
73
|
* @param organizationName Organization resource name
|
|
74
74
|
* @param options The options parameters.
|
|
75
75
|
*/
|
|
@@ -80,7 +80,7 @@ export interface Organization {
|
|
|
80
80
|
): Promise<OrganizationCreateResponse>;
|
|
81
81
|
/**
|
|
82
82
|
* Update Organization resource
|
|
83
|
-
* @param resourceGroupName
|
|
83
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
84
84
|
* @param organizationName Organization resource name
|
|
85
85
|
* @param options The options parameters.
|
|
86
86
|
*/
|
|
@@ -91,7 +91,7 @@ export interface Organization {
|
|
|
91
91
|
): Promise<OrganizationUpdateResponse>;
|
|
92
92
|
/**
|
|
93
93
|
* Delete Organization resource
|
|
94
|
-
* @param resourceGroupName
|
|
94
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
95
95
|
* @param organizationName Organization resource name
|
|
96
96
|
* @param options The options parameters.
|
|
97
97
|
*/
|
|
@@ -99,10 +99,10 @@ export interface Organization {
|
|
|
99
99
|
resourceGroupName: string,
|
|
100
100
|
organizationName: string,
|
|
101
101
|
options?: OrganizationDeleteOptionalParams
|
|
102
|
-
): Promise<
|
|
102
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
103
103
|
/**
|
|
104
104
|
* Delete Organization resource
|
|
105
|
-
* @param resourceGroupName
|
|
105
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
106
106
|
* @param organizationName Organization resource name
|
|
107
107
|
* @param options The options parameters.
|
|
108
108
|
*/
|
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
import {
|
|
10
10
|
OrganizationResource,
|
|
11
11
|
ValidationsValidateOrganizationOptionalParams,
|
|
12
|
-
ValidationsValidateOrganizationResponse
|
|
12
|
+
ValidationsValidateOrganizationResponse,
|
|
13
|
+
ValidationsValidateOrganizationV2OptionalParams,
|
|
14
|
+
ValidationsValidateOrganizationV2Response
|
|
13
15
|
} from "../models";
|
|
14
16
|
|
|
15
17
|
/** Interface representing a Validations. */
|
|
16
18
|
export interface Validations {
|
|
17
19
|
/**
|
|
18
20
|
* Organization Validate proxy resource
|
|
19
|
-
* @param resourceGroupName
|
|
21
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
20
22
|
* @param organizationName Organization resource name
|
|
21
23
|
* @param body Organization resource model
|
|
22
24
|
* @param options The options parameters.
|
|
@@ -27,4 +29,17 @@ export interface Validations {
|
|
|
27
29
|
body: OrganizationResource,
|
|
28
30
|
options?: ValidationsValidateOrganizationOptionalParams
|
|
29
31
|
): Promise<ValidationsValidateOrganizationResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Organization Validate proxy resource
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param organizationName Organization resource name
|
|
36
|
+
* @param body Organization resource model
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
validateOrganizationV2(
|
|
40
|
+
resourceGroupName: string,
|
|
41
|
+
organizationName: string,
|
|
42
|
+
body: OrganizationResource,
|
|
43
|
+
options?: ValidationsValidateOrganizationV2OptionalParams
|
|
44
|
+
): Promise<ValidationsValidateOrganizationV2Response>;
|
|
30
45
|
}
|