@azure/arm-datacatalog 3.0.0 → 4.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 (50) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +71 -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/adcCatalogsCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/adcCatalogsCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/adcCatalogsCreateOrUpdateSample.js +50 -0
  10. package/dist-esm/samples-dev/adcCatalogsCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/adcCatalogsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/adcCatalogsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/adcCatalogsDeleteSample.js +31 -0
  14. package/dist-esm/samples-dev/adcCatalogsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/adcCatalogsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/adcCatalogsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/adcCatalogsGetSample.js +31 -0
  18. package/dist-esm/samples-dev/adcCatalogsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/adcCatalogsListtByResourceGroupSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/adcCatalogsListtByResourceGroupSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/adcCatalogsListtByResourceGroupSample.js +30 -0
  22. package/dist-esm/samples-dev/adcCatalogsListtByResourceGroupSample.js.map +1 -0
  23. package/dist-esm/samples-dev/adcCatalogsUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/adcCatalogsUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/adcCatalogsUpdateSample.js +50 -0
  26. package/dist-esm/samples-dev/adcCatalogsUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/adcOperationsListSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/adcOperationsListSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/adcOperationsListSample.js +29 -0
  30. package/dist-esm/samples-dev/adcOperationsListSample.js.map +1 -0
  31. package/dist-esm/src/dataCatalogRestClient.d.ts +1 -3
  32. package/dist-esm/src/dataCatalogRestClient.d.ts.map +1 -1
  33. package/dist-esm/src/dataCatalogRestClient.js +21 -8
  34. package/dist-esm/src/dataCatalogRestClient.js.map +1 -1
  35. package/dist-esm/src/operations/aDCCatalogs.d.ts +10 -5
  36. package/dist-esm/src/operations/aDCCatalogs.d.ts.map +1 -1
  37. package/dist-esm/src/operations/aDCCatalogs.js +18 -11
  38. package/dist-esm/src/operations/aDCCatalogs.js.map +1 -1
  39. package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts +10 -5
  40. package/dist-esm/src/operationsInterfaces/aDCCatalogs.d.ts.map +1 -1
  41. package/package.json +36 -15
  42. package/review/arm-datacatalog.api.md +6 -8
  43. package/rollup.config.js +6 -72
  44. package/src/dataCatalogRestClient.ts +27 -9
  45. package/src/operations/aDCCatalogs.ts +22 -6
  46. package/src/operationsInterfaces/aDCCatalogs.ts +10 -0
  47. package/tsconfig.json +19 -5
  48. package/types/arm-datacatalog.d.ts +11 -8
  49. package/types/tsdoc-metadata.json +1 -1
  50. package/LICENSE.txt +0 -21
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release History
2
2
 
3
+ ## 4.0.0 (2022-04-19)
4
+
5
+ **Breaking Changes**
6
+
7
+ - Operation ADCCatalogs.beginDelete has a new signature
8
+ - Operation ADCCatalogs.beginDeleteAndWait has a new signature
9
+ - Operation ADCCatalogs.createOrUpdate has a new signature
10
+ - Operation ADCCatalogs.get has a new signature
11
+ - Operation ADCCatalogs.update has a new signature
12
+ - Class DataCatalogRestClient has a new signature
13
+ - Class DataCatalogRestClient no longer has parameter catalogName
14
+
15
+
3
16
  ## 3.0.0 (2022-01-21)
4
17
 
5
18
  The package of @azure/arm-datacatalog is using our next generation design principles since version 3.0.0, which contains breaking changes.
package/README.md CHANGED
@@ -16,6 +16,8 @@ The Azure Data Catalog management API provides a RESTful set of web services tha
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].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { DataCatalogRestClient } = require("@azure/arm-datacatalog");
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 DataCatalogRestClient(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 DataCatalogRestClient(credential, subscriptionId);
54
65
  ```
55
66
 
56
67
 
package/dist/index.js CHANGED
@@ -3,9 +3,31 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
+
9
31
  /*
10
32
  * Copyright (c) Microsoft Corporation.
11
33
  * Licensed under the MIT License.
@@ -13,6 +35,8 @@ var coreLro = require('@azure/core-lro');
13
35
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
36
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
37
  */
38
+ /** Known values of {@link SkuType} that the service accepts. */
39
+ exports.KnownSkuType = void 0;
16
40
  (function (KnownSkuType) {
17
41
  KnownSkuType["Free"] = "Free";
18
42
  KnownSkuType["Standard"] = "Standard";
@@ -363,7 +387,7 @@ class ADCOperationsImpl {
363
387
  }
364
388
  }
365
389
  // Operation Specifications
366
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
390
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
367
391
  const listOperationSpec = {
368
392
  path: "/providers/Microsoft.DataCatalog/operations",
369
393
  httpMethod: "GET",
@@ -375,7 +399,7 @@ const listOperationSpec = {
375
399
  queryParameters: [apiVersion],
376
400
  urlParameters: [$host],
377
401
  headerParameters: [accept],
378
- serializer
402
+ serializer: serializer$1
379
403
  };
380
404
 
381
405
  /*
@@ -438,28 +462,31 @@ class ADCCatalogsImpl {
438
462
  * updated and any immutable properties will remain unchanged.
439
463
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
440
464
  * case insensitive.
465
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
441
466
  * @param properties Properties supplied to the Create or Update a data catalog.
442
467
  * @param options The options parameters.
443
468
  */
444
- createOrUpdate(resourceGroupName, properties, options) {
445
- return this.client.sendOperationRequest({ resourceGroupName, properties, options }, createOrUpdateOperationSpec);
469
+ createOrUpdate(resourceGroupName, catalogName, properties, options) {
470
+ return this.client.sendOperationRequest({ resourceGroupName, catalogName, properties, options }, createOrUpdateOperationSpec);
446
471
  }
447
472
  /**
448
473
  * The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.
449
474
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
450
475
  * case insensitive.
476
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
451
477
  * @param options The options parameters.
452
478
  */
453
- get(resourceGroupName, options) {
454
- return this.client.sendOperationRequest({ resourceGroupName, options }, getOperationSpec);
479
+ get(resourceGroupName, catalogName, options) {
480
+ return this.client.sendOperationRequest({ resourceGroupName, catalogName, options }, getOperationSpec);
455
481
  }
456
482
  /**
457
483
  * The Delete Azure Data Catalog Service operation deletes an existing data catalog.
458
484
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
459
485
  * case insensitive.
486
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
460
487
  * @param options The options parameters.
461
488
  */
462
- beginDelete(resourceGroupName, options) {
489
+ beginDelete(resourceGroupName, catalogName, options) {
463
490
  return tslib.__awaiter(this, void 0, void 0, function* () {
464
491
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
465
492
  return this.client.sendOperationRequest(args, spec);
@@ -483,22 +510,25 @@ class ADCCatalogsImpl {
483
510
  }
484
511
  };
485
512
  });
486
- const lro = new LroImpl(sendOperation, { resourceGroupName, options }, deleteOperationSpec);
487
- return new coreLro.LroEngine(lro, {
513
+ const lro = new LroImpl(sendOperation, { resourceGroupName, catalogName, options }, deleteOperationSpec);
514
+ const poller = new coreLro.LroEngine(lro, {
488
515
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
489
516
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
490
517
  });
518
+ yield poller.poll();
519
+ return poller;
491
520
  });
492
521
  }
493
522
  /**
494
523
  * The Delete Azure Data Catalog Service operation deletes an existing data catalog.
495
524
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
496
525
  * case insensitive.
526
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
497
527
  * @param options The options parameters.
498
528
  */
499
- beginDeleteAndWait(resourceGroupName, options) {
529
+ beginDeleteAndWait(resourceGroupName, catalogName, options) {
500
530
  return tslib.__awaiter(this, void 0, void 0, function* () {
501
- const poller = yield this.beginDelete(resourceGroupName, options);
531
+ const poller = yield this.beginDelete(resourceGroupName, catalogName, options);
502
532
  return poller.pollUntilDone();
503
533
  });
504
534
  }
@@ -507,15 +537,16 @@ class ADCCatalogsImpl {
507
537
  * update call only supports the properties listed in the PATCH body.
508
538
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
509
539
  * case insensitive.
540
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
510
541
  * @param properties Properties supplied to the Update a data catalog.
511
542
  * @param options The options parameters.
512
543
  */
513
- update(resourceGroupName, properties, options) {
514
- return this.client.sendOperationRequest({ resourceGroupName, properties, options }, updateOperationSpec);
544
+ update(resourceGroupName, catalogName, properties, options) {
545
+ return this.client.sendOperationRequest({ resourceGroupName, catalogName, properties, options }, updateOperationSpec);
515
546
  }
516
547
  }
517
548
  // Operation Specifications
518
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
549
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
519
550
  const listtByResourceGroupOperationSpec = {
520
551
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",
521
552
  httpMethod: "GET",
@@ -531,7 +562,7 @@ const listtByResourceGroupOperationSpec = {
531
562
  resourceGroupName
532
563
  ],
533
564
  headerParameters: [accept],
534
- serializer: serializer$1
565
+ serializer
535
566
  };
536
567
  const createOrUpdateOperationSpec = {
537
568
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
@@ -554,7 +585,7 @@ const createOrUpdateOperationSpec = {
554
585
  ],
555
586
  headerParameters: [accept, contentType],
556
587
  mediaType: "json",
557
- serializer: serializer$1
588
+ serializer
558
589
  };
559
590
  const getOperationSpec = {
560
591
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
@@ -572,7 +603,7 @@ const getOperationSpec = {
572
603
  catalogName
573
604
  ],
574
605
  headerParameters: [accept],
575
- serializer: serializer$1
606
+ serializer
576
607
  };
577
608
  const deleteOperationSpec = {
578
609
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
@@ -585,7 +616,7 @@ const deleteOperationSpec = {
585
616
  resourceGroupName,
586
617
  catalogName
587
618
  ],
588
- serializer: serializer$1
619
+ serializer
589
620
  };
590
621
  const updateOperationSpec = {
591
622
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
@@ -605,7 +636,7 @@ const updateOperationSpec = {
605
636
  ],
606
637
  headerParameters: [accept, contentType],
607
638
  mediaType: "json",
608
- serializer: serializer$1
639
+ serializer
609
640
  };
610
641
 
611
642
  /*
@@ -615,25 +646,22 @@ const updateOperationSpec = {
615
646
  * Code generated by Microsoft (R) AutoRest Code Generator.
616
647
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
617
648
  */
618
- class DataCatalogRestClient extends coreClient.ServiceClient {
649
+ class DataCatalogRestClient extends coreClient__namespace.ServiceClient {
619
650
  /**
620
651
  * Initializes a new instance of the DataCatalogRestClient class.
621
652
  * @param credentials Subscription credentials which uniquely identify client subscription.
622
653
  * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
623
654
  * subscription. The subscription ID forms part of the URI for every service call.
624
- * @param catalogName The name of the data catalog in the specified subscription and resource group.
625
655
  * @param options The parameter options
626
656
  */
627
- constructor(credentials, subscriptionId, catalogName, options) {
657
+ constructor(credentials, subscriptionId, options) {
658
+ var _a, _b;
628
659
  if (credentials === undefined) {
629
660
  throw new Error("'credentials' cannot be null");
630
661
  }
631
662
  if (subscriptionId === undefined) {
632
663
  throw new Error("'subscriptionId' cannot be null");
633
664
  }
634
- if (catalogName === undefined) {
635
- throw new Error("'catalogName' cannot be null");
636
- }
637
665
  // Initializing default values for options
638
666
  if (!options) {
639
667
  options = {};
@@ -642,7 +670,7 @@ class DataCatalogRestClient extends coreClient.ServiceClient {
642
670
  requestContentType: "application/json; charset=utf-8",
643
671
  credential: credentials
644
672
  };
645
- const packageDetails = `azsdk-js-arm-datacatalog/3.0.0`;
673
+ const packageDetails = `azsdk-js-arm-datacatalog/4.0.0`;
646
674
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
647
675
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
648
676
  : `${packageDetails}`;
@@ -651,11 +679,26 @@ class DataCatalogRestClient extends coreClient.ServiceClient {
651
679
  }
652
680
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
653
681
  userAgentPrefix
654
- }, baseUri: options.endpoint || "https://management.azure.com" });
682
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
655
683
  super(optionsWithDefaults);
684
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
685
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
686
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
687
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
688
+ if (!bearerTokenAuthenticationPolicyFound) {
689
+ this.pipeline.removePolicy({
690
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
691
+ });
692
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
693
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
694
+ challengeCallbacks: {
695
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
696
+ }
697
+ }));
698
+ }
699
+ }
656
700
  // Parameter assignments
657
701
  this.subscriptionId = subscriptionId;
658
- this.catalogName = catalogName;
659
702
  // Assigning values to Constant parameters
660
703
  this.$host = options.$host || "https://management.azure.com";
661
704
  this.apiVersion = options.apiVersion || "2016-03-30";
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/aDCOperations.ts","../src/lroImpl.ts","../src/operations/aDCCatalogs.ts","../src/dataCatalogRestClient.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/** The list of Azure data catalog service operation response. */\nexport interface OperationEntityListResult {\n /** The list of operations. */\n value?: OperationEntity[];\n}\n\n/** The operation supported by Azure Data Catalog Service. */\nexport interface OperationEntity {\n /** Operation name: {provider}/{resource}/{operation}. */\n name?: string;\n /** The operation supported by Azure Data Catalog Service. */\n display?: OperationDisplayInfo;\n}\n\n/** The operation supported by Azure Data Catalog Service. */\nexport interface OperationDisplayInfo {\n /** The description of the operation. */\n description?: string;\n /** The action that users can perform, based on their permission level. */\n operation?: string;\n /** Service provider: Azure Data Catalog Service. */\n provider?: string;\n /** Resource on which the operation is performed. */\n resource?: string;\n}\n\n/** The response from the List Azure Data Catalog operation. */\nexport interface ADCCatalogsListResult {\n /** the list of Azure Data Catalogs. */\n value?: ADCCatalog[];\n}\n\n/** User principals. */\nexport interface Principals {\n /** UPN of the user. */\n upn?: string;\n /** Object Id for the user */\n objectId?: string;\n}\n\n/** The Resource model definition. */\nexport interface Resource {\n /**\n * Resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Resource location */\n location?: string;\n /** Resource tags */\n tags?: { [propertyName: string]: string };\n /** Resource etag */\n etag?: string;\n}\n\n/** Azure Data Catalog. */\nexport type ADCCatalog = Resource & {\n /** Azure data catalog SKU. */\n sku?: SkuType;\n /** Azure data catalog units. */\n units?: number;\n /** Azure data catalog admin list. */\n admins?: Principals[];\n /** Azure data catalog user list. */\n users?: Principals[];\n /** Azure data catalog provision status. */\n successfullyProvisioned?: boolean;\n /** Automatic unit adjustment enabled or not. */\n enableAutomaticUnitAdjustment?: boolean;\n};\n\n/** Known values of {@link SkuType} that the service accepts. */\nexport enum KnownSkuType {\n Free = \"Free\",\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for SkuType. \\\n * {@link KnownSkuType} can be used interchangeably with SkuType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Free** \\\n * **Standard**\n */\nexport type SkuType = string;\n\n/** Optional parameters. */\nexport interface ADCOperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type ADCOperationsListResponse = OperationEntityListResult;\n\n/** Optional parameters. */\nexport interface ADCCatalogsListtByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listtByResourceGroup operation. */\nexport type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult;\n\n/** Optional parameters. */\nexport interface ADCCatalogsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ADCCatalogsCreateOrUpdateResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface ADCCatalogsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ADCCatalogsGetResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface ADCCatalogsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ADCCatalogsUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type ADCCatalogsUpdateResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface DataCatalogRestClientOptionalParams\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 OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\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: \"OperationDisplayInfo\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\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 }\n }\n};\n\nexport const ADCCatalogsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ADCCatalogsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ADCCatalog\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Principals: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Principals\",\n modelProperties: {\n upn: {\n serializedName: \"upn\",\n type: {\n name: \"String\"\n }\n },\n objectId: {\n serializedName: \"objectId\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\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 location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ADCCatalog: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ADCCatalog\",\n modelProperties: {\n ...Resource.type.modelProperties,\n sku: {\n serializedName: \"properties.sku\",\n type: {\n name: \"String\"\n }\n },\n units: {\n serializedName: \"properties.units\",\n type: {\n name: \"Number\"\n }\n },\n admins: {\n serializedName: \"properties.admins\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Principals\"\n }\n }\n }\n },\n users: {\n serializedName: \"properties.users\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Principals\"\n }\n }\n }\n },\n successfullyProvisioned: {\n serializedName: \"properties.successfullyProvisioned\",\n type: {\n name: \"Boolean\"\n }\n },\n enableAutomaticUnitAdjustment: {\n serializedName: \"properties.enableAutomaticUnitAdjustment\",\n type: {\n name: \"Boolean\"\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\";\nimport { ADCCatalog as ADCCatalogMapper } from \"../models/mappers\";\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 apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2016-03-30\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const properties: OperationParameter = {\n parameterPath: \"properties\",\n mapper: ADCCatalogMapper\n};\n\nexport const catalogName: OperationURLParameter = {\n parameterPath: \"catalogName\",\n mapper: {\n serializedName: \"catalogName\",\n required: true,\n type: {\n name: \"String\"\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 { ADCOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { DataCatalogRestClient } from \"../dataCatalogRestClient\";\nimport {\n ADCOperationsListOptionalParams,\n ADCOperationsListResponse\n} from \"../models\";\n\n/** Class containing ADCOperations operations. */\nexport class ADCOperationsImpl implements ADCOperations {\n private readonly client: DataCatalogRestClient;\n\n /**\n * Initialize a new instance of the class ADCOperations class.\n * @param client Reference to the service client\n */\n constructor(client: DataCatalogRestClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available Azure Data Catalog service operations.\n * @param options The options parameters.\n */\n list(\n options?: ADCOperationsListOptionalParams\n ): Promise<ADCOperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DataCatalog/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult\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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\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 { ADCCatalogs } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { DataCatalogRestClient } from \"../dataCatalogRestClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n ADCCatalogsListtByResourceGroupOptionalParams,\n ADCCatalogsListtByResourceGroupResponse,\n ADCCatalog,\n ADCCatalogsCreateOrUpdateOptionalParams,\n ADCCatalogsCreateOrUpdateResponse,\n ADCCatalogsGetOptionalParams,\n ADCCatalogsGetResponse,\n ADCCatalogsDeleteOptionalParams,\n ADCCatalogsUpdateOptionalParams,\n ADCCatalogsUpdateResponse\n} from \"../models\";\n\n/** Class containing ADCCatalogs operations. */\nexport class ADCCatalogsImpl implements ADCCatalogs {\n private readonly client: DataCatalogRestClient;\n\n /**\n * Initialize a new instance of the class ADCCatalogs class.\n * @param client Reference to the service client\n */\n constructor(client: DataCatalogRestClient) {\n this.client = client;\n }\n\n /**\n * The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the\n * given resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listtByResourceGroup(\n resourceGroupName: string,\n options?: ADCCatalogsListtByResourceGroupOptionalParams\n ): Promise<ADCCatalogsListtByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listtByResourceGroupOperationSpec\n );\n }\n\n /**\n * The Create Azure Data Catalog service operation creates a new data catalog service with the\n * specified parameters. If the specific service already exists, then any patchable properties will be\n * updated and any immutable properties will remain unchanged.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param properties Properties supplied to the Create or Update a data catalog.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n properties: ADCCatalog,\n options?: ADCCatalogsCreateOrUpdateOptionalParams\n ): Promise<ADCCatalogsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, properties, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n options?: ADCCatalogsGetOptionalParams\n ): Promise<ADCCatalogsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * The Delete Azure Data Catalog Service operation deletes an existing data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n options?: ADCCatalogsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * The Delete Azure Data Catalog Service operation deletes an existing data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n options?: ADCCatalogsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * The Update Azure Data Catalog Service operation can be used to update the existing deployment. The\n * update call only supports the properties listed in the PATCH body.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param properties Properties supplied to the Update a data catalog.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n properties: ADCCatalog,\n options?: ADCCatalogsUpdateOptionalParams\n ): Promise<ADCCatalogsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, properties, options },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listtByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalogsListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n },\n 201: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\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 { ADCOperationsImpl, ADCCatalogsImpl } from \"./operations\";\nimport { ADCOperations, ADCCatalogs } from \"./operationsInterfaces\";\nimport { DataCatalogRestClientOptionalParams } from \"./models\";\n\nexport class DataCatalogRestClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n catalogName: string;\n\n /**\n * Initializes a new instance of the DataCatalogRestClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n catalogName: string,\n options?: DataCatalogRestClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n if (catalogName === undefined) {\n throw new Error(\"'catalogName' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataCatalogRestClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-datacatalog/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: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n this.catalogName = catalogName;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-03-30\";\n this.aDCOperations = new ADCOperationsImpl(this);\n this.aDCCatalogs = new ADCCatalogsImpl(this);\n }\n\n aDCOperations: ADCOperations;\n aDCCatalogs: ADCCatalogs;\n}\n"],"names":["KnownSkuType","ADCCatalogMapper","coreClient.createSerializer","Mappers.OperationEntityListResult","Parameters.apiVersion","Parameters.$host","Parameters.accept","LroEngine","serializer","Mappers.ADCCatalogsListResult","Parameters.subscriptionId","Parameters.resourceGroupName","Mappers.ADCCatalog","Parameters.properties","Parameters.catalogName","Parameters.contentType","coreClient.ServiceClient"],"mappings":";;;;;;;;AAAA;;;;;;;AA4FA,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,qCAAqB,CAAA;AACvB,CAAC,EAHWA,oBAAY,KAAZA,oBAAY;;AC5FxB;;;;;;;AAUA,AAAO,MAAM,yBAAyB,GAA+B;IACnE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,2BAA2B;QACtC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,iB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AE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAwC;YACpD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,gCAAgC,CAAC;QACxD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;cAChE,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;cAC/D,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;;QAE3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;QAG/B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;KAC9C;CAIF;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/aDCOperations.ts","../src/lroImpl.ts","../src/operations/aDCCatalogs.ts","../src/dataCatalogRestClient.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/** The list of Azure data catalog service operation response. */\nexport interface OperationEntityListResult {\n /** The list of operations. */\n value?: OperationEntity[];\n}\n\n/** The operation supported by Azure Data Catalog Service. */\nexport interface OperationEntity {\n /** Operation name: {provider}/{resource}/{operation}. */\n name?: string;\n /** The operation supported by Azure Data Catalog Service. */\n display?: OperationDisplayInfo;\n}\n\n/** The operation supported by Azure Data Catalog Service. */\nexport interface OperationDisplayInfo {\n /** The description of the operation. */\n description?: string;\n /** The action that users can perform, based on their permission level. */\n operation?: string;\n /** Service provider: Azure Data Catalog Service. */\n provider?: string;\n /** Resource on which the operation is performed. */\n resource?: string;\n}\n\n/** The response from the List Azure Data Catalog operation. */\nexport interface ADCCatalogsListResult {\n /** the list of Azure Data Catalogs. */\n value?: ADCCatalog[];\n}\n\n/** User principals. */\nexport interface Principals {\n /** UPN of the user. */\n upn?: string;\n /** Object Id for the user */\n objectId?: string;\n}\n\n/** The Resource model definition. */\nexport interface Resource {\n /**\n * Resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Resource location */\n location?: string;\n /** Resource tags */\n tags?: { [propertyName: string]: string };\n /** Resource etag */\n etag?: string;\n}\n\n/** Azure Data Catalog. */\nexport type ADCCatalog = Resource & {\n /** Azure data catalog SKU. */\n sku?: SkuType;\n /** Azure data catalog units. */\n units?: number;\n /** Azure data catalog admin list. */\n admins?: Principals[];\n /** Azure data catalog user list. */\n users?: Principals[];\n /** Azure data catalog provision status. */\n successfullyProvisioned?: boolean;\n /** Automatic unit adjustment enabled or not. */\n enableAutomaticUnitAdjustment?: boolean;\n};\n\n/** Known values of {@link SkuType} that the service accepts. */\nexport enum KnownSkuType {\n Free = \"Free\",\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for SkuType. \\\n * {@link KnownSkuType} can be used interchangeably with SkuType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Free** \\\n * **Standard**\n */\nexport type SkuType = string;\n\n/** Optional parameters. */\nexport interface ADCOperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type ADCOperationsListResponse = OperationEntityListResult;\n\n/** Optional parameters. */\nexport interface ADCCatalogsListtByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listtByResourceGroup operation. */\nexport type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult;\n\n/** Optional parameters. */\nexport interface ADCCatalogsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type ADCCatalogsCreateOrUpdateResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface ADCCatalogsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ADCCatalogsGetResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface ADCCatalogsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ADCCatalogsUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type ADCCatalogsUpdateResponse = ADCCatalog;\n\n/** Optional parameters. */\nexport interface DataCatalogRestClientOptionalParams\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 OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\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: \"OperationDisplayInfo\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\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 }\n }\n};\n\nexport const ADCCatalogsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ADCCatalogsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ADCCatalog\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Principals: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Principals\",\n modelProperties: {\n upn: {\n serializedName: \"upn\",\n type: {\n name: \"String\"\n }\n },\n objectId: {\n serializedName: \"objectId\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\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 location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ADCCatalog: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ADCCatalog\",\n modelProperties: {\n ...Resource.type.modelProperties,\n sku: {\n serializedName: \"properties.sku\",\n type: {\n name: \"String\"\n }\n },\n units: {\n serializedName: \"properties.units\",\n type: {\n name: \"Number\"\n }\n },\n admins: {\n serializedName: \"properties.admins\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Principals\"\n }\n }\n }\n },\n users: {\n serializedName: \"properties.users\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Principals\"\n }\n }\n }\n },\n successfullyProvisioned: {\n serializedName: \"properties.successfullyProvisioned\",\n type: {\n name: \"Boolean\"\n }\n },\n enableAutomaticUnitAdjustment: {\n serializedName: \"properties.enableAutomaticUnitAdjustment\",\n type: {\n name: \"Boolean\"\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\";\nimport { ADCCatalog as ADCCatalogMapper } from \"../models/mappers\";\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 apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2016-03-30\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const properties: OperationParameter = {\n parameterPath: \"properties\",\n mapper: ADCCatalogMapper\n};\n\nexport const catalogName: OperationURLParameter = {\n parameterPath: \"catalogName\",\n mapper: {\n serializedName: \"catalogName\",\n required: true,\n type: {\n name: \"String\"\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 { ADCOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { DataCatalogRestClient } from \"../dataCatalogRestClient\";\nimport {\n ADCOperationsListOptionalParams,\n ADCOperationsListResponse\n} from \"../models\";\n\n/** Class containing ADCOperations operations. */\nexport class ADCOperationsImpl implements ADCOperations {\n private readonly client: DataCatalogRestClient;\n\n /**\n * Initialize a new instance of the class ADCOperations class.\n * @param client Reference to the service client\n */\n constructor(client: DataCatalogRestClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available Azure Data Catalog service operations.\n * @param options The options parameters.\n */\n list(\n options?: ADCOperationsListOptionalParams\n ): Promise<ADCOperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DataCatalog/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult\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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\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 { ADCCatalogs } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { DataCatalogRestClient } from \"../dataCatalogRestClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n ADCCatalogsListtByResourceGroupOptionalParams,\n ADCCatalogsListtByResourceGroupResponse,\n ADCCatalog,\n ADCCatalogsCreateOrUpdateOptionalParams,\n ADCCatalogsCreateOrUpdateResponse,\n ADCCatalogsGetOptionalParams,\n ADCCatalogsGetResponse,\n ADCCatalogsDeleteOptionalParams,\n ADCCatalogsUpdateOptionalParams,\n ADCCatalogsUpdateResponse\n} from \"../models\";\n\n/** Class containing ADCCatalogs operations. */\nexport class ADCCatalogsImpl implements ADCCatalogs {\n private readonly client: DataCatalogRestClient;\n\n /**\n * Initialize a new instance of the class ADCCatalogs class.\n * @param client Reference to the service client\n */\n constructor(client: DataCatalogRestClient) {\n this.client = client;\n }\n\n /**\n * The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the\n * given resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listtByResourceGroup(\n resourceGroupName: string,\n options?: ADCCatalogsListtByResourceGroupOptionalParams\n ): Promise<ADCCatalogsListtByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listtByResourceGroupOperationSpec\n );\n }\n\n /**\n * The Create Azure Data Catalog service operation creates a new data catalog service with the\n * specified parameters. If the specific service already exists, then any patchable properties will be\n * updated and any immutable properties will remain unchanged.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param properties Properties supplied to the Create or Update a data catalog.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n catalogName: string,\n properties: ADCCatalog,\n options?: ADCCatalogsCreateOrUpdateOptionalParams\n ): Promise<ADCCatalogsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, properties, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n catalogName: string,\n options?: ADCCatalogsGetOptionalParams\n ): Promise<ADCCatalogsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, options },\n getOperationSpec\n );\n }\n\n /**\n * The Delete Azure Data Catalog Service operation deletes an existing data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n catalogName: string,\n options?: ADCCatalogsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, catalogName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The Delete Azure Data Catalog Service operation deletes an existing data catalog.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n catalogName: string,\n options?: ADCCatalogsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n catalogName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The Update Azure Data Catalog Service operation can be used to update the existing deployment. The\n * update call only supports the properties listed in the PATCH body.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param catalogName The name of the data catalog in the specified subscription and resource group.\n * @param properties Properties supplied to the Update a data catalog.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n catalogName: string,\n properties: ADCCatalog,\n options?: ADCCatalogsUpdateOptionalParams\n ): Promise<ADCCatalogsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, properties, options },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listtByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalogsListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n },\n 201: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ADCCatalog\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\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 * as coreAuth from \"@azure/core-auth\";\nimport { ADCOperationsImpl, ADCCatalogsImpl } from \"./operations\";\nimport { ADCOperations, ADCCatalogs } from \"./operationsInterfaces\";\nimport { DataCatalogRestClientOptionalParams } from \"./models\";\n\nexport class DataCatalogRestClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataCatalogRestClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataCatalogRestClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataCatalogRestClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-datacatalog/4.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 // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-03-30\";\n this.aDCOperations = new ADCOperationsImpl(this);\n this.aDCCatalogs = new ADCCatalogsImpl(this);\n }\n\n aDCOperations: ADCOperations;\n aDCCatalogs: ADCCatalogs;\n}\n"],"names":["KnownSkuType","ADCCatalogMapper","serializer","coreClient","Mappers.OperationEntityListResult","Parameters.apiVersion","Parameters.$host","Parameters.accept","__rest","__awaiter","LroEngine","Mappers.ADCCatalogsListResult","Parameters.subscriptionId","Parameters.resourceGroupName","Mappers.ADCCatalog","Parameters.properties","Parameters.catalogName","Parameters.contentType","coreRestPipeline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAqFH;AACYA,8BAGX;AAHD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,YAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACvB,CAAC,EAHWA,oBAAY,KAAZA,oBAAY,GAGvB,EAAA,CAAA,CAAA;;AC/FD;;;;;;AAMG;AAII,MAAM,yBAAyB,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AgB,CAAC,IAAI,CAChE,CAAC,cAAc,KACb,cAAc,CAAC,IAAI;gBACnBe,2BAAgB,CAAC,mCAAmC,CACvD,CAAC;YACF,IAAI,CAAC,oCAAoC,EAAE;AACzC,gBAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;oBACzB,IAAI,EAAEA,2BAAgB,CAAC,mCAAmC;AAC3D,iBAAA,CAAC,CAAC;gBACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrBA,2BAAgB,CAAC,+BAA+B,CAAC;AAC/C,oBAAA,MAAM,EAAE,CAAA,EAAG,mBAAmB,CAAC,OAAO,CAAW,SAAA,CAAA;AACjD,oBAAA,kBAAkB,EAAE;wBAClB,2BAA2B,EACzBf,qBAAU,CAAC,gCAAgC;AAC9C,qBAAA;AACF,iBAAA,CAAC,CACH,CAAC;AACH,aAAA;AACF,SAAA;;AAED,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;QAGrC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;KAC9C;AAIF;;;;"}
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"),coreLro=require("@azure/core-lro");!function(e){e.Free="Free",e.Standard="Standard"}(exports.KnownSkuType||(exports.KnownSkuType={}));const OperationEntityListResult={type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},OperationEntity={type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}}}}},OperationDisplayInfo={type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},ADCCatalogsListResult={type:{name:"Composite",className:"ADCCatalogsListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ADCCatalog"}}}}}}},Principals={type:{name:"Composite",className:"Principals",modelProperties:{upn:{serializedName:"upn",type:{name:"String"}},objectId:{serializedName:"objectId",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}}}}},ADCCatalog={type:{name:"Composite",className:"ADCCatalog",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{sku:{serializedName:"properties.sku",type:{name:"String"}},units:{serializedName:"properties.units",type:{name:"Number"}},admins:{serializedName:"properties.admins",type:{name:"Sequence",element:{type:{name:"Composite",className:"Principals"}}}},users:{serializedName:"properties.users",type:{name:"Sequence",element:{type:{name:"Composite",className:"Principals"}}}},successfullyProvisioned:{serializedName:"properties.successfullyProvisioned",type:{name:"Boolean"}},enableAutomaticUnitAdjustment:{serializedName:"properties.enableAutomaticUnitAdjustment",type:{name:"Boolean"}}})}};var Mappers=Object.freeze({__proto__:null,OperationEntityListResult:OperationEntityListResult,OperationEntity:OperationEntity,OperationDisplayInfo:OperationDisplayInfo,ADCCatalogsListResult:ADCCatalogsListResult,Principals:Principals,Resource:Resource,ADCCatalog:ADCCatalog});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},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2016-03-30",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},properties={parameterPath:"properties",mapper:ADCCatalog},catalogName={parameterPath:"catalogName",mapper:{serializedName:"catalogName",required:!0,type:{name:"String"}}};class ADCOperationsImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.DataCatalog/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer};class LroImpl{constructor(e,t,a,r=a.path,s=a.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=a,this.requestPath=r,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class ADCCatalogsImpl{constructor(e){this.client=e}listtByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listtByResourceGroupOperationSpec)}createOrUpdate(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,properties:t,options:a},createOrUpdateOperationSpec)}get(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},getOperationSpec)}beginDelete(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const i=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null===(e=t.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield i(e,s),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:t,options:a},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginDeleteAndWait(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(t,a);return e.pollUntilDone()})}update(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,properties:t,options:a},updateOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listtByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",httpMethod:"GET",responses:{200:{bodyMapper:ADCCatalogsListResult}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"PUT",responses:{200:{bodyMapper:ADCCatalog},201:{bodyMapper:ADCCatalog}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"GET",responses:{200:{bodyMapper:ADCCatalog}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept],serializer:serializer$1},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],serializer:serializer$1},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ADCCatalog}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1};class DataCatalogRestClient extends coreClient.ServiceClient{constructor(e,t,a,r){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");if(void 0===a)throw new Error("'catalogName' cannot be null");var s={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-datacatalog/3.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({},s),r),{userAgentOptions:{userAgentPrefix:e},baseUri:r.endpoint||"https://management.azure.com"})),this.subscriptionId=t,this.catalogName=a,this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2016-03-30",this.aDCOperations=new ADCOperationsImpl(this),this.aDCCatalogs=new ADCCatalogsImpl(this)}}exports.DataCatalogRestClient=DataCatalogRestClient;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),tslib=require("tslib"),coreLro=require("@azure/core-lro");function _interopNamespace(a){if(a&&a.__esModule)return a;var r=Object.create(null);return a&&Object.keys(a).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(a,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return a[e]}}))}),r.default=a,Object.freeze(r)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);exports.KnownSkuType=void 0,function(e){e.Free="Free",e.Standard="Standard"}(exports.KnownSkuType||(exports.KnownSkuType={}));const OperationEntityListResult={type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},OperationEntity={type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}}}}},OperationDisplayInfo={type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},ADCCatalogsListResult={type:{name:"Composite",className:"ADCCatalogsListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ADCCatalog"}}}}}}},Principals={type:{name:"Composite",className:"Principals",modelProperties:{upn:{serializedName:"upn",type:{name:"String"}},objectId:{serializedName:"objectId",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}}}}},ADCCatalog={type:{name:"Composite",className:"ADCCatalog",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{sku:{serializedName:"properties.sku",type:{name:"String"}},units:{serializedName:"properties.units",type:{name:"Number"}},admins:{serializedName:"properties.admins",type:{name:"Sequence",element:{type:{name:"Composite",className:"Principals"}}}},users:{serializedName:"properties.users",type:{name:"Sequence",element:{type:{name:"Composite",className:"Principals"}}}},successfullyProvisioned:{serializedName:"properties.successfullyProvisioned",type:{name:"Boolean"}},enableAutomaticUnitAdjustment:{serializedName:"properties.enableAutomaticUnitAdjustment",type:{name:"Boolean"}}})}};var Mappers=Object.freeze({__proto__:null,OperationEntityListResult:OperationEntityListResult,OperationEntity:OperationEntity,OperationDisplayInfo:OperationDisplayInfo,ADCCatalogsListResult:ADCCatalogsListResult,Principals:Principals,Resource:Resource,ADCCatalog:ADCCatalog});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},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2016-03-30",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},properties={parameterPath:"properties",mapper:ADCCatalog},catalogName={parameterPath:"catalogName",mapper:{serializedName:"catalogName",required:!0,type:{name:"String"}}};class ADCOperationsImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.DataCatalog/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1};class LroImpl{constructor(e,t,a,r=a.path,s=a.httpMethod){this.sendOperationFn=e,this.args=t,this.spec=a,this.requestPath=r,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(t){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:t,httpMethod:"GET"}))})}}class ADCCatalogsImpl{constructor(e){this.client=e}listtByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listtByResourceGroupOperationSpec)}createOrUpdate(e,t,a,r){return this.client.sendOperationRequest({resourceGroupName:e,catalogName:t,properties:a,options:r},createOrUpdateOperationSpec)}get(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,catalogName:t,options:a},getOperationSpec)}beginDelete(a,r,s){return tslib.__awaiter(this,void 0,void 0,function*(){const i=(e,t)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,t)});var e=new LroImpl((t,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let a=void 0;const r=null==(e=t.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{onResponse:(e,t)=>{a=e,null!==r&&void 0!==r&&r(e,t)}})});return{flatResponse:yield i(e,s),rawResponse:{statusCode:a.status,body:a.parsedBody,headers:a.headers.toJSON()}}}),{resourceGroupName:a,catalogName:r,options:s},deleteOperationSpec);const t=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield t.poll(),t})}beginDeleteAndWait(t,a,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(t,a,r);return e.pollUntilDone()})}update(e,t,a,r){return this.client.sendOperationRequest({resourceGroupName:e,catalogName:t,properties:a,options:r},updateOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listtByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",httpMethod:"GET",responses:{200:{bodyMapper:ADCCatalogsListResult}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"PUT",responses:{200:{bodyMapper:ADCCatalog},201:{bodyMapper:ADCCatalog}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"GET",responses:{200:{bodyMapper:ADCCatalog}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept],serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ADCCatalog}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,catalogName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer};class DataCatalogRestClient extends coreClient__namespace.ServiceClient{constructor(e,t,a){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},r="azsdk-js-arm-datacatalog/4.0.0",r=(a=a||{}).userAgentOptions&&a.userAgentOptions.userAgentPrefix?a.userAgentOptions.userAgentPrefix+" "+r:r,e=(a.credentialScopes||(a.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),a),{userAgentOptions:{userAgentPrefix:r},baseUri:null!=(r=null!=(e=a.endpoint)?e:a.baseUri)?r:"https://management.azure.com"}));if(super(e),null!=a&&a.pipeline&&0<a.pipeline.getOrderedPolicies().length){const s=a.pipeline.getOrderedPolicies();s.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.subscriptionId=t,this.$host=a.$host||"https://management.azure.com",this.apiVersion=a.apiVersion||"2016-03-30",this.aDCOperations=new ADCOperationsImpl(this),this.aDCCatalogs=new ADCCatalogsImpl(this)}}exports.DataCatalogRestClient=DataCatalogRestClient;