@azure/arm-largeinstance 1.0.0-alpha.20240223.1

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 (139) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2490 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/azureLargeInstanceGetSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/azureLargeInstanceGetSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/azureLargeInstanceGetSample.js +41 -0
  11. package/dist-esm/samples-dev/azureLargeInstanceGetSample.js.map +1 -0
  12. package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.js +56 -0
  15. package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.js +55 -0
  19. package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureLargeInstanceRestartSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureLargeInstanceRestartSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureLargeInstanceRestartSample.js +39 -0
  23. package/dist-esm/samples-dev/azureLargeInstanceRestartSample.js.map +1 -0
  24. package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.js +39 -0
  27. package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.js.map +1 -0
  28. package/dist-esm/samples-dev/azureLargeInstanceStartSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/azureLargeInstanceStartSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/azureLargeInstanceStartSample.js +39 -0
  31. package/dist-esm/samples-dev/azureLargeInstanceStartSample.js.map +1 -0
  32. package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.js +66 -0
  35. package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.js +41 -0
  39. package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.js.map +1 -0
  40. package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.js +58 -0
  43. package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.js.map +1 -0
  44. package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.js +55 -0
  47. package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.js.map +1 -0
  48. package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.js +66 -0
  51. package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/operationsListSample.js +53 -0
  55. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  56. package/dist-esm/src/index.d.ts +6 -0
  57. package/dist-esm/src/index.d.ts.map +1 -0
  58. package/dist-esm/src/index.js +13 -0
  59. package/dist-esm/src/index.js.map +1 -0
  60. package/dist-esm/src/largeInstanceManagementClient.d.ts +22 -0
  61. package/dist-esm/src/largeInstanceManagementClient.d.ts.map +1 -0
  62. package/dist-esm/src/largeInstanceManagementClient.js +103 -0
  63. package/dist-esm/src/largeInstanceManagementClient.js.map +1 -0
  64. package/dist-esm/src/lroImpl.d.ts +11 -0
  65. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  66. package/dist-esm/src/lroImpl.js +21 -0
  67. package/dist-esm/src/lroImpl.js.map +1 -0
  68. package/dist-esm/src/models/index.d.ts +858 -0
  69. package/dist-esm/src/models/index.d.ts.map +1 -0
  70. package/dist-esm/src/models/index.js +210 -0
  71. package/dist-esm/src/models/index.js.map +1 -0
  72. package/dist-esm/src/models/mappers.d.ts +33 -0
  73. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  74. package/dist-esm/src/models/mappers.js +902 -0
  75. package/dist-esm/src/models/mappers.js.map +1 -0
  76. package/dist-esm/src/models/parameters.d.ts +14 -0
  77. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  78. package/dist-esm/src/models/parameters.js +126 -0
  79. package/dist-esm/src/models/parameters.js.map +1 -0
  80. package/dist-esm/src/operations/azureLargeInstanceOperations.d.ts +117 -0
  81. package/dist-esm/src/operations/azureLargeInstanceOperations.d.ts.map +1 -0
  82. package/dist-esm/src/operations/azureLargeInstanceOperations.js +587 -0
  83. package/dist-esm/src/operations/azureLargeInstanceOperations.js.map +1 -0
  84. package/dist-esm/src/operations/azureLargeStorageInstanceOperations.d.ts +76 -0
  85. package/dist-esm/src/operations/azureLargeStorageInstanceOperations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/azureLargeStorageInstanceOperations.js +332 -0
  87. package/dist-esm/src/operations/azureLargeStorageInstanceOperations.js.map +1 -0
  88. package/dist-esm/src/operations/index.d.ts +4 -0
  89. package/dist-esm/src/operations/index.d.ts.map +1 -0
  90. package/dist-esm/src/operations/index.js +11 -0
  91. package/dist-esm/src/operations/index.js.map +1 -0
  92. package/dist-esm/src/operations/operations.d.ts +32 -0
  93. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operations/operations.js +133 -0
  95. package/dist-esm/src/operations/operations.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.d.ts +79 -0
  97. package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.d.ts +37 -0
  101. package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  105. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  107. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  109. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  112. package/dist-esm/src/pagingHelper.d.ts +13 -0
  113. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  114. package/dist-esm/src/pagingHelper.js +32 -0
  115. package/dist-esm/src/pagingHelper.js.map +1 -0
  116. package/dist-esm/test/largeinstance_operations_test.spec.d.ts +4 -0
  117. package/dist-esm/test/largeinstance_operations_test.spec.d.ts.map +1 -0
  118. package/dist-esm/test/largeinstance_operations_test.spec.js +73 -0
  119. package/dist-esm/test/largeinstance_operations_test.spec.js.map +1 -0
  120. package/package.json +118 -0
  121. package/review/arm-largeinstance.api.md +569 -0
  122. package/src/index.ts +13 -0
  123. package/src/largeInstanceManagementClient.ts +156 -0
  124. package/src/lroImpl.ts +42 -0
  125. package/src/models/index.ts +955 -0
  126. package/src/models/mappers.ts +944 -0
  127. package/src/models/parameters.ts +147 -0
  128. package/src/operations/azureLargeInstanceOperations.ts +768 -0
  129. package/src/operations/azureLargeStorageInstanceOperations.ts +401 -0
  130. package/src/operations/index.ts +11 -0
  131. package/src/operations/operations.ts +149 -0
  132. package/src/operationsInterfaces/azureLargeInstanceOperations.ts +156 -0
  133. package/src/operationsInterfaces/azureLargeStorageInstanceOperations.ts +69 -0
  134. package/src/operationsInterfaces/index.ts +11 -0
  135. package/src/operationsInterfaces/operations.ts +22 -0
  136. package/src/pagingHelper.ts +39 -0
  137. package/tsconfig.json +33 -0
  138. package/types/arm-largeinstance.d.ts +1096 -0
  139. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,39 @@
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 { LargeInstanceManagementClient } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to The operation to shutdown an Azure Large Instance (only for compute instances)
17
+ *
18
+ * @summary The operation to shutdown an Azure Large Instance (only for compute instances)
19
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeInstance_Shutdown.json
20
+ */
21
+ function azureLargeInstanceShutdown() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
26
+ const azureLargeInstanceName = "myALInstance";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
29
+ const result = yield client.azureLargeInstanceOperations.beginShutdownAndWait(resourceGroupName, azureLargeInstanceName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ azureLargeInstanceShutdown();
36
+ });
37
+ }
38
+ main().catch(console.error);
39
+ //# sourceMappingURL=azureLargeInstanceShutdownSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeInstanceShutdownSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeInstanceShutdownSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,sBAAsB,GAAG,cAAc,CAAC;QAC9C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,oBAAoB,CAC3E,iBAAiB,EACjB,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0BAA0B,EAAE,CAAC;IAC/B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=azureLargeInstanceStartSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeInstanceStartSample.d.ts","sourceRoot":"","sources":["../../samples-dev/azureLargeInstanceStartSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
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 { LargeInstanceManagementClient } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to The operation to start an Azure Large Instance (only for compute instances)
17
+ *
18
+ * @summary The operation to start an Azure Large Instance (only for compute instances)
19
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeInstance_Start.json
20
+ */
21
+ function azureLargeInstanceStart() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
26
+ const azureLargeInstanceName = "myALInstance";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
29
+ const result = yield client.azureLargeInstanceOperations.beginStartAndWait(resourceGroupName, azureLargeInstanceName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ azureLargeInstanceStart();
36
+ });
37
+ }
38
+ main().catch(console.error);
39
+ //# sourceMappingURL=azureLargeInstanceStartSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeInstanceStartSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeInstanceStartSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,sBAAsB,GAAG,cAAc,CAAC;QAC9C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,iBAAiB,CACxE,iBAAiB,EACjB,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uBAAuB,EAAE,CAAC;IAC5B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=azureLargeInstanceUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeInstanceUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/azureLargeInstanceUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,66 @@
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 { LargeInstanceManagementClient, } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Patches the Tags field of an Azure Large Instance for the specified
17
+ subscription, resource group, and instance name.
18
+ *
19
+ * @summary Patches the Tags field of an Azure Large Instance for the specified
20
+ subscription, resource group, and instance name.
21
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeInstance_PatchTags_Delete.json
22
+ */
23
+ function azureLargeInstanceDeleteTag() {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
26
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
27
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
28
+ const azureLargeInstanceName = "myALInstance";
29
+ const tagsParameter = { tags: {} };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
32
+ const result = yield client.azureLargeInstanceOperations.update(resourceGroupName, azureLargeInstanceName, tagsParameter);
33
+ console.log(result);
34
+ });
35
+ }
36
+ /**
37
+ * This sample demonstrates how to Patches the Tags field of an Azure Large Instance for the specified
38
+ subscription, resource group, and instance name.
39
+ *
40
+ * @summary Patches the Tags field of an Azure Large Instance for the specified
41
+ subscription, resource group, and instance name.
42
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeInstance_PatchTags.json
43
+ */
44
+ function azureLargeInstanceUpdateTag() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
47
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
48
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
49
+ const azureLargeInstanceName = "myALInstance";
50
+ const tagsParameter = {
51
+ tags: { testkey: "testvalue" },
52
+ };
53
+ const credential = new DefaultAzureCredential();
54
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
55
+ const result = yield client.azureLargeInstanceOperations.update(resourceGroupName, azureLargeInstanceName, tagsParameter);
56
+ console.log(result);
57
+ });
58
+ }
59
+ function main() {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ azureLargeInstanceDeleteTag();
62
+ azureLargeInstanceUpdateTag();
63
+ });
64
+ }
65
+ main().catch(console.error);
66
+ //# sourceMappingURL=azureLargeInstanceUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeInstanceUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeInstanceUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;GAOG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,sBAAsB,GAAG,cAAc,CAAC;QAC9C,MAAM,aAAa,GAAiC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACjE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,MAAM,CAC7D,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;;;GAOG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,sBAAsB,GAAG,cAAc,CAAC;QAC9C,MAAM,aAAa,GAAiC;YAClD,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,MAAM,CAC7D,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;QAC9B,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=azureLargeStorageInstanceGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
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 { LargeInstanceManagementClient } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets an Azure Large Storage instance for the specified subscription, resource
17
+ group, and instance name.
18
+ *
19
+ * @summary Gets an Azure Large Storage instance for the specified subscription, resource
20
+ group, and instance name.
21
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeStorageInstance_Get.json
22
+ */
23
+ function azureLargeStorageInstanceGet() {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
26
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
27
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
28
+ const azureLargeStorageInstanceName = "myAzureLargeStorageInstance";
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
31
+ const result = yield client.azureLargeStorageInstanceOperations.get(resourceGroupName, azureLargeStorageInstanceName);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ azureLargeStorageInstanceGet();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=azureLargeStorageInstanceGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceGetSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;GAOG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,6BAA6B,GAAG,6BAA6B,CAAC;QACpE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,GAAG,CACjE,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=azureLargeStorageInstanceListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceListByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
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 { LargeInstanceManagementClient } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets a list of AzureLargeStorageInstances in the specified subscription and
17
+ resource group. The operations returns various properties of each Azure
18
+ LargeStorage instance.
19
+ *
20
+ * @summary Gets a list of AzureLargeStorageInstances in the specified subscription and
21
+ resource group. The operations returns various properties of each Azure
22
+ LargeStorage instance.
23
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeStorageInstance_ListByResourceGroup.json
24
+ */
25
+ function azureLargeStorageInstanceListByResourceGroup() {
26
+ var _a, e_1, _b, _c;
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
29
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
30
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
33
+ const resArray = new Array();
34
+ try {
35
+ for (var _d = true, _e = __asyncValues(client.azureLargeStorageInstanceOperations.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
36
+ _c = _f.value;
37
+ _d = false;
38
+ let item = _c;
39
+ resArray.push(item);
40
+ }
41
+ }
42
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
43
+ finally {
44
+ try {
45
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
46
+ }
47
+ finally { if (e_1) throw e_1.error; }
48
+ }
49
+ console.log(resArray);
50
+ });
51
+ }
52
+ function main() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ azureLargeStorageInstanceListByResourceGroup();
55
+ });
56
+ }
57
+ main().catch(console.error);
58
+ //# sourceMappingURL=azureLargeStorageInstanceListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;;;GASG;AACH,SAAe,4CAA4C;;;QACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,mCAAmC,CAAC,mBAAmB,CACnF,iBAAiB,CAClB,CAAA,IAAA,sDAAE,CAAC;gBAFmB,cAEtB;gBAFsB,WAEtB;gBAFU,IAAI,IAAI,KAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4CAA4C,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=azureLargeStorageInstanceListBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceListBySubscriptionSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
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 { LargeInstanceManagementClient } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets a list of AzureLargeStorageInstances in the specified subscription. The
17
+ operations returns various properties of each Azure LargeStorage instance.
18
+ *
19
+ * @summary Gets a list of AzureLargeStorageInstances in the specified subscription. The
20
+ operations returns various properties of each Azure LargeStorage instance.
21
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeStorageInstance_ListBySubscription.json
22
+ */
23
+ function azureLargeStorageInstanceListBySubscription() {
24
+ var _a, e_1, _b, _c;
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
27
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.azureLargeStorageInstanceOperations.listBySubscription()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ }
39
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
40
+ finally {
41
+ try {
42
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
43
+ }
44
+ finally { if (e_1) throw e_1.error; }
45
+ }
46
+ console.log(resArray);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ azureLargeStorageInstanceListBySubscription();
52
+ });
53
+ }
54
+ main().catch(console.error);
55
+ //# sourceMappingURL=azureLargeStorageInstanceListBySubscriptionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;GAOG;AACH,SAAe,2CAA2C;;;QACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,mCAAmC,CAAC,kBAAkB,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAAlE,cAA+D;gBAA/D,WAA+D;gBAA3E,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,2CAA2C,EAAE,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=azureLargeStorageInstanceUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,66 @@
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 { LargeInstanceManagementClient, } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Patches the Tags field of a Azure Large Storage Instance for the specified
17
+ subscription, resource group, and instance name.
18
+ *
19
+ * @summary Patches the Tags field of a Azure Large Storage Instance for the specified
20
+ subscription, resource group, and instance name.
21
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeStorageInstance_PatchTags_Delete.json
22
+ */
23
+ function azureLargeStorageInstanceDeleteTag() {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
26
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
27
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
28
+ const azureLargeStorageInstanceName = "myALSInstance";
29
+ const tagsParameter = { tags: {} };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
32
+ const result = yield client.azureLargeStorageInstanceOperations.update(resourceGroupName, azureLargeStorageInstanceName, tagsParameter);
33
+ console.log(result);
34
+ });
35
+ }
36
+ /**
37
+ * This sample demonstrates how to Patches the Tags field of a Azure Large Storage Instance for the specified
38
+ subscription, resource group, and instance name.
39
+ *
40
+ * @summary Patches the Tags field of a Azure Large Storage Instance for the specified
41
+ subscription, resource group, and instance name.
42
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeStorageInstance_PatchTags.json
43
+ */
44
+ function azureLargeStorageInstanceUpdateTag() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
47
+ "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd";
48
+ const resourceGroupName = process.env["LARGEINSTANCE_RESOURCE_GROUP"] || "myResourceGroup";
49
+ const azureLargeStorageInstanceName = "myALSInstance";
50
+ const tagsParameter = {
51
+ tags: { testkey: "testvalue" },
52
+ };
53
+ const credential = new DefaultAzureCredential();
54
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
55
+ const result = yield client.azureLargeStorageInstanceOperations.update(resourceGroupName, azureLargeStorageInstanceName, tagsParameter);
56
+ console.log(result);
57
+ });
58
+ }
59
+ function main() {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ azureLargeStorageInstanceDeleteTag();
62
+ azureLargeStorageInstanceUpdateTag();
63
+ });
64
+ }
65
+ main().catch(console.error);
66
+ //# sourceMappingURL=azureLargeStorageInstanceUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureLargeStorageInstanceUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/azureLargeStorageInstanceUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;GAOG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,6BAA6B,GAAG,eAAe,CAAC;QACtD,MAAM,aAAa,GAAwC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,MAAM,CACpE,iBAAiB,EACjB,6BAA6B,EAC7B,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;;;GAOG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,iBAAiB,CAAC;QACnE,MAAM,6BAA6B,GAAG,eAAe,CAAC;QACtD,MAAM,aAAa,GAAwC;YACzD,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,MAAM,CACpE,iBAAiB,EACjB,6BAA6B,EAC7B,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;QACrC,kCAAkC,EAAE,CAAC;IACvC,CAAC;CAAA;AAED,IAAI,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,53 @@
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 { LargeInstanceManagementClient } from "@azure/arm-largeinstance";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List the operations for the provider
17
+ *
18
+ * @summary List the operations for the provider
19
+ * x-ms-original-file: specification/azurelargeinstance/resource-manager/Microsoft.AzureLargeInstance/preview/2023-07-20-preview/examples/AzureLargeInstanceOperations_List.json
20
+ */
21
+ function operationsList() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["LARGEINSTANCE_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new LargeInstanceManagementClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
31
+ _c = _f.value;
32
+ _d = false;
33
+ let item = _c;
34
+ resArray.push(item);
35
+ }
36
+ }
37
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
38
+ finally {
39
+ try {
40
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
41
+ }
42
+ finally { if (e_1) throw e_1.error; }
43
+ }
44
+ console.log(resArray);
45
+ });
46
+ }
47
+ function main() {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ operationsList();
50
+ });
51
+ }
52
+ main().catch(console.error);
53
+ //# 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,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC;YAC5C,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAA3B,cAAwB;gBAAxB,WAAwB;gBAApC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference lib="esnext.asynciterable" />
2
+ export { getContinuationToken } from "./pagingHelper";
3
+ export * from "./models";
4
+ export { LargeInstanceManagementClient } from "./largeInstanceManagementClient";
5
+ export * from "./operationsInterfaces";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,13 @@
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
+ /// <reference lib="esnext.asynciterable" />
9
+ export { getContinuationToken } from "./pagingHelper";
10
+ export * from "./models";
11
+ export { LargeInstanceManagementClient } from "./largeInstanceManagementClient";
12
+ export * from "./operationsInterfaces";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, AzureLargeInstanceOperations, AzureLargeStorageInstanceOperations } from "./operationsInterfaces";
4
+ import { LargeInstanceManagementClientOptionalParams } from "./models";
5
+ export declare class LargeInstanceManagementClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the LargeInstanceManagementClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: LargeInstanceManagementClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ operations: Operations;
19
+ azureLargeInstanceOperations: AzureLargeInstanceOperations;
20
+ azureLargeStorageInstanceOperations: AzureLargeStorageInstanceOperations;
21
+ }
22
+ //# sourceMappingURL=largeInstanceManagementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"largeInstanceManagementClient.d.ts","sourceRoot":"","sources":["../../src/largeInstanceManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,mCAAmC,EACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAEvE,qBAAa,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2CAA2C;IAkFvD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,mCAAmC,EAAE,mCAAmC,CAAC;CAC1E"}