@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
@@ -0,0 +1,50 @@
1
+ import { ManagementPolicies } from "../operationsInterfaces";
2
+ import { StorageManagementClient } from "../storageManagementClient";
3
+ import { ManagementPolicyName, ManagementPoliciesGetOptionalParams, ManagementPoliciesGetResponse, ManagementPolicy, ManagementPoliciesCreateOrUpdateOptionalParams, ManagementPoliciesCreateOrUpdateResponse, ManagementPoliciesDeleteOptionalParams } from "../models";
4
+ /** Class containing ManagementPolicies operations. */
5
+ export declare class ManagementPoliciesImpl implements ManagementPolicies {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class ManagementPolicies class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: StorageManagementClient);
12
+ /**
13
+ * Gets the managementpolicy associated with the specified storage account.
14
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
15
+ * case insensitive.
16
+ * @param accountName The name of the storage account within the specified resource group. Storage
17
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
18
+ * only.
19
+ * @param managementPolicyName The name of the Storage Account Management Policy. It should always be
20
+ * 'default'
21
+ * @param options The options parameters.
22
+ */
23
+ get(resourceGroupName: string, accountName: string, managementPolicyName: ManagementPolicyName, options?: ManagementPoliciesGetOptionalParams): Promise<ManagementPoliciesGetResponse>;
24
+ /**
25
+ * Sets the managementpolicy to 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 managementPolicyName The name of the Storage Account Management Policy. It should always be
32
+ * 'default'
33
+ * @param properties The ManagementPolicy set to a storage account.
34
+ * @param options The options parameters.
35
+ */
36
+ createOrUpdate(resourceGroupName: string, accountName: string, managementPolicyName: ManagementPolicyName, properties: ManagementPolicy, options?: ManagementPoliciesCreateOrUpdateOptionalParams): Promise<ManagementPoliciesCreateOrUpdateResponse>;
37
+ /**
38
+ * Deletes the managementpolicy associated with the specified 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 managementPolicyName The name of the Storage Account Management Policy. It should always be
45
+ * 'default'
46
+ * @param options The options parameters.
47
+ */
48
+ delete(resourceGroupName: string, accountName: string, managementPolicyName: ManagementPolicyName, options?: ManagementPoliciesDeleteOptionalParams): Promise<void>;
49
+ }
50
+ //# sourceMappingURL=managementPolicies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementPolicies.d.ts","sourceRoot":"","sources":["../../../src/operations/managementPolicies.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,mCAAmC,EACnC,6BAA6B,EAC7B,gBAAgB,EAChB,8CAA8C,EAC9C,wCAAwC,EACxC,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAEnB,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,gBAAgB,EAC5B,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAapD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -0,0 +1,126 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing ManagementPolicies operations. */
12
+ export class ManagementPoliciesImpl {
13
+ /**
14
+ * Initialize a new instance of the class ManagementPolicies class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets the managementpolicy associated with the specified storage account.
22
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
23
+ * case insensitive.
24
+ * @param accountName The name of the storage account within the specified resource group. Storage
25
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
26
+ * only.
27
+ * @param managementPolicyName The name of the Storage Account Management Policy. It should always be
28
+ * 'default'
29
+ * @param options The options parameters.
30
+ */
31
+ get(resourceGroupName, accountName, managementPolicyName, options) {
32
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, managementPolicyName, options }, getOperationSpec);
33
+ }
34
+ /**
35
+ * Sets the managementpolicy to the specified storage account.
36
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
37
+ * case insensitive.
38
+ * @param accountName The name of the storage account within the specified resource group. Storage
39
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
40
+ * only.
41
+ * @param managementPolicyName The name of the Storage Account Management Policy. It should always be
42
+ * 'default'
43
+ * @param properties The ManagementPolicy set to a storage account.
44
+ * @param options The options parameters.
45
+ */
46
+ createOrUpdate(resourceGroupName, accountName, managementPolicyName, properties, options) {
47
+ return this.client.sendOperationRequest({
48
+ resourceGroupName,
49
+ accountName,
50
+ managementPolicyName,
51
+ properties,
52
+ options
53
+ }, createOrUpdateOperationSpec);
54
+ }
55
+ /**
56
+ * Deletes the managementpolicy associated with 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 managementPolicyName The name of the Storage Account Management Policy. It should always be
63
+ * 'default'
64
+ * @param options The options parameters.
65
+ */
66
+ delete(resourceGroupName, accountName, managementPolicyName, options) {
67
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, managementPolicyName, options }, deleteOperationSpec);
68
+ }
69
+ }
70
+ // Operation Specifications
71
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
72
+ const getOperationSpec = {
73
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
74
+ httpMethod: "GET",
75
+ responses: {
76
+ 200: {
77
+ bodyMapper: Mappers.ManagementPolicy
78
+ }
79
+ },
80
+ queryParameters: [Parameters.apiVersion],
81
+ urlParameters: [
82
+ Parameters.$host,
83
+ Parameters.subscriptionId,
84
+ Parameters.resourceGroupName,
85
+ Parameters.accountName1,
86
+ Parameters.managementPolicyName
87
+ ],
88
+ headerParameters: [Parameters.accept],
89
+ serializer
90
+ };
91
+ const createOrUpdateOperationSpec = {
92
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
93
+ httpMethod: "PUT",
94
+ responses: {
95
+ 200: {
96
+ bodyMapper: Mappers.ManagementPolicy
97
+ }
98
+ },
99
+ requestBody: Parameters.properties,
100
+ queryParameters: [Parameters.apiVersion],
101
+ urlParameters: [
102
+ Parameters.$host,
103
+ Parameters.subscriptionId,
104
+ Parameters.resourceGroupName,
105
+ Parameters.accountName1,
106
+ Parameters.managementPolicyName
107
+ ],
108
+ headerParameters: [Parameters.accept, Parameters.contentType],
109
+ mediaType: "json",
110
+ serializer
111
+ };
112
+ const deleteOperationSpec = {
113
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
114
+ httpMethod: "DELETE",
115
+ responses: { 200: {}, 204: {} },
116
+ queryParameters: [Parameters.apiVersion],
117
+ urlParameters: [
118
+ Parameters.$host,
119
+ Parameters.subscriptionId,
120
+ Parameters.resourceGroupName,
121
+ Parameters.accountName1,
122
+ Parameters.managementPolicyName
123
+ ],
124
+ serializer
125
+ };
126
+ //# sourceMappingURL=managementPolicies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementPolicies.js","sourceRoot":"","sources":["../../../src/operations/managementPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,oBAA0C,EAC1C,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,oBAAoB,EAAE,OAAO,EAAE,EACjE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,oBAA0C,EAC1C,UAA4B,EAC5B,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iB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,YAAY;QACvB,UAAU,CAAC,oBAAoB;KAChC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,wKAAwK;IAC1K,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,oBAAoB;KAChC;IACD,UAAU;CACX,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
3
+ import { StorageManagementClient } from "../storageManagementClient";
4
+ import { ObjectReplicationPolicy, ObjectReplicationPoliciesListOptionalParams, ObjectReplicationPoliciesGetOptionalParams, ObjectReplicationPoliciesGetResponse, ObjectReplicationPoliciesCreateOrUpdateOptionalParams, ObjectReplicationPoliciesCreateOrUpdateResponse, ObjectReplicationPoliciesDeleteOptionalParams } from "../models";
5
+ /** Class containing ObjectReplicationPoliciesOperations operations. */
6
+ export declare class ObjectReplicationPoliciesOperationsImpl implements ObjectReplicationPoliciesOperations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: StorageManagementClient);
13
+ /**
14
+ * List the object replication policies associated with the storage account.
15
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
16
+ * case insensitive.
17
+ * @param accountName The name of the storage account within the specified resource group. Storage
18
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
19
+ * only.
20
+ * @param options The options parameters.
21
+ */
22
+ list(resourceGroupName: string, accountName: string, options?: ObjectReplicationPoliciesListOptionalParams): PagedAsyncIterableIterator<ObjectReplicationPolicy>;
23
+ private listPagingPage;
24
+ private listPagingAll;
25
+ /**
26
+ * List the object replication policies associated with the storage account.
27
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
28
+ * case insensitive.
29
+ * @param accountName The name of the storage account within the specified resource group. Storage
30
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
31
+ * only.
32
+ * @param options The options parameters.
33
+ */
34
+ private _list;
35
+ /**
36
+ * Get the object replication policy of the storage account by policy ID.
37
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
38
+ * case insensitive.
39
+ * @param accountName The name of the storage account within the specified resource group. Storage
40
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
41
+ * only.
42
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
43
+ * is unknown.
44
+ * @param options The options parameters.
45
+ */
46
+ get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: ObjectReplicationPoliciesGetOptionalParams): Promise<ObjectReplicationPoliciesGetResponse>;
47
+ /**
48
+ * Create or update the object replication policy of the storage account.
49
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
50
+ * case insensitive.
51
+ * @param accountName The name of the storage account within the specified resource group. Storage
52
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
53
+ * only.
54
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
55
+ * is unknown.
56
+ * @param properties The object replication policy set to a storage account. A unique policy ID will be
57
+ * created if absent.
58
+ * @param options The options parameters.
59
+ */
60
+ createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: ObjectReplicationPolicy, options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse>;
61
+ /**
62
+ * Deletes the object replication policy associated with the specified storage account.
63
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
64
+ * case insensitive.
65
+ * @param accountName The name of the storage account within the specified resource group. Storage
66
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
67
+ * only.
68
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
69
+ * is unknown.
70
+ * @param options The options parameters.
71
+ */
72
+ delete(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: ObjectReplicationPoliciesDeleteOptionalParams): Promise<void>;
73
+ }
74
+ //# sourceMappingURL=objectReplicationPoliciesOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectReplicationPoliciesOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/objectReplicationPoliciesOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAI9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,uBAAuB,EACvB,2CAA2C,EAE3C,0CAA0C,EAC1C,oCAAoC,EACpC,qDAAqD,EACrD,+CAA+C,EAC/C,6CAA6C,EAC9C,MAAM,WAAW,CAAC;AAGnB,uEAAuE;AACvE,qBAAa,uCACX,YAAW,mCAAmC;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,uBAAuB,CAAC;YAevC,cAAc;YASd,aAAa;IAc5B;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAOhD;;;;;;;;;;;;OAYG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,yBAAyB,EAAE,MAAM,EACjC,UAAU,EAAE,uBAAuB,EACnC,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,+CAA+C,CAAC;IAa3D;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -0,0 +1,222 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing ObjectReplicationPoliciesOperations operations. */
14
+ export class ObjectReplicationPoliciesOperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * List the object replication policies associated with the storage account.
24
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
25
+ * case insensitive.
26
+ * @param accountName The name of the storage account within the specified resource group. Storage
27
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
28
+ * only.
29
+ * @param options The options parameters.
30
+ */
31
+ list(resourceGroupName, accountName, options) {
32
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: () => {
41
+ return this.listPagingPage(resourceGroupName, accountName, options);
42
+ }
43
+ };
44
+ }
45
+ listPagingPage(resourceGroupName, accountName, options) {
46
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
47
+ let result = yield __await(this._list(resourceGroupName, accountName, options));
48
+ yield yield __await(result.value || []);
49
+ });
50
+ }
51
+ listPagingAll(resourceGroupName, accountName, options) {
52
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
53
+ var e_1, _a;
54
+ try {
55
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
56
+ const page = _c.value;
57
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
58
+ }
59
+ }
60
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
61
+ finally {
62
+ try {
63
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
64
+ }
65
+ finally { if (e_1) throw e_1.error; }
66
+ }
67
+ });
68
+ }
69
+ /**
70
+ * List the object replication policies associated with the storage account.
71
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
72
+ * case insensitive.
73
+ * @param accountName The name of the storage account within the specified resource group. Storage
74
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
75
+ * only.
76
+ * @param options The options parameters.
77
+ */
78
+ _list(resourceGroupName, accountName, options) {
79
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
80
+ }
81
+ /**
82
+ * Get the object replication policy of the storage account by policy ID.
83
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
84
+ * case insensitive.
85
+ * @param accountName The name of the storage account within the specified resource group. Storage
86
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
87
+ * only.
88
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
89
+ * is unknown.
90
+ * @param options The options parameters.
91
+ */
92
+ get(resourceGroupName, accountName, objectReplicationPolicyId, options) {
93
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, objectReplicationPolicyId, options }, getOperationSpec);
94
+ }
95
+ /**
96
+ * Create or update the object replication policy of the storage account.
97
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
98
+ * case insensitive.
99
+ * @param accountName The name of the storage account within the specified resource group. Storage
100
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
101
+ * only.
102
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
103
+ * is unknown.
104
+ * @param properties The object replication policy set to a storage account. A unique policy ID will be
105
+ * created if absent.
106
+ * @param options The options parameters.
107
+ */
108
+ createOrUpdate(resourceGroupName, accountName, objectReplicationPolicyId, properties, options) {
109
+ return this.client.sendOperationRequest({
110
+ resourceGroupName,
111
+ accountName,
112
+ objectReplicationPolicyId,
113
+ properties,
114
+ options
115
+ }, createOrUpdateOperationSpec);
116
+ }
117
+ /**
118
+ * Deletes the object replication policy associated with the specified storage account.
119
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
120
+ * case insensitive.
121
+ * @param accountName The name of the storage account within the specified resource group. Storage
122
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
123
+ * only.
124
+ * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
125
+ * is unknown.
126
+ * @param options The options parameters.
127
+ */
128
+ delete(resourceGroupName, accountName, objectReplicationPolicyId, options) {
129
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, objectReplicationPolicyId, options }, deleteOperationSpec);
130
+ }
131
+ }
132
+ // Operation Specifications
133
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
134
+ const listOperationSpec = {
135
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
136
+ httpMethod: "GET",
137
+ responses: {
138
+ 200: {
139
+ bodyMapper: Mappers.ObjectReplicationPolicies
140
+ },
141
+ default: {
142
+ bodyMapper: Mappers.ErrorResponse
143
+ }
144
+ },
145
+ queryParameters: [Parameters.apiVersion],
146
+ urlParameters: [
147
+ Parameters.$host,
148
+ Parameters.subscriptionId,
149
+ Parameters.resourceGroupName,
150
+ Parameters.accountName1
151
+ ],
152
+ headerParameters: [Parameters.accept],
153
+ serializer
154
+ };
155
+ const getOperationSpec = {
156
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
157
+ httpMethod: "GET",
158
+ responses: {
159
+ 200: {
160
+ bodyMapper: Mappers.ObjectReplicationPolicy
161
+ },
162
+ default: {
163
+ bodyMapper: Mappers.ErrorResponse
164
+ }
165
+ },
166
+ queryParameters: [Parameters.apiVersion],
167
+ urlParameters: [
168
+ Parameters.$host,
169
+ Parameters.subscriptionId,
170
+ Parameters.resourceGroupName,
171
+ Parameters.accountName1,
172
+ Parameters.objectReplicationPolicyId
173
+ ],
174
+ headerParameters: [Parameters.accept],
175
+ serializer
176
+ };
177
+ const createOrUpdateOperationSpec = {
178
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
179
+ httpMethod: "PUT",
180
+ responses: {
181
+ 200: {
182
+ bodyMapper: Mappers.ObjectReplicationPolicy
183
+ },
184
+ default: {
185
+ bodyMapper: Mappers.ErrorResponse
186
+ }
187
+ },
188
+ requestBody: Parameters.properties3,
189
+ queryParameters: [Parameters.apiVersion],
190
+ urlParameters: [
191
+ Parameters.$host,
192
+ Parameters.subscriptionId,
193
+ Parameters.resourceGroupName,
194
+ Parameters.accountName1,
195
+ Parameters.objectReplicationPolicyId
196
+ ],
197
+ headerParameters: [Parameters.accept, Parameters.contentType],
198
+ mediaType: "json",
199
+ serializer
200
+ };
201
+ const deleteOperationSpec = {
202
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
203
+ httpMethod: "DELETE",
204
+ responses: {
205
+ 200: {},
206
+ 204: {},
207
+ default: {
208
+ bodyMapper: Mappers.ErrorResponse
209
+ }
210
+ },
211
+ queryParameters: [Parameters.apiVersion],
212
+ urlParameters: [
213
+ Parameters.$host,
214
+ Parameters.subscriptionId,
215
+ Parameters.resourceGroupName,
216
+ Parameters.accountName1,
217
+ Parameters.objectReplicationPolicyId
218
+ ],
219
+ headerParameters: [Parameters.accept],
220
+ serializer
221
+ };
222
+ //# sourceMappingURL=objectReplicationPoliciesOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectReplicationPoliciesOperations.js","sourceRoot":"","sources":["../../../src/operations/objectReplicationPoliciesOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,uEAAuE;AACvE,MAAM,OAAO,uCAAuC;IAIlD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,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 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { StorageManagementClient } from "../storageManagementClient";
4
+ import { Operation, OperationsListOptionalParams } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: StorageManagementClient);
13
+ /**
14
+ * Lists all of the available Storage Rest API operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists all of the available Storage Rest API operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists all of the available Storage Rest API operations.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ });
45
+ }
46
+ listPagingAll(options) {
47
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
48
+ var e_1, _a;
49
+ try {
50
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
51
+ const page = _c.value;
52
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
53
+ }
54
+ }
55
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
56
+ finally {
57
+ try {
58
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
59
+ }
60
+ finally { if (e_1) throw e_1.error; }
61
+ }
62
+ });
63
+ }
64
+ /**
65
+ * Lists all of the available Storage Rest API operations.
66
+ * @param options The options parameters.
67
+ */
68
+ _list(options) {
69
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
70
+ }
71
+ }
72
+ // Operation Specifications
73
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
74
+ const listOperationSpec = {
75
+ path: "/providers/Microsoft.Storage/operations",
76
+ httpMethod: "GET",
77
+ responses: {
78
+ 200: {
79
+ bodyMapper: Mappers.OperationListResult
80
+ }
81
+ },
82
+ queryParameters: [Parameters.apiVersion],
83
+ urlParameters: [Parameters.$host],
84
+ headerParameters: [Parameters.accept],
85
+ serializer
86
+ };
87
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;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