@azure/arm-azurestack 3.0.0-alpha.20220413.1 → 3.0.0-beta.2

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 (127) hide show
  1. package/CHANGELOG.md +3 -13
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +120 -87
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/cloudManifestFileGetSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/cloudManifestFileGetSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/cloudManifestFileGetSample.js +30 -0
  11. package/dist-esm/samples-dev/cloudManifestFileGetSample.js.map +1 -0
  12. package/dist-esm/samples-dev/cloudManifestFileListSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/cloudManifestFileListSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/cloudManifestFileListSample.js +29 -0
  15. package/dist-esm/samples-dev/cloudManifestFileListSample.js.map +1 -0
  16. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.js +35 -0
  19. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.js +32 -0
  23. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/customerSubscriptionsGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/customerSubscriptionsGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/customerSubscriptionsGetSample.js +32 -0
  27. package/dist-esm/samples-dev/customerSubscriptionsGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/customerSubscriptionsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/customerSubscriptionsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/customerSubscriptionsListSample.js +45 -0
  31. package/dist-esm/samples-dev/customerSubscriptionsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.js +36 -0
  35. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.js +31 -0
  39. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.js.map +1 -0
  40. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.js +31 -0
  43. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.js.map +1 -0
  44. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.js +44 -0
  47. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.js.map +1 -0
  48. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.js +43 -0
  51. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.js.map +1 -0
  52. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.js +36 -0
  55. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.js.map +1 -0
  56. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  59. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  60. package/dist-esm/samples-dev/productsGetProductSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/productsGetProductSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/productsGetProductSample.js +32 -0
  63. package/dist-esm/samples-dev/productsGetProductSample.js.map +1 -0
  64. package/dist-esm/samples-dev/productsGetProductsSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/productsGetProductsSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/productsGetProductsSample.js +32 -0
  67. package/dist-esm/samples-dev/productsGetProductsSample.js.map +1 -0
  68. package/dist-esm/samples-dev/productsGetSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/productsGetSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/productsGetSample.js +32 -0
  71. package/dist-esm/samples-dev/productsGetSample.js.map +1 -0
  72. package/dist-esm/samples-dev/productsListDetailsSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/productsListDetailsSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/productsListDetailsSample.js +32 -0
  75. package/dist-esm/samples-dev/productsListDetailsSample.js.map +1 -0
  76. package/dist-esm/samples-dev/productsListSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/productsListSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/productsListSample.js +45 -0
  79. package/dist-esm/samples-dev/productsListSample.js.map +1 -0
  80. package/dist-esm/samples-dev/productsUploadLogSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/productsUploadLogSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/productsUploadLogSample.js +32 -0
  83. package/dist-esm/samples-dev/productsUploadLogSample.js.map +1 -0
  84. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.js +35 -0
  87. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.js.map +1 -0
  88. package/dist-esm/samples-dev/registrationsDeleteSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/registrationsDeleteSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/registrationsDeleteSample.js +31 -0
  91. package/dist-esm/samples-dev/registrationsDeleteSample.js.map +1 -0
  92. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.js +31 -0
  95. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.js.map +1 -0
  96. package/dist-esm/samples-dev/registrationsGetActivationKeySample.d.ts +2 -0
  97. package/dist-esm/samples-dev/registrationsGetActivationKeySample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/registrationsGetActivationKeySample.js +31 -0
  99. package/dist-esm/samples-dev/registrationsGetActivationKeySample.js.map +1 -0
  100. package/dist-esm/samples-dev/registrationsGetSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/registrationsGetSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/registrationsGetSample.js +31 -0
  103. package/dist-esm/samples-dev/registrationsGetSample.js.map +1 -0
  104. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.js +43 -0
  107. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.js.map +1 -0
  108. package/dist-esm/samples-dev/registrationsListSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/registrationsListSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/registrationsListSample.js +44 -0
  111. package/dist-esm/samples-dev/registrationsListSample.js.map +1 -0
  112. package/dist-esm/samples-dev/registrationsUpdateSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/registrationsUpdateSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/registrationsUpdateSample.js +35 -0
  115. package/dist-esm/samples-dev/registrationsUpdateSample.js.map +1 -0
  116. package/dist-esm/src/azureStackManagementClient.d.ts.map +1 -1
  117. package/dist-esm/src/azureStackManagementClient.js +3 -2
  118. package/dist-esm/src/azureStackManagementClient.js.map +1 -1
  119. package/dist-esm/test/sampleTest.d.ts +1 -3
  120. package/dist-esm/test/sampleTest.d.ts.map +1 -1
  121. package/dist-esm/test/sampleTest.js +1 -4
  122. package/dist-esm/test/sampleTest.js.map +1 -1
  123. package/package.json +25 -9
  124. package/rollup.config.js +6 -72
  125. package/src/azureStackManagementClient.ts +3 -2
  126. package/tsconfig.json +19 -5
  127. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customerSubscriptionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerSubscriptionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/customerSubscriptionsGetSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns the specified product.
15
+ *
16
+ * @summary Returns the specified product.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/Get.json
18
+ */
19
+ function returnsTheSpecifiedProduct() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const registrationName = "testregistration";
24
+ const customerSubscriptionName = "E09A4E93-29A7-4EBA-A6D4-76202383F07F";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackManagementClient(credential, subscriptionId);
27
+ const result = yield client.customerSubscriptions.get(resourceGroup, registrationName, customerSubscriptionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ returnsTheSpecifiedProduct().catch(console.error);
32
+ //# sourceMappingURL=customerSubscriptionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerSubscriptionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/customerSubscriptionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,wBAAwB,GAAG,sCAAsC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,aAAa,EACb,gBAAgB,EAChB,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customerSubscriptionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerSubscriptionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/customerSubscriptionsListSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns a list of products.
15
+ *
16
+ * @summary Returns a list of products.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/CustomerSubscription/List.json
18
+ */
19
+ function returnsAListOfProducts() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
23
+ const resourceGroup = "azurestack";
24
+ const registrationName = "testregistration";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.customerSubscriptions.list(resourceGroup, registrationName)), _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
+ returnsAListOfProducts().catch(console.error);
45
+ //# sourceMappingURL=customerSubscriptionsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerSubscriptionsListSample.js","sourceRoot":"","sources":["../../samples-dev/customerSubscriptionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,IAAI,CACtD,aAAa,EACb,gBAAgB,CACjB,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,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linkedSubscriptionsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create or update a linked subscription resource.
15
+ *
16
+ * @summary Create or update a linked subscription resource.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Put.json
18
+ */
19
+ function createOrUpdateALinkedSubscription() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const linkedSubscriptionName = "testLinkedSubscription";
24
+ const resource = {
25
+ linkedSubscriptionId: "104fbb77-2b0e-476a-83de-65ad8acd1f0b",
26
+ location: "eastus",
27
+ registrationResourceId: "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration"
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new AzureStackManagementClient(credential, subscriptionId);
31
+ const result = yield client.linkedSubscriptions.createOrUpdate(resourceGroup, linkedSubscriptionName, resource);
32
+ console.log(result);
33
+ });
34
+ }
35
+ createOrUpdateALinkedSubscription().catch(console.error);
36
+ //# sourceMappingURL=linkedSubscriptionsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,0BAA0B,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;QACxD,MAAM,QAAQ,GAAgC;YAC5C,oBAAoB,EAAE,sCAAsC;YAC5D,QAAQ,EAAE,QAAQ;YAClB,sBAAsB,EACpB,6IAA6I;SAChJ,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,cAAc,CAC5D,aAAa,EACb,sBAAsB,EACtB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linkedSubscriptionsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete the requested Linked Subscription resource.
15
+ *
16
+ * @summary Delete the requested Linked Subscription resource.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Delete.json
18
+ */
19
+ function deleteTheRequestedLinkedSubscription() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const linkedSubscriptionName = "testlinkedsubscription";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureStackManagementClient(credential, subscriptionId);
26
+ const result = yield client.linkedSubscriptions.delete(resourceGroup, linkedSubscriptionName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ deleteTheRequestedLinkedSubscription().catch(console.error);
31
+ //# sourceMappingURL=linkedSubscriptionsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,MAAM,CACpD,aAAa,EACb,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linkedSubscriptionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns the properties of a Linked Subscription resource.
15
+ *
16
+ * @summary Returns the properties of a Linked Subscription resource.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Get.json
18
+ */
19
+ function returnsThePropertiesOfALinkedSubscriptionResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const linkedSubscriptionName = "testLinkedSubscription";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureStackManagementClient(credential, subscriptionId);
26
+ const result = yield client.linkedSubscriptions.get(resourceGroup, linkedSubscriptionName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ returnsThePropertiesOfALinkedSubscriptionResource().catch(console.error);
31
+ //# sourceMappingURL=linkedSubscriptionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iDAAiD;;QAC9D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,GAAG,CACjD,aAAa,EACb,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iDAAiD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linkedSubscriptionsListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsListByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns a list of all linked subscriptions under current resource group.
15
+ *
16
+ * @summary Returns a list of all linked subscriptions under current resource group.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/List.json
18
+ */
19
+ function returnsAListOfAllLinkedSubscriptions() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
23
+ const resourceGroup = "azurestack";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureStackManagementClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.linkedSubscriptions.listByResourceGroup(resourceGroup)), _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
+ returnsAListOfAllLinkedSubscriptions().catch(console.error);
44
+ //# sourceMappingURL=linkedSubscriptionsListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oCAAoC;;;QACjD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,mBAAmB,CAAC,mBAAmB,CACnE,aAAa,CACd,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,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linkedSubscriptionsListBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsListBySubscriptionSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns a list of all linked subscriptions under current subscription.
15
+ *
16
+ * @summary Returns a list of all linked subscriptions under current subscription.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/ListBySubscription.json
18
+ */
19
+ function returnsAListOfAllLinkedSubscriptions() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new AzureStackManagementClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.linkedSubscriptions.listBySubscription()), _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
+ returnsAListOfAllLinkedSubscriptions().catch(console.error);
43
+ //# sourceMappingURL=linkedSubscriptionsListBySubscriptionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oCAAoC;;;QACjD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA3D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linkedSubscriptionsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Patch a Linked Subscription resource.
15
+ *
16
+ * @summary Patch a Linked Subscription resource.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/LinkedSubscription/Patch.json
18
+ */
19
+ function patchALinkedSubscriptionResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const linkedSubscriptionName = "testLinkedSubscription";
24
+ const resource = {
25
+ linkedSubscriptionId: "104fbb77-2b0e-476a-83de-65ad8acd1f0b",
26
+ location: "eastus",
27
+ registrationResourceId: "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration"
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new AzureStackManagementClient(credential, subscriptionId);
31
+ const result = yield client.linkedSubscriptions.update(resourceGroup, linkedSubscriptionName, resource);
32
+ console.log(result);
33
+ });
34
+ }
35
+ patchALinkedSubscriptionResource().catch(console.error);
36
+ //# sourceMappingURL=linkedSubscriptionsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptionsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/linkedSubscriptionsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,0BAA0B,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;QACxD,MAAM,QAAQ,GAAgC;YAC5C,oBAAoB,EAAE,sCAAsC;YAC5D,QAAQ,EAAE,QAAQ;YAClB,sBAAsB,EACpB,6IAA6I;SAChJ,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,MAAM,CACpD,aAAa,EACb,sBAAsB,EACtB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns the list of supported REST operations.
15
+ *
16
+ * @summary Returns the list of supported REST operations.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Operation/List.json
18
+ */
19
+ function returnsTheListOfSupportedRestOperations() {
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 AzureStackManagementClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.operations.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
+ returnsTheListOfSupportedRestOperations().catch(console.error);
43
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;;QACpD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=productsGetProductSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsGetProductSample.d.ts","sourceRoot":"","sources":["../../samples-dev/productsGetProductSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns the specified product.
15
+ *
16
+ * @summary Returns the specified product.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/GetPost.json
18
+ */
19
+ function returnsTheSpecifiedProduct() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const registrationName = "testregistration";
24
+ const productName = "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackManagementClient(credential, subscriptionId);
27
+ const result = yield client.products.getProduct(resourceGroup, registrationName, productName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ returnsTheSpecifiedProduct().catch(console.error);
32
+ //# sourceMappingURL=productsGetProductSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsGetProductSample.js","sourceRoot":"","sources":["../../samples-dev/productsGetProductSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,WAAW,GAAG,mDAAmD,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,UAAU,CAC7C,aAAa,EACb,gBAAgB,EAChB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=productsGetProductsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsGetProductsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/productsGetProductsSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns a list of products.
15
+ *
16
+ * @summary Returns a list of products.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/ListPost.json
18
+ */
19
+ function returnsAListOfProducts() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const registrationName = "testregistration";
24
+ const productName = "_all";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackManagementClient(credential, subscriptionId);
27
+ const result = yield client.products.getProducts(resourceGroup, registrationName, productName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ returnsAListOfProducts().catch(console.error);
32
+ //# sourceMappingURL=productsGetProductsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsGetProductsSample.js","sourceRoot":"","sources":["../../samples-dev/productsGetProductsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,WAAW,GAAG,MAAM,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,WAAW,CAC9C,aAAa,EACb,gBAAgB,EAChB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=productsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/productsGetSample.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 { AzureStackManagementClient } from "@azure/arm-azurestack";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Returns the specified product.
15
+ *
16
+ * @summary Returns the specified product.
17
+ * x-ms-original-file: specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Product/Get.json
18
+ */
19
+ function returnsTheSpecifiedProduct() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "dd8597b4-8739-4467-8b10-f8679f62bfbf";
22
+ const resourceGroup = "azurestack";
23
+ const registrationName = "testregistration";
24
+ const productName = "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackManagementClient(credential, subscriptionId);
27
+ const result = yield client.products.get(resourceGroup, registrationName, productName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ returnsTheSpecifiedProduct().catch(console.error);
32
+ //# sourceMappingURL=productsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsGetSample.js","sourceRoot":"","sources":["../../samples-dev/productsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,WAAW,GAAG,mDAAmD,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CACtC,aAAa,EACb,gBAAgB,EAChB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=productsListDetailsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productsListDetailsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/productsListDetailsSample.ts"],"names":[],"mappings":""}