@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
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|