@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,9 +6,185 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export interface Access {
|
|
15
|
+
inviteUser(resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, options?: AccessInviteUserOptionalParams): Promise<AccessInviteUserResponse>;
|
|
16
|
+
listClusters(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListClustersOptionalParams): Promise<AccessListClustersResponse>;
|
|
17
|
+
listEnvironments(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListEnvironmentsOptionalParams): Promise<AccessListEnvironmentsResponse>;
|
|
18
|
+
listInvitations(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListInvitationsOptionalParams): Promise<AccessListInvitationsResponse>;
|
|
19
|
+
listRoleBindings(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListRoleBindingsOptionalParams): Promise<AccessListRoleBindingsResponse>;
|
|
20
|
+
listServiceAccounts(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListServiceAccountsOptionalParams): Promise<AccessListServiceAccountsResponse>;
|
|
21
|
+
listUsers(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListUsersOptionalParams): Promise<AccessListUsersResponse>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// @public
|
|
25
|
+
export interface AccessInvitedUserDetails {
|
|
26
|
+
authType?: string;
|
|
27
|
+
invitedEmail?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// @public
|
|
31
|
+
export interface AccessInviteUserAccountModel {
|
|
32
|
+
email?: string;
|
|
33
|
+
invitedUserDetails?: AccessInvitedUserDetails;
|
|
34
|
+
organizationId?: string;
|
|
35
|
+
upn?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// @public
|
|
39
|
+
export interface AccessInviteUserOptionalParams extends coreClient.OperationOptions {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @public
|
|
43
|
+
export type AccessInviteUserResponse = InvitationRecord;
|
|
44
|
+
|
|
45
|
+
// @public
|
|
46
|
+
export interface AccessListClustersOptionalParams extends coreClient.OperationOptions {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// @public
|
|
50
|
+
export type AccessListClustersResponse = AccessListClusterSuccessResponse;
|
|
51
|
+
|
|
52
|
+
// @public
|
|
53
|
+
export interface AccessListClusterSuccessResponse {
|
|
54
|
+
data?: ClusterRecord[];
|
|
55
|
+
kind?: string;
|
|
56
|
+
metadata?: ConfluentListMetadata;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @public
|
|
60
|
+
export interface AccessListEnvironmentsOptionalParams extends coreClient.OperationOptions {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// @public
|
|
64
|
+
export type AccessListEnvironmentsResponse = AccessListEnvironmentsSuccessResponse;
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export interface AccessListEnvironmentsSuccessResponse {
|
|
68
|
+
data?: EnvironmentRecord[];
|
|
69
|
+
kind?: string;
|
|
70
|
+
metadata?: ConfluentListMetadata;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// @public
|
|
74
|
+
export interface AccessListInvitationsOptionalParams extends coreClient.OperationOptions {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// @public
|
|
78
|
+
export type AccessListInvitationsResponse = AccessListInvitationsSuccessResponse;
|
|
79
|
+
|
|
80
|
+
// @public
|
|
81
|
+
export interface AccessListInvitationsSuccessResponse {
|
|
82
|
+
data?: InvitationRecord[];
|
|
83
|
+
kind?: string;
|
|
84
|
+
metadata?: ConfluentListMetadata;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// @public
|
|
88
|
+
export interface AccessListRoleBindingsOptionalParams extends coreClient.OperationOptions {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// @public
|
|
92
|
+
export type AccessListRoleBindingsResponse = AccessListRoleBindingsSuccessResponse;
|
|
93
|
+
|
|
94
|
+
// @public
|
|
95
|
+
export interface AccessListRoleBindingsSuccessResponse {
|
|
96
|
+
data?: RoleBindingRecord[];
|
|
97
|
+
kind?: string;
|
|
98
|
+
metadata?: ConfluentListMetadata;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// @public
|
|
102
|
+
export interface AccessListServiceAccountsOptionalParams extends coreClient.OperationOptions {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// @public
|
|
106
|
+
export type AccessListServiceAccountsResponse = AccessListServiceAccountsSuccessResponse;
|
|
107
|
+
|
|
108
|
+
// @public
|
|
109
|
+
export interface AccessListServiceAccountsSuccessResponse {
|
|
110
|
+
data?: ServiceAccountRecord[];
|
|
111
|
+
kind?: string;
|
|
112
|
+
metadata?: ConfluentListMetadata;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// @public
|
|
116
|
+
export interface AccessListUsersOptionalParams extends coreClient.OperationOptions {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// @public
|
|
120
|
+
export type AccessListUsersResponse = AccessListUsersSuccessResponse;
|
|
121
|
+
|
|
122
|
+
// @public
|
|
123
|
+
export interface AccessListUsersSuccessResponse {
|
|
124
|
+
data?: UserRecord[];
|
|
125
|
+
kind?: string;
|
|
126
|
+
metadata?: ConfluentListMetadata;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// @public
|
|
130
|
+
export interface ClusterByokEntity {
|
|
131
|
+
id?: string;
|
|
132
|
+
related?: string;
|
|
133
|
+
resourceName?: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// @public
|
|
137
|
+
export interface ClusterConfigEntity {
|
|
138
|
+
kind?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// @public
|
|
142
|
+
export interface ClusterEnvironmentEntity {
|
|
143
|
+
environment?: string;
|
|
144
|
+
id?: string;
|
|
145
|
+
related?: string;
|
|
146
|
+
resourceName?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export interface ClusterNetworkEntity {
|
|
151
|
+
environment?: string;
|
|
152
|
+
id?: string;
|
|
153
|
+
related?: string;
|
|
154
|
+
resourceName?: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// @public
|
|
158
|
+
export interface ClusterRecord {
|
|
159
|
+
displayName?: string;
|
|
160
|
+
id?: string;
|
|
161
|
+
kind?: string;
|
|
162
|
+
metadata?: MetadataEntity;
|
|
163
|
+
spec?: ClusterSpecEntity;
|
|
164
|
+
status?: ClusterStatusEntity;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// @public
|
|
168
|
+
export interface ClusterSpecEntity {
|
|
169
|
+
apiEndpoint?: string;
|
|
170
|
+
availability?: string;
|
|
171
|
+
byok?: ClusterByokEntity;
|
|
172
|
+
cloud?: string;
|
|
173
|
+
config?: ClusterConfigEntity;
|
|
174
|
+
displayName?: string;
|
|
175
|
+
environment?: ClusterEnvironmentEntity;
|
|
176
|
+
httpEndpoint?: string;
|
|
177
|
+
kafkaBootstrapEndpoint?: string;
|
|
178
|
+
network?: ClusterNetworkEntity;
|
|
179
|
+
region?: string;
|
|
180
|
+
zone?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// @public
|
|
184
|
+
export interface ClusterStatusEntity {
|
|
185
|
+
cku?: number;
|
|
186
|
+
phase?: string;
|
|
187
|
+
}
|
|
12
188
|
|
|
13
189
|
// @public
|
|
14
190
|
export interface ConfluentAgreementResource {
|
|
@@ -32,11 +208,23 @@ export interface ConfluentAgreementResourceListResponse {
|
|
|
32
208
|
value?: ConfluentAgreementResource[];
|
|
33
209
|
}
|
|
34
210
|
|
|
211
|
+
// @public
|
|
212
|
+
export interface ConfluentListMetadata {
|
|
213
|
+
first?: string;
|
|
214
|
+
last?: string;
|
|
215
|
+
next?: string;
|
|
216
|
+
prev?: string;
|
|
217
|
+
totalSize?: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
35
220
|
// @public (undocumented)
|
|
36
221
|
export class ConfluentManagementClient extends coreClient.ServiceClient {
|
|
37
222
|
// (undocumented)
|
|
38
223
|
$host: string;
|
|
39
224
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ConfluentManagementClientOptionalParams);
|
|
225
|
+
constructor(credentials: coreAuth.TokenCredential, options?: ConfluentManagementClientOptionalParams);
|
|
226
|
+
// (undocumented)
|
|
227
|
+
access: Access;
|
|
40
228
|
// (undocumented)
|
|
41
229
|
apiVersion: string;
|
|
42
230
|
// (undocumented)
|
|
@@ -46,7 +234,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient {
|
|
|
46
234
|
// (undocumented)
|
|
47
235
|
organizationOperations: OrganizationOperations;
|
|
48
236
|
// (undocumented)
|
|
49
|
-
subscriptionId
|
|
237
|
+
subscriptionId?: string;
|
|
50
238
|
// (undocumented)
|
|
51
239
|
validations: Validations;
|
|
52
240
|
}
|
|
@@ -61,6 +249,14 @@ export interface ConfluentManagementClientOptionalParams extends coreClient.Serv
|
|
|
61
249
|
// @public
|
|
62
250
|
export type CreatedByType = string;
|
|
63
251
|
|
|
252
|
+
// @public
|
|
253
|
+
export interface EnvironmentRecord {
|
|
254
|
+
displayName?: string;
|
|
255
|
+
id?: string;
|
|
256
|
+
kind?: string;
|
|
257
|
+
metadata?: MetadataEntity;
|
|
258
|
+
}
|
|
259
|
+
|
|
64
260
|
// @public
|
|
65
261
|
export interface ErrorResponseBody {
|
|
66
262
|
readonly code?: string;
|
|
@@ -69,64 +265,68 @@ export interface ErrorResponseBody {
|
|
|
69
265
|
readonly target?: string;
|
|
70
266
|
}
|
|
71
267
|
|
|
268
|
+
// @public
|
|
269
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
270
|
+
|
|
271
|
+
// @public
|
|
272
|
+
export interface InvitationRecord {
|
|
273
|
+
acceptedAt?: string;
|
|
274
|
+
authType?: string;
|
|
275
|
+
email?: string;
|
|
276
|
+
expiresAt?: string;
|
|
277
|
+
id?: string;
|
|
278
|
+
kind?: string;
|
|
279
|
+
metadata?: MetadataEntity;
|
|
280
|
+
status?: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
72
283
|
// @public
|
|
73
284
|
export enum KnownCreatedByType {
|
|
74
|
-
// (undocumented)
|
|
75
285
|
Application = "Application",
|
|
76
|
-
// (undocumented)
|
|
77
286
|
Key = "Key",
|
|
78
|
-
// (undocumented)
|
|
79
287
|
ManagedIdentity = "ManagedIdentity",
|
|
80
|
-
// (undocumented)
|
|
81
288
|
User = "User"
|
|
82
289
|
}
|
|
83
290
|
|
|
84
291
|
// @public
|
|
85
292
|
export enum KnownProvisionState {
|
|
86
|
-
// (undocumented)
|
|
87
293
|
Accepted = "Accepted",
|
|
88
|
-
// (undocumented)
|
|
89
294
|
Canceled = "Canceled",
|
|
90
|
-
// (undocumented)
|
|
91
295
|
Creating = "Creating",
|
|
92
|
-
// (undocumented)
|
|
93
296
|
Deleted = "Deleted",
|
|
94
|
-
// (undocumented)
|
|
95
297
|
Deleting = "Deleting",
|
|
96
|
-
// (undocumented)
|
|
97
298
|
Failed = "Failed",
|
|
98
|
-
// (undocumented)
|
|
99
299
|
NotSpecified = "NotSpecified",
|
|
100
|
-
// (undocumented)
|
|
101
300
|
Succeeded = "Succeeded",
|
|
102
|
-
// (undocumented)
|
|
103
301
|
Updating = "Updating"
|
|
104
302
|
}
|
|
105
303
|
|
|
106
304
|
// @public
|
|
107
305
|
export enum KnownSaaSOfferStatus {
|
|
108
|
-
// (undocumented)
|
|
109
306
|
Failed = "Failed",
|
|
110
|
-
// (undocumented)
|
|
111
307
|
InProgress = "InProgress",
|
|
112
|
-
// (undocumented)
|
|
113
308
|
PendingFulfillmentStart = "PendingFulfillmentStart",
|
|
114
|
-
// (undocumented)
|
|
115
309
|
Reinstated = "Reinstated",
|
|
116
|
-
// (undocumented)
|
|
117
310
|
Started = "Started",
|
|
118
|
-
// (undocumented)
|
|
119
311
|
Subscribed = "Subscribed",
|
|
120
|
-
// (undocumented)
|
|
121
312
|
Succeeded = "Succeeded",
|
|
122
|
-
// (undocumented)
|
|
123
313
|
Suspended = "Suspended",
|
|
124
|
-
// (undocumented)
|
|
125
314
|
Unsubscribed = "Unsubscribed",
|
|
126
|
-
// (undocumented)
|
|
127
315
|
Updating = "Updating"
|
|
128
316
|
}
|
|
129
317
|
|
|
318
|
+
// @public
|
|
319
|
+
export interface LinkOrganization {
|
|
320
|
+
token: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// @public
|
|
324
|
+
export interface ListAccessRequestModel {
|
|
325
|
+
searchFilters?: {
|
|
326
|
+
[propertyName: string]: string;
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
130
330
|
// @public
|
|
131
331
|
export interface MarketplaceAgreements {
|
|
132
332
|
create(options?: MarketplaceAgreementsCreateOptionalParams): Promise<MarketplaceAgreementsCreateResponse>;
|
|
@@ -155,13 +355,25 @@ export interface MarketplaceAgreementsListOptionalParams extends coreClient.Oper
|
|
|
155
355
|
// @public
|
|
156
356
|
export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse;
|
|
157
357
|
|
|
358
|
+
// @public
|
|
359
|
+
export interface MetadataEntity {
|
|
360
|
+
createdAt?: string;
|
|
361
|
+
deletedAt?: string;
|
|
362
|
+
resourceName?: string;
|
|
363
|
+
self?: string;
|
|
364
|
+
updatedAt?: string;
|
|
365
|
+
}
|
|
366
|
+
|
|
158
367
|
// @public
|
|
159
368
|
export interface OfferDetail {
|
|
160
369
|
id: string;
|
|
161
370
|
planId: string;
|
|
162
371
|
planName: string;
|
|
372
|
+
privateOfferId?: string;
|
|
373
|
+
privateOfferIds?: string[];
|
|
163
374
|
publisherId: string;
|
|
164
|
-
|
|
375
|
+
status?: SaaSOfferStatus;
|
|
376
|
+
termId?: string;
|
|
165
377
|
termUnit: string;
|
|
166
378
|
}
|
|
167
379
|
|
|
@@ -188,9 +400,9 @@ export interface OperationResult {
|
|
|
188
400
|
|
|
189
401
|
// @public
|
|
190
402
|
export interface Organization {
|
|
191
|
-
beginCreate(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise<
|
|
403
|
+
beginCreate(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise<SimplePollerLike<OperationState<OrganizationCreateResponse>, OrganizationCreateResponse>>;
|
|
192
404
|
beginCreateAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise<OrganizationCreateResponse>;
|
|
193
|
-
beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise<
|
|
405
|
+
beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
194
406
|
beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise<void>;
|
|
195
407
|
get(resourceGroupName: string, organizationName: string, options?: OrganizationGetOptionalParams): Promise<OrganizationGetResponse>;
|
|
196
408
|
listByResourceGroup(resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams): PagedAsyncIterableIterator<OrganizationResource>;
|
|
@@ -272,6 +484,7 @@ export type OrganizationOperationsListResponse = OperationListResult;
|
|
|
272
484
|
export interface OrganizationResource {
|
|
273
485
|
readonly createdTime?: Date;
|
|
274
486
|
readonly id?: string;
|
|
487
|
+
linkOrganization?: LinkOrganization;
|
|
275
488
|
location?: string;
|
|
276
489
|
readonly name?: string;
|
|
277
490
|
offerDetail: OfferDetail;
|
|
@@ -315,9 +528,28 @@ export interface ResourceProviderDefaultErrorResponse {
|
|
|
315
528
|
readonly error?: ErrorResponseBody;
|
|
316
529
|
}
|
|
317
530
|
|
|
531
|
+
// @public
|
|
532
|
+
export interface RoleBindingRecord {
|
|
533
|
+
crnPattern?: string;
|
|
534
|
+
id?: string;
|
|
535
|
+
kind?: string;
|
|
536
|
+
metadata?: MetadataEntity;
|
|
537
|
+
principal?: string;
|
|
538
|
+
roleName?: string;
|
|
539
|
+
}
|
|
540
|
+
|
|
318
541
|
// @public
|
|
319
542
|
export type SaaSOfferStatus = string;
|
|
320
543
|
|
|
544
|
+
// @public
|
|
545
|
+
export interface ServiceAccountRecord {
|
|
546
|
+
description?: string;
|
|
547
|
+
displayName?: string;
|
|
548
|
+
id?: string;
|
|
549
|
+
kind?: string;
|
|
550
|
+
metadata?: MetadataEntity;
|
|
551
|
+
}
|
|
552
|
+
|
|
321
553
|
// @public
|
|
322
554
|
export interface SystemData {
|
|
323
555
|
createdAt?: Date;
|
|
@@ -330,14 +562,34 @@ export interface SystemData {
|
|
|
330
562
|
|
|
331
563
|
// @public
|
|
332
564
|
export interface UserDetail {
|
|
565
|
+
aadEmail?: string;
|
|
333
566
|
emailAddress: string;
|
|
334
567
|
firstName?: string;
|
|
335
568
|
lastName?: string;
|
|
569
|
+
userPrincipalName?: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
// @public
|
|
573
|
+
export interface UserRecord {
|
|
574
|
+
authType?: string;
|
|
575
|
+
email?: string;
|
|
576
|
+
fullName?: string;
|
|
577
|
+
id?: string;
|
|
578
|
+
kind?: string;
|
|
579
|
+
metadata?: MetadataEntity;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// @public
|
|
583
|
+
export interface ValidationResponse {
|
|
584
|
+
info?: {
|
|
585
|
+
[propertyName: string]: string;
|
|
586
|
+
};
|
|
336
587
|
}
|
|
337
588
|
|
|
338
589
|
// @public
|
|
339
590
|
export interface Validations {
|
|
340
591
|
validateOrganization(resourceGroupName: string, organizationName: string, body: OrganizationResource, options?: ValidationsValidateOrganizationOptionalParams): Promise<ValidationsValidateOrganizationResponse>;
|
|
592
|
+
validateOrganizationV2(resourceGroupName: string, organizationName: string, body: OrganizationResource, options?: ValidationsValidateOrganizationV2OptionalParams): Promise<ValidationsValidateOrganizationV2Response>;
|
|
341
593
|
}
|
|
342
594
|
|
|
343
595
|
// @public
|
|
@@ -347,6 +599,13 @@ export interface ValidationsValidateOrganizationOptionalParams extends coreClien
|
|
|
347
599
|
// @public
|
|
348
600
|
export type ValidationsValidateOrganizationResponse = OrganizationResource;
|
|
349
601
|
|
|
602
|
+
// @public
|
|
603
|
+
export interface ValidationsValidateOrganizationV2OptionalParams extends coreClient.OperationOptions {
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// @public
|
|
607
|
+
export type ValidationsValidateOrganizationV2Response = ValidationResponse;
|
|
608
|
+
|
|
350
609
|
// (No @packageDocumentation comment for this package)
|
|
351
610
|
|
|
352
611
|
```
|
|
@@ -7,42 +7,64 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
10
16
|
import * as coreAuth from "@azure/core-auth";
|
|
11
17
|
import {
|
|
12
18
|
MarketplaceAgreementsImpl,
|
|
13
19
|
OrganizationOperationsImpl,
|
|
14
20
|
OrganizationImpl,
|
|
15
|
-
ValidationsImpl
|
|
21
|
+
ValidationsImpl,
|
|
22
|
+
AccessImpl
|
|
16
23
|
} from "./operations";
|
|
17
24
|
import {
|
|
18
25
|
MarketplaceAgreements,
|
|
19
26
|
OrganizationOperations,
|
|
20
27
|
Organization,
|
|
21
|
-
Validations
|
|
28
|
+
Validations,
|
|
29
|
+
Access
|
|
22
30
|
} from "./operationsInterfaces";
|
|
23
31
|
import { ConfluentManagementClientOptionalParams } from "./models";
|
|
24
32
|
|
|
25
33
|
export class ConfluentManagementClient extends coreClient.ServiceClient {
|
|
26
34
|
$host: string;
|
|
27
35
|
apiVersion: string;
|
|
28
|
-
subscriptionId
|
|
36
|
+
subscriptionId?: string;
|
|
29
37
|
|
|
30
38
|
/**
|
|
31
39
|
* Initializes a new instance of the ConfluentManagementClient class.
|
|
32
40
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
33
|
-
* @param subscriptionId
|
|
41
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
34
42
|
* @param options The parameter options
|
|
35
43
|
*/
|
|
36
44
|
constructor(
|
|
37
45
|
credentials: coreAuth.TokenCredential,
|
|
38
46
|
subscriptionId: string,
|
|
39
47
|
options?: ConfluentManagementClientOptionalParams
|
|
48
|
+
);
|
|
49
|
+
constructor(
|
|
50
|
+
credentials: coreAuth.TokenCredential,
|
|
51
|
+
options?: ConfluentManagementClientOptionalParams
|
|
52
|
+
);
|
|
53
|
+
constructor(
|
|
54
|
+
credentials: coreAuth.TokenCredential,
|
|
55
|
+
subscriptionIdOrOptions?: ConfluentManagementClientOptionalParams | string,
|
|
56
|
+
options?: ConfluentManagementClientOptionalParams
|
|
40
57
|
) {
|
|
41
58
|
if (credentials === undefined) {
|
|
42
59
|
throw new Error("'credentials' cannot be null");
|
|
43
60
|
}
|
|
44
|
-
|
|
45
|
-
|
|
61
|
+
|
|
62
|
+
let subscriptionId: string | undefined;
|
|
63
|
+
|
|
64
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
65
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
66
|
+
} else if (typeof subscriptionIdOrOptions === "object") {
|
|
67
|
+
options = subscriptionIdOrOptions;
|
|
46
68
|
}
|
|
47
69
|
|
|
48
70
|
// Initializing default values for options
|
|
@@ -54,39 +76,99 @@ export class ConfluentManagementClient extends coreClient.ServiceClient {
|
|
|
54
76
|
credential: credentials
|
|
55
77
|
};
|
|
56
78
|
|
|
57
|
-
const packageDetails = `azsdk-js-arm-confluent/3.0.0
|
|
79
|
+
const packageDetails = `azsdk-js-arm-confluent/3.0.0`;
|
|
58
80
|
const userAgentPrefix =
|
|
59
81
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
60
82
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
61
83
|
: `${packageDetails}`;
|
|
62
84
|
|
|
63
|
-
if (!options.credentialScopes) {
|
|
64
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
65
|
-
}
|
|
66
85
|
const optionsWithDefaults = {
|
|
67
86
|
...defaults,
|
|
68
87
|
...options,
|
|
69
88
|
userAgentOptions: {
|
|
70
89
|
userAgentPrefix
|
|
71
90
|
},
|
|
72
|
-
|
|
91
|
+
endpoint:
|
|
73
92
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
74
93
|
};
|
|
75
94
|
super(optionsWithDefaults);
|
|
95
|
+
|
|
96
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
97
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
98
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
99
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
100
|
+
(pipelinePolicy) =>
|
|
101
|
+
pipelinePolicy.name ===
|
|
102
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
if (
|
|
106
|
+
!options ||
|
|
107
|
+
!options.pipeline ||
|
|
108
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
109
|
+
!bearerTokenAuthenticationPolicyFound
|
|
110
|
+
) {
|
|
111
|
+
this.pipeline.removePolicy({
|
|
112
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
113
|
+
});
|
|
114
|
+
this.pipeline.addPolicy(
|
|
115
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
116
|
+
credential: credentials,
|
|
117
|
+
scopes:
|
|
118
|
+
optionsWithDefaults.credentialScopes ??
|
|
119
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
120
|
+
challengeCallbacks: {
|
|
121
|
+
authorizeRequestOnChallenge:
|
|
122
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
);
|
|
126
|
+
}
|
|
76
127
|
// Parameter assignments
|
|
77
128
|
this.subscriptionId = subscriptionId;
|
|
78
129
|
|
|
79
130
|
// Assigning values to Constant parameters
|
|
80
131
|
this.$host = options.$host || "https://management.azure.com";
|
|
81
|
-
this.apiVersion = options.apiVersion || "
|
|
132
|
+
this.apiVersion = options.apiVersion || "2023-08-22";
|
|
82
133
|
this.marketplaceAgreements = new MarketplaceAgreementsImpl(this);
|
|
83
134
|
this.organizationOperations = new OrganizationOperationsImpl(this);
|
|
84
135
|
this.organization = new OrganizationImpl(this);
|
|
85
136
|
this.validations = new ValidationsImpl(this);
|
|
137
|
+
this.access = new AccessImpl(this);
|
|
138
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
142
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
143
|
+
if (!apiVersion) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const apiVersionPolicy = {
|
|
147
|
+
name: "CustomApiVersionPolicy",
|
|
148
|
+
async sendRequest(
|
|
149
|
+
request: PipelineRequest,
|
|
150
|
+
next: SendRequest
|
|
151
|
+
): Promise<PipelineResponse> {
|
|
152
|
+
const param = request.url.split("?");
|
|
153
|
+
if (param.length > 1) {
|
|
154
|
+
const newParams = param[1].split("&").map((item) => {
|
|
155
|
+
if (item.indexOf("api-version") > -1) {
|
|
156
|
+
return "api-version=" + apiVersion;
|
|
157
|
+
} else {
|
|
158
|
+
return item;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
162
|
+
}
|
|
163
|
+
return next(request);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
86
167
|
}
|
|
87
168
|
|
|
88
169
|
marketplaceAgreements: MarketplaceAgreements;
|
|
89
170
|
organizationOperations: OrganizationOperations;
|
|
90
171
|
organization: Organization;
|
|
91
172
|
validations: Validations;
|
|
173
|
+
access: Access;
|
|
92
174
|
}
|
package/src/index.ts
CHANGED
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|