@azure/arm-managementpartner 2.0.0 → 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.
Files changed (68) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +18 -7
  3. package/dist/index.js +97 -28
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/operationListSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/operationListSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/{getOperations.js → operationListSample.js} +3 -3
  10. package/dist-esm/samples-dev/operationListSample.js.map +1 -0
  11. package/dist-esm/samples-dev/partnerCreateSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/partnerCreateSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/{putPartnerDetails.js → partnerCreateSample.js} +3 -3
  14. package/dist-esm/samples-dev/partnerCreateSample.js.map +1 -0
  15. package/dist-esm/samples-dev/partnerDeleteSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/partnerDeleteSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/{deletePartnerDetails.js → partnerDeleteSample.js} +3 -3
  18. package/dist-esm/samples-dev/partnerDeleteSample.js.map +1 -0
  19. package/dist-esm/samples-dev/partnerGetSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/partnerGetSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/partnerGetSample.js +29 -0
  22. package/dist-esm/samples-dev/partnerGetSample.js.map +1 -0
  23. package/dist-esm/samples-dev/partnerUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/partnerUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/{patchPartnerDetails.js → partnerUpdateSample.js} +3 -3
  26. package/dist-esm/samples-dev/partnerUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/partnersGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/partnersGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/{getPartnerDetails.js → partnersGetSample.js} +3 -3
  30. package/dist-esm/samples-dev/partnersGetSample.js.map +1 -0
  31. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts +2 -0
  32. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -1
  33. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js +49 -2
  34. package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js.map +1 -1
  35. package/dist-esm/src/models/index.d.ts +22 -5
  36. package/dist-esm/src/models/index.d.ts.map +1 -1
  37. package/dist-esm/src/models/index.js +12 -0
  38. package/dist-esm/src/models/index.js.map +1 -1
  39. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  40. package/dist-esm/src/models/mappers.js +0 -12
  41. package/dist-esm/src/models/mappers.js.map +1 -1
  42. package/dist-esm/test/sampleTest.js +11 -13
  43. package/dist-esm/test/sampleTest.js.map +1 -1
  44. package/package.json +36 -21
  45. package/review/arm-managementpartner.api.md +11 -5
  46. package/rollup.config.js +6 -72
  47. package/src/aCEProvisioningManagementPartnerAPI.ts +61 -2
  48. package/src/models/index.ts +24 -5
  49. package/src/models/mappers.ts +0 -12
  50. package/tsconfig.json +18 -5
  51. package/types/arm-managementpartner.d.ts +26 -5
  52. package/types/tsdoc-metadata.json +1 -1
  53. package/LICENSE.txt +0 -21
  54. package/dist-esm/samples-dev/deletePartnerDetails.d.ts +0 -2
  55. package/dist-esm/samples-dev/deletePartnerDetails.d.ts.map +0 -1
  56. package/dist-esm/samples-dev/deletePartnerDetails.js.map +0 -1
  57. package/dist-esm/samples-dev/getOperations.d.ts +0 -2
  58. package/dist-esm/samples-dev/getOperations.d.ts.map +0 -1
  59. package/dist-esm/samples-dev/getOperations.js.map +0 -1
  60. package/dist-esm/samples-dev/getPartnerDetails.d.ts +0 -2
  61. package/dist-esm/samples-dev/getPartnerDetails.d.ts.map +0 -1
  62. package/dist-esm/samples-dev/getPartnerDetails.js.map +0 -1
  63. package/dist-esm/samples-dev/patchPartnerDetails.d.ts +0 -2
  64. package/dist-esm/samples-dev/patchPartnerDetails.d.ts.map +0 -1
  65. package/dist-esm/samples-dev/patchPartnerDetails.js.map +0 -1
  66. package/dist-esm/samples-dev/putPartnerDetails.d.ts +0 -2
  67. package/dist-esm/samples-dev/putPartnerDetails.d.ts.map +0 -1
  68. package/dist-esm/samples-dev/putPartnerDetails.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release History
2
2
 
3
+ ## 3.0.0 (2022-07-04)
4
+
5
+ **Features**
6
+
7
+ - Added Type Alias ErrorResponseCode
8
+ - Added Enum KnownErrorResponseCode
9
+
10
+ **Breaking Changes**
11
+
12
+ - Interface ErrorModel no longer has parameter code
13
+ - Interface ErrorModel no longer has parameter message
14
+
15
+ ## 2.0.1 (2022-04-24)
16
+
17
+ **Features**
18
+
19
+ - Bug fix
20
+
3
21
  ## 2.0.0 (2022-01-19)
4
22
 
5
23
  The package of @azure/arm-managementpartner is using our next generation design principles since version 2.0.0, which contains breaking changes.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Azure Service client library for JavaScript
1
+ # Azure AceProvisioningManagementPartnerApi client library for JavaScript
2
2
 
3
- This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.
3
+ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure AceProvisioningManagementPartnerApi client.
4
4
 
5
5
  This API describe ACE Provisioning ManagementPartner
6
6
 
@@ -16,13 +16,15 @@ This API describe ACE Provisioning ManagementPartner
16
16
  - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20
+
19
21
  ### Prerequisites
20
22
 
21
23
  - An [Azure subscription][azure_sub].
22
24
 
23
25
  ### Install the `@azure/arm-managementpartner` package
24
26
 
25
- Install the Azure Service client library for JavaScript with `npm`:
27
+ Install the Azure AceProvisioningManagementPartnerApi client library for JavaScript with `npm`:
26
28
 
27
29
  ```bash
28
30
  npm install @azure/arm-managementpartner
@@ -30,8 +32,8 @@ npm install @azure/arm-managementpartner
30
32
 
31
33
  ### Create and authenticate a `ACEProvisioningManagementPartnerAPI`
32
34
 
33
- To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
34
- You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
35
+ To create a client object to access the Azure AceProvisioningManagementPartnerApi API, you will need the `endpoint` of your Azure AceProvisioningManagementPartnerApi resource and a `credential`. The Azure AceProvisioningManagementPartnerApi client can use Azure Active Directory credentials to authenticate.
36
+ You can find the endpoint for your Azure AceProvisioningManagementPartnerApi resource in the [Azure Portal][azure_portal].
35
37
 
36
38
  You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
37
39
 
@@ -41,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
41
43
  npm install @azure/identity
42
44
  ```
43
45
 
44
- You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
46
+ You will also need to **register a new AAD application and grant access to Azure AceProvisioningManagementPartnerApi** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45
47
  Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
46
48
 
47
49
  For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { ACEProvisioningManagementPartnerAPI } = require("@azure/arm-managementpartner");
51
53
  const { DefaultAzureCredential } = require("@azure/identity");
54
+ // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55
+
52
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
57
  const client = new ACEProvisioningManagementPartnerAPI(new DefaultAzureCredential(), subscriptionId);
58
+
59
+ // For client-side applications running in the browser, use this code instead:
60
+ // const credential = new InteractiveBrowserCredential({
61
+ // tenantId: "<YOUR_TENANT_ID>",
62
+ // clientId: "<YOUR_CLIENT_ID>"
63
+ // });
64
+ // const client = new ACEProvisioningManagementPartnerAPI(credential, subscriptionId);
54
65
  ```
55
66
 
56
67
 
@@ -61,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For
61
72
 
62
73
  ### ACEProvisioningManagementPartnerAPI
63
74
 
64
- `ACEProvisioningManagementPartnerAPI` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access.
75
+ `ACEProvisioningManagementPartnerAPI` is the primary interface for developers using the Azure AceProvisioningManagementPartnerApi client library. Explore the methods on this client object to understand the different features of the Azure AceProvisioningManagementPartnerApi service that you can access.
65
76
 
66
77
  ## Troubleshooting
67
78
 
package/dist/index.js CHANGED
@@ -2,8 +2,30 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var coreClient = require('@azure/core-client');
6
5
  var tslib = require('tslib');
6
+ var coreClient = require('@azure/core-client');
7
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
7
29
 
8
30
  /*
9
31
  * Copyright (c) Microsoft Corporation.
@@ -12,10 +34,24 @@ var tslib = require('tslib');
12
34
  * Code generated by Microsoft (R) AutoRest Code Generator.
13
35
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
36
  */
37
+ /** Known values of {@link ManagementPartnerState} that the service accepts. */
38
+ exports.KnownManagementPartnerState = void 0;
15
39
  (function (KnownManagementPartnerState) {
40
+ /** Active */
16
41
  KnownManagementPartnerState["Active"] = "Active";
42
+ /** Deleted */
17
43
  KnownManagementPartnerState["Deleted"] = "Deleted";
18
44
  })(exports.KnownManagementPartnerState || (exports.KnownManagementPartnerState = {}));
45
+ /** Known values of {@link ErrorResponseCode} that the service accepts. */
46
+ exports.KnownErrorResponseCode = void 0;
47
+ (function (KnownErrorResponseCode) {
48
+ /** NotFound */
49
+ KnownErrorResponseCode["NotFound"] = "NotFound";
50
+ /** Conflict */
51
+ KnownErrorResponseCode["Conflict"] = "Conflict";
52
+ /** BadRequest */
53
+ KnownErrorResponseCode["BadRequest"] = "BadRequest";
54
+ })(exports.KnownErrorResponseCode || (exports.KnownErrorResponseCode = {}));
19
55
 
20
56
  /*
21
57
  * Copyright (c) Microsoft Corporation.
@@ -118,18 +154,6 @@ const ErrorModel = {
118
154
  name: "Composite",
119
155
  className: "ExtendedErrorInfo"
120
156
  }
121
- },
122
- code: {
123
- serializedName: "code",
124
- type: {
125
- name: "String"
126
- }
127
- },
128
- message: {
129
- serializedName: "message",
130
- type: {
131
- name: "String"
132
- }
133
157
  }
134
158
  }
135
159
  }
@@ -334,7 +358,7 @@ class PartnerImpl {
334
358
  * @param options The options parameters.
335
359
  */
336
360
  get(partnerId, options) {
337
- return this.client.sendOperationRequest({ partnerId, options }, getOperationSpec);
361
+ return this.client.sendOperationRequest({ partnerId, options }, getOperationSpec$1);
338
362
  }
339
363
  /**
340
364
  * Create a management partner for the objectId and tenantId.
@@ -362,8 +386,8 @@ class PartnerImpl {
362
386
  }
363
387
  }
364
388
  // Operation Specifications
365
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
366
- const getOperationSpec = {
389
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
390
+ const getOperationSpec$1 = {
367
391
  path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
368
392
  httpMethod: "GET",
369
393
  responses: {
@@ -377,7 +401,7 @@ const getOperationSpec = {
377
401
  queryParameters: [apiVersion],
378
402
  urlParameters: [$host, partnerId],
379
403
  headerParameters: [accept],
380
- serializer
404
+ serializer: serializer$2
381
405
  };
382
406
  const createOperationSpec = {
383
407
  path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
@@ -393,7 +417,7 @@ const createOperationSpec = {
393
417
  queryParameters: [apiVersion],
394
418
  urlParameters: [$host, partnerId],
395
419
  headerParameters: [accept],
396
- serializer
420
+ serializer: serializer$2
397
421
  };
398
422
  const updateOperationSpec = {
399
423
  path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
@@ -409,7 +433,7 @@ const updateOperationSpec = {
409
433
  queryParameters: [apiVersion],
410
434
  urlParameters: [$host, partnerId],
411
435
  headerParameters: [accept],
412
- serializer
436
+ serializer: serializer$2
413
437
  };
414
438
  const deleteOperationSpec = {
415
439
  path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
@@ -423,7 +447,7 @@ const deleteOperationSpec = {
423
447
  queryParameters: [apiVersion],
424
448
  urlParameters: [$host, partnerId],
425
449
  headerParameters: [accept],
426
- serializer
450
+ serializer: serializer$2
427
451
  };
428
452
 
429
453
  /*
@@ -508,7 +532,7 @@ class OperationImpl {
508
532
  }
509
533
  }
510
534
  // Operation Specifications
511
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
535
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
512
536
  const listOperationSpec = {
513
537
  path: "/providers/Microsoft.ManagementPartner/operations",
514
538
  httpMethod: "GET",
@@ -563,12 +587,12 @@ class PartnersImpl {
563
587
  * @param options The options parameters.
564
588
  */
565
589
  get(options) {
566
- return this.client.sendOperationRequest({ options }, getOperationSpec$1);
590
+ return this.client.sendOperationRequest({ options }, getOperationSpec);
567
591
  }
568
592
  }
569
593
  // Operation Specifications
570
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
571
- const getOperationSpec$1 = {
594
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
595
+ const getOperationSpec = {
572
596
  path: "/providers/Microsoft.ManagementPartner/partners",
573
597
  httpMethod: "GET",
574
598
  responses: {
@@ -582,7 +606,7 @@ const getOperationSpec$1 = {
582
606
  queryParameters: [apiVersion],
583
607
  urlParameters: [$host],
584
608
  headerParameters: [accept],
585
- serializer: serializer$2
609
+ serializer
586
610
  };
587
611
 
588
612
  /*
@@ -592,13 +616,14 @@ const getOperationSpec$1 = {
592
616
  * Code generated by Microsoft (R) AutoRest Code Generator.
593
617
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
594
618
  */
595
- class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
619
+ class ACEProvisioningManagementPartnerAPI extends coreClient__namespace.ServiceClient {
596
620
  /**
597
621
  * Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.
598
622
  * @param credentials Subscription credentials which uniquely identify client subscription.
599
623
  * @param options The parameter options
600
624
  */
601
625
  constructor(credentials, options) {
626
+ var _a, _b;
602
627
  if (credentials === undefined) {
603
628
  throw new Error("'credentials' cannot be null");
604
629
  }
@@ -610,7 +635,7 @@ class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
610
635
  requestContentType: "application/json; charset=utf-8",
611
636
  credential: credentials
612
637
  };
613
- const packageDetails = `azsdk-js-arm-managementpartner/2.0.0`;
638
+ const packageDetails = `azsdk-js-arm-managementpartner/3.0.0`;
614
639
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
615
640
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
616
641
  : `${packageDetails}`;
@@ -619,14 +644,58 @@ class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
619
644
  }
620
645
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
621
646
  userAgentPrefix
622
- }, baseUri: options.endpoint || "https://management.azure.com" });
647
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
623
648
  super(optionsWithDefaults);
649
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
650
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
651
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
652
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
653
+ if (!bearerTokenAuthenticationPolicyFound) {
654
+ this.pipeline.removePolicy({
655
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
656
+ });
657
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
658
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
659
+ challengeCallbacks: {
660
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
661
+ }
662
+ }));
663
+ }
664
+ }
624
665
  // Assigning values to Constant parameters
625
666
  this.$host = options.$host || "https://management.azure.com";
626
667
  this.apiVersion = options.apiVersion || "2018-02-01";
627
668
  this.partner = new PartnerImpl(this);
628
669
  this.operation = new OperationImpl(this);
629
670
  this.partners = new PartnersImpl(this);
671
+ this.addCustomApiVersionPolicy(options.apiVersion);
672
+ }
673
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
674
+ addCustomApiVersionPolicy(apiVersion) {
675
+ if (!apiVersion) {
676
+ return;
677
+ }
678
+ const apiVersionPolicy = {
679
+ name: "CustomApiVersionPolicy",
680
+ sendRequest(request, next) {
681
+ return tslib.__awaiter(this, void 0, void 0, function* () {
682
+ const param = request.url.split("?");
683
+ if (param.length > 1) {
684
+ const newParams = param[1].split("&").map((item) => {
685
+ if (item.indexOf("api-version") > -1) {
686
+ return "api-version=" + apiVersion;
687
+ }
688
+ else {
689
+ return item;
690
+ }
691
+ });
692
+ request.url = param[0] + "?" + newParams.join("&");
693
+ }
694
+ return next(request);
695
+ });
696
+ }
697
+ };
698
+ this.pipeline.addPolicy(apiVersionPolicy);
630
699
  }
631
700
  }
632
701
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/partner.ts","../src/operations/operation.ts","../src/operations/partners.ts","../src/aCEProvisioningManagementPartnerAPI.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** this is the management partner operations response */\nexport interface PartnerResponse {\n /** Type of the partner */\n etag?: number;\n /**\n * Identifier of the partner\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Name of the partner\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Type of resource. \"Microsoft.ManagementPartner/partners\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** This is the partner id */\n partnerId?: string;\n /** This is the partner name */\n partnerName?: string;\n /** This is the tenant id. */\n tenantId?: string;\n /** This is the object id. */\n objectId?: string;\n /** This is the version. */\n version?: number;\n /** This is the DateTime when the partner was updated. */\n updatedTime?: Date;\n /** This is the DateTime when the partner was created. */\n createdTime?: Date;\n /** This is the partner state */\n state?: ManagementPartnerState;\n}\n\n/** this is the management partner operations error */\nexport interface ErrorModel {\n /** this is the ExtendedErrorInfo property */\n error?: ExtendedErrorInfo;\n /** this is the error response code */\n code?: string;\n /** this is the extended error info message */\n message?: string;\n}\n\n/** this is the extended error info */\nexport interface ExtendedErrorInfo {\n /** this is the error response code */\n code?: string;\n /** this is the extended error info message */\n message?: string;\n}\n\n/** this is the management partner operations list */\nexport interface OperationList {\n /** this is the operation response list */\n value?: OperationResponse[];\n /** Url to get the next page of items. */\n nextLink?: string;\n}\n\n/** this is the management partner operations response */\nexport interface OperationResponse {\n /** this is the operation response name */\n name?: string;\n /** this is the operation display */\n display?: OperationDisplay;\n /** the is operation response origin information */\n origin?: string;\n}\n\n/** this is the management partner operation */\nexport interface OperationDisplay {\n /** the is management partner provider */\n provider?: string;\n /** the is management partner resource */\n resource?: string;\n /** the is management partner operation */\n operation?: string;\n /** the is management partner operation description */\n description?: string;\n}\n\n/** Known values of {@link ManagementPartnerState} that the service accepts. */\nexport enum KnownManagementPartnerState {\n Active = \"Active\",\n Deleted = \"Deleted\"\n}\n\n/**\n * Defines values for ManagementPartnerState. \\\n * {@link KnownManagementPartnerState} can be used interchangeably with ManagementPartnerState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active** \\\n * **Deleted**\n */\nexport type ManagementPartnerState = string;\n\n/** Optional parameters. */\nexport interface PartnerGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type PartnerGetResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface PartnerCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type PartnerCreateResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface PartnerUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type PartnerUpdateResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface PartnerDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface OperationListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationListResponse = OperationList;\n\n/** Optional parameters. */\nexport interface OperationListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationListNextResponse = OperationList;\n\n/** Optional parameters. */\nexport interface PartnersGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type PartnersGetResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface ACEProvisioningManagementPartnerAPIOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const PartnerResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PartnerResponse\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"Number\"\n }\n },\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n partnerId: {\n serializedName: \"properties.partnerId\",\n type: {\n name: \"String\"\n }\n },\n partnerName: {\n serializedName: \"properties.partnerName\",\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"properties.tenantId\",\n type: {\n name: \"String\"\n }\n },\n objectId: {\n serializedName: \"properties.objectId\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"properties.version\",\n type: {\n name: \"Number\"\n }\n },\n updatedTime: {\n serializedName: \"properties.updatedTime\",\n type: {\n name: \"DateTime\"\n }\n },\n createdTime: {\n serializedName: \"properties.createdTime\",\n type: {\n name: \"DateTime\"\n }\n },\n state: {\n serializedName: \"properties.state\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ExtendedErrorInfo\"\n }\n },\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ExtendedErrorInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtendedErrorInfo\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationResponse\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationResponse\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const partnerId: OperationURLParameter = {\n parameterPath: \"partnerId\",\n mapper: {\n serializedName: \"partnerId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-02-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Partner } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ACEProvisioningManagementPartnerAPI } from \"../aCEProvisioningManagementPartnerAPI\";\nimport {\n PartnerGetOptionalParams,\n PartnerGetResponse,\n PartnerCreateOptionalParams,\n PartnerCreateResponse,\n PartnerUpdateOptionalParams,\n PartnerUpdateResponse,\n PartnerDeleteOptionalParams\n} from \"../models\";\n\n/** Class containing Partner operations. */\nexport class PartnerImpl implements Partner {\n private readonly client: ACEProvisioningManagementPartnerAPI;\n\n /**\n * Initialize a new instance of the class Partner class.\n * @param client Reference to the service client\n */\n constructor(client: ACEProvisioningManagementPartnerAPI) {\n this.client = client;\n }\n\n /**\n * Get the management partner using the partnerId, objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n get(\n partnerId: string,\n options?: PartnerGetOptionalParams\n ): Promise<PartnerGetResponse> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a management partner for the objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n create(\n partnerId: string,\n options?: PartnerCreateOptionalParams\n ): Promise<PartnerCreateResponse> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n createOperationSpec\n );\n }\n\n /**\n * Update the management partner for the objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n update(\n partnerId: string,\n options?: PartnerUpdateOptionalParams\n ): Promise<PartnerUpdateResponse> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete the management partner for the objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n delete(\n partnerId: string,\n options?: PartnerDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ACEProvisioningManagementPartnerAPI } from \"../aCEProvisioningManagementPartnerAPI\";\nimport {\n OperationResponse,\n OperationListNextOptionalParams,\n OperationListOptionalParams,\n OperationListResponse,\n OperationListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operation operations. */\nexport class OperationImpl implements Operation {\n private readonly client: ACEProvisioningManagementPartnerAPI;\n\n /**\n * Initialize a new instance of the class Operation class.\n * @param client Reference to the service client\n */\n constructor(client: ACEProvisioningManagementPartnerAPI) {\n this.client = client;\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationListOptionalParams\n ): PagedAsyncIterableIterator<OperationResponse> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationListOptionalParams\n ): AsyncIterableIterator<OperationResponse[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationListOptionalParams\n ): AsyncIterableIterator<OperationResponse> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationListOptionalParams\n ): Promise<OperationListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationListNextOptionalParams\n ): Promise<OperationListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Partners } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ACEProvisioningManagementPartnerAPI } from \"../aCEProvisioningManagementPartnerAPI\";\nimport { PartnersGetOptionalParams, PartnersGetResponse } from \"../models\";\n\n/** Class containing Partners operations. */\nexport class PartnersImpl implements Partners {\n private readonly client: ACEProvisioningManagementPartnerAPI;\n\n /**\n * Initialize a new instance of the class Partners class.\n * @param client Reference to the service client\n */\n constructor(client: ACEProvisioningManagementPartnerAPI) {\n this.client = client;\n }\n\n /**\n * Get the management partner using the objectId and tenantId.\n * @param options The options parameters.\n */\n get(options?: PartnersGetOptionalParams): Promise<PartnersGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { PartnerImpl, OperationImpl, PartnersImpl } from \"./operations\";\nimport { Partner, Operation, Partners } from \"./operationsInterfaces\";\nimport { ACEProvisioningManagementPartnerAPIOptionalParams } from \"./models\";\n\nexport class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: ACEProvisioningManagementPartnerAPIOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ACEProvisioningManagementPartnerAPIOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-managementpartner/2.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-02-01\";\n this.partner = new PartnerImpl(this);\n this.operation = new OperationImpl(this);\n this.partners = new PartnersImpl(this);\n }\n\n partner: Partner;\n operation: Operation;\n partners: Partners;\n}\n"],"names":["KnownManagementPartnerState","coreClient.createSerializer","Mappers.PartnerResponse","Mappers.ErrorModel","Parameters.apiVersion","Parameters.$host","Parameters.partnerId","Parameters.accept","__asyncValues","__asyncDelegator","serializer","Mappers.OperationList","Parameters.nextLink","getOperationSpec","coreClient.ServiceClient"],"mappings":";;;;;;;AAAA;;;;;;;AAgGA,WAAY,2BAA2B;IACrC,gDAAiB,CAAA;IACjB,kDAAmB,CAAA;AACrB,CAAC,EAHWA,mCAA2B,KAA3BA,mCAA2B;;AChGvC;;;;;;;AAUA,AAAO,MAAM,eAAe,GAA+B;IACzD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,iBAAiB;QAC5B,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,wBAAwB;gBACxC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,qBAAqB;gBACrC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf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,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;KACxC;CAKF;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/partner.ts","../src/operations/operation.ts","../src/operations/partners.ts","../src/aCEProvisioningManagementPartnerAPI.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** this is the management partner operations response */\nexport interface PartnerResponse {\n /** Type of the partner */\n etag?: number;\n /**\n * Identifier of the partner\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Name of the partner\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Type of resource. \"Microsoft.ManagementPartner/partners\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** This is the partner id */\n partnerId?: string;\n /** This is the partner name */\n partnerName?: string;\n /** This is the tenant id. */\n tenantId?: string;\n /** This is the object id. */\n objectId?: string;\n /** This is the version. */\n version?: number;\n /** This is the DateTime when the partner was updated. */\n updatedTime?: Date;\n /** This is the DateTime when the partner was created. */\n createdTime?: Date;\n /** This is the partner state */\n state?: ManagementPartnerState;\n}\n\n/** this is the management partner operations error */\nexport interface ErrorModel {\n /** this is the ExtendedErrorInfo property */\n error?: ExtendedErrorInfo;\n}\n\n/** this is the extended error info */\nexport interface ExtendedErrorInfo {\n /** this is the error response code */\n code?: ErrorResponseCode;\n /** this is the extended error info message */\n message?: string;\n}\n\n/** this is the management partner operations list */\nexport interface OperationList {\n /** this is the operation response list */\n value?: OperationResponse[];\n /** Url to get the next page of items. */\n nextLink?: string;\n}\n\n/** this is the management partner operations response */\nexport interface OperationResponse {\n /** this is the operation response name */\n name?: string;\n /** this is the operation display */\n display?: OperationDisplay;\n /** the is operation response origin information */\n origin?: string;\n}\n\n/** this is the management partner operation */\nexport interface OperationDisplay {\n /** the is management partner provider */\n provider?: string;\n /** the is management partner resource */\n resource?: string;\n /** the is management partner operation */\n operation?: string;\n /** the is management partner operation description */\n description?: string;\n}\n\n/** Known values of {@link ManagementPartnerState} that the service accepts. */\nexport enum KnownManagementPartnerState {\n /** Active */\n Active = \"Active\",\n /** Deleted */\n Deleted = \"Deleted\"\n}\n\n/**\n * Defines values for ManagementPartnerState. \\\n * {@link KnownManagementPartnerState} can be used interchangeably with ManagementPartnerState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active** \\\n * **Deleted**\n */\nexport type ManagementPartnerState = string;\n\n/** Known values of {@link ErrorResponseCode} that the service accepts. */\nexport enum KnownErrorResponseCode {\n /** NotFound */\n NotFound = \"NotFound\",\n /** Conflict */\n Conflict = \"Conflict\",\n /** BadRequest */\n BadRequest = \"BadRequest\"\n}\n\n/**\n * Defines values for ErrorResponseCode. \\\n * {@link KnownErrorResponseCode} can be used interchangeably with ErrorResponseCode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotFound** \\\n * **Conflict** \\\n * **BadRequest**\n */\nexport type ErrorResponseCode = string;\n\n/** Optional parameters. */\nexport interface PartnerGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type PartnerGetResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface PartnerCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type PartnerCreateResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface PartnerUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type PartnerUpdateResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface PartnerDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface OperationListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationListResponse = OperationList;\n\n/** Optional parameters. */\nexport interface OperationListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationListNextResponse = OperationList;\n\n/** Optional parameters. */\nexport interface PartnersGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type PartnersGetResponse = PartnerResponse;\n\n/** Optional parameters. */\nexport interface ACEProvisioningManagementPartnerAPIOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const PartnerResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PartnerResponse\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"Number\"\n }\n },\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n partnerId: {\n serializedName: \"properties.partnerId\",\n type: {\n name: \"String\"\n }\n },\n partnerName: {\n serializedName: \"properties.partnerName\",\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"properties.tenantId\",\n type: {\n name: \"String\"\n }\n },\n objectId: {\n serializedName: \"properties.objectId\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"properties.version\",\n type: {\n name: \"Number\"\n }\n },\n updatedTime: {\n serializedName: \"properties.updatedTime\",\n type: {\n name: \"DateTime\"\n }\n },\n createdTime: {\n serializedName: \"properties.createdTime\",\n type: {\n name: \"DateTime\"\n }\n },\n state: {\n serializedName: \"properties.state\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ExtendedErrorInfo\"\n }\n }\n }\n }\n};\n\nexport const ExtendedErrorInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtendedErrorInfo\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationResponse\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationResponse\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const partnerId: OperationURLParameter = {\n parameterPath: \"partnerId\",\n mapper: {\n serializedName: \"partnerId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-02-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Partner } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ACEProvisioningManagementPartnerAPI } from \"../aCEProvisioningManagementPartnerAPI\";\nimport {\n PartnerGetOptionalParams,\n PartnerGetResponse,\n PartnerCreateOptionalParams,\n PartnerCreateResponse,\n PartnerUpdateOptionalParams,\n PartnerUpdateResponse,\n PartnerDeleteOptionalParams\n} from \"../models\";\n\n/** Class containing Partner operations. */\nexport class PartnerImpl implements Partner {\n private readonly client: ACEProvisioningManagementPartnerAPI;\n\n /**\n * Initialize a new instance of the class Partner class.\n * @param client Reference to the service client\n */\n constructor(client: ACEProvisioningManagementPartnerAPI) {\n this.client = client;\n }\n\n /**\n * Get the management partner using the partnerId, objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n get(\n partnerId: string,\n options?: PartnerGetOptionalParams\n ): Promise<PartnerGetResponse> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a management partner for the objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n create(\n partnerId: string,\n options?: PartnerCreateOptionalParams\n ): Promise<PartnerCreateResponse> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n createOperationSpec\n );\n }\n\n /**\n * Update the management partner for the objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n update(\n partnerId: string,\n options?: PartnerUpdateOptionalParams\n ): Promise<PartnerUpdateResponse> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete the management partner for the objectId and tenantId.\n * @param partnerId Id of the Partner\n * @param options The options parameters.\n */\n delete(\n partnerId: string,\n options?: PartnerDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { partnerId, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners/{partnerId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.partnerId],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ACEProvisioningManagementPartnerAPI } from \"../aCEProvisioningManagementPartnerAPI\";\nimport {\n OperationResponse,\n OperationListNextOptionalParams,\n OperationListOptionalParams,\n OperationListResponse,\n OperationListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operation operations. */\nexport class OperationImpl implements Operation {\n private readonly client: ACEProvisioningManagementPartnerAPI;\n\n /**\n * Initialize a new instance of the class Operation class.\n * @param client Reference to the service client\n */\n constructor(client: ACEProvisioningManagementPartnerAPI) {\n this.client = client;\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationListOptionalParams\n ): PagedAsyncIterableIterator<OperationResponse> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationListOptionalParams\n ): AsyncIterableIterator<OperationResponse[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationListOptionalParams\n ): AsyncIterableIterator<OperationResponse> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationListOptionalParams\n ): Promise<OperationListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationListNextOptionalParams\n ): Promise<OperationListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Partners } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ACEProvisioningManagementPartnerAPI } from \"../aCEProvisioningManagementPartnerAPI\";\nimport { PartnersGetOptionalParams, PartnersGetResponse } from \"../models\";\n\n/** Class containing Partners operations. */\nexport class PartnersImpl implements Partners {\n private readonly client: ACEProvisioningManagementPartnerAPI;\n\n /**\n * Initialize a new instance of the class Partners class.\n * @param client Reference to the service client\n */\n constructor(client: ACEProvisioningManagementPartnerAPI) {\n this.client = client;\n }\n\n /**\n * Get the management partner using the objectId and tenantId.\n * @param options The options parameters.\n */\n get(options?: PartnersGetOptionalParams): Promise<PartnersGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagementPartner/partners\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { PartnerImpl, OperationImpl, PartnersImpl } from \"./operations\";\nimport { Partner, Operation, Partners } from \"./operationsInterfaces\";\nimport { ACEProvisioningManagementPartnerAPIOptionalParams } from \"./models\";\n\nexport class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: ACEProvisioningManagementPartnerAPIOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ACEProvisioningManagementPartnerAPIOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-managementpartner/3.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-02-01\";\n this.partner = new PartnerImpl(this);\n this.operation = new OperationImpl(this);\n this.partners = new PartnersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n partner: Partner;\n operation: Operation;\n partners: Partners;\n}\n"],"names":["KnownManagementPartnerState","KnownErrorResponseCode","getOperationSpec","serializer","coreClient","Mappers.PartnerResponse","Mappers.ErrorModel","Parameters.apiVersion","Parameters.$host","Parameters.partnerId","Parameters.accept","__await","__asyncValues","__asyncDelegator","Mappers.OperationList","Parameters.nextLink","coreRestPipeline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAqFH;AACYA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;;;;"}
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");!function(e){e.Active="Active",e.Deleted="Deleted"}(exports.KnownManagementPartnerState||(exports.KnownManagementPartnerState={}));const PartnerResponse={type:{name:"Composite",className:"PartnerResponse",modelProperties:{etag:{serializedName:"etag",type:{name:"Number"}},id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},partnerId:{serializedName:"properties.partnerId",type:{name:"String"}},partnerName:{serializedName:"properties.partnerName",type:{name:"String"}},tenantId:{serializedName:"properties.tenantId",type:{name:"String"}},objectId:{serializedName:"properties.objectId",type:{name:"String"}},version:{serializedName:"properties.version",type:{name:"Number"}},updatedTime:{serializedName:"properties.updatedTime",type:{name:"DateTime"}},createdTime:{serializedName:"properties.createdTime",type:{name:"DateTime"}},state:{serializedName:"properties.state",type:{name:"String"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ExtendedErrorInfo"}},code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},ExtendedErrorInfo={type:{name:"Composite",className:"ExtendedErrorInfo",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},OperationList={type:{name:"Composite",className:"OperationList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationResponse"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},OperationResponse={type:{name:"Composite",className:"OperationResponse",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",type:{name:"String"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,PartnerResponse:PartnerResponse,ErrorModel:ErrorModel,ExtendedErrorInfo:ExtendedErrorInfo,OperationList:OperationList,OperationResponse:OperationResponse,OperationDisplay:OperationDisplay});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},partnerId={parameterPath:"partnerId",mapper:{serializedName:"partnerId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2018-02-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class PartnerImpl{constructor(e){this.client=e}get(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},getOperationSpec)}create(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},createOperationSpec)}update(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},updateOperationSpec)}delete(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},deleteOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),getOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"GET",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer},createOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"PUT",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer},updateOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"PATCH",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer},deleteOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"DELETE",responses:{200:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer};class OperationImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listPagingPage(n));!(t=yield tslib.__await(a.next())).done;){var i=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ManagementPartner/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class PartnersImpl{constructor(e){this.client=e}get(e){return this.client.sendOperationRequest({options:e},getOperationSpec$1)}}const serializer$2=coreClient.createSerializer(Mappers,!1),getOperationSpec$1={path:"/providers/Microsoft.ManagementPartner/partners",httpMethod:"GET",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$2};class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient{constructor(e,r){if(void 0===e)throw new Error("'credentials' cannot be null");var t={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-managementpartner/2.0.0",e=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+e:e;r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},t),r),{userAgentOptions:{userAgentPrefix:e},baseUri:r.endpoint||"https://management.azure.com"})),this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2018-02-01",this.partner=new PartnerImpl(this),this.operation=new OperationImpl(this),this.partners=new PartnersImpl(this)}}exports.ACEProvisioningManagementPartnerAPI=ACEProvisioningManagementPartnerAPI;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline");function _interopNamespace(t){if(t&&t.__esModule)return t;var a=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),a.default=t,Object.freeze(a)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);exports.KnownManagementPartnerState=void 0,function(e){e.Active="Active",e.Deleted="Deleted"}(exports.KnownManagementPartnerState||(exports.KnownManagementPartnerState={})),exports.KnownErrorResponseCode=void 0,function(e){e.NotFound="NotFound",e.Conflict="Conflict",e.BadRequest="BadRequest"}(exports.KnownErrorResponseCode||(exports.KnownErrorResponseCode={}));const PartnerResponse={type:{name:"Composite",className:"PartnerResponse",modelProperties:{etag:{serializedName:"etag",type:{name:"Number"}},id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},partnerId:{serializedName:"properties.partnerId",type:{name:"String"}},partnerName:{serializedName:"properties.partnerName",type:{name:"String"}},tenantId:{serializedName:"properties.tenantId",type:{name:"String"}},objectId:{serializedName:"properties.objectId",type:{name:"String"}},version:{serializedName:"properties.version",type:{name:"Number"}},updatedTime:{serializedName:"properties.updatedTime",type:{name:"DateTime"}},createdTime:{serializedName:"properties.createdTime",type:{name:"DateTime"}},state:{serializedName:"properties.state",type:{name:"String"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ExtendedErrorInfo"}}}}},ExtendedErrorInfo={type:{name:"Composite",className:"ExtendedErrorInfo",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},OperationList={type:{name:"Composite",className:"OperationList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationResponse"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},OperationResponse={type:{name:"Composite",className:"OperationResponse",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",type:{name:"String"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,PartnerResponse:PartnerResponse,ErrorModel:ErrorModel,ExtendedErrorInfo:ExtendedErrorInfo,OperationList:OperationList,OperationResponse:OperationResponse,OperationDisplay:OperationDisplay});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},partnerId={parameterPath:"partnerId",mapper:{serializedName:"partnerId",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2018-02-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class PartnerImpl{constructor(e){this.client=e}get(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},getOperationSpec$1)}create(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},createOperationSpec)}update(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},updateOperationSpec)}delete(e,r){return this.client.sendOperationRequest({partnerId:e,options:r},deleteOperationSpec)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$1={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"GET",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer$2},createOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"PUT",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer$2},updateOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"PATCH",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer$2},deleteOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners/{partnerId}",httpMethod:"DELETE",responses:{200:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,partnerId],headerParameters:[accept],serializer:serializer$2};class OperationImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,a=tslib.__asyncValues(this.listPagingPage(n));!(t=yield tslib.__await(a.next())).done;){var i=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ManagementPartner/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class PartnersImpl{constructor(e){this.client=e}get(e){return this.client.sendOperationRequest({options:e},getOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/providers/Microsoft.ManagementPartner/partners",httpMethod:"GET",responses:{200:{bodyMapper:PartnerResponse},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer};class ACEProvisioningManagementPartnerAPI extends coreClient__namespace.ServiceClient{constructor(e,r){if(void 0===e)throw new Error("'credentials' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},t="azsdk-js-arm-managementpartner/3.0.0",t=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+t:t,e=(r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),r),{userAgentOptions:{userAgentPrefix:t},baseUri:null!=(t=null!=(e=r.endpoint)?e:r.baseUri)?t:"https://management.azure.com"}));if(super(e),null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length){const a=r.pipeline.getOrderedPolicies();a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({scopes:e.baseUri+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}})))}this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2018-02-01",this.partner=new PartnerImpl(this),this.operation=new OperationImpl(this),this.partners=new PartnersImpl(this),this.addCustomApiVersionPolicy(r.apiVersion)}addCustomApiVersionPolicy(i){i&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=t.url.split("?");if(1<e.length){const r=e[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+i:e);t.url=e[0]+"?"+r.join("&")}return a(t)})}})}}exports.ACEProvisioningManagementPartnerAPI=ACEProvisioningManagementPartnerAPI;