@azure/arm-redisenterprisecache 2.3.0-alpha.20240221.1 → 3.0.0-alpha.20240223.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/CHANGELOG.md +13 -24
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +126 -326
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/databasesCreateSample.js +2 -2
  9. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/databasesExportSample.js +1 -1
  11. package/dist-esm/samples-dev/databasesFlushSample.js +1 -1
  12. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +1 -1
  13. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  14. package/dist-esm/samples-dev/databasesImportSample.js +1 -1
  15. package/dist-esm/samples-dev/databasesListByClusterSample.js +1 -1
  16. package/dist-esm/samples-dev/databasesListKeysSample.js +1 -1
  17. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +1 -1
  18. package/dist-esm/samples-dev/databasesUpdateSample.js +1 -1
  19. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  20. package/dist-esm/samples-dev/operationsStatusGetSample.js +1 -1
  21. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
  22. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  23. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  24. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  25. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +1 -1
  26. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  27. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +1 -1
  28. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +1 -1
  30. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +1 -1
  31. package/dist-esm/samples-dev/redisEnterpriseListSample.js +1 -1
  32. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +1 -1
  33. package/dist-esm/src/models/index.d.ts +21 -84
  34. package/dist-esm/src/models/index.d.ts.map +1 -1
  35. package/dist-esm/src/models/index.js +4 -12
  36. package/dist-esm/src/models/index.js.map +1 -1
  37. package/dist-esm/src/models/mappers.d.ts +1 -6
  38. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  39. package/dist-esm/src/models/mappers.js +20 -159
  40. package/dist-esm/src/models/mappers.js.map +1 -1
  41. package/dist-esm/src/models/parameters.js +1 -1
  42. package/dist-esm/src/models/parameters.js.map +1 -1
  43. package/dist-esm/src/operations/databases.js +1 -1
  44. package/dist-esm/src/operations/databases.js.map +1 -1
  45. package/dist-esm/src/operations/index.d.ts +0 -1
  46. package/dist-esm/src/operations/index.d.ts.map +1 -1
  47. package/dist-esm/src/operations/index.js +0 -1
  48. package/dist-esm/src/operations/index.js.map +1 -1
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts +10 -1
  50. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  51. package/dist-esm/src/operations/privateEndpointConnections.js +58 -7
  52. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  53. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -1
  54. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  55. package/dist-esm/src/operationsInterfaces/index.js +0 -1
  56. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  57. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +10 -1
  58. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  59. package/dist-esm/src/redisEnterpriseManagementClient.d.ts +1 -2
  60. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  61. package/dist-esm/src/redisEnterpriseManagementClient.js +3 -4
  62. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  63. package/dist-esm/test/redisenterprisecache_test.spec.d.ts +4 -0
  64. package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +1 -0
  65. package/dist-esm/test/redisenterprisecache_test.spec.js +73 -0
  66. package/dist-esm/test/redisenterprisecache_test.spec.js.map +1 -0
  67. package/package.json +8 -7
  68. package/review/arm-redisenterprisecache.api.md +12 -66
  69. package/src/models/index.ts +24 -94
  70. package/src/models/mappers.ts +21 -165
  71. package/src/models/parameters.ts +1 -1
  72. package/src/operations/databases.ts +1 -1
  73. package/src/operations/index.ts +0 -1
  74. package/src/operations/privateEndpointConnections.ts +77 -5
  75. package/src/operationsInterfaces/index.ts +0 -1
  76. package/src/operationsInterfaces/privateEndpointConnections.ts +15 -1
  77. package/src/redisEnterpriseManagementClient.ts +4 -8
  78. package/types/arm-redisenterprisecache.d.ts +32 -106
  79. package/types/tsdoc-metadata.json +1 -1
  80. package/dist-esm/samples-dev/operationsStatusGet.d.ts +0 -2
  81. package/dist-esm/samples-dev/operationsStatusGet.d.ts.map +0 -1
  82. package/dist-esm/samples-dev/operationsStatusGet.js +0 -31
  83. package/dist-esm/samples-dev/operationsStatusGet.js.map +0 -1
  84. package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts +0 -2
  85. package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts.map +0 -1
  86. package/dist-esm/samples-dev/redisEnterpriseCreate.js +0 -38
  87. package/dist-esm/samples-dev/redisEnterpriseCreate.js.map +0 -1
  88. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts +0 -2
  89. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts.map +0 -1
  90. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js +0 -44
  91. package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js.map +0 -1
  92. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts +0 -2
  93. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts.map +0 -1
  94. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js +0 -32
  95. package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js.map +0 -1
  96. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts +0 -2
  97. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts.map +0 -1
  98. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js +0 -35
  99. package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js.map +0 -1
  100. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts +0 -2
  101. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts.map +0 -1
  102. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js +0 -32
  103. package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js.map +0 -1
  104. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts +0 -2
  105. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts.map +0 -1
  106. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js +0 -38
  107. package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js.map +0 -1
  108. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts +0 -2
  109. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts.map +0 -1
  110. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js +0 -47
  111. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js.map +0 -1
  112. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts +0 -2
  113. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts.map +0 -1
  114. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js +0 -32
  115. package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js.map +0 -1
  116. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts +0 -2
  117. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts.map +0 -1
  118. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js +0 -33
  119. package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js.map +0 -1
  120. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts +0 -2
  121. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts.map +0 -1
  122. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js +0 -37
  123. package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js.map +0 -1
  124. package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts +0 -2
  125. package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts.map +0 -1
  126. package/dist-esm/samples-dev/redisEnterpriseDelete.js +0 -31
  127. package/dist-esm/samples-dev/redisEnterpriseDelete.js.map +0 -1
  128. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts +0 -2
  129. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts.map +0 -1
  130. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js +0 -32
  131. package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js.map +0 -1
  132. package/dist-esm/samples-dev/redisEnterpriseGet.d.ts +0 -2
  133. package/dist-esm/samples-dev/redisEnterpriseGet.d.ts.map +0 -1
  134. package/dist-esm/samples-dev/redisEnterpriseGet.js +0 -31
  135. package/dist-esm/samples-dev/redisEnterpriseGet.js.map +0 -1
  136. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts +0 -2
  137. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts.map +0 -1
  138. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js +0 -32
  139. package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js.map +0 -1
  140. package/dist-esm/samples-dev/redisEnterpriseList.d.ts +0 -2
  141. package/dist-esm/samples-dev/redisEnterpriseList.d.ts.map +0 -1
  142. package/dist-esm/samples-dev/redisEnterpriseList.js +0 -45
  143. package/dist-esm/samples-dev/redisEnterpriseList.js.map +0 -1
  144. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts +0 -2
  145. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts.map +0 -1
  146. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js +0 -46
  147. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js.map +0 -1
  148. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts +0 -2
  149. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts.map +0 -1
  150. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js +0 -47
  151. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js.map +0 -1
  152. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts +0 -2
  153. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts.map +0 -1
  154. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js +0 -47
  155. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js.map +0 -1
  156. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts +0 -2
  157. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts.map +0 -1
  158. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js +0 -38
  159. package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js.map +0 -1
  160. package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts +0 -2
  161. package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts.map +0 -1
  162. package/dist-esm/samples-dev/redisEnterpriseUpdate.js +0 -36
  163. package/dist-esm/samples-dev/redisEnterpriseUpdate.js.map +0 -1
  164. package/dist-esm/samples-dev/skusListSample.d.ts +0 -2
  165. package/dist-esm/samples-dev/skusListSample.d.ts.map +0 -1
  166. package/dist-esm/samples-dev/skusListSample.js +0 -53
  167. package/dist-esm/samples-dev/skusListSample.js.map +0 -1
  168. package/dist-esm/src/operations/skus.d.ts +0 -28
  169. package/dist-esm/src/operations/skus.d.ts.map +0 -1
  170. package/dist-esm/src/operations/skus.js +0 -102
  171. package/dist-esm/src/operations/skus.js.map +0 -1
  172. package/dist-esm/src/operationsInterfaces/skus.d.ts +0 -12
  173. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +0 -1
  174. package/dist-esm/src/operationsInterfaces/skus.js +0 -9
  175. package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
  176. package/dist-esm/test/sampleTest.d.ts +0 -2
  177. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  178. package/dist-esm/test/sampleTest.js +0 -38
  179. package/dist-esm/test/sampleTest.js.map +0 -1
  180. package/src/operations/skus.ts +0 -117
  181. package/src/operationsInterfaces/skus.ts +0 -24
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
13
- *
14
- * @summary Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
15
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterprisePutPrivateEndpointConnection.json
16
- */
17
- import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function redisEnterprisePutPrivateEndpointConnection() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const clusterName = "cache1";
24
- const privateEndpointConnectionName = "pectest01";
25
- const properties = {
26
- privateLinkServiceConnectionState: {
27
- description: "Auto-Approved",
28
- status: "Approved"
29
- }
30
- };
31
- const credential = new DefaultAzureCredential();
32
- const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
33
- const result = yield client.privateEndpointConnections.beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties);
34
- console.log(result);
35
- });
36
- }
37
- redisEnterprisePutPrivateEndpointConnection().catch(console.error);
38
- //# sourceMappingURL=redisEnterprisePutPrivateEndpointConnection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redisEnterprisePutPrivateEndpointConnection.js","sourceRoot":"","sources":["../../samples-dev/redisEnterprisePutPrivateEndpointConnection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,eAAe,CACpE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=redisEnterpriseUpdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redisEnterpriseUpdate.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseUpdate.ts"],"names":[],"mappings":""}
@@ -1,36 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Updates an existing RedisEnterprise cluster
13
- *
14
- * @summary Updates an existing RedisEnterprise cluster
15
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseUpdate.json
16
- */
17
- import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function redisEnterpriseUpdate() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
- const clusterName = "cache1";
24
- const parameters = {
25
- minimumTlsVersion: "1.2",
26
- sku: { name: "EnterpriseFlash_F300", capacity: 9 },
27
- tags: { tag1: "value1" }
28
- };
29
- const credential = new DefaultAzureCredential();
30
- const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
31
- const result = yield client.redisEnterprise.beginUpdateAndWait(resourceGroupName, clusterName, parameters);
32
- console.log(result);
33
- });
34
- }
35
- redisEnterpriseUpdate().catch(console.error);
36
- //# sourceMappingURL=redisEnterpriseUpdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redisEnterpriseUpdate.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAkB;YAChC,iBAAiB,EAAE,KAAK;YACxB,GAAG,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=skusListSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":""}
@@ -1,53 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __asyncValues, __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- import * as dotenv from "dotenv";
14
- dotenv.config();
15
- /**
16
- * This sample demonstrates how to Gets information about skus in specified location for the given subscription id
17
- *
18
- * @summary Gets information about skus in specified location for the given subscription id
19
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseSkusList.json
20
- */
21
- function skusList() {
22
- var _a, e_1, _b, _c;
23
- return __awaiter(this, void 0, void 0, function* () {
24
- const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
25
- const location = "westus2";
26
- const credential = new DefaultAzureCredential();
27
- const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
28
- const resArray = new Array();
29
- try {
30
- for (var _d = true, _e = __asyncValues(client.skus.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
31
- _c = _f.value;
32
- _d = false;
33
- let item = _c;
34
- resArray.push(item);
35
- }
36
- }
37
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
38
- finally {
39
- try {
40
- if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
41
- }
42
- finally { if (e_1) throw e_1.error; }
43
- }
44
- console.log(resArray);
45
- });
46
- }
47
- function main() {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- skusList();
50
- });
51
- }
52
- main().catch(console.error);
53
- //# sourceMappingURL=skusListSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,QAAQ;;;QACrB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA7B,cAA0B;gBAA1B,WAA0B;gBAAtC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,QAAQ,EAAE,CAAC;IACb,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Skus } from "../operationsInterfaces";
3
- import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient";
4
- import { RegionSkuDetail, SkusListOptionalParams } from "../models";
5
- /** Class containing Skus operations. */
6
- export declare class SkusImpl implements Skus {
7
- private readonly client;
8
- /**
9
- * Initialize a new instance of the class Skus class.
10
- * @param client Reference to the service client
11
- */
12
- constructor(client: RedisEnterpriseManagementClient);
13
- /**
14
- * Gets information about skus in specified location for the given subscription id
15
- * @param location The name of Azure region.
16
- * @param options The options parameters.
17
- */
18
- list(location: string, options?: SkusListOptionalParams): PagedAsyncIterableIterator<RegionSkuDetail>;
19
- private listPagingPage;
20
- private listPagingAll;
21
- /**
22
- * Gets information about skus in specified location for the given subscription id
23
- * @param location The name of Azure region.
24
- * @param options The options parameters.
25
- */
26
- private _list;
27
- }
28
- //# sourceMappingURL=skus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EACL,eAAe,EACf,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;IAEzD;;;OAGG;gBACS,MAAM,EAAE,+BAA+B;IAInD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,cAAc;YAUd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;CASd"}
@@ -1,102 +0,0 @@
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 Skus operations. */
14
- export class SkusImpl {
15
- /**
16
- * Initialize a new instance of the class Skus class.
17
- * @param client Reference to the service client
18
- */
19
- constructor(client) {
20
- this.client = client;
21
- }
22
- /**
23
- * Gets information about skus in specified location for the given subscription id
24
- * @param location The name of Azure region.
25
- * @param options The options parameters.
26
- */
27
- list(location, options) {
28
- const iter = this.listPagingAll(location, options);
29
- return {
30
- next() {
31
- return iter.next();
32
- },
33
- [Symbol.asyncIterator]() {
34
- return this;
35
- },
36
- byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
- throw new Error("maxPageSize is not supported by this operation.");
39
- }
40
- return this.listPagingPage(location, options, settings);
41
- }
42
- };
43
- }
44
- listPagingPage(location, options, _settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- result = yield __await(this._list(location, options));
48
- yield yield __await(result.value || []);
49
- });
50
- }
51
- listPagingAll(location, options) {
52
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
53
- var _a, e_1, _b, _c;
54
- try {
55
- for (var _d = true, _e = __asyncValues(this.listPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
56
- _c = _f.value;
57
- _d = false;
58
- const page = _c;
59
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
- }
61
- }
62
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
- finally {
64
- try {
65
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
66
- }
67
- finally { if (e_1) throw e_1.error; }
68
- }
69
- });
70
- }
71
- /**
72
- * Gets information about skus in specified location for the given subscription id
73
- * @param location The name of Azure region.
74
- * @param options The options parameters.
75
- */
76
- _list(location, options) {
77
- return this.client.sendOperationRequest({ location, options }, listOperationSpec);
78
- }
79
- }
80
- // Operation Specifications
81
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
82
- const listOperationSpec = {
83
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus",
84
- httpMethod: "GET",
85
- responses: {
86
- 200: {
87
- bodyMapper: Mappers.RegionSkuDetails
88
- },
89
- default: {
90
- bodyMapper: Mappers.ErrorResponse
91
- }
92
- },
93
- queryParameters: [Parameters.apiVersion],
94
- urlParameters: [
95
- Parameters.$host,
96
- Parameters.location,
97
- Parameters.subscriptionId
98
- ],
99
- headerParameters: [Parameters.accept],
100
- serializer
101
- };
102
- //# sourceMappingURL=skus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.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,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,QAAgB,EAChB,OAAgC,EAChC,SAAwB;;YAExB,IAAI,MAAwB,CAAC;YAC7B,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA,CAAC;YAC7C,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,QAAgB,EAChB,OAAgC;;;;gBAEhC,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA,IAAA,+DAAE,CAAC;oBAAzC,cAAsC;oBAAtC,WAAsC;oBAApD,MAAM,IAAI,KAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;gBACd,CAAC;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;OAIG;IACK,KAAK,CACX,QAAgB,EAChB,OAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,qFAAqF;IACvF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1,12 +0,0 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { RegionSkuDetail, SkusListOptionalParams } from "../models";
3
- /** Interface representing a Skus. */
4
- export interface Skus {
5
- /**
6
- * Gets information about skus in specified location for the given subscription id
7
- * @param location The name of Azure region.
8
- * @param options The options parameters.
9
- */
10
- list(location: string, options?: SkusListOptionalParams): PagedAsyncIterableIterator<RegionSkuDetail>;
11
- }
12
- //# sourceMappingURL=skus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGpE,qCAAqC;AACrC,MAAM,WAAW,IAAI;IACnB;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,eAAe,CAAC,CAAC;CAChD"}
@@ -1,9 +0,0 @@
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
- export {};
9
- //# sourceMappingURL=skus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- import { Recorder } from "@azure-tools/test-recorder";
10
- const replaceableVariables = {
11
- AZURE_CLIENT_ID: "azure_client_id",
12
- AZURE_CLIENT_SECRET: "azure_client_secret",
13
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
- SUBSCRIPTION_ID: "azure_subscription_id"
15
- };
16
- const recorderOptions = {
17
- envSetupForPlayback: replaceableVariables
18
- };
19
- describe("My test", () => {
20
- let recorder;
21
- beforeEach(function () {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- recorder = new Recorder(this.currentTest);
24
- yield recorder.start(recorderOptions);
25
- });
26
- });
27
- afterEach(function () {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- yield recorder.stop();
30
- });
31
- });
32
- it("sample test", function () {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- console.log("Hi, I'm a test!");
35
- });
36
- });
37
- });
38
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,117 +0,0 @@
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, PageSettings } from "@azure/core-paging";
10
- import { Skus } from "../operationsInterfaces";
11
- import * as coreClient from "@azure/core-client";
12
- import * as Mappers from "../models/mappers";
13
- import * as Parameters from "../models/parameters";
14
- import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient";
15
- import {
16
- RegionSkuDetail,
17
- SkusListOptionalParams,
18
- SkusListResponse
19
- } from "../models";
20
-
21
- /// <reference lib="esnext.asynciterable" />
22
- /** Class containing Skus operations. */
23
- export class SkusImpl implements Skus {
24
- private readonly client: RedisEnterpriseManagementClient;
25
-
26
- /**
27
- * Initialize a new instance of the class Skus class.
28
- * @param client Reference to the service client
29
- */
30
- constructor(client: RedisEnterpriseManagementClient) {
31
- this.client = client;
32
- }
33
-
34
- /**
35
- * Gets information about skus in specified location for the given subscription id
36
- * @param location The name of Azure region.
37
- * @param options The options parameters.
38
- */
39
- public list(
40
- location: string,
41
- options?: SkusListOptionalParams
42
- ): PagedAsyncIterableIterator<RegionSkuDetail> {
43
- const iter = this.listPagingAll(location, options);
44
- return {
45
- next() {
46
- return iter.next();
47
- },
48
- [Symbol.asyncIterator]() {
49
- return this;
50
- },
51
- byPage: (settings?: PageSettings) => {
52
- if (settings?.maxPageSize) {
53
- throw new Error("maxPageSize is not supported by this operation.");
54
- }
55
- return this.listPagingPage(location, options, settings);
56
- }
57
- };
58
- }
59
-
60
- private async *listPagingPage(
61
- location: string,
62
- options?: SkusListOptionalParams,
63
- _settings?: PageSettings
64
- ): AsyncIterableIterator<RegionSkuDetail[]> {
65
- let result: SkusListResponse;
66
- result = await this._list(location, options);
67
- yield result.value || [];
68
- }
69
-
70
- private async *listPagingAll(
71
- location: string,
72
- options?: SkusListOptionalParams
73
- ): AsyncIterableIterator<RegionSkuDetail> {
74
- for await (const page of this.listPagingPage(location, options)) {
75
- yield* page;
76
- }
77
- }
78
-
79
- /**
80
- * Gets information about skus in specified location for the given subscription id
81
- * @param location The name of Azure region.
82
- * @param options The options parameters.
83
- */
84
- private _list(
85
- location: string,
86
- options?: SkusListOptionalParams
87
- ): Promise<SkusListResponse> {
88
- return this.client.sendOperationRequest(
89
- { location, options },
90
- listOperationSpec
91
- );
92
- }
93
- }
94
- // Operation Specifications
95
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
96
-
97
- const listOperationSpec: coreClient.OperationSpec = {
98
- path:
99
- "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus",
100
- httpMethod: "GET",
101
- responses: {
102
- 200: {
103
- bodyMapper: Mappers.RegionSkuDetails
104
- },
105
- default: {
106
- bodyMapper: Mappers.ErrorResponse
107
- }
108
- },
109
- queryParameters: [Parameters.apiVersion],
110
- urlParameters: [
111
- Parameters.$host,
112
- Parameters.location,
113
- Parameters.subscriptionId
114
- ],
115
- headerParameters: [Parameters.accept],
116
- serializer
117
- };
@@ -1,24 +0,0 @@
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 { RegionSkuDetail, SkusListOptionalParams } from "../models";
11
-
12
- /// <reference lib="esnext.asynciterable" />
13
- /** Interface representing a Skus. */
14
- export interface Skus {
15
- /**
16
- * Gets information about skus in specified location for the given subscription id
17
- * @param location The name of Azure region.
18
- * @param options The options parameters.
19
- */
20
- list(
21
- location: string,
22
- options?: SkusListOptionalParams
23
- ): PagedAsyncIterableIterator<RegionSkuDetail>;
24
- }