@azure/arm-domainservices 4.0.1-alpha.20220414.1 → 4.0.2-alpha.20220421.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/README.md +11 -0
  3. package/dist/index.js +138 -59
  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/domainServiceOperationsListSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/domainServiceOperationsListSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/domainServiceOperationsListSample.js +43 -0
  10. package/dist-esm/samples-dev/domainServiceOperationsListSample.js.map +1 -0
  11. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.js +57 -0
  14. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.js.map +1 -0
  15. package/dist-esm/samples-dev/domainServicesDeleteSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/domainServicesDeleteSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/domainServicesDeleteSample.js +31 -0
  18. package/dist-esm/samples-dev/domainServicesDeleteSample.js.map +1 -0
  19. package/dist-esm/samples-dev/domainServicesGetSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/domainServicesGetSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/domainServicesGetSample.js +31 -0
  22. package/dist-esm/samples-dev/domainServicesGetSample.js.map +1 -0
  23. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.js +44 -0
  26. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.js.map +1 -0
  27. package/dist-esm/samples-dev/domainServicesListSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/domainServicesListSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/domainServicesListSample.js +43 -0
  30. package/dist-esm/samples-dev/domainServicesListSample.js.map +1 -0
  31. package/dist-esm/samples-dev/domainServicesUpdateSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/domainServicesUpdateSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/domainServicesUpdateSample.js +71 -0
  34. package/dist-esm/samples-dev/domainServicesUpdateSample.js.map +1 -0
  35. package/dist-esm/samples-dev/ouContainerCreateSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/ouContainerCreateSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/ouContainerCreateSample.js +37 -0
  38. package/dist-esm/samples-dev/ouContainerCreateSample.js.map +1 -0
  39. package/dist-esm/samples-dev/ouContainerDeleteSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/ouContainerDeleteSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/ouContainerDeleteSample.js +32 -0
  42. package/dist-esm/samples-dev/ouContainerDeleteSample.js.map +1 -0
  43. package/dist-esm/samples-dev/ouContainerGetSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/ouContainerGetSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/ouContainerGetSample.js +32 -0
  46. package/dist-esm/samples-dev/ouContainerGetSample.js.map +1 -0
  47. package/dist-esm/samples-dev/ouContainerListSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/ouContainerListSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/ouContainerListSample.js +45 -0
  50. package/dist-esm/samples-dev/ouContainerListSample.js.map +1 -0
  51. package/dist-esm/samples-dev/ouContainerOperationsListSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/ouContainerOperationsListSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/ouContainerOperationsListSample.js +43 -0
  54. package/dist-esm/samples-dev/ouContainerOperationsListSample.js.map +1 -0
  55. package/dist-esm/samples-dev/ouContainerUpdateSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/ouContainerUpdateSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/ouContainerUpdateSample.js +37 -0
  58. package/dist-esm/samples-dev/ouContainerUpdateSample.js.map +1 -0
  59. package/dist-esm/src/domainServicesResourceProvider.d.ts.map +1 -1
  60. package/dist-esm/src/domainServicesResourceProvider.js +20 -2
  61. package/dist-esm/src/domainServicesResourceProvider.js.map +1 -1
  62. package/dist-esm/src/operations/domainServices.d.ts.map +1 -1
  63. package/dist-esm/src/operations/domainServices.js +9 -3
  64. package/dist-esm/src/operations/domainServices.js.map +1 -1
  65. package/dist-esm/src/operations/ouContainerOperationGrp.d.ts.map +1 -1
  66. package/dist-esm/src/operations/ouContainerOperationGrp.js +9 -3
  67. package/dist-esm/src/operations/ouContainerOperationGrp.js.map +1 -1
  68. package/package.json +27 -11
  69. package/rollup.config.js +6 -72
  70. package/src/domainServicesResourceProvider.ts +27 -2
  71. package/src/operations/domainServices.ts +9 -3
  72. package/src/operations/ouContainerOperationGrp.ts +9 -3
  73. package/tsconfig.json +19 -5
  74. package/types/tsdoc-metadata.json +1 -1
  75. package/LICENSE.txt +0 -21
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The List Domain Services in Resource Group operation lists all the domain services available under the given resource group.
15
+ *
16
+ * @summary The List Domain Services in Resource Group operation lists all the domain services available under the given resource group.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/ListDomainServicesByResourceGroup.json
18
+ */
19
+ function listDomainService() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
23
+ const resourceGroupName = "TestResourceGroup";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.domainServices.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ listDomainService().catch(console.error);
44
+ //# sourceMappingURL=domainServicesListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainServicesListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/domainServicesListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAC9D,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=domainServicesListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainServicesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/domainServicesListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The List Domain Services in Subscription operation lists all the domain services available under the given subscription (and across all resource groups within that subscription).
15
+ *
16
+ * @summary The List Domain Services in Subscription operation lists all the domain services available under the given subscription (and across all resource groups within that subscription).
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/ListDomainServicesBySubscription.json
18
+ */
19
+ function listDomainService() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.domainServices.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listDomainService().catch(console.error);
43
+ //# sourceMappingURL=domainServicesListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainServicesListSample.js","sourceRoot":"","sources":["../../samples-dev/domainServicesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=domainServicesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainServicesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/domainServicesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.
15
+ *
16
+ * @summary The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/UpdateDomainService.json
18
+ */
19
+ function updateDomainService() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
22
+ const resourceGroupName = "TestResourceGroup";
23
+ const domainServiceName = "TestDomainService.com";
24
+ const domainService = {
25
+ configDiagnostics: {
26
+ lastExecuted: new Date("2021-05-05T12:00:23Z;"),
27
+ validatorResults: [
28
+ {
29
+ issues: [{ descriptionParams: [], id: "AADDS-CFG-DIAG-I20" }],
30
+ replicaSetSubnetDisplayName: "West US/aadds-subnet",
31
+ status: "Warning",
32
+ validatorId: "AADDS-CFG-DIAG-V06"
33
+ }
34
+ ]
35
+ },
36
+ domainSecuritySettings: {
37
+ ntlmV1: "Enabled",
38
+ syncNtlmPasswords: "Enabled",
39
+ tlsV1: "Disabled"
40
+ },
41
+ filteredSync: "Enabled",
42
+ ldapsSettings: {
43
+ externalAccess: "Enabled",
44
+ ldaps: "Enabled",
45
+ pfxCertificate: "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...",
46
+ pfxCertificatePassword: "<pfxCertificatePassword>"
47
+ },
48
+ notificationSettings: {
49
+ additionalRecipients: ["jicha@microsoft.com", "caalmont@microsoft.com"],
50
+ notifyDcAdmins: "Enabled",
51
+ notifyGlobalAdmins: "Enabled"
52
+ },
53
+ replicaSets: [
54
+ {
55
+ location: "West US",
56
+ subnetId: "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS"
57
+ },
58
+ {
59
+ location: "East US",
60
+ subnetId: "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetEUS/subnets/TestSubnetEUS"
61
+ }
62
+ ]
63
+ };
64
+ const credential = new DefaultAzureCredential();
65
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
66
+ const result = yield client.domainServices.beginUpdateAndWait(resourceGroupName, domainServiceName, domainService);
67
+ console.log(result);
68
+ });
69
+ }
70
+ updateDomainService().catch(console.error);
71
+ //# sourceMappingURL=domainServicesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainServicesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/domainServicesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,iBAAiB,GAAG,uBAAuB,CAA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,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ouContainerCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ouContainerCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The Create OuContainer operation creates a new OuContainer under the specified Domain Service instance.
15
+ *
16
+ * @summary The Create OuContainer operation creates a new OuContainer under the specified Domain Service instance.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/CreateOuContainer.json
18
+ */
19
+ function createDomainService() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
22
+ const resourceGroupName = "OuContainerResourceGroup";
23
+ const domainServiceName = "OuContainer.com";
24
+ const ouContainerName = "OuContainer1";
25
+ const containerAccount = {
26
+ accountName: "AccountName1",
27
+ password: "<password>",
28
+ spn: "Spn1"
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
32
+ const result = yield client.ouContainerOperationGrp.beginCreateAndWait(resourceGroupName, domainServiceName, ouContainerName, containerAccount);
33
+ console.log(result);
34
+ });
35
+ }
36
+ createDomainService().catch(console.error);
37
+ //# sourceMappingURL=ouContainerCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerCreateSample.js","sourceRoot":"","sources":["../../samples-dev/ouContainerCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;QACrD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,cAAc,CAAC;QACvC,MAAM,gBAAgB,GAAqB;YACzC,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,YAAY;YACtB,GAAG,EAAE,MAAM;SACZ,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ouContainerDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ouContainerDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The Delete OuContainer operation deletes specified OuContainer.
15
+ *
16
+ * @summary The Delete OuContainer operation deletes specified OuContainer.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/DeleteOuContainer.json
18
+ */
19
+ function deleteOuContainer() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
22
+ const resourceGroupName = "OuContainerResourceGroup";
23
+ const domainServiceName = "OuContainer.com";
24
+ const ouContainerName = "OuContainer1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
27
+ const result = yield client.ouContainerOperationGrp.beginDeleteAndWait(resourceGroupName, domainServiceName, ouContainerName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ deleteOuContainer().catch(console.error);
32
+ //# sourceMappingURL=ouContainerDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/ouContainerDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;QACrD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,cAAc,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ouContainerGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ouContainerGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get OuContainer in DomainService instance.
15
+ *
16
+ * @summary Get OuContainer in DomainService instance.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/GetOuContainer.json
18
+ */
19
+ function listOfOuContainers() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
22
+ const resourceGroupName = "OuContainerResourceGroup";
23
+ const domainServiceName = "OuContainer.com";
24
+ const ouContainerName = "OuContainer1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
27
+ const result = yield client.ouContainerOperationGrp.get(resourceGroupName, domainServiceName, ouContainerName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ listOfOuContainers().catch(console.error);
32
+ //# sourceMappingURL=ouContainerGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerGetSample.js","sourceRoot":"","sources":["../../samples-dev/ouContainerGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;QACrD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,cAAc,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,GAAG,CACrD,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ouContainerListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ouContainerListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The List of OuContainers in DomainService instance.
15
+ *
16
+ * @summary The List of OuContainers in DomainService instance.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/ListOuContainers.json
18
+ */
19
+ function listOfOuContainers() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
23
+ const resourceGroupName = "OuContainerResourceGroup";
24
+ const domainServiceName = "OuContainer.com";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.ouContainerOperationGrp.list(resourceGroupName, domainServiceName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listOfOuContainers().catch(console.error);
45
+ //# sourceMappingURL=ouContainerListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerListSample.js","sourceRoot":"","sources":["../../samples-dev/ouContainerListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;QACrD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,uBAAuB,CAAC,IAAI,CACxD,iBAAiB,EACjB,iBAAiB,CAClB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ouContainerOperationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerOperationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ouContainerOperationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all the available OuContainer operations.
15
+ *
16
+ * @summary Lists all the available OuContainer operations.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/GetOperations.json
18
+ */
19
+ function getOperations() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.ouContainerOperations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ getOperations().catch(console.error);
43
+ //# sourceMappingURL=ouContainerOperationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerOperationsListSample.js","sourceRoot":"","sources":["../../samples-dev/ouContainerOperationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA/C,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ouContainerUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ouContainerUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DomainServicesResourceProvider } from "@azure/arm-domainservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The Update OuContainer operation can be used to update the existing OuContainers.
15
+ *
16
+ * @summary The Update OuContainer operation can be used to update the existing OuContainers.
17
+ * x-ms-original-file: specification/domainservices/resource-manager/Microsoft.AAD/stable/2021-05-01/examples/UpdateOuContainer.json
18
+ */
19
+ function updateDomainService() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "1639790a-76a2-4ac4-98d9-8562f5dfcb4d";
22
+ const resourceGroupName = "OuContainerResourceGroup";
23
+ const domainServiceName = "OuContainer.com";
24
+ const ouContainerName = "OuContainer1";
25
+ const containerAccount = {
26
+ accountName: "AccountName1",
27
+ password: "<password>",
28
+ spn: "Spn1"
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new DomainServicesResourceProvider(credential, subscriptionId);
32
+ const result = yield client.ouContainerOperationGrp.beginUpdateAndWait(resourceGroupName, domainServiceName, ouContainerName, containerAccount);
33
+ console.log(result);
34
+ });
35
+ }
36
+ updateDomainService().catch(console.error);
37
+ //# sourceMappingURL=ouContainerUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ouContainerUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/ouContainerUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;QACrD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,cAAc,CAAC;QACvC,MAAM,gBAAgB,GAAqB;YACzC,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,YAAY;YACtB,GAAG,EAAE,MAAM;SACZ,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"domainServicesResourceProvider.d.ts","sourceRoot":"","sources":["../../src/domainServicesResourceProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4CAA4C,EAAE,MAAM,UAAU,CAAC;AAExE,qBAAa,8BAA+B,SAAQ,UAAU,CAAC,aAAa;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4CAA4C;IAgDxD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,cAAc,EAAE,cAAc,CAAC;IAC/B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,uBAAuB,EAAE,uBAAuB,CAAC;CAClD"}
1
+ {"version":3,"file":"domainServicesResourceProvider.d.ts","sourceRoot":"","sources":["../../src/domainServicesResourceProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4CAA4C,EAAE,MAAM,UAAU,CAAC;AAExE,qBAAa,8BAA+B,SAAQ,UAAU,CAAC,aAAa;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4CAA4C;IAwExD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,cAAc,EAAE,cAAc,CAAC;IAC/B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,uBAAuB,EAAE,uBAAuB,CAAC;CAClD"}
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
9
10
  import { DomainServiceOperationsImpl, DomainServicesImpl, OuContainerOperationsImpl, OuContainerOperationGrpImpl } from "./operations";
10
11
  export class DomainServicesResourceProvider extends coreClient.ServiceClient {
11
12
  /**
@@ -16,6 +17,7 @@ export class DomainServicesResourceProvider extends coreClient.ServiceClient {
16
17
  * @param options The parameter options
17
18
  */
18
19
  constructor(credentials, subscriptionId, options) {
20
+ var _a, _b;
19
21
  if (credentials === undefined) {
20
22
  throw new Error("'credentials' cannot be null");
21
23
  }
@@ -30,7 +32,7 @@ export class DomainServicesResourceProvider extends coreClient.ServiceClient {
30
32
  requestContentType: "application/json; charset=utf-8",
31
33
  credential: credentials
32
34
  };
33
- const packageDetails = `azsdk-js-arm-domainservices/4.0.0`;
35
+ const packageDetails = `azsdk-js-arm-domainservices/4.0.2`;
34
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
38
  : `${packageDetails}`;
@@ -39,8 +41,24 @@ export class DomainServicesResourceProvider extends coreClient.ServiceClient {
39
41
  }
40
42
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
43
  userAgentPrefix
42
- }, baseUri: options.endpoint || "https://management.azure.com" });
44
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
45
  super(optionsWithDefaults);
46
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
47
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
48
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
49
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
+ if (!bearerTokenAuthenticationPolicyFound) {
51
+ this.pipeline.removePolicy({
52
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
53
+ });
54
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
55
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
56
+ challengeCallbacks: {
57
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
58
+ }
59
+ }));
60
+ }
61
+ }
44
62
  // Parameter assignments
45
63
  this.subscriptionId = subscriptionId;
46
64
  // Assigning values to Constant parameters
@@ -1 +1 @@
1
- {"version":3,"file":"domainServicesResourceProvider.js","sourceRoot":"","sources":["../../src/domainServicesResourceProvider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,8BAA+B,SAAQ,UAAU,CAAC,aAAa;IAK1E;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAsD;QAEtD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EA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AA2B,CAAC,IAAI,CAAC,CAAC;IACvE,CAAC;CAMF"}
@@ -1 +1 @@
1
- {"version":3,"file":"domainServices.d.ts","sourceRoot":"","sources":["../../../src/operations/domainServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,aAAa,EAEb,gCAAgC,EAEhC,+CAA+C,EAG/C,0CAA0C,EAC1C,oCAAoC,EACpC,+BAA+B,EAC/B,yBAAyB,EACzB,kCAAkC,EAClC,kCAAkC,EAClC,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD;;;OAGG;gBACS,MAAM,EAAE,8BAA8B;IAIlD;;;;OAIG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,aAAa,CAAC;YAe7B,cAAc;YAad,aAAa;IAQ5B;;;;;;OAMG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,aAAa,CAAC;YAe7B,6BAA6B;YAkB7B,4BAA4B;IAY3C;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;;;;;OASG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,oCAA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,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAUhD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;;OAMG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAqDtD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,4BAA4B,CAAC,EAChD,4BAA4B,CAC7B,CACF;IAqDD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAUxC;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -174,10 +174,12 @@ export class DomainServicesImpl {
174
174
  };
175
175
  });
176
176
  const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, domainService, options }, createOrUpdateOperationSpec);
177
- return new LroEngine(lro, {
177
+ const poller = new LroEngine(lro, {
178
178
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
179
179
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
180
180
  });
181
+ yield poller.poll();
182
+ return poller;
181
183
  });
182
184
  }
183
185
  /**
@@ -238,10 +240,12 @@ export class DomainServicesImpl {
238
240
  };
239
241
  });
240
242
  const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, options }, deleteOperationSpec);
241
- return new LroEngine(lro, {
243
+ const poller = new LroEngine(lro, {
242
244
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
243
245
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
244
246
  });
247
+ yield poller.poll();
248
+ return poller;
245
249
  });
246
250
  }
247
251
  /**
@@ -291,10 +295,12 @@ export class DomainServicesImpl {
291
295
  };
292
296
  });
293
297
  const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, domainService, options }, updateOperationSpec);
294
- return new LroEngine(lro, {
298
+ const poller = new LroEngine(lro, {
295
299
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
296
300
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
297
301
  });
302
+ yield poller.poll();
303
+ return poller;
298
304
  });
299
305
  }
300
306
  /**