@azure/arm-confluent 2.0.0 → 3.0.0-beta.1
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 +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +70 -70
- package/dist/index.js +1547 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/confluentManagementClient.d.ts +21 -0
- package/dist-esm/src/confluentManagementClient.d.ts.map +1 -0
- package/dist-esm/src/confluentManagementClient.js +54 -0
- package/dist-esm/src/confluentManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +382 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +43 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +15 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +209 -237
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +110 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/marketplaceAgreements.d.ts +37 -0
- package/dist-esm/src/operations/marketplaceAgreements.d.ts.map +1 -0
- package/dist-esm/src/operations/marketplaceAgreements.js +149 -0
- package/dist-esm/src/operations/marketplaceAgreements.js.map +1 -0
- package/dist-esm/src/operations/organization.d.ts +96 -0
- package/dist-esm/src/operations/organization.d.ts.map +1 -0
- package/dist-esm/src/operations/organization.js +449 -0
- package/dist-esm/src/operations/organization.js.map +1 -0
- package/dist-esm/src/operations/organizationOperations.d.ts +32 -0
- package/dist-esm/src/operations/organizationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/organizationOperations.js +120 -0
- package/dist-esm/src/operations/organizationOperations.js.map +1 -0
- package/dist-esm/src/operations/validations.d.ts +21 -0
- package/dist-esm/src/operations/validations.d.ts.map +1 -0
- package/dist-esm/src/operations/validations.js +56 -0
- package/dist-esm/src/operations/validations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm/models/organizationOperationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +5 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.js +9 -0
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/organization.d.ts +60 -0
- package/dist-esm/src/operationsInterfaces/organization.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/organization.js +9 -0
- package/dist-esm/src/operationsInterfaces/organization.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/organizationOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/organizationOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/organizationOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/organizationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/validations.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/validations.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/validations.js} +2 -1
- package/dist-esm/src/operationsInterfaces/validations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-confluent.api.md +352 -0
- package/rollup.config.js +181 -30
- package/src/confluentManagementClient.ts +73 -32
- package/src/{models/validationsMappers.ts → index.ts} +4 -10
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +297 -572
- package/src/models/mappers.ts +211 -240
- package/src/models/parameters.ts +81 -24
- package/src/operations/index.ts +1 -2
- package/src/operations/marketplaceAgreements.ts +107 -132
- package/src/operations/organization.ts +414 -300
- package/src/operations/organizationOperations.ts +87 -75
- package/src/operations/validations.ts +39 -79
- package/src/{models/organizationOperationsMappers.ts → operationsInterfaces/index.ts} +4 -7
- package/src/operationsInterfaces/marketplaceAgreements.ts +34 -0
- package/src/operationsInterfaces/organization.ts +114 -0
- package/src/operationsInterfaces/organizationOperations.ts +25 -0
- package/src/operationsInterfaces/validations.ts +30 -0
- package/tsconfig.json +3 -3
- package/types/arm-confluent.d.ts +543 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-confluent.js +0 -1426
- package/dist/arm-confluent.js.map +0 -1
- package/dist/arm-confluent.min.js +0 -1
- package/dist/arm-confluent.min.js.map +0 -1
- package/esm/confluentManagementClient.d.ts +0 -21
- package/esm/confluentManagementClient.d.ts.map +0 -1
- package/esm/confluentManagementClient.js +0 -35
- package/esm/confluentManagementClient.js.map +0 -1
- package/esm/confluentManagementClientContext.d.ts +0 -16
- package/esm/confluentManagementClientContext.d.ts.map +0 -1
- package/esm/confluentManagementClientContext.js +0 -56
- package/esm/confluentManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -640
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -17
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/marketplaceAgreementsMappers.d.ts +0 -2
- package/esm/models/marketplaceAgreementsMappers.d.ts.map +0 -1
- package/esm/models/marketplaceAgreementsMappers.js +0 -9
- package/esm/models/marketplaceAgreementsMappers.js.map +0 -1
- package/esm/models/organizationMappers.d.ts +0 -2
- package/esm/models/organizationMappers.d.ts.map +0 -1
- package/esm/models/organizationMappers.js +0 -9
- package/esm/models/organizationMappers.js.map +0 -1
- package/esm/models/organizationOperationsMappers.d.ts +0 -2
- package/esm/models/organizationOperationsMappers.d.ts.map +0 -1
- package/esm/models/organizationOperationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -72
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/validationsMappers.d.ts +0 -2
- package/esm/models/validationsMappers.d.ts.map +0 -1
- package/esm/models/validationsMappers.js +0 -9
- package/esm/models/validationsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/marketplaceAgreements.d.ts +0 -61
- package/esm/operations/marketplaceAgreements.d.ts.map +0 -1
- package/esm/operations/marketplaceAgreements.js +0 -95
- package/esm/operations/marketplaceAgreements.js.map +0 -1
- package/esm/operations/organization.d.ts +0 -157
- package/esm/operations/organization.d.ts.map +0 -1
- package/esm/operations/organization.js +0 -317
- package/esm/operations/organization.js.map +0 -1
- package/esm/operations/organizationOperations.d.ts +0 -46
- package/esm/operations/organizationOperations.d.ts.map +0 -1
- package/esm/operations/organizationOperations.js +0 -79
- package/esm/operations/organizationOperations.js.map +0 -1
- package/esm/operations/validations.d.ts +0 -37
- package/esm/operations/validations.d.ts.map +0 -1
- package/esm/operations/validations.js +0 -59
- package/esm/operations/validations.js.map +0 -1
- package/src/confluentManagementClientContext.ts +0 -68
- package/src/models/marketplaceAgreementsMappers.ts +0 -19
- package/src/models/organizationMappers.ts +0 -20
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-confluent"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as coreAuth from '@azure/core-auth';
|
|
8
|
+
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
+
import { PollerLike } from '@azure/core-lro';
|
|
11
|
+
import { PollOperationState } from '@azure/core-lro';
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export interface ConfluentAgreementResource {
|
|
15
|
+
accepted?: boolean;
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
licenseTextLink?: string;
|
|
18
|
+
readonly name?: string;
|
|
19
|
+
plan?: string;
|
|
20
|
+
privacyPolicyLink?: string;
|
|
21
|
+
product?: string;
|
|
22
|
+
publisher?: string;
|
|
23
|
+
retrieveDatetime?: Date;
|
|
24
|
+
signature?: string;
|
|
25
|
+
readonly systemData?: SystemData;
|
|
26
|
+
readonly type?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// @public
|
|
30
|
+
export interface ConfluentAgreementResourceListResponse {
|
|
31
|
+
nextLink?: string;
|
|
32
|
+
value?: ConfluentAgreementResource[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export class ConfluentManagementClient extends coreClient.ServiceClient {
|
|
37
|
+
// (undocumented)
|
|
38
|
+
$host: string;
|
|
39
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ConfluentManagementClientOptionalParams);
|
|
40
|
+
// (undocumented)
|
|
41
|
+
apiVersion: string;
|
|
42
|
+
// (undocumented)
|
|
43
|
+
marketplaceAgreements: MarketplaceAgreements;
|
|
44
|
+
// (undocumented)
|
|
45
|
+
organization: Organization;
|
|
46
|
+
// (undocumented)
|
|
47
|
+
organizationOperations: OrganizationOperations;
|
|
48
|
+
// (undocumented)
|
|
49
|
+
subscriptionId: string;
|
|
50
|
+
// (undocumented)
|
|
51
|
+
validations: Validations;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// @public
|
|
55
|
+
export interface ConfluentManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
56
|
+
$host?: string;
|
|
57
|
+
apiVersion?: string;
|
|
58
|
+
endpoint?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// @public
|
|
62
|
+
export type CreatedByType = string;
|
|
63
|
+
|
|
64
|
+
// @public
|
|
65
|
+
export interface ErrorResponseBody {
|
|
66
|
+
readonly code?: string;
|
|
67
|
+
readonly details?: ErrorResponseBody[];
|
|
68
|
+
readonly message?: string;
|
|
69
|
+
readonly target?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// @public
|
|
73
|
+
export enum KnownCreatedByType {
|
|
74
|
+
// (undocumented)
|
|
75
|
+
Application = "Application",
|
|
76
|
+
// (undocumented)
|
|
77
|
+
Key = "Key",
|
|
78
|
+
// (undocumented)
|
|
79
|
+
ManagedIdentity = "ManagedIdentity",
|
|
80
|
+
// (undocumented)
|
|
81
|
+
User = "User"
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// @public
|
|
85
|
+
export enum KnownProvisionState {
|
|
86
|
+
// (undocumented)
|
|
87
|
+
Accepted = "Accepted",
|
|
88
|
+
// (undocumented)
|
|
89
|
+
Canceled = "Canceled",
|
|
90
|
+
// (undocumented)
|
|
91
|
+
Creating = "Creating",
|
|
92
|
+
// (undocumented)
|
|
93
|
+
Deleted = "Deleted",
|
|
94
|
+
// (undocumented)
|
|
95
|
+
Deleting = "Deleting",
|
|
96
|
+
// (undocumented)
|
|
97
|
+
Failed = "Failed",
|
|
98
|
+
// (undocumented)
|
|
99
|
+
NotSpecified = "NotSpecified",
|
|
100
|
+
// (undocumented)
|
|
101
|
+
Succeeded = "Succeeded",
|
|
102
|
+
// (undocumented)
|
|
103
|
+
Updating = "Updating"
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// @public
|
|
107
|
+
export enum KnownSaaSOfferStatus {
|
|
108
|
+
// (undocumented)
|
|
109
|
+
Failed = "Failed",
|
|
110
|
+
// (undocumented)
|
|
111
|
+
InProgress = "InProgress",
|
|
112
|
+
// (undocumented)
|
|
113
|
+
PendingFulfillmentStart = "PendingFulfillmentStart",
|
|
114
|
+
// (undocumented)
|
|
115
|
+
Reinstated = "Reinstated",
|
|
116
|
+
// (undocumented)
|
|
117
|
+
Started = "Started",
|
|
118
|
+
// (undocumented)
|
|
119
|
+
Subscribed = "Subscribed",
|
|
120
|
+
// (undocumented)
|
|
121
|
+
Succeeded = "Succeeded",
|
|
122
|
+
// (undocumented)
|
|
123
|
+
Suspended = "Suspended",
|
|
124
|
+
// (undocumented)
|
|
125
|
+
Unsubscribed = "Unsubscribed",
|
|
126
|
+
// (undocumented)
|
|
127
|
+
Updating = "Updating"
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// @public
|
|
131
|
+
export interface MarketplaceAgreements {
|
|
132
|
+
create(options?: MarketplaceAgreementsCreateOptionalParams): Promise<MarketplaceAgreementsCreateResponse>;
|
|
133
|
+
list(options?: MarketplaceAgreementsListOptionalParams): PagedAsyncIterableIterator<ConfluentAgreementResource>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// @public
|
|
137
|
+
export interface MarketplaceAgreementsCreateOptionalParams extends coreClient.OperationOptions {
|
|
138
|
+
body?: ConfluentAgreementResource;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// @public
|
|
142
|
+
export type MarketplaceAgreementsCreateResponse = ConfluentAgreementResource;
|
|
143
|
+
|
|
144
|
+
// @public
|
|
145
|
+
export interface MarketplaceAgreementsListNextOptionalParams extends coreClient.OperationOptions {
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// @public
|
|
149
|
+
export type MarketplaceAgreementsListNextResponse = ConfluentAgreementResourceListResponse;
|
|
150
|
+
|
|
151
|
+
// @public
|
|
152
|
+
export interface MarketplaceAgreementsListOptionalParams extends coreClient.OperationOptions {
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// @public
|
|
156
|
+
export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse;
|
|
157
|
+
|
|
158
|
+
// @public
|
|
159
|
+
export interface OfferDetail {
|
|
160
|
+
id: string;
|
|
161
|
+
planId: string;
|
|
162
|
+
planName: string;
|
|
163
|
+
publisherId: string;
|
|
164
|
+
readonly status?: SaaSOfferStatus;
|
|
165
|
+
termUnit: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// @public
|
|
169
|
+
export interface OperationDisplay {
|
|
170
|
+
description?: string;
|
|
171
|
+
operation?: string;
|
|
172
|
+
provider?: string;
|
|
173
|
+
resource?: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// @public
|
|
177
|
+
export interface OperationListResult {
|
|
178
|
+
nextLink?: string;
|
|
179
|
+
value?: OperationResult[];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// @public
|
|
183
|
+
export interface OperationResult {
|
|
184
|
+
display?: OperationDisplay;
|
|
185
|
+
isDataAction?: boolean;
|
|
186
|
+
name?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// @public
|
|
190
|
+
export interface Organization {
|
|
191
|
+
beginCreate(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise<PollerLike<PollOperationState<OrganizationCreateResponse>, OrganizationCreateResponse>>;
|
|
192
|
+
beginCreateAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise<OrganizationCreateResponse>;
|
|
193
|
+
beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
194
|
+
beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise<void>;
|
|
195
|
+
get(resourceGroupName: string, organizationName: string, options?: OrganizationGetOptionalParams): Promise<OrganizationGetResponse>;
|
|
196
|
+
listByResourceGroup(resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams): PagedAsyncIterableIterator<OrganizationResource>;
|
|
197
|
+
listBySubscription(options?: OrganizationListBySubscriptionOptionalParams): PagedAsyncIterableIterator<OrganizationResource>;
|
|
198
|
+
update(resourceGroupName: string, organizationName: string, options?: OrganizationUpdateOptionalParams): Promise<OrganizationUpdateResponse>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// @public
|
|
202
|
+
export interface OrganizationCreateOptionalParams extends coreClient.OperationOptions {
|
|
203
|
+
body?: OrganizationResource;
|
|
204
|
+
resumeFrom?: string;
|
|
205
|
+
updateIntervalInMs?: number;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// @public
|
|
209
|
+
export type OrganizationCreateResponse = OrganizationResource;
|
|
210
|
+
|
|
211
|
+
// @public
|
|
212
|
+
export interface OrganizationDeleteOptionalParams extends coreClient.OperationOptions {
|
|
213
|
+
resumeFrom?: string;
|
|
214
|
+
updateIntervalInMs?: number;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// @public
|
|
218
|
+
export interface OrganizationGetOptionalParams extends coreClient.OperationOptions {
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// @public
|
|
222
|
+
export type OrganizationGetResponse = OrganizationResource;
|
|
223
|
+
|
|
224
|
+
// @public
|
|
225
|
+
export interface OrganizationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export type OrganizationListByResourceGroupNextResponse = OrganizationResourceListResult;
|
|
230
|
+
|
|
231
|
+
// @public
|
|
232
|
+
export interface OrganizationListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// @public
|
|
236
|
+
export type OrganizationListByResourceGroupResponse = OrganizationResourceListResult;
|
|
237
|
+
|
|
238
|
+
// @public
|
|
239
|
+
export interface OrganizationListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export type OrganizationListBySubscriptionNextResponse = OrganizationResourceListResult;
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export interface OrganizationListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// @public
|
|
250
|
+
export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult;
|
|
251
|
+
|
|
252
|
+
// @public
|
|
253
|
+
export interface OrganizationOperations {
|
|
254
|
+
list(options?: OrganizationOperationsListOptionalParams): PagedAsyncIterableIterator<OperationResult>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// @public
|
|
258
|
+
export interface OrganizationOperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// @public
|
|
262
|
+
export type OrganizationOperationsListNextResponse = OperationListResult;
|
|
263
|
+
|
|
264
|
+
// @public
|
|
265
|
+
export interface OrganizationOperationsListOptionalParams extends coreClient.OperationOptions {
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// @public
|
|
269
|
+
export type OrganizationOperationsListResponse = OperationListResult;
|
|
270
|
+
|
|
271
|
+
// @public
|
|
272
|
+
export interface OrganizationResource {
|
|
273
|
+
readonly createdTime?: Date;
|
|
274
|
+
readonly id?: string;
|
|
275
|
+
location?: string;
|
|
276
|
+
readonly name?: string;
|
|
277
|
+
offerDetail: OfferDetail;
|
|
278
|
+
readonly organizationId?: string;
|
|
279
|
+
readonly provisioningState?: ProvisionState;
|
|
280
|
+
readonly ssoUrl?: string;
|
|
281
|
+
readonly systemData?: SystemData;
|
|
282
|
+
tags?: {
|
|
283
|
+
[propertyName: string]: string;
|
|
284
|
+
};
|
|
285
|
+
readonly type?: string;
|
|
286
|
+
userDetail: UserDetail;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// @public
|
|
290
|
+
export interface OrganizationResourceListResult {
|
|
291
|
+
nextLink?: string;
|
|
292
|
+
value?: OrganizationResource[];
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// @public
|
|
296
|
+
export interface OrganizationResourceUpdate {
|
|
297
|
+
tags?: {
|
|
298
|
+
[propertyName: string]: string;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// @public
|
|
303
|
+
export interface OrganizationUpdateOptionalParams extends coreClient.OperationOptions {
|
|
304
|
+
body?: OrganizationResourceUpdate;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// @public
|
|
308
|
+
export type OrganizationUpdateResponse = OrganizationResource;
|
|
309
|
+
|
|
310
|
+
// @public
|
|
311
|
+
export type ProvisionState = string;
|
|
312
|
+
|
|
313
|
+
// @public
|
|
314
|
+
export interface ResourceProviderDefaultErrorResponse {
|
|
315
|
+
readonly error?: ErrorResponseBody;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// @public
|
|
319
|
+
export type SaaSOfferStatus = string;
|
|
320
|
+
|
|
321
|
+
// @public
|
|
322
|
+
export interface SystemData {
|
|
323
|
+
createdAt?: Date;
|
|
324
|
+
createdBy?: string;
|
|
325
|
+
createdByType?: CreatedByType;
|
|
326
|
+
lastModifiedAt?: Date;
|
|
327
|
+
lastModifiedBy?: string;
|
|
328
|
+
lastModifiedByType?: CreatedByType;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// @public
|
|
332
|
+
export interface UserDetail {
|
|
333
|
+
emailAddress: string;
|
|
334
|
+
firstName?: string;
|
|
335
|
+
lastName?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// @public
|
|
339
|
+
export interface Validations {
|
|
340
|
+
validateOrganization(resourceGroupName: string, organizationName: string, body: OrganizationResource, options?: ValidationsValidateOrganizationOptionalParams): Promise<ValidationsValidateOrganizationResponse>;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// @public
|
|
344
|
+
export interface ValidationsValidateOrganizationOptionalParams extends coreClient.OperationOptions {
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// @public
|
|
348
|
+
export type ValidationsValidateOrganizationResponse = OrganizationResource;
|
|
349
|
+
|
|
350
|
+
// (No @packageDocumentation comment for this package)
|
|
351
|
+
|
|
352
|
+
```
|
package/rollup.config.js
CHANGED
|
@@ -1,37 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
import nodeResolve from "rollup-plugin-node-resolve";
|
|
3
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @type {rollup.RollupFileOptions}
|
|
7
|
-
*/
|
|
8
|
-
const config = {
|
|
9
|
-
input: "./esm/confluentManagementClient.js",
|
|
10
|
-
external: [
|
|
11
|
-
"@azure/ms-rest-js",
|
|
12
|
-
"@azure/ms-rest-azure-js"
|
|
13
|
-
],
|
|
14
|
-
output: {
|
|
15
|
-
file: "./dist/arm-confluent.js",
|
|
16
|
-
format: "umd",
|
|
17
|
-
name: "Azure.ArmConfluent",
|
|
18
|
-
sourcemap: true,
|
|
19
|
-
globals: {
|
|
20
|
-
"@azure/ms-rest-js": "msRest",
|
|
21
|
-
"@azure/ms-rest-azure-js": "msRestAzure"
|
|
22
|
-
},
|
|
23
|
-
banner: `/*
|
|
1
|
+
/*
|
|
24
2
|
* Copyright (c) Microsoft Corporation.
|
|
25
3
|
* Licensed under the MIT License.
|
|
26
4
|
*
|
|
27
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
28
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
+
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
+
*
|
|
20
|
+
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
+
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
+
* rollup's automatic discovery mechanism.
|
|
23
|
+
*
|
|
24
|
+
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
+
*/
|
|
26
|
+
export function openTelemetryCommonJs() {
|
|
27
|
+
const namedExports = {};
|
|
28
|
+
|
|
29
|
+
for (const key of [
|
|
30
|
+
"@opentelemetry/api",
|
|
31
|
+
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
+
]) {
|
|
33
|
+
namedExports[key] = [
|
|
34
|
+
"SpanKind",
|
|
35
|
+
"TraceFlags",
|
|
36
|
+
"getSpan",
|
|
37
|
+
"setSpan",
|
|
38
|
+
"SpanStatusCode",
|
|
39
|
+
"getSpanContext",
|
|
40
|
+
"setSpanContext"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
+
|
|
46
|
+
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
+
namedExports[
|
|
48
|
+
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
+
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
+
] = [
|
|
51
|
+
"SpanKind",
|
|
52
|
+
"TraceFlags",
|
|
53
|
+
"getSpan",
|
|
54
|
+
"setSpan",
|
|
55
|
+
"StatusCode",
|
|
56
|
+
"CanonicalCode",
|
|
57
|
+
"getSpanContext",
|
|
58
|
+
"setSpanContext"
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return namedExports;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// #region Warning Handler
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A function that can determine whether a rollupwarning should be ignored. If
|
|
69
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
function ignoreNiseSinonEvalWarnings(warning) {
|
|
73
|
+
return (
|
|
74
|
+
warning.code === "EVAL" &&
|
|
75
|
+
warning.id &&
|
|
76
|
+
(warning.id.includes("node_modules/nise") ||
|
|
77
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ignoreChaiCircularDependencyWarnings(warning) {
|
|
82
|
+
return (
|
|
83
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const warningInhibitors = [
|
|
89
|
+
ignoreChaiCircularDependencyWarnings,
|
|
90
|
+
ignoreNiseSinonEvalWarnings
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
96
|
+
*/
|
|
97
|
+
function makeOnWarnForTesting() {
|
|
98
|
+
return (warning, warn) => {
|
|
99
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
100
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
101
|
+
warn(warning);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// #endregion
|
|
107
|
+
|
|
108
|
+
function makeBrowserTestConfig() {
|
|
109
|
+
const config = {
|
|
110
|
+
input: {
|
|
111
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
112
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
113
|
+
},
|
|
114
|
+
output: {
|
|
115
|
+
file: `dist-test/index.browser.js`,
|
|
116
|
+
format: "umd",
|
|
117
|
+
sourcemap: true
|
|
118
|
+
},
|
|
119
|
+
preserveSymlinks: false,
|
|
120
|
+
plugins: [
|
|
121
|
+
multiEntry({ exports: false }),
|
|
122
|
+
nodeResolve({
|
|
123
|
+
mainFields: ["module", "browser"]
|
|
124
|
+
}),
|
|
125
|
+
cjs({
|
|
126
|
+
namedExports: {
|
|
127
|
+
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
+
// analyze its exports.
|
|
129
|
+
chai: [
|
|
130
|
+
"version",
|
|
131
|
+
"use",
|
|
132
|
+
"util",
|
|
133
|
+
"config",
|
|
134
|
+
"expect",
|
|
135
|
+
"should",
|
|
136
|
+
"assert"
|
|
137
|
+
],
|
|
138
|
+
...openTelemetryCommonJs()
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
json(),
|
|
142
|
+
sourcemaps()
|
|
143
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
144
|
+
],
|
|
145
|
+
onwarn: makeOnWarnForTesting(),
|
|
146
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
147
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
148
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
149
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
150
|
+
treeshake: false
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return config;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const defaultConfigurationOptions = {
|
|
157
|
+
disableBrowserBundle: false
|
|
35
158
|
};
|
|
36
159
|
|
|
37
|
-
export
|
|
160
|
+
export function makeConfig(pkg, options) {
|
|
161
|
+
options = {
|
|
162
|
+
...defaultConfigurationOptions,
|
|
163
|
+
...(options || {})
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const baseConfig = {
|
|
167
|
+
// Use the package's module field if it has one
|
|
168
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
169
|
+
external: [
|
|
170
|
+
...nodeBuiltins,
|
|
171
|
+
...Object.keys(pkg.dependencies),
|
|
172
|
+
...Object.keys(pkg.devDependencies)
|
|
173
|
+
],
|
|
174
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
|
+
preserveSymlinks: false,
|
|
176
|
+
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const config = [baseConfig];
|
|
180
|
+
|
|
181
|
+
if (!options.disableBrowserBundle) {
|
|
182
|
+
config.push(makeBrowserTestConfig());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return config;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export default makeConfig(require("./package.json"));
|
|
@@ -3,48 +3,89 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreAuth from "@azure/core-auth";
|
|
11
|
+
import {
|
|
12
|
+
MarketplaceAgreementsImpl,
|
|
13
|
+
OrganizationOperationsImpl,
|
|
14
|
+
OrganizationImpl,
|
|
15
|
+
ValidationsImpl
|
|
16
|
+
} from "./operations";
|
|
17
|
+
import {
|
|
18
|
+
MarketplaceAgreements,
|
|
19
|
+
OrganizationOperations,
|
|
20
|
+
Organization,
|
|
21
|
+
Validations
|
|
22
|
+
} from "./operationsInterfaces";
|
|
23
|
+
import { ConfluentManagementClientOptionalParams } from "./models";
|
|
15
24
|
|
|
16
|
-
class ConfluentManagementClient extends
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
organization: operations.Organization;
|
|
21
|
-
validations: operations.Validations;
|
|
25
|
+
export class ConfluentManagementClient extends coreClient.ServiceClient {
|
|
26
|
+
$host: string;
|
|
27
|
+
apiVersion: string;
|
|
28
|
+
subscriptionId: string;
|
|
22
29
|
|
|
23
30
|
/**
|
|
24
31
|
* Initializes a new instance of the ConfluentManagementClient class.
|
|
25
|
-
* @param credentials
|
|
32
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
26
33
|
* @param subscriptionId Microsoft Azure subscription id
|
|
27
|
-
* @param
|
|
34
|
+
* @param options The parameter options
|
|
28
35
|
*/
|
|
29
36
|
constructor(
|
|
30
|
-
credentials:
|
|
37
|
+
credentials: coreAuth.TokenCredential,
|
|
31
38
|
subscriptionId: string,
|
|
32
|
-
options?:
|
|
39
|
+
options?: ConfluentManagementClientOptionalParams
|
|
33
40
|
) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
if (credentials === undefined) {
|
|
42
|
+
throw new Error("'credentials' cannot be null");
|
|
43
|
+
}
|
|
44
|
+
if (subscriptionId === undefined) {
|
|
45
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Initializing default values for options
|
|
49
|
+
if (!options) {
|
|
50
|
+
options = {};
|
|
51
|
+
}
|
|
52
|
+
const defaults: ConfluentManagementClientOptionalParams = {
|
|
53
|
+
requestContentType: "application/json; charset=utf-8",
|
|
54
|
+
credential: credentials
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const packageDetails = `azsdk-js-arm-confluent/3.0.0-beta.1`;
|
|
58
|
+
const userAgentPrefix =
|
|
59
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
60
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
61
|
+
: `${packageDetails}`;
|
|
41
62
|
|
|
42
|
-
|
|
63
|
+
if (!options.credentialScopes) {
|
|
64
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
65
|
+
}
|
|
66
|
+
const optionsWithDefaults = {
|
|
67
|
+
...defaults,
|
|
68
|
+
...options,
|
|
69
|
+
userAgentOptions: {
|
|
70
|
+
userAgentPrefix
|
|
71
|
+
},
|
|
72
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
73
|
+
};
|
|
74
|
+
super(optionsWithDefaults);
|
|
75
|
+
// Parameter assignments
|
|
76
|
+
this.subscriptionId = subscriptionId;
|
|
43
77
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
78
|
+
// Assigning values to Constant parameters
|
|
79
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
80
|
+
this.apiVersion = options.apiVersion || "2021-09-01-preview";
|
|
81
|
+
this.marketplaceAgreements = new MarketplaceAgreementsImpl(this);
|
|
82
|
+
this.organizationOperations = new OrganizationOperationsImpl(this);
|
|
83
|
+
this.organization = new OrganizationImpl(this);
|
|
84
|
+
this.validations = new ValidationsImpl(this);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
marketplaceAgreements: MarketplaceAgreements;
|
|
88
|
+
organizationOperations: OrganizationOperations;
|
|
89
|
+
organization: Organization;
|
|
90
|
+
validations: Validations;
|
|
91
|
+
}
|