@azure/arm-storage 18.3.1-alpha.20250226.1 → 18.4.0-alpha.20250228.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 (181) hide show
  1. package/CHANGELOG.md +47 -9
  2. package/LICENSE +4 -4
  3. package/README.md +3 -1
  4. package/dist/browser/lroImpl.d.ts.map +1 -1
  5. package/dist/browser/lroImpl.js +7 -0
  6. package/dist/browser/lroImpl.js.map +1 -1
  7. package/dist/browser/models/index.d.ts +301 -6
  8. package/dist/browser/models/index.d.ts.map +1 -1
  9. package/dist/browser/models/index.js +12 -0
  10. package/dist/browser/models/index.js.map +1 -1
  11. package/dist/browser/models/mappers.d.ts +11 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -1
  13. package/dist/browser/models/mappers.js +431 -8
  14. package/dist/browser/models/mappers.js.map +1 -1
  15. package/dist/browser/models/parameters.d.ts +3 -2
  16. package/dist/browser/models/parameters.d.ts.map +1 -1
  17. package/dist/browser/models/parameters.js +22 -11
  18. package/dist/browser/models/parameters.js.map +1 -1
  19. package/dist/browser/operations/blobContainers.d.ts +9 -9
  20. package/dist/browser/operations/blobContainers.js +9 -9
  21. package/dist/browser/operations/blobContainers.js.map +1 -1
  22. package/dist/browser/operations/encryptionScopes.js +1 -1
  23. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  24. package/dist/browser/operations/fileServices.d.ts +46 -1
  25. package/dist/browser/operations/fileServices.d.ts.map +1 -1
  26. package/dist/browser/operations/fileServices.js +174 -0
  27. package/dist/browser/operations/fileServices.js.map +1 -1
  28. package/dist/browser/operations/localUsersOperations.js +1 -1
  29. package/dist/browser/operations/localUsersOperations.js.map +1 -1
  30. package/dist/browser/operations/storageAccounts.d.ts +2 -2
  31. package/dist/browser/operations/storageAccounts.js +2 -2
  32. package/dist/browser/operations/storageAccounts.js.map +1 -1
  33. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +1 -1
  34. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  35. package/dist/browser/operations/storageTaskAssignments.js +1 -1
  36. package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
  37. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  38. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  39. package/dist/browser/operationsInterfaces/blobContainers.d.ts +9 -9
  40. package/dist/browser/operationsInterfaces/blobContainers.js.map +1 -1
  41. package/dist/browser/operationsInterfaces/fileServices.d.ts +23 -1
  42. package/dist/browser/operationsInterfaces/fileServices.d.ts.map +1 -1
  43. package/dist/browser/operationsInterfaces/fileServices.js.map +1 -1
  44. package/dist/browser/operationsInterfaces/storageAccounts.d.ts +2 -2
  45. package/dist/browser/operationsInterfaces/storageAccounts.js.map +1 -1
  46. package/dist/browser/storageManagementClient.js +2 -2
  47. package/dist/browser/storageManagementClient.js.map +1 -1
  48. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  49. package/dist/commonjs/lroImpl.js +7 -0
  50. package/dist/commonjs/lroImpl.js.map +1 -1
  51. package/dist/commonjs/models/index.d.ts +301 -6
  52. package/dist/commonjs/models/index.d.ts.map +1 -1
  53. package/dist/commonjs/models/index.js +12 -0
  54. package/dist/commonjs/models/index.js.map +1 -1
  55. package/dist/commonjs/models/mappers.d.ts +11 -0
  56. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  57. package/dist/commonjs/models/mappers.js +436 -12
  58. package/dist/commonjs/models/mappers.js.map +1 -1
  59. package/dist/commonjs/models/parameters.d.ts +3 -2
  60. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  61. package/dist/commonjs/models/parameters.js +24 -13
  62. package/dist/commonjs/models/parameters.js.map +1 -1
  63. package/dist/commonjs/operations/blobContainers.d.ts +9 -9
  64. package/dist/commonjs/operations/blobContainers.js +9 -9
  65. package/dist/commonjs/operations/blobContainers.js.map +1 -1
  66. package/dist/commonjs/operations/encryptionScopes.js +1 -1
  67. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  68. package/dist/commonjs/operations/fileServices.d.ts +46 -1
  69. package/dist/commonjs/operations/fileServices.d.ts.map +1 -1
  70. package/dist/commonjs/operations/fileServices.js +173 -0
  71. package/dist/commonjs/operations/fileServices.js.map +1 -1
  72. package/dist/commonjs/operations/localUsersOperations.js +1 -1
  73. package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
  74. package/dist/commonjs/operations/storageAccounts.d.ts +2 -2
  75. package/dist/commonjs/operations/storageAccounts.js +2 -2
  76. package/dist/commonjs/operations/storageAccounts.js.map +1 -1
  77. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +1 -1
  78. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  79. package/dist/commonjs/operations/storageTaskAssignments.js +1 -1
  80. package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
  81. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  82. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  83. package/dist/commonjs/operationsInterfaces/blobContainers.d.ts +9 -9
  84. package/dist/commonjs/operationsInterfaces/blobContainers.js.map +1 -1
  85. package/dist/commonjs/operationsInterfaces/fileServices.d.ts +23 -1
  86. package/dist/commonjs/operationsInterfaces/fileServices.d.ts.map +1 -1
  87. package/dist/commonjs/operationsInterfaces/fileServices.js.map +1 -1
  88. package/dist/commonjs/operationsInterfaces/storageAccounts.d.ts +2 -2
  89. package/dist/commonjs/operationsInterfaces/storageAccounts.js.map +1 -1
  90. package/dist/commonjs/storageManagementClient.js +2 -2
  91. package/dist/commonjs/storageManagementClient.js.map +1 -1
  92. package/dist/esm/lroImpl.d.ts.map +1 -1
  93. package/dist/esm/lroImpl.js +7 -0
  94. package/dist/esm/lroImpl.js.map +1 -1
  95. package/dist/esm/models/index.d.ts +301 -6
  96. package/dist/esm/models/index.d.ts.map +1 -1
  97. package/dist/esm/models/index.js +12 -0
  98. package/dist/esm/models/index.js.map +1 -1
  99. package/dist/esm/models/mappers.d.ts +11 -0
  100. package/dist/esm/models/mappers.d.ts.map +1 -1
  101. package/dist/esm/models/mappers.js +431 -8
  102. package/dist/esm/models/mappers.js.map +1 -1
  103. package/dist/esm/models/parameters.d.ts +3 -2
  104. package/dist/esm/models/parameters.d.ts.map +1 -1
  105. package/dist/esm/models/parameters.js +22 -11
  106. package/dist/esm/models/parameters.js.map +1 -1
  107. package/dist/esm/operations/blobContainers.d.ts +9 -9
  108. package/dist/esm/operations/blobContainers.js +9 -9
  109. package/dist/esm/operations/blobContainers.js.map +1 -1
  110. package/dist/esm/operations/encryptionScopes.js +1 -1
  111. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  112. package/dist/esm/operations/fileServices.d.ts +46 -1
  113. package/dist/esm/operations/fileServices.d.ts.map +1 -1
  114. package/dist/esm/operations/fileServices.js +174 -0
  115. package/dist/esm/operations/fileServices.js.map +1 -1
  116. package/dist/esm/operations/localUsersOperations.js +1 -1
  117. package/dist/esm/operations/localUsersOperations.js.map +1 -1
  118. package/dist/esm/operations/storageAccounts.d.ts +2 -2
  119. package/dist/esm/operations/storageAccounts.js +2 -2
  120. package/dist/esm/operations/storageAccounts.js.map +1 -1
  121. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +1 -1
  122. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  123. package/dist/esm/operations/storageTaskAssignments.js +1 -1
  124. package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
  125. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  126. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  127. package/dist/esm/operationsInterfaces/blobContainers.d.ts +9 -9
  128. package/dist/esm/operationsInterfaces/blobContainers.js.map +1 -1
  129. package/dist/esm/operationsInterfaces/fileServices.d.ts +23 -1
  130. package/dist/esm/operationsInterfaces/fileServices.d.ts.map +1 -1
  131. package/dist/esm/operationsInterfaces/fileServices.js.map +1 -1
  132. package/dist/esm/operationsInterfaces/storageAccounts.d.ts +2 -2
  133. package/dist/esm/operationsInterfaces/storageAccounts.js.map +1 -1
  134. package/dist/esm/storageManagementClient.js +2 -2
  135. package/dist/esm/storageManagementClient.js.map +1 -1
  136. package/dist/react-native/lroImpl.d.ts.map +1 -1
  137. package/dist/react-native/lroImpl.js +7 -0
  138. package/dist/react-native/lroImpl.js.map +1 -1
  139. package/dist/react-native/models/index.d.ts +301 -6
  140. package/dist/react-native/models/index.d.ts.map +1 -1
  141. package/dist/react-native/models/index.js +12 -0
  142. package/dist/react-native/models/index.js.map +1 -1
  143. package/dist/react-native/models/mappers.d.ts +11 -0
  144. package/dist/react-native/models/mappers.d.ts.map +1 -1
  145. package/dist/react-native/models/mappers.js +431 -8
  146. package/dist/react-native/models/mappers.js.map +1 -1
  147. package/dist/react-native/models/parameters.d.ts +3 -2
  148. package/dist/react-native/models/parameters.d.ts.map +1 -1
  149. package/dist/react-native/models/parameters.js +22 -11
  150. package/dist/react-native/models/parameters.js.map +1 -1
  151. package/dist/react-native/operations/blobContainers.d.ts +9 -9
  152. package/dist/react-native/operations/blobContainers.js +9 -9
  153. package/dist/react-native/operations/blobContainers.js.map +1 -1
  154. package/dist/react-native/operations/encryptionScopes.js +1 -1
  155. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  156. package/dist/react-native/operations/fileServices.d.ts +46 -1
  157. package/dist/react-native/operations/fileServices.d.ts.map +1 -1
  158. package/dist/react-native/operations/fileServices.js +174 -0
  159. package/dist/react-native/operations/fileServices.js.map +1 -1
  160. package/dist/react-native/operations/localUsersOperations.js +1 -1
  161. package/dist/react-native/operations/localUsersOperations.js.map +1 -1
  162. package/dist/react-native/operations/storageAccounts.d.ts +2 -2
  163. package/dist/react-native/operations/storageAccounts.js +2 -2
  164. package/dist/react-native/operations/storageAccounts.js.map +1 -1
  165. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +1 -1
  166. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  167. package/dist/react-native/operations/storageTaskAssignments.js +1 -1
  168. package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
  169. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  170. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  171. package/dist/react-native/operationsInterfaces/blobContainers.d.ts +9 -9
  172. package/dist/react-native/operationsInterfaces/blobContainers.js.map +1 -1
  173. package/dist/react-native/operationsInterfaces/fileServices.d.ts +23 -1
  174. package/dist/react-native/operationsInterfaces/fileServices.d.ts.map +1 -1
  175. package/dist/react-native/operationsInterfaces/fileServices.js.map +1 -1
  176. package/dist/react-native/operationsInterfaces/storageAccounts.d.ts +2 -2
  177. package/dist/react-native/operationsInterfaces/storageAccounts.js.map +1 -1
  178. package/dist/react-native/storageManagementClient.js +2 -2
  179. package/dist/react-native/storageManagementClient.js.map +1 -1
  180. package/package.json +7 -7
  181. package/review/arm-storage.api.md +126 -0
@@ -9,9 +9,11 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.FileServicesImpl = void 0;
11
11
  const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
12
13
  const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
14
  const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
15
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
15
17
  /** Class containing FileServices operations. */
16
18
  class FileServicesImpl {
17
19
  /**
@@ -21,6 +23,72 @@ class FileServicesImpl {
21
23
  constructor(client) {
22
24
  this.client = client;
23
25
  }
26
+ /**
27
+ * Gets the usages of file service in storage account.
28
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
29
+ * case insensitive.
30
+ * @param accountName The name of the storage account within the specified resource group. Storage
31
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
32
+ * only.
33
+ * @param options The options parameters.
34
+ */
35
+ listServiceUsages(resourceGroupName, accountName, options) {
36
+ const iter = this.listServiceUsagesPagingAll(resourceGroupName, accountName, options);
37
+ return {
38
+ next() {
39
+ return iter.next();
40
+ },
41
+ [Symbol.asyncIterator]() {
42
+ return this;
43
+ },
44
+ byPage: (settings) => {
45
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ throw new Error("maxPageSize is not supported by this operation.");
47
+ }
48
+ return this.listServiceUsagesPagingPage(resourceGroupName, accountName, options, settings);
49
+ },
50
+ };
51
+ }
52
+ listServiceUsagesPagingPage(resourceGroupName, accountName, options, settings) {
53
+ return tslib_1.__asyncGenerator(this, arguments, function* listServiceUsagesPagingPage_1() {
54
+ let result;
55
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
+ if (!continuationToken) {
57
+ result = yield tslib_1.__await(this._listServiceUsages(resourceGroupName, accountName, options));
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield yield tslib_1.__await(page);
62
+ }
63
+ while (continuationToken) {
64
+ result = yield tslib_1.__await(this._listServiceUsagesNext(resourceGroupName, accountName, continuationToken, options));
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield yield tslib_1.__await(page);
69
+ }
70
+ });
71
+ }
72
+ listServiceUsagesPagingAll(resourceGroupName, accountName, options) {
73
+ return tslib_1.__asyncGenerator(this, arguments, function* listServiceUsagesPagingAll_1() {
74
+ var _a, e_1, _b, _c;
75
+ try {
76
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listServiceUsagesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
+ _c = _f.value;
78
+ _d = false;
79
+ const page = _c;
80
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
+ }
82
+ }
83
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
+ finally {
85
+ try {
86
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
+ }
88
+ finally { if (e_1) throw e_1.error; }
89
+ }
90
+ });
91
+ }
24
92
  /**
25
93
  * List all file services in storage accounts
26
94
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -61,6 +129,44 @@ class FileServicesImpl {
61
129
  getServiceProperties(resourceGroupName, accountName, options) {
62
130
  return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServicePropertiesOperationSpec);
63
131
  }
132
+ /**
133
+ * Gets the usages of file service in storage account.
134
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
135
+ * case insensitive.
136
+ * @param accountName The name of the storage account within the specified resource group. Storage
137
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
138
+ * only.
139
+ * @param options The options parameters.
140
+ */
141
+ _listServiceUsages(resourceGroupName, accountName, options) {
142
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listServiceUsagesOperationSpec);
143
+ }
144
+ /**
145
+ * Gets the usage of file service in storage account including account limits, file share limits and
146
+ * constants used in recommendations and bursting formula.
147
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
148
+ * case insensitive.
149
+ * @param accountName The name of the storage account within the specified resource group. Storage
150
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
151
+ * only.
152
+ * @param options The options parameters.
153
+ */
154
+ getServiceUsage(resourceGroupName, accountName, options) {
155
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServiceUsageOperationSpec);
156
+ }
157
+ /**
158
+ * ListServiceUsagesNext
159
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
160
+ * case insensitive.
161
+ * @param accountName The name of the storage account within the specified resource group. Storage
162
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
163
+ * only.
164
+ * @param nextLink The nextLink from the previous successful call to the ListServiceUsages method.
165
+ * @param options The options parameters.
166
+ */
167
+ _listServiceUsagesNext(resourceGroupName, accountName, nextLink, options) {
168
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listServiceUsagesNextOperationSpec);
169
+ }
64
170
  }
65
171
  exports.FileServicesImpl = FileServicesImpl;
66
172
  // Operation Specifications
@@ -132,4 +238,71 @@ const getServicePropertiesOperationSpec = {
132
238
  headerParameters: [Parameters.accept],
133
239
  serializer,
134
240
  };
241
+ const listServiceUsagesOperationSpec = {
242
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages",
243
+ httpMethod: "GET",
244
+ responses: {
245
+ 200: {
246
+ bodyMapper: Mappers.FileServiceUsages,
247
+ },
248
+ default: {
249
+ bodyMapper: Mappers.CloudError,
250
+ },
251
+ },
252
+ queryParameters: [Parameters.apiVersion, Parameters.maxpagesize1],
253
+ urlParameters: [
254
+ Parameters.$host,
255
+ Parameters.resourceGroupName,
256
+ Parameters.accountName,
257
+ Parameters.subscriptionId,
258
+ Parameters.fileServicesName,
259
+ ],
260
+ headerParameters: [Parameters.accept],
261
+ serializer,
262
+ };
263
+ const getServiceUsageOperationSpec = {
264
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages/{fileServiceUsagesName}",
265
+ httpMethod: "GET",
266
+ responses: {
267
+ 200: {
268
+ bodyMapper: Mappers.FileServiceUsage,
269
+ },
270
+ default: {
271
+ bodyMapper: Mappers.CloudError,
272
+ },
273
+ },
274
+ queryParameters: [Parameters.apiVersion],
275
+ urlParameters: [
276
+ Parameters.$host,
277
+ Parameters.resourceGroupName,
278
+ Parameters.accountName,
279
+ Parameters.subscriptionId,
280
+ Parameters.fileServicesName,
281
+ Parameters.fileServiceUsagesName,
282
+ ],
283
+ headerParameters: [Parameters.accept],
284
+ serializer,
285
+ };
286
+ const listServiceUsagesNextOperationSpec = {
287
+ path: "{nextLink}",
288
+ httpMethod: "GET",
289
+ responses: {
290
+ 200: {
291
+ bodyMapper: Mappers.FileServiceUsages,
292
+ },
293
+ default: {
294
+ bodyMapper: Mappers.CloudError,
295
+ },
296
+ },
297
+ urlParameters: [
298
+ Parameters.$host,
299
+ Parameters.resourceGroupName,
300
+ Parameters.accountName,
301
+ Parameters.subscriptionId,
302
+ Parameters.nextLink,
303
+ Parameters.fileServicesName,
304
+ ],
305
+ headerParameters: [Parameters.accept],
306
+ serializer,
307
+ };
135
308
  //# sourceMappingURL=fileServices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fileServices.js","sourceRoot":"","sources":["../../../src/operations/fileServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,gDAAgD;AAChD,MAAa,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,UAAiC,EACjC,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACvD,iCAAiC,CAClC,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAA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UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,8JAA8J;IACpK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { FileServices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n FileServicesListOptionalParams,\n FileServicesListResponse,\n FileServiceProperties,\n FileServicesSetServicePropertiesOptionalParams,\n FileServicesSetServicePropertiesResponse,\n FileServicesGetServicePropertiesOptionalParams,\n FileServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/** Class containing FileServices operations. */\nexport class FileServicesImpl implements FileServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class FileServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all file services in storage accounts\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListOptionalParams,\n ): Promise<FileServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The properties of file services in storage accounts, including CORS (Cross-Origin\n * Resource Sharing) rules.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: FileServiceProperties,\n options?: FileServicesSetServicePropertiesOptionalParams,\n ): Promise<FileServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getServiceProperties(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesGetServicePropertiesOptionalParams,\n ): Promise<FileServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceItems,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst setServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"fileServices.js","sourceRoot":"","sources":["../../../src/operations/fileServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,C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AU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { FileServices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n FileServiceUsage,\n FileServicesListServiceUsagesNextOptionalParams,\n FileServicesListServiceUsagesOptionalParams,\n FileServicesListServiceUsagesResponse,\n FileServicesListOptionalParams,\n FileServicesListResponse,\n FileServiceProperties,\n FileServicesSetServicePropertiesOptionalParams,\n FileServicesSetServicePropertiesResponse,\n FileServicesGetServicePropertiesOptionalParams,\n FileServicesGetServicePropertiesResponse,\n FileServicesGetServiceUsageOptionalParams,\n FileServicesGetServiceUsageResponse,\n FileServicesListServiceUsagesNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FileServices operations. */\nexport class FileServicesImpl implements FileServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class FileServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the usages of file service in storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public listServiceUsages(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): PagedAsyncIterableIterator<FileServiceUsage> {\n const iter = this.listServiceUsagesPagingAll(\n resourceGroupName,\n accountName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listServiceUsagesPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listServiceUsagesPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FileServiceUsage[]> {\n let result: FileServicesListServiceUsagesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listServiceUsages(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listServiceUsagesNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listServiceUsagesPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): AsyncIterableIterator<FileServiceUsage> {\n for await (const page of this.listServiceUsagesPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all file services in storage accounts\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListOptionalParams,\n ): Promise<FileServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The properties of file services in storage accounts, including CORS (Cross-Origin\n * Resource Sharing) rules.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: FileServiceProperties,\n options?: FileServicesSetServicePropertiesOptionalParams,\n ): Promise<FileServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getServiceProperties(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesGetServicePropertiesOptionalParams,\n ): Promise<FileServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the usages of file service in storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _listServiceUsages(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): Promise<FileServicesListServiceUsagesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listServiceUsagesOperationSpec,\n );\n }\n\n /**\n * Gets the usage of file service in storage account including account limits, file share limits and\n * constants used in recommendations and bursting formula.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getServiceUsage(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesGetServiceUsageOptionalParams,\n ): Promise<FileServicesGetServiceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServiceUsageOperationSpec,\n );\n }\n\n /**\n * ListServiceUsagesNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param nextLink The nextLink from the previous successful call to the ListServiceUsages method.\n * @param options The options parameters.\n */\n private _listServiceUsagesNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: FileServicesListServiceUsagesNextOptionalParams,\n ): Promise<FileServicesListServiceUsagesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listServiceUsagesNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceItems,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst setServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listServiceUsagesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsages,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxpagesize1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getServiceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages/{fileServiceUsagesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n Parameters.fileServiceUsagesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listServiceUsagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsages,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -177,7 +177,7 @@ const listOperationSpec = {
177
177
  queryParameters: [
178
178
  Parameters.apiVersion,
179
179
  Parameters.filter,
180
- Parameters.maxpagesize1,
180
+ Parameters.maxpagesize2,
181
181
  Parameters.include2,
182
182
  ],
183
183
  urlParameters: [
@@ -1 +1 @@
1
- {"version":3,"file":"localUsersOperations.js","sourceRoot":"","sources":["../../../src/operations/localUsersOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAiBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,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D,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,uKAAuK;IAC7K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { LocalUsersOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n LocalUser,\n LocalUsersListOptionalParams,\n LocalUsersListResponse,\n LocalUsersGetOptionalParams,\n LocalUsersGetResponse,\n LocalUsersCreateOrUpdateOptionalParams,\n LocalUsersCreateOrUpdateResponse,\n LocalUsersDeleteOptionalParams,\n LocalUsersListKeysOptionalParams,\n LocalUsersListKeysResponse,\n LocalUsersRegeneratePasswordOptionalParams,\n LocalUsersRegeneratePasswordResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LocalUsersOperations operations. */\nexport class LocalUsersOperationsImpl implements LocalUsersOperations {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class LocalUsersOperations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List the local users associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n ): PagedAsyncIterableIterator<LocalUser> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<LocalUser[]> {\n let result: LocalUsersListResponse;\n result = await this._list(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n ): AsyncIterableIterator<LocalUser> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List the local users associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n ): Promise<LocalUsersListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the local user of the storage account by username.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersGetOptionalParams,\n ): Promise<LocalUsersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the properties of a local user associated with the storage account. Properties for\n * NFSv3 enablement and extended groups cannot be set with other properties.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param properties The local user associated with a storage account.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n username: string,\n properties: LocalUser,\n options?: LocalUsersCreateOrUpdateOptionalParams,\n ): Promise<LocalUsersCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, properties, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the local user associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * List SSH authorized keys and shared key of the local user.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersListKeysOptionalParams,\n ): Promise<LocalUsersListKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n listKeysOperationSpec,\n );\n }\n\n /**\n * Regenerate the local user SSH password.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n regeneratePassword(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersRegeneratePasswordOptionalParams,\n ): Promise<LocalUsersRegeneratePasswordResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n regeneratePasswordOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUsers,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.maxpagesize1,\n Parameters.include2,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUser,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUser,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUserKeys,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst regeneratePasswordOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUserRegeneratePasswordResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"localUsersOperations.js","sourceRoot":"","sources":["../../../src/operations/localUsersOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAiBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAsC;QAEtC,MAAM,IAAI,GAA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AU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,uKAAuK;IAC7K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { LocalUsersOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n LocalUser,\n LocalUsersListOptionalParams,\n LocalUsersListResponse,\n LocalUsersGetOptionalParams,\n LocalUsersGetResponse,\n LocalUsersCreateOrUpdateOptionalParams,\n LocalUsersCreateOrUpdateResponse,\n LocalUsersDeleteOptionalParams,\n LocalUsersListKeysOptionalParams,\n LocalUsersListKeysResponse,\n LocalUsersRegeneratePasswordOptionalParams,\n LocalUsersRegeneratePasswordResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LocalUsersOperations operations. */\nexport class LocalUsersOperationsImpl implements LocalUsersOperations {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class LocalUsersOperations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List the local users associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n ): PagedAsyncIterableIterator<LocalUser> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<LocalUser[]> {\n let result: LocalUsersListResponse;\n result = await this._list(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n ): AsyncIterableIterator<LocalUser> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List the local users associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: LocalUsersListOptionalParams,\n ): Promise<LocalUsersListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the local user of the storage account by username.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersGetOptionalParams,\n ): Promise<LocalUsersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the properties of a local user associated with the storage account. Properties for\n * NFSv3 enablement and extended groups cannot be set with other properties.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param properties The local user associated with a storage account.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n username: string,\n properties: LocalUser,\n options?: LocalUsersCreateOrUpdateOptionalParams,\n ): Promise<LocalUsersCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, properties, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the local user associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * List SSH authorized keys and shared key of the local user.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersListKeysOptionalParams,\n ): Promise<LocalUsersListKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n listKeysOperationSpec,\n );\n }\n\n /**\n * Regenerate the local user SSH password.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param username The name of local user. The username must contain lowercase letters and numbers\n * only. It must be unique only within the storage account.\n * @param options The options parameters.\n */\n regeneratePassword(\n resourceGroupName: string,\n accountName: string,\n username: string,\n options?: LocalUsersRegeneratePasswordOptionalParams,\n ): Promise<LocalUsersRegeneratePasswordResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, username, options },\n regeneratePasswordOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUsers,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.maxpagesize2,\n Parameters.include2,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUser,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUser,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUserKeys,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst regeneratePasswordOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalUserRegeneratePasswordResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.username,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -172,7 +172,7 @@ export declare class StorageAccountsImpl implements StorageAccounts {
172
172
  * primary and secondary endpoints are available. The primary use case of a Planned Failover is
173
173
  * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
174
174
  * to 'Planned'. Learn more about the failover options here-
175
- * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
175
+ * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
176
176
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
177
177
  * case insensitive.
178
178
  * @param accountName The name of the storage account within the specified resource group. Storage
@@ -191,7 +191,7 @@ export declare class StorageAccountsImpl implements StorageAccounts {
191
191
  * primary and secondary endpoints are available. The primary use case of a Planned Failover is
192
192
  * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
193
193
  * to 'Planned'. Learn more about the failover options here-
194
- * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
194
+ * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
195
195
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
196
196
  * case insensitive.
197
197
  * @param accountName The name of the storage account within the specified resource group. Storage
@@ -351,7 +351,7 @@ class StorageAccountsImpl {
351
351
  * primary and secondary endpoints are available. The primary use case of a Planned Failover is
352
352
  * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
353
353
  * to 'Planned'. Learn more about the failover options here-
354
- * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
354
+ * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
355
355
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
356
356
  * case insensitive.
357
357
  * @param accountName The name of the storage account within the specified resource group. Storage
@@ -405,7 +405,7 @@ class StorageAccountsImpl {
405
405
  * primary and secondary endpoints are available. The primary use case of a Planned Failover is
406
406
  * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
407
407
  * to 'Planned'. Learn more about the failover options here-
408
- * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
408
+ * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
409
409
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
410
410
  * case insensitive.
411
411
  * @param accountName The name of the storage account within the specified resource group. Storage