@azure/arm-storage 17.0.1-alpha.20220128.2 → 17.1.0-alpha.20220215.3

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 (70) hide show
  1. package/CHANGELOG.md +42 -11
  2. package/LICENSE +1 -1
  3. package/dist/index.js +836 -452
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/models/index.d.ts +147 -21
  8. package/dist-esm/src/models/index.d.ts.map +1 -1
  9. package/dist-esm/src/models/index.js +12 -0
  10. package/dist-esm/src/models/index.js.map +1 -1
  11. package/dist-esm/src/models/mappers.d.ts +6 -2
  12. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  13. package/dist-esm/src/models/mappers.js +241 -53
  14. package/dist-esm/src/models/mappers.js.map +1 -1
  15. package/dist-esm/src/models/parameters.d.ts +2 -0
  16. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  17. package/dist-esm/src/models/parameters.js +20 -2
  18. package/dist-esm/src/models/parameters.js.map +1 -1
  19. package/dist-esm/src/operations/fileServices.js +3 -3
  20. package/dist-esm/src/operations/fileServices.js.map +1 -1
  21. package/dist-esm/src/operations/fileShares.js +8 -8
  22. package/dist-esm/src/operations/fileShares.js.map +1 -1
  23. package/dist-esm/src/operations/index.d.ts +1 -0
  24. package/dist-esm/src/operations/index.d.ts.map +1 -1
  25. package/dist-esm/src/operations/index.js +1 -0
  26. package/dist-esm/src/operations/index.js.map +1 -1
  27. package/dist-esm/src/operations/localUsersOperations.d.ts +97 -0
  28. package/dist-esm/src/operations/localUsersOperations.d.ts.map +1 -0
  29. package/dist-esm/src/operations/localUsersOperations.js +287 -0
  30. package/dist-esm/src/operations/localUsersOperations.js.map +1 -0
  31. package/dist-esm/src/operations/queue.js +6 -6
  32. package/dist-esm/src/operations/queue.js.map +1 -1
  33. package/dist-esm/src/operations/queueServices.js +3 -3
  34. package/dist-esm/src/operations/queueServices.js.map +1 -1
  35. package/dist-esm/src/operations/tableOperations.js +6 -6
  36. package/dist-esm/src/operations/tableOperations.js.map +1 -1
  37. package/dist-esm/src/operations/tableServices.js +3 -3
  38. package/dist-esm/src/operations/tableServices.js.map +1 -1
  39. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  40. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  41. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  42. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  43. package/dist-esm/src/operationsInterfaces/localUsersOperations.d.ts +77 -0
  44. package/dist-esm/src/operationsInterfaces/localUsersOperations.d.ts.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/localUsersOperations.js +9 -0
  46. package/dist-esm/src/operationsInterfaces/localUsersOperations.js.map +1 -0
  47. package/dist-esm/src/storageManagementClient.d.ts +2 -1
  48. package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
  49. package/dist-esm/src/storageManagementClient.js +4 -3
  50. package/dist-esm/src/storageManagementClient.js.map +1 -1
  51. package/dist-esm/test/storage_examples.js +1 -1
  52. package/dist-esm/test/storage_examples.js.map +1 -1
  53. package/package.json +21 -7
  54. package/review/arm-storage.api.md +126 -13
  55. package/src/models/index.ts +168 -23
  56. package/src/models/mappers.ts +260 -55
  57. package/src/models/parameters.ts +22 -1
  58. package/src/operations/fileServices.ts +3 -3
  59. package/src/operations/fileShares.ts +8 -8
  60. package/src/operations/index.ts +1 -0
  61. package/src/operations/localUsersOperations.ts +371 -0
  62. package/src/operations/queue.ts +6 -6
  63. package/src/operations/queueServices.ts +3 -3
  64. package/src/operations/tableOperations.ts +6 -6
  65. package/src/operations/tableServices.ts +3 -3
  66. package/src/operationsInterfaces/index.ts +1 -0
  67. package/src/operationsInterfaces/localUsersOperations.ts +128 -0
  68. package/src/storageManagementClient.ts +6 -2
  69. package/tsconfig.json +18 -5
  70. package/types/arm-storage.d.ts +244 -23
@@ -0,0 +1,371 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { LocalUsersOperations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { StorageManagementClient } from "../storageManagementClient";
15
+ import {
16
+ LocalUser,
17
+ LocalUsersListOptionalParams,
18
+ LocalUsersListResponse,
19
+ LocalUsersGetOptionalParams,
20
+ LocalUsersGetResponse,
21
+ LocalUsersCreateOrUpdateOptionalParams,
22
+ LocalUsersCreateOrUpdateResponse,
23
+ LocalUsersDeleteOptionalParams,
24
+ LocalUsersListKeysOptionalParams,
25
+ LocalUsersListKeysResponse,
26
+ LocalUsersRegeneratePasswordOptionalParams,
27
+ LocalUsersRegeneratePasswordResponse
28
+ } from "../models";
29
+
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing LocalUsersOperations operations. */
32
+ export class LocalUsersOperationsImpl implements LocalUsersOperations {
33
+ private readonly client: StorageManagementClient;
34
+
35
+ /**
36
+ * Initialize a new instance of the class LocalUsersOperations class.
37
+ * @param client Reference to the service client
38
+ */
39
+ constructor(client: StorageManagementClient) {
40
+ this.client = client;
41
+ }
42
+
43
+ /**
44
+ * List the local users associated with the storage account.
45
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
46
+ * case insensitive.
47
+ * @param accountName The name of the storage account within the specified resource group. Storage
48
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
49
+ * only.
50
+ * @param options The options parameters.
51
+ */
52
+ public list(
53
+ resourceGroupName: string,
54
+ accountName: string,
55
+ options?: LocalUsersListOptionalParams
56
+ ): PagedAsyncIterableIterator<LocalUser> {
57
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
58
+ return {
59
+ next() {
60
+ return iter.next();
61
+ },
62
+ [Symbol.asyncIterator]() {
63
+ return this;
64
+ },
65
+ byPage: () => {
66
+ return this.listPagingPage(resourceGroupName, accountName, options);
67
+ }
68
+ };
69
+ }
70
+
71
+ private async *listPagingPage(
72
+ resourceGroupName: string,
73
+ accountName: string,
74
+ options?: LocalUsersListOptionalParams
75
+ ): AsyncIterableIterator<LocalUser[]> {
76
+ let result = await this._list(resourceGroupName, accountName, options);
77
+ yield result.value || [];
78
+ }
79
+
80
+ private async *listPagingAll(
81
+ resourceGroupName: string,
82
+ accountName: string,
83
+ options?: LocalUsersListOptionalParams
84
+ ): AsyncIterableIterator<LocalUser> {
85
+ for await (const page of this.listPagingPage(
86
+ resourceGroupName,
87
+ accountName,
88
+ options
89
+ )) {
90
+ yield* page;
91
+ }
92
+ }
93
+
94
+ /**
95
+ * List the local users associated with the storage account.
96
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
97
+ * case insensitive.
98
+ * @param accountName The name of the storage account within the specified resource group. Storage
99
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
100
+ * only.
101
+ * @param options The options parameters.
102
+ */
103
+ private _list(
104
+ resourceGroupName: string,
105
+ accountName: string,
106
+ options?: LocalUsersListOptionalParams
107
+ ): Promise<LocalUsersListResponse> {
108
+ return this.client.sendOperationRequest(
109
+ { resourceGroupName, accountName, options },
110
+ listOperationSpec
111
+ );
112
+ }
113
+
114
+ /**
115
+ * Get the local user of the storage account by username.
116
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
117
+ * case insensitive.
118
+ * @param accountName The name of the storage account within the specified resource group. Storage
119
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
120
+ * only.
121
+ * @param username The name of local user. The username must contain lowercase letters and numbers
122
+ * only. It must be unique only within the storage account.
123
+ * @param options The options parameters.
124
+ */
125
+ get(
126
+ resourceGroupName: string,
127
+ accountName: string,
128
+ username: string,
129
+ options?: LocalUsersGetOptionalParams
130
+ ): Promise<LocalUsersGetResponse> {
131
+ return this.client.sendOperationRequest(
132
+ { resourceGroupName, accountName, username, options },
133
+ getOperationSpec
134
+ );
135
+ }
136
+
137
+ /**
138
+ * Create or update the properties of a local user associated with the storage account
139
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
140
+ * case insensitive.
141
+ * @param accountName The name of the storage account within the specified resource group. Storage
142
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
143
+ * only.
144
+ * @param username The name of local user. The username must contain lowercase letters and numbers
145
+ * only. It must be unique only within the storage account.
146
+ * @param properties The local user associated with a storage account.
147
+ * @param options The options parameters.
148
+ */
149
+ createOrUpdate(
150
+ resourceGroupName: string,
151
+ accountName: string,
152
+ username: string,
153
+ properties: LocalUser,
154
+ options?: LocalUsersCreateOrUpdateOptionalParams
155
+ ): Promise<LocalUsersCreateOrUpdateResponse> {
156
+ return this.client.sendOperationRequest(
157
+ { resourceGroupName, accountName, username, properties, options },
158
+ createOrUpdateOperationSpec
159
+ );
160
+ }
161
+
162
+ /**
163
+ * Deletes the local user associated with the specified storage account.
164
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
165
+ * case insensitive.
166
+ * @param accountName The name of the storage account within the specified resource group. Storage
167
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
168
+ * only.
169
+ * @param username The name of local user. The username must contain lowercase letters and numbers
170
+ * only. It must be unique only within the storage account.
171
+ * @param options The options parameters.
172
+ */
173
+ delete(
174
+ resourceGroupName: string,
175
+ accountName: string,
176
+ username: string,
177
+ options?: LocalUsersDeleteOptionalParams
178
+ ): Promise<void> {
179
+ return this.client.sendOperationRequest(
180
+ { resourceGroupName, accountName, username, options },
181
+ deleteOperationSpec
182
+ );
183
+ }
184
+
185
+ /**
186
+ * List SSH authorized keys and shared key of the local user.
187
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
188
+ * case insensitive.
189
+ * @param accountName The name of the storage account within the specified resource group. Storage
190
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
191
+ * only.
192
+ * @param username The name of local user. The username must contain lowercase letters and numbers
193
+ * only. It must be unique only within the storage account.
194
+ * @param options The options parameters.
195
+ */
196
+ listKeys(
197
+ resourceGroupName: string,
198
+ accountName: string,
199
+ username: string,
200
+ options?: LocalUsersListKeysOptionalParams
201
+ ): Promise<LocalUsersListKeysResponse> {
202
+ return this.client.sendOperationRequest(
203
+ { resourceGroupName, accountName, username, options },
204
+ listKeysOperationSpec
205
+ );
206
+ }
207
+
208
+ /**
209
+ * Regenerate the local user SSH password.
210
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
211
+ * case insensitive.
212
+ * @param accountName The name of the storage account within the specified resource group. Storage
213
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
214
+ * only.
215
+ * @param username The name of local user. The username must contain lowercase letters and numbers
216
+ * only. It must be unique only within the storage account.
217
+ * @param options The options parameters.
218
+ */
219
+ regeneratePassword(
220
+ resourceGroupName: string,
221
+ accountName: string,
222
+ username: string,
223
+ options?: LocalUsersRegeneratePasswordOptionalParams
224
+ ): Promise<LocalUsersRegeneratePasswordResponse> {
225
+ return this.client.sendOperationRequest(
226
+ { resourceGroupName, accountName, username, options },
227
+ regeneratePasswordOperationSpec
228
+ );
229
+ }
230
+ }
231
+ // Operation Specifications
232
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
233
+
234
+ const listOperationSpec: coreClient.OperationSpec = {
235
+ path:
236
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers",
237
+ httpMethod: "GET",
238
+ responses: {
239
+ 200: {
240
+ bodyMapper: Mappers.LocalUsers
241
+ },
242
+ default: {
243
+ bodyMapper: Mappers.ErrorResponse
244
+ }
245
+ },
246
+ queryParameters: [Parameters.apiVersion],
247
+ urlParameters: [
248
+ Parameters.$host,
249
+ Parameters.subscriptionId,
250
+ Parameters.resourceGroupName,
251
+ Parameters.accountName1
252
+ ],
253
+ headerParameters: [Parameters.accept],
254
+ serializer
255
+ };
256
+ const getOperationSpec: coreClient.OperationSpec = {
257
+ path:
258
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
259
+ httpMethod: "GET",
260
+ responses: {
261
+ 200: {
262
+ bodyMapper: Mappers.LocalUser
263
+ },
264
+ default: {
265
+ bodyMapper: Mappers.ErrorResponse
266
+ }
267
+ },
268
+ queryParameters: [Parameters.apiVersion],
269
+ urlParameters: [
270
+ Parameters.$host,
271
+ Parameters.subscriptionId,
272
+ Parameters.resourceGroupName,
273
+ Parameters.accountName1,
274
+ Parameters.username
275
+ ],
276
+ headerParameters: [Parameters.accept],
277
+ serializer
278
+ };
279
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
280
+ path:
281
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
282
+ httpMethod: "PUT",
283
+ responses: {
284
+ 200: {
285
+ bodyMapper: Mappers.LocalUser
286
+ },
287
+ default: {
288
+ bodyMapper: Mappers.ErrorResponse
289
+ }
290
+ },
291
+ requestBody: Parameters.properties4,
292
+ queryParameters: [Parameters.apiVersion],
293
+ urlParameters: [
294
+ Parameters.$host,
295
+ Parameters.subscriptionId,
296
+ Parameters.resourceGroupName,
297
+ Parameters.accountName1,
298
+ Parameters.username
299
+ ],
300
+ headerParameters: [Parameters.accept, Parameters.contentType],
301
+ mediaType: "json",
302
+ serializer
303
+ };
304
+ const deleteOperationSpec: coreClient.OperationSpec = {
305
+ path:
306
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
307
+ httpMethod: "DELETE",
308
+ responses: {
309
+ 200: {},
310
+ 204: {},
311
+ default: {
312
+ bodyMapper: Mappers.ErrorResponse
313
+ }
314
+ },
315
+ queryParameters: [Parameters.apiVersion],
316
+ urlParameters: [
317
+ Parameters.$host,
318
+ Parameters.subscriptionId,
319
+ Parameters.resourceGroupName,
320
+ Parameters.accountName1,
321
+ Parameters.username
322
+ ],
323
+ headerParameters: [Parameters.accept],
324
+ serializer
325
+ };
326
+ const listKeysOperationSpec: coreClient.OperationSpec = {
327
+ path:
328
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys",
329
+ httpMethod: "POST",
330
+ responses: {
331
+ 200: {
332
+ bodyMapper: Mappers.LocalUserKeys
333
+ },
334
+ default: {
335
+ bodyMapper: Mappers.ErrorResponse
336
+ }
337
+ },
338
+ queryParameters: [Parameters.apiVersion],
339
+ urlParameters: [
340
+ Parameters.$host,
341
+ Parameters.subscriptionId,
342
+ Parameters.resourceGroupName,
343
+ Parameters.accountName1,
344
+ Parameters.username
345
+ ],
346
+ headerParameters: [Parameters.accept],
347
+ serializer
348
+ };
349
+ const regeneratePasswordOperationSpec: coreClient.OperationSpec = {
350
+ path:
351
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword",
352
+ httpMethod: "POST",
353
+ responses: {
354
+ 200: {
355
+ bodyMapper: Mappers.LocalUserRegeneratePasswordResult
356
+ },
357
+ default: {
358
+ bodyMapper: Mappers.ErrorResponse
359
+ }
360
+ },
361
+ queryParameters: [Parameters.apiVersion],
362
+ urlParameters: [
363
+ Parameters.$host,
364
+ Parameters.subscriptionId,
365
+ Parameters.resourceGroupName,
366
+ Parameters.accountName1,
367
+ Parameters.username
368
+ ],
369
+ headerParameters: [Parameters.accept],
370
+ serializer
371
+ };
@@ -257,7 +257,7 @@ const createOperationSpec: coreClient.OperationSpec = {
257
257
  bodyMapper: Mappers.StorageQueue
258
258
  },
259
259
  default: {
260
- bodyMapper: Mappers.CloudErrorAutoGenerated
260
+ bodyMapper: Mappers.CloudError
261
261
  }
262
262
  },
263
263
  requestBody: Parameters.queue,
@@ -282,7 +282,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
282
282
  bodyMapper: Mappers.StorageQueue
283
283
  },
284
284
  default: {
285
- bodyMapper: Mappers.CloudErrorAutoGenerated
285
+ bodyMapper: Mappers.CloudError
286
286
  }
287
287
  },
288
288
  requestBody: Parameters.queue,
@@ -307,7 +307,7 @@ const getOperationSpec: coreClient.OperationSpec = {
307
307
  bodyMapper: Mappers.StorageQueue
308
308
  },
309
309
  default: {
310
- bodyMapper: Mappers.CloudErrorAutoGenerated
310
+ bodyMapper: Mappers.CloudError
311
311
  }
312
312
  },
313
313
  queryParameters: [Parameters.apiVersion],
@@ -328,7 +328,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
328
328
  responses: {
329
329
  204: {},
330
330
  default: {
331
- bodyMapper: Mappers.CloudErrorAutoGenerated
331
+ bodyMapper: Mappers.CloudError
332
332
  }
333
333
  },
334
334
  queryParameters: [Parameters.apiVersion],
@@ -351,7 +351,7 @@ const listOperationSpec: coreClient.OperationSpec = {
351
351
  bodyMapper: Mappers.ListQueueResource
352
352
  },
353
353
  default: {
354
- bodyMapper: Mappers.CloudErrorAutoGenerated
354
+ bodyMapper: Mappers.CloudError
355
355
  }
356
356
  },
357
357
  queryParameters: [
@@ -376,7 +376,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
376
376
  bodyMapper: Mappers.ListQueueResource
377
377
  },
378
378
  default: {
379
- bodyMapper: Mappers.CloudErrorAutoGenerated
379
+ bodyMapper: Mappers.CloudError
380
380
  }
381
381
  },
382
382
  queryParameters: [
@@ -110,7 +110,7 @@ const listOperationSpec: coreClient.OperationSpec = {
110
110
  bodyMapper: Mappers.ListQueueServices
111
111
  },
112
112
  default: {
113
- bodyMapper: Mappers.CloudErrorAutoGenerated
113
+ bodyMapper: Mappers.CloudError
114
114
  }
115
115
  },
116
116
  queryParameters: [Parameters.apiVersion],
@@ -132,7 +132,7 @@ const setServicePropertiesOperationSpec: coreClient.OperationSpec = {
132
132
  bodyMapper: Mappers.QueueServiceProperties
133
133
  },
134
134
  default: {
135
- bodyMapper: Mappers.CloudErrorAutoGenerated
135
+ bodyMapper: Mappers.CloudError
136
136
  }
137
137
  },
138
138
  requestBody: Parameters.parameters10,
@@ -157,7 +157,7 @@ const getServicePropertiesOperationSpec: coreClient.OperationSpec = {
157
157
  bodyMapper: Mappers.QueueServiceProperties
158
158
  },
159
159
  default: {
160
- bodyMapper: Mappers.CloudErrorAutoGenerated
160
+ bodyMapper: Mappers.CloudError
161
161
  }
162
162
  },
163
163
  queryParameters: [Parameters.apiVersion],
@@ -252,7 +252,7 @@ const createOperationSpec: coreClient.OperationSpec = {
252
252
  bodyMapper: Mappers.Table
253
253
  },
254
254
  default: {
255
- bodyMapper: Mappers.CloudErrorAutoGenerated
255
+ bodyMapper: Mappers.CloudError
256
256
  }
257
257
  },
258
258
  queryParameters: [Parameters.apiVersion],
@@ -275,7 +275,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
275
275
  bodyMapper: Mappers.Table
276
276
  },
277
277
  default: {
278
- bodyMapper: Mappers.CloudErrorAutoGenerated
278
+ bodyMapper: Mappers.CloudError
279
279
  }
280
280
  },
281
281
  queryParameters: [Parameters.apiVersion],
@@ -298,7 +298,7 @@ const getOperationSpec: coreClient.OperationSpec = {
298
298
  bodyMapper: Mappers.Table
299
299
  },
300
300
  default: {
301
- bodyMapper: Mappers.CloudErrorAutoGenerated
301
+ bodyMapper: Mappers.CloudError
302
302
  }
303
303
  },
304
304
  queryParameters: [Parameters.apiVersion],
@@ -319,7 +319,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
319
319
  responses: {
320
320
  204: {},
321
321
  default: {
322
- bodyMapper: Mappers.CloudErrorAutoGenerated
322
+ bodyMapper: Mappers.CloudError
323
323
  }
324
324
  },
325
325
  queryParameters: [Parameters.apiVersion],
@@ -342,7 +342,7 @@ const listOperationSpec: coreClient.OperationSpec = {
342
342
  bodyMapper: Mappers.ListTableResource
343
343
  },
344
344
  default: {
345
- bodyMapper: Mappers.CloudErrorAutoGenerated
345
+ bodyMapper: Mappers.CloudError
346
346
  }
347
347
  },
348
348
  queryParameters: [Parameters.apiVersion],
@@ -363,7 +363,7 @@ const listNextOperationSpec: coreClient.OperationSpec = {
363
363
  bodyMapper: Mappers.ListTableResource
364
364
  },
365
365
  default: {
366
- bodyMapper: Mappers.CloudErrorAutoGenerated
366
+ bodyMapper: Mappers.CloudError
367
367
  }
368
368
  },
369
369
  queryParameters: [Parameters.apiVersion],
@@ -110,7 +110,7 @@ const listOperationSpec: coreClient.OperationSpec = {
110
110
  bodyMapper: Mappers.ListTableServices
111
111
  },
112
112
  default: {
113
- bodyMapper: Mappers.CloudErrorAutoGenerated
113
+ bodyMapper: Mappers.CloudError
114
114
  }
115
115
  },
116
116
  queryParameters: [Parameters.apiVersion],
@@ -132,7 +132,7 @@ const setServicePropertiesOperationSpec: coreClient.OperationSpec = {
132
132
  bodyMapper: Mappers.TableServiceProperties
133
133
  },
134
134
  default: {
135
- bodyMapper: Mappers.CloudErrorAutoGenerated
135
+ bodyMapper: Mappers.CloudError
136
136
  }
137
137
  },
138
138
  requestBody: Parameters.parameters11,
@@ -157,7 +157,7 @@ const getServicePropertiesOperationSpec: coreClient.OperationSpec = {
157
157
  bodyMapper: Mappers.TableServiceProperties
158
158
  },
159
159
  default: {
160
- bodyMapper: Mappers.CloudErrorAutoGenerated
160
+ bodyMapper: Mappers.CloudError
161
161
  }
162
162
  },
163
163
  queryParameters: [Parameters.apiVersion],
@@ -16,6 +16,7 @@ export * from "./blobInventoryPolicies";
16
16
  export * from "./privateEndpointConnections";
17
17
  export * from "./privateLinkResources";
18
18
  export * from "./objectReplicationPoliciesOperations";
19
+ export * from "./localUsersOperations";
19
20
  export * from "./encryptionScopes";
20
21
  export * from "./blobServices";
21
22
  export * from "./blobContainers";
@@ -0,0 +1,128 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ LocalUser,
12
+ LocalUsersListOptionalParams,
13
+ LocalUsersGetOptionalParams,
14
+ LocalUsersGetResponse,
15
+ LocalUsersCreateOrUpdateOptionalParams,
16
+ LocalUsersCreateOrUpdateResponse,
17
+ LocalUsersDeleteOptionalParams,
18
+ LocalUsersListKeysOptionalParams,
19
+ LocalUsersListKeysResponse,
20
+ LocalUsersRegeneratePasswordOptionalParams,
21
+ LocalUsersRegeneratePasswordResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a LocalUsersOperations. */
26
+ export interface LocalUsersOperations {
27
+ /**
28
+ * List the local users associated with the storage account.
29
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
30
+ * case insensitive.
31
+ * @param accountName The name of the storage account within the specified resource group. Storage
32
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
33
+ * only.
34
+ * @param options The options parameters.
35
+ */
36
+ list(
37
+ resourceGroupName: string,
38
+ accountName: string,
39
+ options?: LocalUsersListOptionalParams
40
+ ): PagedAsyncIterableIterator<LocalUser>;
41
+ /**
42
+ * Get the local user of the storage account by username.
43
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
44
+ * case insensitive.
45
+ * @param accountName The name of the storage account within the specified resource group. Storage
46
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
47
+ * only.
48
+ * @param username The name of local user. The username must contain lowercase letters and numbers
49
+ * only. It must be unique only within the storage account.
50
+ * @param options The options parameters.
51
+ */
52
+ get(
53
+ resourceGroupName: string,
54
+ accountName: string,
55
+ username: string,
56
+ options?: LocalUsersGetOptionalParams
57
+ ): Promise<LocalUsersGetResponse>;
58
+ /**
59
+ * Create or update the properties of a local user associated with the storage account
60
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
61
+ * case insensitive.
62
+ * @param accountName The name of the storage account within the specified resource group. Storage
63
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
64
+ * only.
65
+ * @param username The name of local user. The username must contain lowercase letters and numbers
66
+ * only. It must be unique only within the storage account.
67
+ * @param properties The local user associated with a storage account.
68
+ * @param options The options parameters.
69
+ */
70
+ createOrUpdate(
71
+ resourceGroupName: string,
72
+ accountName: string,
73
+ username: string,
74
+ properties: LocalUser,
75
+ options?: LocalUsersCreateOrUpdateOptionalParams
76
+ ): Promise<LocalUsersCreateOrUpdateResponse>;
77
+ /**
78
+ * Deletes the local user associated with the specified storage account.
79
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
80
+ * case insensitive.
81
+ * @param accountName The name of the storage account within the specified resource group. Storage
82
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
83
+ * only.
84
+ * @param username The name of local user. The username must contain lowercase letters and numbers
85
+ * only. It must be unique only within the storage account.
86
+ * @param options The options parameters.
87
+ */
88
+ delete(
89
+ resourceGroupName: string,
90
+ accountName: string,
91
+ username: string,
92
+ options?: LocalUsersDeleteOptionalParams
93
+ ): Promise<void>;
94
+ /**
95
+ * List SSH authorized keys and shared key of the local user.
96
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
97
+ * case insensitive.
98
+ * @param accountName The name of the storage account within the specified resource group. Storage
99
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
100
+ * only.
101
+ * @param username The name of local user. The username must contain lowercase letters and numbers
102
+ * only. It must be unique only within the storage account.
103
+ * @param options The options parameters.
104
+ */
105
+ listKeys(
106
+ resourceGroupName: string,
107
+ accountName: string,
108
+ username: string,
109
+ options?: LocalUsersListKeysOptionalParams
110
+ ): Promise<LocalUsersListKeysResponse>;
111
+ /**
112
+ * Regenerate the local user SSH password.
113
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
114
+ * case insensitive.
115
+ * @param accountName The name of the storage account within the specified resource group. Storage
116
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
117
+ * only.
118
+ * @param username The name of local user. The username must contain lowercase letters and numbers
119
+ * only. It must be unique only within the storage account.
120
+ * @param options The options parameters.
121
+ */
122
+ regeneratePassword(
123
+ resourceGroupName: string,
124
+ accountName: string,
125
+ username: string,
126
+ options?: LocalUsersRegeneratePasswordOptionalParams
127
+ ): Promise<LocalUsersRegeneratePasswordResponse>;
128
+ }