@azure/arm-confluent 2.1.1 → 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 +3 -6
- package/dist/arm-confluent.js +45 -21
- 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.map +1 -1
- package/esm/confluentManagementClient.js.map +1 -1
- package/esm/confluentManagementClientContext.d.ts +1 -1
- package/esm/confluentManagementClientContext.d.ts.map +1 -1
- package/esm/confluentManagementClientContext.js +6 -7
- package/esm/confluentManagementClientContext.js.map +1 -1
- package/esm/models/index.d.ts +3 -3
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/parameters.js +2 -2
- package/esm/operations/marketplaceAgreements.d.ts.map +1 -1
- package/esm/operations/marketplaceAgreements.js +31 -10
- package/esm/operations/marketplaceAgreements.js.map +1 -1
- package/esm/operations/validations.d.ts.map +1 -1
- package/esm/operations/validations.js +6 -2
- package/esm/operations/validations.js.map +1 -1
- package/package.json +1 -1
- package/src/confluentManagementClient.ts +2 -5
- package/src/confluentManagementClientContext.ts +8 -15
- package/src/models/index.ts +143 -162
- package/src/models/parameters.ts +2 -2
- package/src/operations/marketplaceAgreements.ts +43 -59
- package/src/operations/validations.ts +12 -32
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
## Azure ConfluentManagementClient SDK for JavaScript
|
|
2
2
|
|
|
3
|
-
This package contains an isomorphic SDK (runs both in
|
|
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
7
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
8
|
-
- Latest versions of Safari, Chrome, Edge
|
|
8
|
+
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
9
9
|
|
|
10
10
|
### Prerequisites
|
|
11
11
|
|
|
@@ -21,7 +21,6 @@ Install both packages using the below command:
|
|
|
21
21
|
```bash
|
|
22
22
|
npm install --save @azure/arm-confluent @azure/identity
|
|
23
23
|
```
|
|
24
|
-
|
|
25
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.
|
|
26
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.
|
|
27
26
|
|
|
@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
|
|
|
37
36
|
|
|
38
37
|
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
|
|
39
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.
|
|
40
|
-
|
|
41
39
|
#### nodejs - Authentication, client creation, and list marketplaceAgreements as an example written in JavaScript.
|
|
42
40
|
|
|
43
41
|
##### Sample code
|
|
@@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
|
|
|
51
49
|
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
|
|
52
50
|
const creds = new DefaultAzureCredential();
|
|
53
51
|
const client = new ConfluentManagementClient(creds, subscriptionId);
|
|
54
|
-
|
|
55
52
|
client.marketplaceAgreements.list().then((result) => {
|
|
56
53
|
console.log("The result is:");
|
|
57
54
|
console.log(result);
|
|
@@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
|
|
|
86
83
|
const credential = new InteractiveBrowserCredential(
|
|
87
84
|
{
|
|
88
85
|
clientId: "<client id for your Azure AD app>",
|
|
89
|
-
|
|
86
|
+
tenant: "<optional tenant for your organization>"
|
|
90
87
|
});
|
|
91
88
|
const client = new Azure.ArmConfluent.ConfluentManagementClient(creds, subscriptionId);
|
|
92
89
|
client.marketplaceAgreements.list().then((result) => {
|
package/dist/arm-confluent.js
CHANGED
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
parameterPath: "acceptLanguage",
|
|
680
680
|
mapper: {
|
|
681
681
|
serializedName: "accept-language",
|
|
682
|
-
defaultValue:
|
|
682
|
+
defaultValue: 'en-US',
|
|
683
683
|
type: {
|
|
684
684
|
name: "String"
|
|
685
685
|
}
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
required: true,
|
|
692
692
|
isConstant: true,
|
|
693
693
|
serializedName: "api-version",
|
|
694
|
-
defaultValue:
|
|
694
|
+
defaultValue: '2021-09-01-preview',
|
|
695
695
|
type: {
|
|
696
696
|
name: "String"
|
|
697
697
|
}
|
|
@@ -779,9 +779,15 @@
|
|
|
779
779
|
var listOperationSpec = {
|
|
780
780
|
httpMethod: "GET",
|
|
781
781
|
path: "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements",
|
|
782
|
-
urlParameters: [
|
|
783
|
-
|
|
784
|
-
|
|
782
|
+
urlParameters: [
|
|
783
|
+
subscriptionId
|
|
784
|
+
],
|
|
785
|
+
queryParameters: [
|
|
786
|
+
apiVersion
|
|
787
|
+
],
|
|
788
|
+
headerParameters: [
|
|
789
|
+
acceptLanguage
|
|
790
|
+
],
|
|
785
791
|
responses: {
|
|
786
792
|
200: {
|
|
787
793
|
bodyMapper: ConfluentAgreementResourceListResponse
|
|
@@ -795,11 +801,20 @@
|
|
|
795
801
|
var createOperationSpec = {
|
|
796
802
|
httpMethod: "PUT",
|
|
797
803
|
path: "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default",
|
|
798
|
-
urlParameters: [
|
|
799
|
-
|
|
800
|
-
|
|
804
|
+
urlParameters: [
|
|
805
|
+
subscriptionId
|
|
806
|
+
],
|
|
807
|
+
queryParameters: [
|
|
808
|
+
apiVersion
|
|
809
|
+
],
|
|
810
|
+
headerParameters: [
|
|
811
|
+
acceptLanguage
|
|
812
|
+
],
|
|
801
813
|
requestBody: {
|
|
802
|
-
parameterPath: [
|
|
814
|
+
parameterPath: [
|
|
815
|
+
"options",
|
|
816
|
+
"body"
|
|
817
|
+
],
|
|
803
818
|
mapper: ConfluentAgreementResource
|
|
804
819
|
},
|
|
805
820
|
responses: {
|
|
@@ -816,9 +831,15 @@
|
|
|
816
831
|
httpMethod: "GET",
|
|
817
832
|
baseUrl: "https://management.azure.com",
|
|
818
833
|
path: "{nextLink}",
|
|
819
|
-
urlParameters: [
|
|
820
|
-
|
|
821
|
-
|
|
834
|
+
urlParameters: [
|
|
835
|
+
nextPageLink
|
|
836
|
+
],
|
|
837
|
+
queryParameters: [
|
|
838
|
+
apiVersion
|
|
839
|
+
],
|
|
840
|
+
headerParameters: [
|
|
841
|
+
acceptLanguage
|
|
842
|
+
],
|
|
822
843
|
responses: {
|
|
823
844
|
200: {
|
|
824
845
|
bodyMapper: ConfluentAgreementResourceListResponse
|
|
@@ -1314,8 +1335,12 @@
|
|
|
1314
1335
|
resourceGroupName,
|
|
1315
1336
|
organizationName
|
|
1316
1337
|
],
|
|
1317
|
-
queryParameters: [
|
|
1318
|
-
|
|
1338
|
+
queryParameters: [
|
|
1339
|
+
apiVersion
|
|
1340
|
+
],
|
|
1341
|
+
headerParameters: [
|
|
1342
|
+
acceptLanguage
|
|
1343
|
+
],
|
|
1319
1344
|
requestBody: {
|
|
1320
1345
|
parameterPath: "body",
|
|
1321
1346
|
mapper: __assign(__assign({}, OrganizationResource), { required: true })
|
|
@@ -1340,7 +1365,7 @@
|
|
|
1340
1365
|
* regenerated.
|
|
1341
1366
|
*/
|
|
1342
1367
|
var packageName = "@azure/arm-confluent";
|
|
1343
|
-
var packageVersion = "2.
|
|
1368
|
+
var packageVersion = "2.2.0";
|
|
1344
1369
|
var ConfluentManagementClientContext = /** @class */ (function (_super) {
|
|
1345
1370
|
__extends(ConfluentManagementClientContext, _super);
|
|
1346
1371
|
/**
|
|
@@ -1357,10 +1382,10 @@
|
|
|
1357
1382
|
function ConfluentManagementClientContext(credentials, subscriptionId, options) {
|
|
1358
1383
|
var _this = this;
|
|
1359
1384
|
if (credentials == undefined) {
|
|
1360
|
-
throw new Error(
|
|
1385
|
+
throw new Error('\'credentials\' cannot be null.');
|
|
1361
1386
|
}
|
|
1362
1387
|
if (subscriptionId == undefined) {
|
|
1363
|
-
throw new Error(
|
|
1388
|
+
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1364
1389
|
}
|
|
1365
1390
|
if (!options) {
|
|
1366
1391
|
options = {};
|
|
@@ -1370,8 +1395,8 @@
|
|
|
1370
1395
|
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1371
1396
|
}
|
|
1372
1397
|
_this = _super.call(this, credentials, options) || this;
|
|
1373
|
-
_this.apiVersion =
|
|
1374
|
-
_this.acceptLanguage =
|
|
1398
|
+
_this.apiVersion = '2021-09-01-preview';
|
|
1399
|
+
_this.acceptLanguage = 'en-US';
|
|
1375
1400
|
_this.longRunningOperationRetryTimeout = 30;
|
|
1376
1401
|
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1377
1402
|
_this.requestContentType = "application/json; charset=utf-8";
|
|
@@ -1380,8 +1405,7 @@
|
|
|
1380
1405
|
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1381
1406
|
_this.acceptLanguage = options.acceptLanguage;
|
|
1382
1407
|
}
|
|
1383
|
-
if (options.longRunningOperationRetryTimeout !== null &&
|
|
1384
|
-
options.longRunningOperationRetryTimeout !== undefined) {
|
|
1408
|
+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1385
1409
|
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1386
1410
|
}
|
|
1387
1411
|
return _this;
|