@azure/arm-confluent 1.0.0 → 2.2.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/README.md +53 -45
- package/dist/arm-confluent.js +180 -81
- package/dist/arm-confluent.js.map +1 -1
- package/dist/arm-confluent.min.js +1 -1
- package/dist/arm-confluent.min.js.map +1 -1
- package/esm/confluentManagementClient.d.ts +9 -2
- package/esm/confluentManagementClient.d.ts.map +1 -1
- package/esm/confluentManagementClient.js +7 -1
- package/esm/confluentManagementClient.js.map +1 -1
- package/esm/confluentManagementClientContext.d.ts +9 -3
- package/esm/confluentManagementClientContext.d.ts.map +1 -1
- package/esm/confluentManagementClientContext.js +8 -3
- package/esm/confluentManagementClientContext.js.map +1 -1
- package/esm/models/index.d.ts +81 -57
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/mappers.d.ts +1 -3
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +73 -70
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/marketplaceAgreementsMappers.d.ts +1 -1
- package/esm/models/marketplaceAgreementsMappers.d.ts.map +1 -1
- package/esm/models/marketplaceAgreementsMappers.js +1 -1
- package/esm/models/marketplaceAgreementsMappers.js.map +1 -1
- package/esm/models/organizationMappers.d.ts +1 -1
- package/esm/models/organizationMappers.d.ts.map +1 -1
- package/esm/models/organizationMappers.js +1 -1
- package/esm/models/organizationMappers.js.map +1 -1
- package/esm/models/parameters.js +1 -1
- package/esm/models/parameters.js.map +1 -1
- package/esm/models/validationsMappers.d.ts +2 -0
- package/esm/models/validationsMappers.d.ts.map +1 -0
- package/esm/models/validationsMappers.js +9 -0
- package/esm/models/validationsMappers.js.map +1 -0
- package/esm/operations/index.d.ts +1 -0
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +1 -0
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/marketplaceAgreements.d.ts +1 -1
- package/esm/operations/marketplaceAgreements.js +9 -0
- package/esm/operations/marketplaceAgreements.js.map +1 -1
- package/esm/operations/validations.d.ts +37 -0
- package/esm/operations/validations.d.ts.map +1 -0
- package/esm/operations/validations.js +63 -0
- package/esm/operations/validations.js.map +1 -0
- package/package.json +6 -5
- package/src/confluentManagementClient.ts +10 -2
- package/src/confluentManagementClientContext.ts +11 -5
- package/src/models/index.ts +85 -60
- package/src/models/mappers.ts +74 -76
- package/src/models/marketplaceAgreementsMappers.ts +1 -2
- package/src/models/organizationMappers.ts +1 -2
- package/src/models/parameters.ts +1 -1
- package/src/models/validationsMappers.ts +18 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/marketplaceAgreements.ts +10 -1
- package/src/operations/validations.ts +97 -0
package/README.md
CHANGED
|
@@ -1,89 +1,97 @@
|
|
|
1
1
|
## Azure ConfluentManagementClient SDK for JavaScript
|
|
2
2
|
|
|
3
|
-
This package contains an isomorphic SDK for ConfluentManagementClient.
|
|
3
|
+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for ConfluentManagementClient.
|
|
4
4
|
|
|
5
5
|
### Currently supported environments
|
|
6
6
|
|
|
7
|
-
- Node.js
|
|
8
|
-
-
|
|
7
|
+
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
8
|
+
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
9
9
|
|
|
10
|
-
###
|
|
10
|
+
### Prerequisites
|
|
11
11
|
|
|
12
|
+
You must have an [Azure subscription](https://azure.microsoft.com/free/).
|
|
13
|
+
|
|
14
|
+
### How to install
|
|
15
|
+
|
|
16
|
+
To use this SDK in your project, you will need to install two packages.
|
|
17
|
+
- `@azure/arm-confluent` that contains the client.
|
|
18
|
+
- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
|
|
19
|
+
|
|
20
|
+
Install both packages using the below command:
|
|
12
21
|
```bash
|
|
13
|
-
npm install @azure/arm-confluent
|
|
22
|
+
npm install --save @azure/arm-confluent @azure/identity
|
|
14
23
|
```
|
|
24
|
+
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
|
|
25
|
+
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
|
|
15
26
|
|
|
16
27
|
### How to use
|
|
17
28
|
|
|
18
|
-
|
|
29
|
+
- If you are writing a client side browser application,
|
|
30
|
+
- Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
|
|
31
|
+
- Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
|
|
32
|
+
- If you are writing a server side application,
|
|
33
|
+
- [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
|
|
34
|
+
- Complete the set up steps required by the credential if any.
|
|
35
|
+
- Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
|
|
19
36
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
```bash
|
|
24
|
-
npm install @azure/ms-rest-nodeauth@"^3.0.0"
|
|
25
|
-
```
|
|
37
|
+
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
|
|
38
|
+
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
|
|
39
|
+
#### nodejs - Authentication, client creation, and list marketplaceAgreements as an example written in JavaScript.
|
|
26
40
|
|
|
27
41
|
##### Sample code
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
|
|
43
|
+
```javascript
|
|
44
|
+
const { DefaultAzureCredential } = require("@azure/identity");
|
|
32
45
|
const { ConfluentManagementClient } = require("@azure/arm-confluent");
|
|
33
46
|
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
|
|
34
47
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
|
|
49
|
+
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
|
|
50
|
+
const creds = new DefaultAzureCredential();
|
|
51
|
+
const client = new ConfluentManagementClient(creds, subscriptionId);
|
|
52
|
+
client.marketplaceAgreements.list().then((result) => {
|
|
53
|
+
console.log("The result is:");
|
|
54
|
+
console.log(result);
|
|
41
55
|
}).catch((err) => {
|
|
56
|
+
console.log("An error occurred:");
|
|
42
57
|
console.error(err);
|
|
43
58
|
});
|
|
44
59
|
```
|
|
45
60
|
|
|
46
|
-
#### browser - Authentication, client creation and list marketplaceAgreements as an example written in JavaScript.
|
|
61
|
+
#### browser - Authentication, client creation, and list marketplaceAgreements as an example written in JavaScript.
|
|
47
62
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
npm install @azure/ms-rest-browserauth
|
|
52
|
-
```
|
|
63
|
+
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
|
|
64
|
+
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
|
|
65
|
+
- Note down the client Id from the previous step and use it in the browser sample below.
|
|
53
66
|
|
|
54
67
|
##### Sample code
|
|
55
68
|
|
|
56
|
-
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
|
|
57
|
-
|
|
58
69
|
- index.html
|
|
70
|
+
|
|
59
71
|
```html
|
|
60
72
|
<!DOCTYPE html>
|
|
61
73
|
<html lang="en">
|
|
62
74
|
<head>
|
|
63
75
|
<title>@azure/arm-confluent sample</title>
|
|
64
|
-
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
|
|
65
76
|
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
|
|
66
|
-
<script src="node_modules/@azure/
|
|
77
|
+
<script src="node_modules/@azure/identity/dist/index.js"></script>
|
|
67
78
|
<script src="node_modules/@azure/arm-confluent/dist/arm-confluent.js"></script>
|
|
68
79
|
<script type="text/javascript">
|
|
69
80
|
const subscriptionId = "<Subscription_Id>";
|
|
70
|
-
|
|
81
|
+
// Create credentials using the `@azure/identity` package.
|
|
82
|
+
// Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead.
|
|
83
|
+
const credential = new InteractiveBrowserCredential(
|
|
84
|
+
{
|
|
71
85
|
clientId: "<client id for your Azure AD app>",
|
|
72
86
|
tenant: "<optional tenant for your organization>"
|
|
73
87
|
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
console.log("The result is:");
|
|
82
|
-
console.log(result);
|
|
83
|
-
}).catch((err) => {
|
|
84
|
-
console.log("An error occurred:");
|
|
85
|
-
console.error(err);
|
|
86
|
-
});
|
|
88
|
+
const client = new Azure.ArmConfluent.ConfluentManagementClient(creds, subscriptionId);
|
|
89
|
+
client.marketplaceAgreements.list().then((result) => {
|
|
90
|
+
console.log("The result is:");
|
|
91
|
+
console.log(result);
|
|
92
|
+
}).catch((err) => {
|
|
93
|
+
console.log("An error occurred:");
|
|
94
|
+
console.error(err);
|
|
87
95
|
});
|
|
88
96
|
</script>
|
|
89
97
|
</head>
|
package/dist/arm-confluent.js
CHANGED
|
@@ -72,6 +72,51 @@
|
|
|
72
72
|
*/
|
|
73
73
|
var CloudError = msRestAzure.CloudErrorMapper;
|
|
74
74
|
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
75
|
+
var SystemData = {
|
|
76
|
+
serializedName: "systemData",
|
|
77
|
+
type: {
|
|
78
|
+
name: "Composite",
|
|
79
|
+
className: "SystemData",
|
|
80
|
+
modelProperties: {
|
|
81
|
+
createdBy: {
|
|
82
|
+
serializedName: "createdBy",
|
|
83
|
+
type: {
|
|
84
|
+
name: "String"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
createdByType: {
|
|
88
|
+
serializedName: "createdByType",
|
|
89
|
+
type: {
|
|
90
|
+
name: "String"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
createdAt: {
|
|
94
|
+
serializedName: "createdAt",
|
|
95
|
+
type: {
|
|
96
|
+
name: "DateTime"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
lastModifiedBy: {
|
|
100
|
+
serializedName: "lastModifiedBy",
|
|
101
|
+
type: {
|
|
102
|
+
name: "String"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
lastModifiedByType: {
|
|
106
|
+
serializedName: "lastModifiedByType",
|
|
107
|
+
type: {
|
|
108
|
+
name: "String"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
lastModifiedAt: {
|
|
112
|
+
serializedName: "lastModifiedAt",
|
|
113
|
+
type: {
|
|
114
|
+
name: "DateTime"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
75
120
|
var ConfluentAgreementResource = {
|
|
76
121
|
serializedName: "ConfluentAgreementResource",
|
|
77
122
|
type: {
|
|
@@ -99,6 +144,14 @@
|
|
|
99
144
|
name: "String"
|
|
100
145
|
}
|
|
101
146
|
},
|
|
147
|
+
systemData: {
|
|
148
|
+
readOnly: true,
|
|
149
|
+
serializedName: "systemData",
|
|
150
|
+
type: {
|
|
151
|
+
name: "Composite",
|
|
152
|
+
className: "SystemData"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
102
155
|
publisher: {
|
|
103
156
|
serializedName: "properties.publisher",
|
|
104
157
|
type: {
|
|
@@ -278,6 +331,7 @@
|
|
|
278
331
|
className: "OfferDetail",
|
|
279
332
|
modelProperties: {
|
|
280
333
|
publisherId: {
|
|
334
|
+
required: true,
|
|
281
335
|
serializedName: "publisherId",
|
|
282
336
|
constraints: {
|
|
283
337
|
MaxLength: 50
|
|
@@ -287,6 +341,7 @@
|
|
|
287
341
|
}
|
|
288
342
|
},
|
|
289
343
|
id: {
|
|
344
|
+
required: true,
|
|
290
345
|
serializedName: "id",
|
|
291
346
|
constraints: {
|
|
292
347
|
MaxLength: 50
|
|
@@ -296,6 +351,7 @@
|
|
|
296
351
|
}
|
|
297
352
|
},
|
|
298
353
|
planId: {
|
|
354
|
+
required: true,
|
|
299
355
|
serializedName: "planId",
|
|
300
356
|
constraints: {
|
|
301
357
|
MaxLength: 50
|
|
@@ -305,6 +361,7 @@
|
|
|
305
361
|
}
|
|
306
362
|
},
|
|
307
363
|
planName: {
|
|
364
|
+
required: true,
|
|
308
365
|
serializedName: "planName",
|
|
309
366
|
constraints: {
|
|
310
367
|
MaxLength: 50
|
|
@@ -314,6 +371,7 @@
|
|
|
314
371
|
}
|
|
315
372
|
},
|
|
316
373
|
termUnit: {
|
|
374
|
+
required: true,
|
|
317
375
|
serializedName: "termUnit",
|
|
318
376
|
constraints: {
|
|
319
377
|
MaxLength: 25
|
|
@@ -356,9 +414,10 @@
|
|
|
356
414
|
}
|
|
357
415
|
},
|
|
358
416
|
emailAddress: {
|
|
417
|
+
required: true,
|
|
359
418
|
serializedName: "emailAddress",
|
|
360
419
|
constraints: {
|
|
361
|
-
Pattern:
|
|
420
|
+
Pattern: /^\S+@\S+\.\S+$/
|
|
362
421
|
},
|
|
363
422
|
type: {
|
|
364
423
|
name: "String"
|
|
@@ -367,72 +426,6 @@
|
|
|
367
426
|
}
|
|
368
427
|
}
|
|
369
428
|
};
|
|
370
|
-
var OrganizationResourcePropertiesOfferDetail = {
|
|
371
|
-
serializedName: "OrganizationResourceProperties_offerDetail",
|
|
372
|
-
type: {
|
|
373
|
-
name: "Composite",
|
|
374
|
-
className: "OrganizationResourcePropertiesOfferDetail",
|
|
375
|
-
modelProperties: __assign({}, OfferDetail.type.modelProperties)
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
var OrganizationResourcePropertiesUserDetail = {
|
|
379
|
-
serializedName: "OrganizationResourceProperties_userDetail",
|
|
380
|
-
type: {
|
|
381
|
-
name: "Composite",
|
|
382
|
-
className: "OrganizationResourcePropertiesUserDetail",
|
|
383
|
-
modelProperties: __assign({}, UserDetail.type.modelProperties)
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
var OrganizationResourceProperties = {
|
|
387
|
-
serializedName: "OrganizationResourceProperties",
|
|
388
|
-
type: {
|
|
389
|
-
name: "Composite",
|
|
390
|
-
className: "OrganizationResourceProperties",
|
|
391
|
-
modelProperties: {
|
|
392
|
-
createdTime: {
|
|
393
|
-
readOnly: true,
|
|
394
|
-
serializedName: "createdTime",
|
|
395
|
-
type: {
|
|
396
|
-
name: "DateTime"
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
provisioningState: {
|
|
400
|
-
serializedName: "provisioningState",
|
|
401
|
-
type: {
|
|
402
|
-
name: "String"
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
organizationId: {
|
|
406
|
-
readOnly: true,
|
|
407
|
-
serializedName: "organizationId",
|
|
408
|
-
type: {
|
|
409
|
-
name: "String"
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
ssoUrl: {
|
|
413
|
-
readOnly: true,
|
|
414
|
-
serializedName: "ssoUrl",
|
|
415
|
-
type: {
|
|
416
|
-
name: "String"
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
offerDetail: {
|
|
420
|
-
serializedName: "offerDetail",
|
|
421
|
-
type: {
|
|
422
|
-
name: "Composite",
|
|
423
|
-
className: "OrganizationResourcePropertiesOfferDetail"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
userDetail: {
|
|
427
|
-
serializedName: "userDetail",
|
|
428
|
-
type: {
|
|
429
|
-
name: "Composite",
|
|
430
|
-
className: "OrganizationResourcePropertiesUserDetail"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
429
|
var OrganizationResource = {
|
|
437
430
|
serializedName: "OrganizationResource",
|
|
438
431
|
type: {
|
|
@@ -460,6 +453,14 @@
|
|
|
460
453
|
name: "String"
|
|
461
454
|
}
|
|
462
455
|
},
|
|
456
|
+
systemData: {
|
|
457
|
+
readOnly: true,
|
|
458
|
+
serializedName: "systemData",
|
|
459
|
+
type: {
|
|
460
|
+
name: "Composite",
|
|
461
|
+
className: "SystemData"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
463
464
|
createdTime: {
|
|
464
465
|
readOnly: true,
|
|
465
466
|
serializedName: "properties.createdTime",
|
|
@@ -468,6 +469,7 @@
|
|
|
468
469
|
}
|
|
469
470
|
},
|
|
470
471
|
provisioningState: {
|
|
472
|
+
readOnly: true,
|
|
471
473
|
serializedName: "properties.provisioningState",
|
|
472
474
|
type: {
|
|
473
475
|
name: "String"
|
|
@@ -488,17 +490,19 @@
|
|
|
488
490
|
}
|
|
489
491
|
},
|
|
490
492
|
offerDetail: {
|
|
493
|
+
required: true,
|
|
491
494
|
serializedName: "properties.offerDetail",
|
|
492
495
|
type: {
|
|
493
496
|
name: "Composite",
|
|
494
|
-
className: "
|
|
497
|
+
className: "OfferDetail"
|
|
495
498
|
}
|
|
496
499
|
},
|
|
497
500
|
userDetail: {
|
|
501
|
+
required: true,
|
|
498
502
|
serializedName: "properties.userDetail",
|
|
499
503
|
type: {
|
|
500
504
|
name: "Composite",
|
|
501
|
-
className: "
|
|
505
|
+
className: "UserDetail"
|
|
502
506
|
}
|
|
503
507
|
},
|
|
504
508
|
tags: {
|
|
@@ -627,6 +631,7 @@
|
|
|
627
631
|
__proto__: null,
|
|
628
632
|
CloudError: CloudError,
|
|
629
633
|
BaseResource: BaseResource,
|
|
634
|
+
SystemData: SystemData,
|
|
630
635
|
ConfluentAgreementResource: ConfluentAgreementResource,
|
|
631
636
|
OperationDisplay: OperationDisplay,
|
|
632
637
|
OperationResult: OperationResult,
|
|
@@ -634,9 +639,6 @@
|
|
|
634
639
|
ResourceProviderDefaultErrorResponse: ResourceProviderDefaultErrorResponse,
|
|
635
640
|
OfferDetail: OfferDetail,
|
|
636
641
|
UserDetail: UserDetail,
|
|
637
|
-
OrganizationResourcePropertiesOfferDetail: OrganizationResourcePropertiesOfferDetail,
|
|
638
|
-
OrganizationResourcePropertiesUserDetail: OrganizationResourcePropertiesUserDetail,
|
|
639
|
-
OrganizationResourceProperties: OrganizationResourceProperties,
|
|
640
642
|
OrganizationResource: OrganizationResource,
|
|
641
643
|
OrganizationResourceUpdate: OrganizationResourceUpdate,
|
|
642
644
|
ConfluentAgreementResourceListResponse: ConfluentAgreementResourceListResponse,
|
|
@@ -660,9 +662,8 @@
|
|
|
660
662
|
ErrorResponseBody: ErrorResponseBody,
|
|
661
663
|
OfferDetail: OfferDetail,
|
|
662
664
|
OrganizationResource: OrganizationResource,
|
|
663
|
-
OrganizationResourcePropertiesOfferDetail: OrganizationResourcePropertiesOfferDetail,
|
|
664
|
-
OrganizationResourcePropertiesUserDetail: OrganizationResourcePropertiesUserDetail,
|
|
665
665
|
ResourceProviderDefaultErrorResponse: ResourceProviderDefaultErrorResponse,
|
|
666
|
+
SystemData: SystemData,
|
|
666
667
|
UserDetail: UserDetail
|
|
667
668
|
});
|
|
668
669
|
|
|
@@ -690,7 +691,7 @@
|
|
|
690
691
|
required: true,
|
|
691
692
|
isConstant: true,
|
|
692
693
|
serializedName: "api-version",
|
|
693
|
-
defaultValue: '
|
|
694
|
+
defaultValue: '2021-09-01-preview',
|
|
694
695
|
type: {
|
|
695
696
|
name: "String"
|
|
696
697
|
}
|
|
@@ -781,6 +782,9 @@
|
|
|
781
782
|
urlParameters: [
|
|
782
783
|
subscriptionId
|
|
783
784
|
],
|
|
785
|
+
queryParameters: [
|
|
786
|
+
apiVersion
|
|
787
|
+
],
|
|
784
788
|
headerParameters: [
|
|
785
789
|
acceptLanguage
|
|
786
790
|
],
|
|
@@ -800,6 +804,9 @@
|
|
|
800
804
|
urlParameters: [
|
|
801
805
|
subscriptionId
|
|
802
806
|
],
|
|
807
|
+
queryParameters: [
|
|
808
|
+
apiVersion
|
|
809
|
+
],
|
|
803
810
|
headerParameters: [
|
|
804
811
|
acceptLanguage
|
|
805
812
|
],
|
|
@@ -827,6 +834,9 @@
|
|
|
827
834
|
urlParameters: [
|
|
828
835
|
nextPageLink
|
|
829
836
|
],
|
|
837
|
+
queryParameters: [
|
|
838
|
+
apiVersion
|
|
839
|
+
],
|
|
830
840
|
headerParameters: [
|
|
831
841
|
acceptLanguage
|
|
832
842
|
],
|
|
@@ -949,10 +959,9 @@
|
|
|
949
959
|
OfferDetail: OfferDetail,
|
|
950
960
|
OrganizationResource: OrganizationResource,
|
|
951
961
|
OrganizationResourceListResult: OrganizationResourceListResult,
|
|
952
|
-
OrganizationResourcePropertiesOfferDetail: OrganizationResourcePropertiesOfferDetail,
|
|
953
|
-
OrganizationResourcePropertiesUserDetail: OrganizationResourcePropertiesUserDetail,
|
|
954
962
|
OrganizationResourceUpdate: OrganizationResourceUpdate,
|
|
955
963
|
ResourceProviderDefaultErrorResponse: ResourceProviderDefaultErrorResponse,
|
|
964
|
+
SystemData: SystemData,
|
|
956
965
|
UserDetail: UserDetail
|
|
957
966
|
});
|
|
958
967
|
|
|
@@ -1269,6 +1278,84 @@
|
|
|
1269
1278
|
serializer: serializer$2
|
|
1270
1279
|
};
|
|
1271
1280
|
|
|
1281
|
+
/*
|
|
1282
|
+
* Copyright (c) Microsoft Corporation.
|
|
1283
|
+
* Licensed under the MIT License.
|
|
1284
|
+
*
|
|
1285
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1286
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1287
|
+
*/
|
|
1288
|
+
|
|
1289
|
+
var Mappers$3 = /*#__PURE__*/Object.freeze({
|
|
1290
|
+
__proto__: null,
|
|
1291
|
+
BaseResource: BaseResource,
|
|
1292
|
+
ConfluentAgreementResource: ConfluentAgreementResource,
|
|
1293
|
+
ErrorResponseBody: ErrorResponseBody,
|
|
1294
|
+
OfferDetail: OfferDetail,
|
|
1295
|
+
OrganizationResource: OrganizationResource,
|
|
1296
|
+
ResourceProviderDefaultErrorResponse: ResourceProviderDefaultErrorResponse,
|
|
1297
|
+
SystemData: SystemData,
|
|
1298
|
+
UserDetail: UserDetail
|
|
1299
|
+
});
|
|
1300
|
+
|
|
1301
|
+
/*
|
|
1302
|
+
* Copyright (c) Microsoft Corporation.
|
|
1303
|
+
* Licensed under the MIT License.
|
|
1304
|
+
*
|
|
1305
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1306
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1307
|
+
* regenerated.
|
|
1308
|
+
*/
|
|
1309
|
+
/** Class representing a Validations. */
|
|
1310
|
+
var Validations = /** @class */ (function () {
|
|
1311
|
+
/**
|
|
1312
|
+
* Create a Validations.
|
|
1313
|
+
* @param {ConfluentManagementClientContext} client Reference to the service client.
|
|
1314
|
+
*/
|
|
1315
|
+
function Validations(client) {
|
|
1316
|
+
this.client = client;
|
|
1317
|
+
}
|
|
1318
|
+
Validations.prototype.validateOrganization = function (resourceGroupName, organizationName, body, options, callback) {
|
|
1319
|
+
return this.client.sendOperationRequest({
|
|
1320
|
+
resourceGroupName: resourceGroupName,
|
|
1321
|
+
organizationName: organizationName,
|
|
1322
|
+
body: body,
|
|
1323
|
+
options: options
|
|
1324
|
+
}, validateOrganizationOperationSpec, callback);
|
|
1325
|
+
};
|
|
1326
|
+
return Validations;
|
|
1327
|
+
}());
|
|
1328
|
+
// Operation Specifications
|
|
1329
|
+
var serializer$3 = new msRest.Serializer(Mappers$3);
|
|
1330
|
+
var validateOrganizationOperationSpec = {
|
|
1331
|
+
httpMethod: "POST",
|
|
1332
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate",
|
|
1333
|
+
urlParameters: [
|
|
1334
|
+
subscriptionId,
|
|
1335
|
+
resourceGroupName,
|
|
1336
|
+
organizationName
|
|
1337
|
+
],
|
|
1338
|
+
queryParameters: [
|
|
1339
|
+
apiVersion
|
|
1340
|
+
],
|
|
1341
|
+
headerParameters: [
|
|
1342
|
+
acceptLanguage
|
|
1343
|
+
],
|
|
1344
|
+
requestBody: {
|
|
1345
|
+
parameterPath: "body",
|
|
1346
|
+
mapper: __assign(__assign({}, OrganizationResource), { required: true })
|
|
1347
|
+
},
|
|
1348
|
+
responses: {
|
|
1349
|
+
200: {
|
|
1350
|
+
bodyMapper: OrganizationResource
|
|
1351
|
+
},
|
|
1352
|
+
default: {
|
|
1353
|
+
bodyMapper: ResourceProviderDefaultErrorResponse
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
serializer: serializer$3
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1272
1359
|
/*
|
|
1273
1360
|
* Copyright (c) Microsoft Corporation.
|
|
1274
1361
|
* Licensed under the MIT License.
|
|
@@ -1278,12 +1365,17 @@
|
|
|
1278
1365
|
* regenerated.
|
|
1279
1366
|
*/
|
|
1280
1367
|
var packageName = "@azure/arm-confluent";
|
|
1281
|
-
var packageVersion = "
|
|
1368
|
+
var packageVersion = "2.2.0";
|
|
1282
1369
|
var ConfluentManagementClientContext = /** @class */ (function (_super) {
|
|
1283
1370
|
__extends(ConfluentManagementClientContext, _super);
|
|
1284
1371
|
/**
|
|
1285
1372
|
* Initializes a new instance of the ConfluentManagementClient class.
|
|
1286
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1373
|
+
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1374
|
+
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1375
|
+
* more information about these credentials, see
|
|
1376
|
+
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1377
|
+
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1378
|
+
* @azure/ms-rest-browserauth are also supported.
|
|
1287
1379
|
* @param subscriptionId Microsoft Azure subscription id
|
|
1288
1380
|
* @param [options] The parameter options
|
|
1289
1381
|
*/
|
|
@@ -1303,7 +1395,7 @@
|
|
|
1303
1395
|
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1304
1396
|
}
|
|
1305
1397
|
_this = _super.call(this, credentials, options) || this;
|
|
1306
|
-
_this.apiVersion = '
|
|
1398
|
+
_this.apiVersion = '2021-09-01-preview';
|
|
1307
1399
|
_this.acceptLanguage = 'en-US';
|
|
1308
1400
|
_this.longRunningOperationRetryTimeout = 30;
|
|
1309
1401
|
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
@@ -1333,7 +1425,12 @@
|
|
|
1333
1425
|
__extends(ConfluentManagementClient, _super);
|
|
1334
1426
|
/**
|
|
1335
1427
|
* Initializes a new instance of the ConfluentManagementClient class.
|
|
1336
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1428
|
+
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1429
|
+
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1430
|
+
* more information about these credentials, see
|
|
1431
|
+
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1432
|
+
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1433
|
+
* @azure/ms-rest-browserauth are also supported.
|
|
1337
1434
|
* @param subscriptionId Microsoft Azure subscription id
|
|
1338
1435
|
* @param [options] The parameter options
|
|
1339
1436
|
*/
|
|
@@ -1342,6 +1439,7 @@
|
|
|
1342
1439
|
_this.marketplaceAgreements = new MarketplaceAgreements(_this);
|
|
1343
1440
|
_this.organizationOperations = new OrganizationOperations(_this);
|
|
1344
1441
|
_this.organization = new Organization(_this);
|
|
1442
|
+
_this.validations = new Validations(_this);
|
|
1345
1443
|
return _this;
|
|
1346
1444
|
}
|
|
1347
1445
|
return ConfluentManagementClient;
|
|
@@ -1354,6 +1452,7 @@
|
|
|
1354
1452
|
exports.MarketplaceAgreements = MarketplaceAgreements;
|
|
1355
1453
|
exports.Organization = Organization;
|
|
1356
1454
|
exports.OrganizationOperations = OrganizationOperations;
|
|
1455
|
+
exports.Validations = Validations;
|
|
1357
1456
|
|
|
1358
1457
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1359
1458
|
|