@azure/arm-storage-profile-2020-09-01-hybrid 1.1.1 → 2.0.1-alpha.20220315.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 (264) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +80 -80
  4. package/dist/index.js +5576 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1772 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +185 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +84 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +1591 -1449
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +30 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +242 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/blobInventoryPolicies.d.ts +73 -0
  29. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
  30. package/dist-esm/src/operations/blobInventoryPolicies.js +221 -0
  31. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
  32. package/dist-esm/src/operations/encryptionScopes.d.ts +94 -0
  33. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
  34. package/dist-esm/src/operations/encryptionScopes.js +278 -0
  35. package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +4 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/managementPolicies.d.ts +50 -0
  41. package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
  42. package/dist-esm/src/operations/managementPolicies.js +126 -0
  43. package/dist-esm/src/operations/managementPolicies.js.map +1 -0
  44. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts +74 -0
  45. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +222 -0
  47. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
  48. package/dist-esm/src/operations/operations.d.ts +26 -0
  49. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/operations.js +87 -0
  51. package/dist-esm/src/operations/operations.js.map +1 -0
  52. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  53. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateEndpointConnections.js +228 -0
  55. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  56. package/dist-esm/src/operations/privateLinkResources.d.ts +23 -0
  57. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  58. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  59. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  60. package/dist-esm/src/operations/skus.d.ts +26 -0
  61. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  62. package/dist-esm/src/operations/skus.js +87 -0
  63. package/dist-esm/src/operations/skus.js.map +1 -0
  64. package/dist-esm/src/operations/storageAccounts.d.ts +228 -0
  65. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  66. package/dist-esm/src/operations/storageAccounts.js +722 -0
  67. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  68. package/dist-esm/src/operations/usages.d.ts +28 -0
  69. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  70. package/dist-esm/src/operations/usages.js +93 -0
  71. package/dist-esm/src/operations/usages.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts +53 -0
  73. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +63 -0
  77. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
  81. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/index.js +18 -0
  83. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts +42 -0
  85. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/managementPolicies.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +54 -0
  89. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +53 -0
  97. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  101. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  105. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +196 -0
  109. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  113. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  116. package/dist-esm/src/storageManagementClient.d.ts +27 -0
  117. package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
  118. package/dist-esm/src/storageManagementClient.js +60 -0
  119. package/dist-esm/src/storageManagementClient.js.map +1 -0
  120. package/dist-esm/test/sampleTest.d.ts +2 -0
  121. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  122. package/dist-esm/test/sampleTest.js +40 -0
  123. package/dist-esm/test/sampleTest.js.map +1 -0
  124. package/package.json +74 -23
  125. package/review/arm-storage-profile-2020-09-01-hybrid.api.md +1396 -0
  126. package/rollup.config.js +115 -30
  127. package/src/index.ts +12 -0
  128. package/src/lroImpl.ts +34 -0
  129. package/src/models/index.ts +1411 -2087
  130. package/src/models/mappers.ts +1470 -1320
  131. package/src/models/parameters.ts +186 -76
  132. package/src/operations/blobInventoryPolicies.ts +282 -0
  133. package/src/operations/encryptionScopes.ts +238 -295
  134. package/src/operations/index.ts +4 -5
  135. package/src/operations/managementPolicies.ts +108 -182
  136. package/src/operations/objectReplicationPoliciesOperations.ts +186 -234
  137. package/src/operations/operations.ts +66 -45
  138. package/src/operations/privateEndpointConnections.ts +182 -221
  139. package/src/operations/privateLinkResources.ts +43 -67
  140. package/src/operations/skus.ts +64 -48
  141. package/src/operations/storageAccounts.ts +759 -838
  142. package/src/operations/usages.ts +78 -52
  143. package/src/operationsInterfaces/blobInventoryPolicies.ts +91 -0
  144. package/src/operationsInterfaces/encryptionScopes.ts +102 -0
  145. package/src/operationsInterfaces/index.ts +18 -0
  146. package/src/operationsInterfaces/managementPolicies.ts +74 -0
  147. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +91 -0
  148. package/src/operationsInterfaces/operations.ts +22 -0
  149. package/src/operationsInterfaces/privateEndpointConnections.ts +90 -0
  150. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  151. package/src/operationsInterfaces/skus.ts +22 -0
  152. package/src/operationsInterfaces/storageAccounts.ts +319 -0
  153. package/src/operationsInterfaces/usages.ts +24 -0
  154. package/src/storageManagementClient.ts +104 -51
  155. package/tsconfig.json +14 -6
  156. package/types/arm-storage-profile-2020-09-01-hybrid.d.ts +2508 -0
  157. package/types/tsdoc-metadata.json +11 -0
  158. package/dist/arm-storage-profile-2020-09-01-hybrid.js +0 -5027
  159. package/dist/arm-storage-profile-2020-09-01-hybrid.js.map +0 -1
  160. package/dist/arm-storage-profile-2020-09-01-hybrid.min.js +0 -1
  161. package/dist/arm-storage-profile-2020-09-01-hybrid.min.js.map +0 -1
  162. package/esm/models/encryptionScopesMappers.d.ts +0 -2
  163. package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
  164. package/esm/models/encryptionScopesMappers.js +0 -9
  165. package/esm/models/encryptionScopesMappers.js.map +0 -1
  166. package/esm/models/index.d.ts +0 -2493
  167. package/esm/models/index.d.ts.map +0 -1
  168. package/esm/models/index.js +0 -8
  169. package/esm/models/index.js.map +0 -1
  170. package/esm/models/managementPoliciesMappers.d.ts +0 -2
  171. package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
  172. package/esm/models/managementPoliciesMappers.js +0 -9
  173. package/esm/models/managementPoliciesMappers.js.map +0 -1
  174. package/esm/models/mappers.d.ts +0 -79
  175. package/esm/models/mappers.d.ts.map +0 -1
  176. package/esm/models/mappers.js.map +0 -1
  177. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
  178. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
  179. package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
  180. package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
  181. package/esm/models/operationsMappers.d.ts +0 -2
  182. package/esm/models/operationsMappers.d.ts.map +0 -1
  183. package/esm/models/operationsMappers.js +0 -9
  184. package/esm/models/operationsMappers.js.map +0 -1
  185. package/esm/models/parameters.d.ts +0 -15
  186. package/esm/models/parameters.d.ts.map +0 -1
  187. package/esm/models/parameters.js +0 -176
  188. package/esm/models/parameters.js.map +0 -1
  189. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  190. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  191. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  192. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  193. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  194. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  195. package/esm/models/privateLinkResourcesMappers.js +0 -9
  196. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  197. package/esm/models/skusMappers.d.ts +0 -2
  198. package/esm/models/skusMappers.d.ts.map +0 -1
  199. package/esm/models/skusMappers.js +0 -9
  200. package/esm/models/skusMappers.js.map +0 -1
  201. package/esm/models/storageAccountsMappers.d.ts +0 -2
  202. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  203. package/esm/models/storageAccountsMappers.js +0 -9
  204. package/esm/models/storageAccountsMappers.js.map +0 -1
  205. package/esm/models/usagesMappers.d.ts +0 -2
  206. package/esm/models/usagesMappers.d.ts.map +0 -1
  207. package/esm/models/usagesMappers.js +0 -9
  208. package/esm/models/usagesMappers.js.map +0 -1
  209. package/esm/operations/encryptionScopes.d.ts +0 -196
  210. package/esm/operations/encryptionScopes.d.ts.map +0 -1
  211. package/esm/operations/encryptionScopes.js +0 -197
  212. package/esm/operations/encryptionScopes.js.map +0 -1
  213. package/esm/operations/index.d.ts.map +0 -1
  214. package/esm/operations/index.js.map +0 -1
  215. package/esm/operations/managementPolicies.d.ts +0 -109
  216. package/esm/operations/managementPolicies.d.ts.map +0 -1
  217. package/esm/operations/managementPolicies.js +0 -130
  218. package/esm/operations/managementPolicies.js.map +0 -1
  219. package/esm/operations/objectReplicationPoliciesOperations.d.ts +0 -157
  220. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
  221. package/esm/operations/objectReplicationPoliciesOperations.js +0 -162
  222. package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
  223. package/esm/operations/operations.d.ts +0 -28
  224. package/esm/operations/operations.d.ts.map +0 -1
  225. package/esm/operations/operations.js +0 -51
  226. package/esm/operations/operations.js.map +0 -1
  227. package/esm/operations/privateEndpointConnections.d.ts +0 -154
  228. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  229. package/esm/operations/privateEndpointConnections.js +0 -162
  230. package/esm/operations/privateEndpointConnections.js.map +0 -1
  231. package/esm/operations/privateLinkResources.d.ts +0 -43
  232. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  233. package/esm/operations/privateLinkResources.js +0 -58
  234. package/esm/operations/privateLinkResources.js.map +0 -1
  235. package/esm/operations/skus.d.ts +0 -28
  236. package/esm/operations/skus.d.ts.map +0 -1
  237. package/esm/operations/skus.js +0 -54
  238. package/esm/operations/skus.js.map +0 -1
  239. package/esm/operations/storageAccounts.d.ts +0 -436
  240. package/esm/operations/storageAccounts.d.ts.map +0 -1
  241. package/esm/operations/storageAccounts.js +0 -611
  242. package/esm/operations/storageAccounts.js.map +0 -1
  243. package/esm/operations/usages.d.ts +0 -32
  244. package/esm/operations/usages.d.ts.map +0 -1
  245. package/esm/operations/usages.js +0 -56
  246. package/esm/operations/usages.js.map +0 -1
  247. package/esm/storageManagementClient.d.ts +0 -32
  248. package/esm/storageManagementClient.d.ts.map +0 -1
  249. package/esm/storageManagementClient.js +0 -46
  250. package/esm/storageManagementClient.js.map +0 -1
  251. package/esm/storageManagementClientContext.d.ts +0 -22
  252. package/esm/storageManagementClientContext.d.ts.map +0 -1
  253. package/esm/storageManagementClientContext.js +0 -61
  254. package/esm/storageManagementClientContext.js.map +0 -1
  255. package/src/models/encryptionScopesMappers.ts +0 -59
  256. package/src/models/managementPoliciesMappers.ts +0 -57
  257. package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -58
  258. package/src/models/operationsMappers.ts +0 -17
  259. package/src/models/privateEndpointConnectionsMappers.ts +0 -59
  260. package/src/models/privateLinkResourcesMappers.ts +0 -58
  261. package/src/models/skusMappers.ts +0 -15
  262. package/src/models/storageAccountsMappers.ts +0 -69
  263. package/src/models/usagesMappers.ts +0 -14
  264. package/src/storageManagementClientContext.ts +0 -68
@@ -1,83 +1,109 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/usagesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Usages } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import { StorageManagementClient } from "../storageManagementClient";
15
+ import {
16
+ Usage,
17
+ UsagesListByLocationOptionalParams,
18
+ UsagesListByLocationResponse
19
+ } from "../models";
16
20
 
17
- /** Class representing a Usages. */
18
- export class Usages {
19
- private readonly client: StorageManagementClientContext;
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Class containing Usages operations. */
23
+ export class UsagesImpl implements Usages {
24
+ private readonly client: StorageManagementClient;
20
25
 
21
26
  /**
22
- * Create a Usages.
23
- * @param {StorageManagementClientContext} client Reference to the service client.
27
+ * Initialize a new instance of the class Usages class.
28
+ * @param client Reference to the service client
24
29
  */
25
- constructor(client: StorageManagementClientContext) {
30
+ constructor(client: StorageManagementClient) {
26
31
  this.client = client;
27
32
  }
28
33
 
29
34
  /**
30
- * Gets the current usage count and the limit for the resources of the location under the
31
- * subscription.
35
+ * Gets the current usage count and the limit for the resources of the location under the subscription.
32
36
  * @param location The location of the Azure Storage resource.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.UsagesListByLocationResponse>
37
+ * @param options The options parameters.
35
38
  */
36
- listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise<Models.UsagesListByLocationResponse>;
37
- /**
38
- * @param location The location of the Azure Storage resource.
39
- * @param callback The callback
40
- */
41
- listByLocation(location: string, callback: msRest.ServiceCallback<Models.UsageListResult>): void;
39
+ public listByLocation(
40
+ location: string,
41
+ options?: UsagesListByLocationOptionalParams
42
+ ): PagedAsyncIterableIterator<Usage> {
43
+ const iter = this.listByLocationPagingAll(location, options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
+ },
48
+ [Symbol.asyncIterator]() {
49
+ return this;
50
+ },
51
+ byPage: () => {
52
+ return this.listByLocationPagingPage(location, options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listByLocationPagingPage(
58
+ location: string,
59
+ options?: UsagesListByLocationOptionalParams
60
+ ): AsyncIterableIterator<Usage[]> {
61
+ let result = await this._listByLocation(location, options);
62
+ yield result.value || [];
63
+ }
64
+
65
+ private async *listByLocationPagingAll(
66
+ location: string,
67
+ options?: UsagesListByLocationOptionalParams
68
+ ): AsyncIterableIterator<Usage> {
69
+ for await (const page of this.listByLocationPagingPage(location, options)) {
70
+ yield* page;
71
+ }
72
+ }
73
+
42
74
  /**
75
+ * Gets the current usage count and the limit for the resources of the location under the subscription.
43
76
  * @param location The location of the Azure Storage resource.
44
- * @param options The optional parameters
45
- * @param callback The callback
77
+ * @param options The options parameters.
46
78
  */
47
- listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UsageListResult>): void;
48
- listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UsageListResult>, callback?: msRest.ServiceCallback<Models.UsageListResult>): Promise<Models.UsagesListByLocationResponse> {
79
+ private _listByLocation(
80
+ location: string,
81
+ options?: UsagesListByLocationOptionalParams
82
+ ): Promise<UsagesListByLocationResponse> {
49
83
  return this.client.sendOperationRequest(
50
- {
51
- location,
52
- options
53
- },
54
- listByLocationOperationSpec,
55
- callback) as Promise<Models.UsagesListByLocationResponse>;
84
+ { location, options },
85
+ listByLocationOperationSpec
86
+ );
56
87
  }
57
88
  }
58
-
59
89
  // Operation Specifications
60
- const serializer = new msRest.Serializer(Mappers);
61
- const listByLocationOperationSpec: msRest.OperationSpec = {
90
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
91
+
92
+ const listByLocationOperationSpec: coreClient.OperationSpec = {
93
+ path:
94
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages",
62
95
  httpMethod: "GET",
63
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages",
64
- urlParameters: [
65
- Parameters.subscriptionId,
66
- Parameters.location
67
- ],
68
- queryParameters: [
69
- Parameters.apiVersion
70
- ],
71
- headerParameters: [
72
- Parameters.acceptLanguage
73
- ],
74
96
  responses: {
75
97
  200: {
76
98
  bodyMapper: Mappers.UsageListResult
77
- },
78
- default: {
79
- bodyMapper: Mappers.CloudError
80
99
  }
81
100
  },
101
+ queryParameters: [Parameters.apiVersion],
102
+ urlParameters: [
103
+ Parameters.$host,
104
+ Parameters.subscriptionId,
105
+ Parameters.location
106
+ ],
107
+ headerParameters: [Parameters.accept],
82
108
  serializer
83
109
  };
@@ -0,0 +1,91 @@
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
+ BlobInventoryPolicy,
12
+ BlobInventoryPoliciesListOptionalParams,
13
+ BlobInventoryPolicyName,
14
+ BlobInventoryPoliciesGetOptionalParams,
15
+ BlobInventoryPoliciesGetResponse,
16
+ BlobInventoryPoliciesCreateOrUpdateOptionalParams,
17
+ BlobInventoryPoliciesCreateOrUpdateResponse,
18
+ BlobInventoryPoliciesDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a BlobInventoryPolicies. */
23
+ export interface BlobInventoryPolicies {
24
+ /**
25
+ * Gets the blob inventory policy associated with the specified storage account.
26
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
27
+ * case insensitive.
28
+ * @param accountName The name of the storage account within the specified resource group. Storage
29
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
30
+ * only.
31
+ * @param options The options parameters.
32
+ */
33
+ list(
34
+ resourceGroupName: string,
35
+ accountName: string,
36
+ options?: BlobInventoryPoliciesListOptionalParams
37
+ ): PagedAsyncIterableIterator<BlobInventoryPolicy>;
38
+ /**
39
+ * Gets the blob inventory policy associated with the specified storage account.
40
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
41
+ * case insensitive.
42
+ * @param accountName The name of the storage account within the specified resource group. Storage
43
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
44
+ * only.
45
+ * @param blobInventoryPolicyName The name of the storage account blob inventory policy. It should
46
+ * always be 'default'
47
+ * @param options The options parameters.
48
+ */
49
+ get(
50
+ resourceGroupName: string,
51
+ accountName: string,
52
+ blobInventoryPolicyName: BlobInventoryPolicyName,
53
+ options?: BlobInventoryPoliciesGetOptionalParams
54
+ ): Promise<BlobInventoryPoliciesGetResponse>;
55
+ /**
56
+ * Sets the blob inventory policy to the specified storage account.
57
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
58
+ * case insensitive.
59
+ * @param accountName The name of the storage account within the specified resource group. Storage
60
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
61
+ * only.
62
+ * @param blobInventoryPolicyName The name of the storage account blob inventory policy. It should
63
+ * always be 'default'
64
+ * @param properties The blob inventory policy set to a storage account.
65
+ * @param options The options parameters.
66
+ */
67
+ createOrUpdate(
68
+ resourceGroupName: string,
69
+ accountName: string,
70
+ blobInventoryPolicyName: BlobInventoryPolicyName,
71
+ properties: BlobInventoryPolicy,
72
+ options?: BlobInventoryPoliciesCreateOrUpdateOptionalParams
73
+ ): Promise<BlobInventoryPoliciesCreateOrUpdateResponse>;
74
+ /**
75
+ * Deletes the blob inventory policy associated with the specified storage account.
76
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
77
+ * case insensitive.
78
+ * @param accountName The name of the storage account within the specified resource group. Storage
79
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
80
+ * only.
81
+ * @param blobInventoryPolicyName The name of the storage account blob inventory policy. It should
82
+ * always be 'default'
83
+ * @param options The options parameters.
84
+ */
85
+ delete(
86
+ resourceGroupName: string,
87
+ accountName: string,
88
+ blobInventoryPolicyName: BlobInventoryPolicyName,
89
+ options?: BlobInventoryPoliciesDeleteOptionalParams
90
+ ): Promise<void>;
91
+ }
@@ -0,0 +1,102 @@
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
+ EncryptionScope,
12
+ EncryptionScopesListOptionalParams,
13
+ EncryptionScopesPutOptionalParams,
14
+ EncryptionScopesPutResponse,
15
+ EncryptionScopesPatchOptionalParams,
16
+ EncryptionScopesPatchResponse,
17
+ EncryptionScopesGetOptionalParams,
18
+ EncryptionScopesGetResponse
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a EncryptionScopes. */
23
+ export interface EncryptionScopes {
24
+ /**
25
+ * Lists all the encryption scopes available under the specified storage account.
26
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
27
+ * case insensitive.
28
+ * @param accountName The name of the storage account within the specified resource group. Storage
29
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
30
+ * only.
31
+ * @param options The options parameters.
32
+ */
33
+ list(
34
+ resourceGroupName: string,
35
+ accountName: string,
36
+ options?: EncryptionScopesListOptionalParams
37
+ ): PagedAsyncIterableIterator<EncryptionScope>;
38
+ /**
39
+ * Synchronously creates or updates an encryption scope under the specified storage account. If an
40
+ * encryption scope is already created and a subsequent request is issued with different properties,
41
+ * the encryption scope properties will be updated per the specified request.
42
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
43
+ * case insensitive.
44
+ * @param accountName The name of the storage account within the specified resource group. Storage
45
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
46
+ * only.
47
+ * @param encryptionScopeName The name of the encryption scope within the specified storage account.
48
+ * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case
49
+ * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a
50
+ * letter or number.
51
+ * @param encryptionScope Encryption scope properties to be used for the create or update.
52
+ * @param options The options parameters.
53
+ */
54
+ put(
55
+ resourceGroupName: string,
56
+ accountName: string,
57
+ encryptionScopeName: string,
58
+ encryptionScope: EncryptionScope,
59
+ options?: EncryptionScopesPutOptionalParams
60
+ ): Promise<EncryptionScopesPutResponse>;
61
+ /**
62
+ * Update encryption scope properties as specified in the request body. Update fails if the specified
63
+ * encryption scope does not already exist.
64
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
65
+ * case insensitive.
66
+ * @param accountName The name of the storage account within the specified resource group. Storage
67
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
68
+ * only.
69
+ * @param encryptionScopeName The name of the encryption scope within the specified storage account.
70
+ * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case
71
+ * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a
72
+ * letter or number.
73
+ * @param encryptionScope Encryption scope properties to be used for the update.
74
+ * @param options The options parameters.
75
+ */
76
+ patch(
77
+ resourceGroupName: string,
78
+ accountName: string,
79
+ encryptionScopeName: string,
80
+ encryptionScope: EncryptionScope,
81
+ options?: EncryptionScopesPatchOptionalParams
82
+ ): Promise<EncryptionScopesPatchResponse>;
83
+ /**
84
+ * Returns the properties for the specified encryption scope.
85
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
86
+ * case insensitive.
87
+ * @param accountName The name of the storage account within the specified resource group. Storage
88
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
89
+ * only.
90
+ * @param encryptionScopeName The name of the encryption scope within the specified storage account.
91
+ * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case
92
+ * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a
93
+ * letter or number.
94
+ * @param options The options parameters.
95
+ */
96
+ get(
97
+ resourceGroupName: string,
98
+ accountName: string,
99
+ encryptionScopeName: string,
100
+ options?: EncryptionScopesGetOptionalParams
101
+ ): Promise<EncryptionScopesGetResponse>;
102
+ }
@@ -0,0 +1,18 @@
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
+ export * from "./operations";
10
+ export * from "./skus";
11
+ export * from "./storageAccounts";
12
+ export * from "./usages";
13
+ export * from "./managementPolicies";
14
+ export * from "./blobInventoryPolicies";
15
+ export * from "./privateEndpointConnections";
16
+ export * from "./privateLinkResources";
17
+ export * from "./objectReplicationPoliciesOperations";
18
+ export * from "./encryptionScopes";
@@ -0,0 +1,74 @@
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 {
10
+ ManagementPolicyName,
11
+ ManagementPoliciesGetOptionalParams,
12
+ ManagementPoliciesGetResponse,
13
+ ManagementPolicy,
14
+ ManagementPoliciesCreateOrUpdateOptionalParams,
15
+ ManagementPoliciesCreateOrUpdateResponse,
16
+ ManagementPoliciesDeleteOptionalParams
17
+ } from "../models";
18
+
19
+ /** Interface representing a ManagementPolicies. */
20
+ export interface ManagementPolicies {
21
+ /**
22
+ * Gets the managementpolicy associated with the specified storage account.
23
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
24
+ * case insensitive.
25
+ * @param accountName The name of the storage account within the specified resource group. Storage
26
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
27
+ * only.
28
+ * @param managementPolicyName The name of the Storage Account Management Policy. It should always be
29
+ * 'default'
30
+ * @param options The options parameters.
31
+ */
32
+ get(
33
+ resourceGroupName: string,
34
+ accountName: string,
35
+ managementPolicyName: ManagementPolicyName,
36
+ options?: ManagementPoliciesGetOptionalParams
37
+ ): Promise<ManagementPoliciesGetResponse>;
38
+ /**
39
+ * Sets the managementpolicy to the specified storage account.
40
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
41
+ * case insensitive.
42
+ * @param accountName The name of the storage account within the specified resource group. Storage
43
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
44
+ * only.
45
+ * @param managementPolicyName The name of the Storage Account Management Policy. It should always be
46
+ * 'default'
47
+ * @param properties The ManagementPolicy set to a storage account.
48
+ * @param options The options parameters.
49
+ */
50
+ createOrUpdate(
51
+ resourceGroupName: string,
52
+ accountName: string,
53
+ managementPolicyName: ManagementPolicyName,
54
+ properties: ManagementPolicy,
55
+ options?: ManagementPoliciesCreateOrUpdateOptionalParams
56
+ ): Promise<ManagementPoliciesCreateOrUpdateResponse>;
57
+ /**
58
+ * Deletes the managementpolicy associated with the specified storage account.
59
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
60
+ * case insensitive.
61
+ * @param accountName The name of the storage account within the specified resource group. Storage
62
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
63
+ * only.
64
+ * @param managementPolicyName The name of the Storage Account Management Policy. It should always be
65
+ * 'default'
66
+ * @param options The options parameters.
67
+ */
68
+ delete(
69
+ resourceGroupName: string,
70
+ accountName: string,
71
+ managementPolicyName: ManagementPolicyName,
72
+ options?: ManagementPoliciesDeleteOptionalParams
73
+ ): Promise<void>;
74
+ }
@@ -0,0 +1,91 @@
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
+ ObjectReplicationPolicy,
12
+ ObjectReplicationPoliciesListOptionalParams,
13
+ ObjectReplicationPoliciesGetOptionalParams,
14
+ ObjectReplicationPoliciesGetResponse,
15
+ ObjectReplicationPoliciesCreateOrUpdateOptionalParams,
16
+ ObjectReplicationPoliciesCreateOrUpdateResponse,
17
+ ObjectReplicationPoliciesDeleteOptionalParams
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a ObjectReplicationPoliciesOperations. */
22
+ export interface ObjectReplicationPoliciesOperations {
23
+ /**
24
+ * List the object replication policies associated with the storage account.
25
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
26
+ * case insensitive.
27
+ * @param accountName The name of the storage account within the specified resource group. Storage
28
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
29
+ * only.
30
+ * @param options The options parameters.
31
+ */
32
+ list(
33
+ resourceGroupName: string,
34
+ accountName: string,
35
+ options?: ObjectReplicationPoliciesListOptionalParams
36
+ ): PagedAsyncIterableIterator<ObjectReplicationPolicy>;
37
+ /**
38
+ * Get the object replication policy of the storage account by policy ID.
39
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
40
+ * case insensitive.
41
+ * @param accountName The name of the storage account within the specified resource group. Storage
42
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
43
+ * only.
44
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
45
+ * is unknown.
46
+ * @param options The options parameters.
47
+ */
48
+ get(
49
+ resourceGroupName: string,
50
+ accountName: string,
51
+ objectReplicationPolicyId: string,
52
+ options?: ObjectReplicationPoliciesGetOptionalParams
53
+ ): Promise<ObjectReplicationPoliciesGetResponse>;
54
+ /**
55
+ * Create or update the object replication policy of the storage account.
56
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
57
+ * case insensitive.
58
+ * @param accountName The name of the storage account within the specified resource group. Storage
59
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
60
+ * only.
61
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
62
+ * is unknown.
63
+ * @param properties The object replication policy set to a storage account. A unique policy ID will be
64
+ * created if absent.
65
+ * @param options The options parameters.
66
+ */
67
+ createOrUpdate(
68
+ resourceGroupName: string,
69
+ accountName: string,
70
+ objectReplicationPolicyId: string,
71
+ properties: ObjectReplicationPolicy,
72
+ options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams
73
+ ): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse>;
74
+ /**
75
+ * Deletes the object replication policy associated with the specified storage account.
76
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
77
+ * case insensitive.
78
+ * @param accountName The name of the storage account within the specified resource group. Storage
79
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
80
+ * only.
81
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
82
+ * is unknown.
83
+ * @param options The options parameters.
84
+ */
85
+ delete(
86
+ resourceGroupName: string,
87
+ accountName: string,
88
+ objectReplicationPolicyId: string,
89
+ options?: ObjectReplicationPoliciesDeleteOptionalParams
90
+ ): Promise<void>;
91
+ }
@@ -0,0 +1,22 @@
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 { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available Storage Rest API operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,90 @@
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
+ PrivateEndpointConnection,
12
+ PrivateEndpointConnectionsListOptionalParams,
13
+ PrivateEndpointConnectionsGetOptionalParams,
14
+ PrivateEndpointConnectionsGetResponse,
15
+ PrivateEndpointConnectionsPutOptionalParams,
16
+ PrivateEndpointConnectionsPutResponse,
17
+ PrivateEndpointConnectionsDeleteOptionalParams
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a PrivateEndpointConnections. */
22
+ export interface PrivateEndpointConnections {
23
+ /**
24
+ * List all the private endpoint connections associated with the storage account.
25
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
26
+ * case insensitive.
27
+ * @param accountName The name of the storage account within the specified resource group. Storage
28
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
29
+ * only.
30
+ * @param options The options parameters.
31
+ */
32
+ list(
33
+ resourceGroupName: string,
34
+ accountName: string,
35
+ options?: PrivateEndpointConnectionsListOptionalParams
36
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
37
+ /**
38
+ * Gets the specified private endpoint connection associated with the storage account.
39
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
40
+ * case insensitive.
41
+ * @param accountName The name of the storage account within the specified resource group. Storage
42
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
43
+ * only.
44
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
45
+ * Azure resource
46
+ * @param options The options parameters.
47
+ */
48
+ get(
49
+ resourceGroupName: string,
50
+ accountName: string,
51
+ privateEndpointConnectionName: string,
52
+ options?: PrivateEndpointConnectionsGetOptionalParams
53
+ ): Promise<PrivateEndpointConnectionsGetResponse>;
54
+ /**
55
+ * Update the state of specified private endpoint connection associated with the storage account.
56
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
57
+ * case insensitive.
58
+ * @param accountName The name of the storage account within the specified resource group. Storage
59
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
60
+ * only.
61
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
62
+ * Azure resource
63
+ * @param properties The private endpoint connection properties.
64
+ * @param options The options parameters.
65
+ */
66
+ put(
67
+ resourceGroupName: string,
68
+ accountName: string,
69
+ privateEndpointConnectionName: string,
70
+ properties: PrivateEndpointConnection,
71
+ options?: PrivateEndpointConnectionsPutOptionalParams
72
+ ): Promise<PrivateEndpointConnectionsPutResponse>;
73
+ /**
74
+ * Deletes the specified private endpoint connection associated with the storage account.
75
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
76
+ * case insensitive.
77
+ * @param accountName The name of the storage account within the specified resource group. Storage
78
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
79
+ * only.
80
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
81
+ * Azure resource
82
+ * @param options The options parameters.
83
+ */
84
+ delete(
85
+ resourceGroupName: string,
86
+ accountName: string,
87
+ privateEndpointConnectionName: string,
88
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
89
+ ): Promise<void>;
90
+ }