@azure/arm-netapp 15.1.1 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/index.js +3787 -3016
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/accountBackupsDeleteSample.js +1 -1
  7. package/dist-esm/samples-dev/accountBackupsGetSample.js +1 -1
  8. package/dist-esm/samples-dev/accountBackupsListSample.js +1 -1
  9. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +1 -1
  10. package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
  11. package/dist-esm/samples-dev/accountsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +1 -1
  13. package/dist-esm/samples-dev/accountsListSample.js +1 -1
  14. package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
  15. package/dist-esm/samples-dev/backupPoliciesCreateSample.js +1 -1
  16. package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +1 -1
  17. package/dist-esm/samples-dev/backupPoliciesGetSample.js +1 -1
  18. package/dist-esm/samples-dev/backupPoliciesListSample.js +1 -1
  19. package/dist-esm/samples-dev/backupPoliciesUpdateSample.js +1 -1
  20. package/dist-esm/samples-dev/backupsCreateSample.js +1 -1
  21. package/dist-esm/samples-dev/backupsDeleteSample.js +1 -1
  22. package/dist-esm/samples-dev/backupsGetSample.js +1 -1
  23. package/dist-esm/samples-dev/backupsGetStatusSample.js +1 -1
  24. package/dist-esm/samples-dev/backupsGetVolumeRestoreStatusSample.js +1 -1
  25. package/dist-esm/samples-dev/backupsListSample.js +1 -1
  26. package/dist-esm/samples-dev/backupsUpdateSample.js +1 -1
  27. package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.js +1 -1
  28. package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.js +1 -1
  29. package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.js +1 -1
  30. package/dist-esm/samples-dev/netAppResourceQuotaLimitsGetSample.js +1 -1
  31. package/dist-esm/samples-dev/netAppResourceQuotaLimitsListSample.js +1 -1
  32. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  33. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/poolsDeleteSample.js +1 -1
  35. package/dist-esm/samples-dev/poolsGetSample.js +1 -1
  36. package/dist-esm/samples-dev/poolsListSample.js +1 -1
  37. package/dist-esm/samples-dev/poolsUpdateSample.js +1 -1
  38. package/dist-esm/samples-dev/snapshotPoliciesCreateSample.js +1 -1
  39. package/dist-esm/samples-dev/snapshotPoliciesDeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/snapshotPoliciesGetSample.js +1 -1
  41. package/dist-esm/samples-dev/snapshotPoliciesListSample.js +1 -1
  42. package/dist-esm/samples-dev/snapshotPoliciesListVolumesSample.js +1 -1
  43. package/dist-esm/samples-dev/snapshotPoliciesUpdateSample.js +1 -1
  44. package/dist-esm/samples-dev/snapshotsCreateSample.js +1 -1
  45. package/dist-esm/samples-dev/snapshotsDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/snapshotsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/snapshotsListSample.js +1 -1
  48. package/dist-esm/samples-dev/snapshotsRestoreFilesSample.js +1 -1
  49. package/dist-esm/samples-dev/snapshotsUpdateSample.js +1 -1
  50. package/dist-esm/samples-dev/subvolumesCreateSample.js +1 -1
  51. package/dist-esm/samples-dev/subvolumesDeleteSample.js +1 -1
  52. package/dist-esm/samples-dev/subvolumesGetMetadataSample.js +1 -1
  53. package/dist-esm/samples-dev/subvolumesGetSample.js +1 -1
  54. package/dist-esm/samples-dev/subvolumesListByVolumeSample.js +1 -1
  55. package/dist-esm/samples-dev/subvolumesUpdateSample.js +1 -1
  56. package/dist-esm/samples-dev/vaultsListSample.js +1 -1
  57. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +1 -1
  58. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +1 -1
  59. package/dist-esm/samples-dev/volumeGroupsGetSample.js +1 -1
  60. package/dist-esm/samples-dev/volumeGroupsListByNetAppAccountSample.js +1 -1
  61. package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.d.ts +2 -0
  62. package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.js +40 -0
  64. package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.js.map +1 -0
  65. package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.d.ts +2 -0
  66. package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.js +34 -0
  68. package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.js.map +1 -0
  69. package/dist-esm/samples-dev/volumeQuotaRulesGetSample.d.ts +2 -0
  70. package/dist-esm/samples-dev/volumeQuotaRulesGetSample.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/volumeQuotaRulesGetSample.js +34 -0
  72. package/dist-esm/samples-dev/volumeQuotaRulesGetSample.js.map +1 -0
  73. package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.d.ts +2 -0
  74. package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.d.ts.map +1 -0
  75. package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.js +47 -0
  76. package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.js.map +1 -0
  77. package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.d.ts +2 -0
  78. package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.js +35 -0
  80. package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.js.map +1 -0
  81. package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.js +1 -1
  82. package/dist-esm/samples-dev/volumesBreakReplicationSample.js +1 -1
  83. package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js +1 -1
  84. package/dist-esm/samples-dev/volumesDeleteReplicationSample.js +1 -1
  85. package/dist-esm/samples-dev/volumesDeleteSample.js +1 -1
  86. package/dist-esm/samples-dev/volumesFinalizeRelocationSample.d.ts +2 -0
  87. package/dist-esm/samples-dev/volumesFinalizeRelocationSample.d.ts.map +1 -0
  88. package/dist-esm/samples-dev/volumesFinalizeRelocationSample.js +33 -0
  89. package/dist-esm/samples-dev/volumesFinalizeRelocationSample.js.map +1 -0
  90. package/dist-esm/samples-dev/volumesGetSample.js +1 -1
  91. package/dist-esm/samples-dev/volumesListReplicationsSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/volumesListReplicationsSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/volumesListReplicationsSample.js +47 -0
  94. package/dist-esm/samples-dev/volumesListReplicationsSample.js.map +1 -0
  95. package/dist-esm/samples-dev/volumesListSample.js +1 -1
  96. package/dist-esm/samples-dev/volumesPoolChangeSample.js +1 -1
  97. package/dist-esm/samples-dev/volumesReInitializeReplicationSample.js +1 -1
  98. package/dist-esm/samples-dev/volumesRelocateSample.d.ts +2 -0
  99. package/dist-esm/samples-dev/volumesRelocateSample.d.ts.map +1 -0
  100. package/dist-esm/samples-dev/volumesRelocateSample.js +33 -0
  101. package/dist-esm/samples-dev/volumesRelocateSample.js.map +1 -0
  102. package/dist-esm/samples-dev/volumesReplicationStatusSample.js +1 -1
  103. package/dist-esm/samples-dev/volumesResetCifsPasswordSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/volumesResetCifsPasswordSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/volumesResetCifsPasswordSample.js +33 -0
  106. package/dist-esm/samples-dev/volumesResetCifsPasswordSample.js.map +1 -0
  107. package/dist-esm/samples-dev/volumesResyncReplicationSample.js +1 -1
  108. package/dist-esm/samples-dev/volumesRevertRelocationSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/volumesRevertRelocationSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/volumesRevertRelocationSample.js +33 -0
  111. package/dist-esm/samples-dev/volumesRevertRelocationSample.js.map +1 -0
  112. package/dist-esm/samples-dev/volumesRevertSample.js +1 -1
  113. package/dist-esm/samples-dev/volumesUpdateSample.js +1 -1
  114. package/dist-esm/src/models/index.d.ts +788 -747
  115. package/dist-esm/src/models/index.d.ts.map +1 -1
  116. package/dist-esm/src/models/index.js +18 -0
  117. package/dist-esm/src/models/index.js.map +1 -1
  118. package/dist-esm/src/models/mappers.d.ts +13 -6
  119. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  120. package/dist-esm/src/models/mappers.js +1839 -1923
  121. package/dist-esm/src/models/mappers.js.map +1 -1
  122. package/dist-esm/src/models/parameters.d.ts +5 -2
  123. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  124. package/dist-esm/src/models/parameters.js +23 -5
  125. package/dist-esm/src/models/parameters.js.map +1 -1
  126. package/dist-esm/src/netAppManagementClient.d.ts +4 -1
  127. package/dist-esm/src/netAppManagementClient.d.ts.map +1 -1
  128. package/dist-esm/src/netAppManagementClient.js +33 -3
  129. package/dist-esm/src/netAppManagementClient.js.map +1 -1
  130. package/dist-esm/src/operations/index.d.ts +1 -0
  131. package/dist-esm/src/operations/index.d.ts.map +1 -1
  132. package/dist-esm/src/operations/index.js +1 -0
  133. package/dist-esm/src/operations/index.js.map +1 -1
  134. package/dist-esm/src/operations/subvolumes.js +2 -2
  135. package/dist-esm/src/operations/volumeGroups.js +1 -1
  136. package/dist-esm/src/operations/volumeQuotaRules.d.ts +109 -0
  137. package/dist-esm/src/operations/volumeQuotaRules.d.ts.map +1 -0
  138. package/dist-esm/src/operations/volumeQuotaRules.js +429 -0
  139. package/dist-esm/src/operations/volumeQuotaRules.js.map +1 -0
  140. package/dist-esm/src/operations/volumes.d.ts +95 -1
  141. package/dist-esm/src/operations/volumes.d.ts.map +1 -1
  142. package/dist-esm/src/operations/volumes.js +360 -0
  143. package/dist-esm/src/operations/volumes.js.map +1 -1
  144. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  145. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  146. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  147. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  148. package/dist-esm/src/operationsInterfaces/volumeQuotaRules.d.ts +90 -0
  149. package/dist-esm/src/operationsInterfaces/volumeQuotaRules.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/volumeQuotaRules.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/volumeQuotaRules.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/volumes.d.ts +84 -1
  153. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
  154. package/dist-esm/test/sampleTest.js +11 -13
  155. package/dist-esm/test/sampleTest.js.map +1 -1
  156. package/package.json +9 -5
  157. package/review/arm-netapp.api.md +226 -107
  158. package/src/models/index.ts +903 -810
  159. package/src/models/mappers.ts +1977 -1961
  160. package/src/models/parameters.ts +27 -4
  161. package/src/netAppManagementClient.ts +40 -2
  162. package/src/operations/index.ts +1 -0
  163. package/src/operations/subvolumes.ts +2 -2
  164. package/src/operations/volumeGroups.ts +1 -1
  165. package/src/operations/volumeQuotaRules.ts +640 -0
  166. package/src/operations/volumes.ts +560 -0
  167. package/src/operationsInterfaces/index.ts +1 -0
  168. package/src/operationsInterfaces/volumeQuotaRules.ts +179 -0
  169. package/src/operationsInterfaces/volumes.ts +144 -1
  170. package/types/arm-netapp.d.ts +404 -163
@@ -0,0 +1,40 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create the specified quota rule within the given volume
15
+ *
16
+ * @summary Create the specified quota rule within the given volume
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Create.json
18
+ */
19
+ function volumeQuotaRulesCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "5275316f-a498-48d6-b324-2cbfdc4311b9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account-9957";
24
+ const poolName = "pool-5210";
25
+ const volumeName = "volume-6387";
26
+ const volumeQuotaRuleName = "rule-0004";
27
+ const body = {
28
+ location: "westus",
29
+ quotaSizeInKiBs: 100005,
30
+ quotaTarget: "1821",
31
+ quotaType: "IndividualUserQuota"
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new NetAppManagementClient(credential, subscriptionId);
35
+ const result = yield client.volumeQuotaRules.beginCreateAndWait(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body);
36
+ console.log(result);
37
+ });
38
+ }
39
+ volumeQuotaRulesCreate().catch(console.error);
40
+ //# sourceMappingURL=volumeQuotaRulesCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAmB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC;QACjC,MAAM,mBAAmB,GAAG,WAAW,CAAC;QACxC,MAAM,IAAI,GAAoB;YAC5B,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,MAAM;YACvB,WAAW,EAAE,MAAM;YACnB,SAAS,EAAE,qBAAqB;SACjC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,CAC7D,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,IAAI,CACL,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=volumeQuotaRulesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete quota rule
15
+ *
16
+ * @summary Delete quota rule
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Delete.json
18
+ */
19
+ function volumeQuotaRulesDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "5275316f-a498-48d6-b324-2cbfdc4311b9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account-9957";
24
+ const poolName = "pool-5210";
25
+ const volumeName = "volume-6387";
26
+ const volumeQuotaRuleName = "rule-0004";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new NetAppManagementClient(credential, subscriptionId);
29
+ const result = yield client.volumeQuotaRules.beginDeleteAndWait(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ volumeQuotaRulesDelete().catch(console.error);
34
+ //# sourceMappingURL=volumeQuotaRulesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC;QACjC,MAAM,mBAAmB,GAAG,WAAW,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,CAC7D,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,mBAAmB,CACpB,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=volumeQuotaRulesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get details of the specified quota rule
15
+ *
16
+ * @summary Get details of the specified quota rule
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Get.json
18
+ */
19
+ function volumeQuotaRulesGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "5275316f-a498-48d6-b324-2cbfdc4311b9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account-9957";
24
+ const poolName = "pool-5210";
25
+ const volumeName = "volume-6387";
26
+ const volumeQuotaRuleName = "rule-0004";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new NetAppManagementClient(credential, subscriptionId);
29
+ const result = yield client.volumeQuotaRules.get(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ volumeQuotaRulesGet().catch(console.error);
34
+ //# sourceMappingURL=volumeQuotaRulesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesGetSample.js","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC;QACjC,MAAM,mBAAmB,GAAG,WAAW,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAC9C,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,mBAAmB,CACpB,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=volumeQuotaRulesListByVolumeSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesListByVolumeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesListByVolumeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List all quota rules associated with the volume
15
+ *
16
+ * @summary List all quota rules associated with the volume
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_List.json
18
+ */
19
+ function volumeQuotaRulesList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "5275316f-a498-48d6-b324-2cbfdc4311b9";
23
+ const resourceGroupName = "myRG";
24
+ const accountName = "account-9957";
25
+ const poolName = "pool-5210";
26
+ const volumeName = "volume-6387";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new NetAppManagementClient(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _b = __asyncValues(client.volumeQuotaRules.listByVolume(resourceGroupName, accountName, poolName, volumeName)), _c; _c = yield _b.next(), !_c.done;) {
32
+ let item = _c.value;
33
+ resArray.push(item);
34
+ }
35
+ }
36
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
37
+ finally {
38
+ try {
39
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
40
+ }
41
+ finally { if (e_1) throw e_1.error; }
42
+ }
43
+ console.log(resArray);
44
+ });
45
+ }
46
+ volumeQuotaRulesList().catch(console.error);
47
+ //# sourceMappingURL=volumeQuotaRulesListByVolumeSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesListByVolumeSample.js","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesListByVolumeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,gBAAgB,CAAC,YAAY,CACzD,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAA,IAAA;gBALU,IAAI,IAAI,WAAA,CAAA;gBAMjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumeQuotaRulesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Patch a quota rule
15
+ *
16
+ * @summary Patch a quota rule
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/VolumeQuotaRules_Update.json
18
+ */
19
+ function volumeQuotaRulesUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "5275316f-a498-48d6-b324-2cbfdc4311b9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account-9957";
24
+ const poolName = "pool-5210";
25
+ const volumeName = "volume-6387";
26
+ const volumeQuotaRuleName = "rule-0004";
27
+ const body = { quotaSizeInKiBs: 100009 };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new NetAppManagementClient(credential, subscriptionId);
30
+ const result = yield client.volumeQuotaRules.beginUpdateAndWait(resourceGroupName, accountName, poolName, volumeName, volumeQuotaRuleName, body);
31
+ console.log(result);
32
+ });
33
+ }
34
+ volumeQuotaRulesUpdate().catch(console.error);
35
+ //# sourceMappingURL=volumeQuotaRulesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeQuotaRulesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeQuotaRulesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,QAAQ,GAAG,WAAW,CAAC;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC;QACjC,MAAM,mBAAmB,GAAG,WAAW,CAAC;QACxC,MAAM,IAAI,GAAyB,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,CAC7D,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Authorize the replication connection on the source volume
15
15
  *
16
16
  * @summary Authorize the replication connection on the source volume
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_AuthorizeReplication.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_AuthorizeReplication.json
18
18
  */
19
19
  function volumesAuthorizeReplication() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Break the replication connection on the destination volume
15
15
  *
16
16
  * @summary Break the replication connection on the destination volume
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BreakReplication.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_BreakReplication.json
18
18
  */
19
19
  function volumesBreakReplication() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Create or update the specified volume within the capacity pool
15
15
  *
16
16
  * @summary Create or update the specified volume within the capacity pool
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_CreateOrUpdate.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_CreateOrUpdate.json
18
18
  */
19
19
  function volumesCreateOrUpdate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication
15
15
  *
16
16
  * @summary Delete the replication connection on the destination volume, and send release to the source replication
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_DeleteReplication.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_DeleteReplication.json
18
18
  */
19
19
  function volumesDeleteReplication() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Delete the specified volume
15
15
  *
16
16
  * @summary Delete the specified volume
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Delete.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Delete.json
18
18
  */
19
19
  function volumesDelete() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesFinalizeRelocationSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesFinalizeRelocationSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesFinalizeRelocationSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume.
15
+ *
16
+ * @summary Finalizes the relocation of the volume and cleans up the old volume.
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_FinalizeRelocation.json
18
+ */
19
+ function volumesFinalizeRelocation() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account1";
24
+ const poolName = "pool1";
25
+ const volumeName = "volume1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new NetAppManagementClient(credential, subscriptionId);
28
+ const result = yield client.volumes.beginFinalizeRelocationAndWait(resourceGroupName, accountName, poolName, volumeName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ volumesFinalizeRelocation().catch(console.error);
33
+ //# sourceMappingURL=volumesFinalizeRelocationSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesFinalizeRelocationSample.js","sourceRoot":"","sources":["../../samples-dev/volumesFinalizeRelocationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,8BAA8B,CAChE,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Get the details of the specified volume
15
15
  *
16
16
  * @summary Get the details of the specified volume
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Get.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Get.json
18
18
  */
19
19
  function volumesGet() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesListReplicationsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesListReplicationsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesListReplicationsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List all replications for a specified volume
15
+ *
16
+ * @summary List all replications for a specified volume
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ListReplications.json
18
+ */
19
+ function volumesListReplications() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
23
+ const resourceGroupName = "myRG";
24
+ const accountName = "account1";
25
+ const poolName = "pool1";
26
+ const volumeName = "volume1";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new NetAppManagementClient(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _b = __asyncValues(client.volumes.listReplications(resourceGroupName, accountName, poolName, volumeName)), _c; _c = yield _b.next(), !_c.done;) {
32
+ let item = _c.value;
33
+ resArray.push(item);
34
+ }
35
+ }
36
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
37
+ finally {
38
+ try {
39
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
40
+ }
41
+ finally { if (e_1) throw e_1.error; }
42
+ }
43
+ console.log(resArray);
44
+ });
45
+ }
46
+ volumesListReplications().catch(console.error);
47
+ //# sourceMappingURL=volumesListReplicationsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesListReplicationsSample.js","sourceRoot":"","sources":["../../samples-dev/volumesListReplicationsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,OAAO,CAAC,gBAAgB,CACpD,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAA,IAAA;gBALU,IAAI,IAAI,WAAA,CAAA;gBAMjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to List all volumes within the capacity pool
15
15
  *
16
16
  * @summary List all volumes within the capacity pool
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_List.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_List.json
18
18
  */
19
19
  function volumesList() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Moves volume to another pool
15
15
  *
16
16
  * @summary Moves volume to another pool
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_PoolChange.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_PoolChange.json
18
18
  */
19
19
  function volumesAuthorizeReplication() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Re-Initializes the replication connection on the destination volume
15
15
  *
16
16
  * @summary Re-Initializes the replication connection on the destination volume
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReInitializeReplication.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ReInitializeReplication.json
18
18
  */
19
19
  function volumesReInitializeReplication() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesRelocateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesRelocateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesRelocateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Relocates volume to a new stamp
15
+ *
16
+ * @summary Relocates volume to a new stamp
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_Relocate.json
18
+ */
19
+ function volumesRelocate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account1";
24
+ const poolName = "pool1";
25
+ const volumeName = "volume1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new NetAppManagementClient(credential, subscriptionId);
28
+ const result = yield client.volumes.beginRelocateAndWait(resourceGroupName, accountName, poolName, volumeName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ volumesRelocate().catch(console.error);
33
+ //# sourceMappingURL=volumesRelocateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesRelocateSample.js","sourceRoot":"","sources":["../../samples-dev/volumesRelocateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,oBAAoB,CACtD,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Get the status of the replication
15
15
  *
16
16
  * @summary Get the status of the replication
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReplicationStatus.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ReplicationStatus.json
18
18
  */
19
19
  function volumesReplicationStatus() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesResetCifsPasswordSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesResetCifsPasswordSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesResetCifsPasswordSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Reset cifs password from volume
15
+ *
16
+ * @summary Reset cifs password from volume
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ResetCifsPassword.json
18
+ */
19
+ function volumesResetCifsPassword() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account1";
24
+ const poolName = "pool1";
25
+ const volumeName = "volume1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new NetAppManagementClient(credential, subscriptionId);
28
+ const result = yield client.volumes.beginResetCifsPasswordAndWait(resourceGroupName, accountName, poolName, volumeName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ volumesResetCifsPassword().catch(console.error);
33
+ //# sourceMappingURL=volumesResetCifsPasswordSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesResetCifsPasswordSample.js","sourceRoot":"","sources":["../../samples-dev/volumesResetCifsPasswordSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,6BAA6B,CAC/D,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source.
15
15
  *
16
16
  * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source.
17
- * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ResyncReplication.json
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_ResyncReplication.json
18
18
  */
19
19
  function volumesResyncReplication() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesRevertRelocationSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesRevertRelocationSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesRevertRelocationSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { NetAppManagementClient } from "@azure/arm-netapp";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
15
+ *
16
+ * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
17
+ * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-01-01/examples/Volumes_RevertRelocation.json
18
+ */
19
+ function volumesRevertRelocation() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
22
+ const resourceGroupName = "myRG";
23
+ const accountName = "account1";
24
+ const poolName = "pool1";
25
+ const volumeName = "volume1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new NetAppManagementClient(credential, subscriptionId);
28
+ const result = yield client.volumes.beginRevertRelocationAndWait(resourceGroupName, accountName, poolName, volumeName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ volumesRevertRelocation().catch(console.error);
33
+ //# sourceMappingURL=volumesRevertRelocationSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesRevertRelocationSample.js","sourceRoot":"","sources":["../../samples-dev/volumesRevertRelocationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,MAAM,CAAC;QACjC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAC9D,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}