@azure/arm-elasticsan 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/CHANGELOG.md +69 -1
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +2839 -1192
  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/elasticSansCreateSample.js +26 -17
  9. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/elasticSansDeleteSample.js +17 -10
  11. package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/elasticSansGetSample.js +17 -10
  13. package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +39 -18
  15. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
  16. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +37 -16
  17. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
  18. package/dist-esm/samples-dev/elasticSansUpdateSample.js +21 -13
  19. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
  20. package/dist-esm/samples-dev/operationsListSample.js +39 -16
  21. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  22. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +70 -0
  25. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
  26. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +58 -0
  29. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  30. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +58 -0
  33. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  34. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +98 -0
  37. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  38. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +2 -0
  39. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +56 -0
  41. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +1 -0
  42. package/dist-esm/samples-dev/skusListSample.js +38 -17
  43. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +34 -16
  45. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +19 -12
  47. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
  48. package/dist-esm/samples-dev/volumeGroupsGetSample.js +19 -12
  49. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
  50. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +41 -20
  51. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
  52. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +33 -15
  53. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  54. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +70 -0
  57. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +1 -0
  58. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +60 -0
  61. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js.map +1 -0
  62. package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +60 -0
  65. package/dist-esm/samples-dev/volumeSnapshotsGetSample.js.map +1 -0
  66. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +102 -0
  69. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -0
  70. package/dist-esm/samples-dev/volumesCreateSample.js +25 -18
  71. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
  72. package/dist-esm/samples-dev/volumesDeleteSample.js +28 -15
  73. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
  74. package/dist-esm/samples-dev/volumesGetSample.js +21 -14
  75. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
  76. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +43 -22
  77. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
  78. package/dist-esm/samples-dev/volumesUpdateSample.js +22 -18
  79. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
  80. package/dist-esm/src/elasticSanManagement.d.ts +4 -1
  81. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
  82. package/dist-esm/src/elasticSanManagement.js +9 -9
  83. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  84. package/dist-esm/src/index.d.ts +1 -0
  85. package/dist-esm/src/index.d.ts.map +1 -1
  86. package/dist-esm/src/index.js +1 -0
  87. package/dist-esm/src/index.js.map +1 -1
  88. package/dist-esm/src/lroImpl.d.ts +6 -11
  89. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  90. package/dist-esm/src/lroImpl.js +12 -20
  91. package/dist-esm/src/lroImpl.js.map +1 -1
  92. package/dist-esm/src/models/index.d.ts +613 -135
  93. package/dist-esm/src/models/index.d.ts.map +1 -1
  94. package/dist-esm/src/models/index.js +84 -0
  95. package/dist-esm/src/models/index.js.map +1 -1
  96. package/dist-esm/src/models/mappers.d.ts +30 -6
  97. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  98. package/dist-esm/src/models/mappers.js +704 -133
  99. package/dist-esm/src/models/mappers.js.map +1 -1
  100. package/dist-esm/src/models/parameters.d.ts +6 -0
  101. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  102. package/dist-esm/src/models/parameters.js +53 -3
  103. package/dist-esm/src/models/parameters.js.map +1 -1
  104. package/dist-esm/src/operations/elasticSans.d.ts +4 -4
  105. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
  106. package/dist-esm/src/operations/elasticSans.js +98 -51
  107. package/dist-esm/src/operations/elasticSans.js.map +1 -1
  108. package/dist-esm/src/operations/index.d.ts +3 -0
  109. package/dist-esm/src/operations/index.d.ts.map +1 -1
  110. package/dist-esm/src/operations/index.js +3 -0
  111. package/dist-esm/src/operations/index.js.map +1 -1
  112. package/dist-esm/src/operations/operations.d.ts +2 -2
  113. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  114. package/dist-esm/src/operations/operations.js +22 -11
  115. package/dist-esm/src/operations/operations.js.map +1 -1
  116. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  117. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  118. package/dist-esm/src/operations/privateEndpointConnections.js +334 -0
  119. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  120. package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
  121. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  122. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  123. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  124. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  125. package/dist-esm/src/operations/skus.js +21 -10
  126. package/dist-esm/src/operations/skus.js.map +1 -1
  127. package/dist-esm/src/operations/volumeGroups.d.ts +4 -4
  128. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
  129. package/dist-esm/src/operations/volumeGroups.js +78 -48
  130. package/dist-esm/src/operations/volumeGroups.js.map +1 -1
  131. package/dist-esm/src/operations/volumeSnapshots.d.ts +89 -0
  132. package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -0
  133. package/dist-esm/src/operations/volumeSnapshots.js +395 -0
  134. package/dist-esm/src/operations/volumeSnapshots.js.map +1 -0
  135. package/dist-esm/src/operations/volumes.d.ts +4 -4
  136. package/dist-esm/src/operations/volumes.d.ts.map +1 -1
  137. package/dist-esm/src/operations/volumes.js +91 -57
  138. package/dist-esm/src/operations/volumes.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +4 -4
  140. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  142. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/index.js +3 -0
  144. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  145. package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -2
  146. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
  147. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  148. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  150. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
  152. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  154. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +4 -4
  156. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
  157. package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts +62 -0
  158. package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
  159. package/dist-esm/src/operationsInterfaces/volumeSnapshots.js +9 -0
  160. package/dist-esm/src/operationsInterfaces/volumeSnapshots.js.map +1 -0
  161. package/dist-esm/src/operationsInterfaces/volumes.d.ts +4 -4
  162. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
  163. package/dist-esm/src/pagingHelper.d.ts +13 -0
  164. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  165. package/dist-esm/src/pagingHelper.js +32 -0
  166. package/dist-esm/src/pagingHelper.js.map +1 -0
  167. package/dist-esm/test/elasticsan_examples.spec.js +12 -5
  168. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
  169. package/package.json +18 -23
  170. package/review/arm-elasticsan.api.md +416 -66
  171. package/src/elasticSanManagement.ts +20 -9
  172. package/src/index.ts +1 -0
  173. package/src/lroImpl.ts +31 -23
  174. package/src/models/index.ts +648 -109
  175. package/src/models/mappers.ts +749 -130
  176. package/src/models/parameters.ts +61 -3
  177. package/src/operations/elasticSans.ts +97 -60
  178. package/src/operations/index.ts +3 -0
  179. package/src/operations/operations.ts +16 -11
  180. package/src/operations/privateEndpointConnections.ts +450 -0
  181. package/src/operations/privateLinkResources.ts +72 -0
  182. package/src/operations/skus.ts +11 -6
  183. package/src/operations/volumeGroups.ts +76 -53
  184. package/src/operations/volumeSnapshots.ts +551 -0
  185. package/src/operations/volumes.ts +87 -54
  186. package/src/operationsInterfaces/elasticSans.ts +6 -6
  187. package/src/operationsInterfaces/index.ts +3 -0
  188. package/src/operationsInterfaces/operations.ts +2 -2
  189. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  190. package/src/operationsInterfaces/privateLinkResources.ts +27 -0
  191. package/src/operationsInterfaces/volumeGroups.ts +6 -6
  192. package/src/operationsInterfaces/volumeSnapshots.ts +121 -0
  193. package/src/operationsInterfaces/volumes.ts +10 -4
  194. package/src/pagingHelper.ts +39 -0
  195. package/types/arm-elasticsan.d.ts +784 -112
  196. package/types/tsdoc-metadata.json +1 -1
  197. package/rollup.config.js +0 -122
@@ -3,4 +3,7 @@ export * from "./skus";
3
3
  export * from "./elasticSans";
4
4
  export * from "./volumeGroups";
5
5
  export * from "./volumes";
6
+ export * from "./privateEndpointConnections";
7
+ export * from "./privateLinkResources";
8
+ export * from "./volumeSnapshots";
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -10,4 +10,7 @@ export * from "./skus";
10
10
  export * from "./elasticSans";
11
11
  export * from "./volumeGroups";
12
12
  export * from "./volumes";
13
+ export * from "./privateEndpointConnections";
14
+ export * from "./privateLinkResources";
15
+ export * from "./volumeSnapshots";
13
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
2
  import { Operations } from "../operationsInterfaces";
3
3
  import { ElasticSanManagement } from "../elasticSanManagement";
4
- import { ElasticSanRPOperation, OperationsListOptionalParams } from "../models";
4
+ import { Operation, OperationsListOptionalParams } from "../models";
5
5
  /** Class containing Operations operations. */
6
6
  export declare class OperationsImpl implements Operations {
7
7
  private readonly client;
@@ -14,7 +14,7 @@ export declare class OperationsImpl implements Operations {
14
14
  * Gets a list of ElasticSan operations.
15
15
  * @param options The options parameters.
16
16
  */
17
- list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ElasticSanRPOperation>;
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
18
  private listPagingPage;
19
19
  private listPagingAll;
20
20
  /**
@@ -1 +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,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,qBAAqB,CAAC;YAerC,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -32,30 +32,41 @@ export class OperationsImpl {
32
32
  [Symbol.asyncIterator]() {
33
33
  return this;
34
34
  },
35
- byPage: () => {
36
- return this.listPagingPage(options);
35
+ byPage: (settings) => {
36
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ throw new Error("maxPageSize is not supported by this operation.");
38
+ }
39
+ return this.listPagingPage(options, settings);
37
40
  }
38
41
  };
39
42
  }
40
- listPagingPage(options) {
43
+ listPagingPage(options, _settings) {
41
44
  return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
- let result = yield __await(this._list(options));
45
+ let result;
46
+ result = yield __await(this._list(options));
43
47
  yield yield __await(result.value || []);
44
48
  });
45
49
  }
46
50
  listPagingAll(options) {
47
51
  return __asyncGenerator(this, arguments, function* listPagingAll_1() {
48
- var e_1, _a;
52
+ var _a, e_1, _b, _c;
49
53
  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)));
54
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
55
+ _c = _f.value;
56
+ _d = false;
57
+ try {
58
+ const page = _c;
59
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
+ }
61
+ finally {
62
+ _d = true;
63
+ }
53
64
  }
54
65
  }
55
66
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
56
67
  finally {
57
68
  try {
58
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
59
70
  }
60
71
  finally { if (e_1) throw e_1.error; }
61
72
  }
@@ -76,10 +87,10 @@ const listOperationSpec = {
76
87
  httpMethod: "GET",
77
88
  responses: {
78
89
  200: {
79
- bodyMapper: Mappers.ElasticSanOperationListResult
90
+ bodyMapper: Mappers.OperationListResult
80
91
  },
81
92
  default: {
82
- bodyMapper: Mappers.ErrorModel
93
+ bodyMapper: Mappers.ErrorResponse
83
94
  }
84
95
  },
85
96
  queryParameters: [Parameters.apiVersion],
@@ -1 +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,MAA4B;QACtC,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;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,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BAAiB,GAA6B;IAClD,IAAI,EAAE,4CAA4C;IAClD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
3
+ import { ElasticSanManagement } from "../elasticSanManagement";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsCreateOptionalParams, PrivateEndpointConnectionsCreateResponse, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams } from "../models";
6
+ /** Class containing PrivateEndpointConnections operations. */
7
+ export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class PrivateEndpointConnections class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: ElasticSanManagement);
14
+ /**
15
+ * List all Private Endpoint Connections associated with the Elastic San.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param elasticSanName The name of the ElasticSan.
18
+ * @param options The options parameters.
19
+ */
20
+ list(resourceGroupName: string, elasticSanName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
21
+ private listPagingPage;
22
+ private listPagingAll;
23
+ /**
24
+ * Update the state of specified private endpoint connection associated with the Elastic San
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param elasticSanName The name of the ElasticSan.
27
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
28
+ * @param parameters Private Endpoint Connection Approval object.
29
+ * @param options The options parameters.
30
+ */
31
+ beginCreate(resourceGroupName: string, elasticSanName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateResponse>, PrivateEndpointConnectionsCreateResponse>>;
32
+ /**
33
+ * Update the state of specified private endpoint connection associated with the Elastic San
34
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
35
+ * @param elasticSanName The name of the ElasticSan.
36
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
37
+ * @param parameters Private Endpoint Connection Approval object.
38
+ * @param options The options parameters.
39
+ */
40
+ beginCreateAndWait(resourceGroupName: string, elasticSanName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise<PrivateEndpointConnectionsCreateResponse>;
41
+ /**
42
+ * Gets the specified private endpoint connection associated with the Elastic San
43
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
44
+ * @param elasticSanName The name of the ElasticSan.
45
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
46
+ * @param options The options parameters.
47
+ */
48
+ get(resourceGroupName: string, elasticSanName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
49
+ /**
50
+ * Deletes the specified private endpoint connection associated with the Elastic San
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param elasticSanName The name of the ElasticSan.
53
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
54
+ * @param options The options parameters.
55
+ */
56
+ beginDelete(resourceGroupName: string, elasticSanName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
57
+ /**
58
+ * Deletes the specified private endpoint connection associated with the Elastic San
59
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
60
+ * @param elasticSanName The name of the ElasticSan.
61
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
62
+ * @param options The options parameters.
63
+ */
64
+ beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
65
+ /**
66
+ * List all Private Endpoint Connections associated with the Elastic San.
67
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
68
+ * @param elasticSanName The name of the ElasticSan.
69
+ * @param options The options parameters.
70
+ */
71
+ private _list;
72
+ }
73
+ //# sourceMappingURL=privateEndpointConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAIrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,yBAAyB,EACzB,4CAA4C,EAE5C,8CAA8C,EAC9C,wCAAwC,EACxC,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC/C,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4CAA4C,GACrD,0BAA0B,CAAC,yBAAyB,CAAC;YAuBzC,cAAc;YAWd,aAAa;IAc5B;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,wCAAwC,CAAC,EACxD,wCAAwC,CACzC,CACF;IA+DD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAWpD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;OAMG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IA2DxD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;OAKG;IACH,OAAO,CAAC,KAAK;CAUd"}
@@ -0,0 +1,334 @@
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, __awaiter } 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
+ import { createHttpPoller } from "@azure/core-lro";
13
+ import { createLroSpec } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing PrivateEndpointConnections operations. */
16
+ export class PrivateEndpointConnectionsImpl {
17
+ /**
18
+ * Initialize a new instance of the class PrivateEndpointConnections class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List all Private Endpoint Connections associated with the Elastic San.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param elasticSanName The name of the ElasticSan.
28
+ * @param options The options parameters.
29
+ */
30
+ list(resourceGroupName, elasticSanName, options) {
31
+ const iter = this.listPagingAll(resourceGroupName, elasticSanName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listPagingPage(resourceGroupName, elasticSanName, options, settings);
44
+ }
45
+ };
46
+ }
47
+ listPagingPage(resourceGroupName, elasticSanName, options, _settings) {
48
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
+ let result;
50
+ result = yield __await(this._list(resourceGroupName, elasticSanName, options));
51
+ yield yield __await(result.value || []);
52
+ });
53
+ }
54
+ listPagingAll(resourceGroupName, elasticSanName, options) {
55
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
56
+ var _a, e_1, _b, _c;
57
+ try {
58
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, elasticSanName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
59
+ _c = _f.value;
60
+ _d = false;
61
+ try {
62
+ const page = _c;
63
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
64
+ }
65
+ finally {
66
+ _d = true;
67
+ }
68
+ }
69
+ }
70
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
71
+ finally {
72
+ try {
73
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
74
+ }
75
+ finally { if (e_1) throw e_1.error; }
76
+ }
77
+ });
78
+ }
79
+ /**
80
+ * Update the state of specified private endpoint connection associated with the Elastic San
81
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
82
+ * @param elasticSanName The name of the ElasticSan.
83
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
84
+ * @param parameters Private Endpoint Connection Approval object.
85
+ * @param options The options parameters.
86
+ */
87
+ beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
90
+ return this.client.sendOperationRequest(args, spec);
91
+ });
92
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
93
+ var _a;
94
+ let currentRawResponse = undefined;
95
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
96
+ const callback = (rawResponse, flatResponse) => {
97
+ currentRawResponse = rawResponse;
98
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
99
+ };
100
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
101
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
102
+ return {
103
+ flatResponse,
104
+ rawResponse: {
105
+ statusCode: currentRawResponse.status,
106
+ body: currentRawResponse.parsedBody,
107
+ headers: currentRawResponse.headers.toJSON()
108
+ }
109
+ };
110
+ });
111
+ const lro = createLroSpec({
112
+ sendOperationFn,
113
+ args: {
114
+ resourceGroupName,
115
+ elasticSanName,
116
+ privateEndpointConnectionName,
117
+ parameters,
118
+ options
119
+ },
120
+ spec: createOperationSpec
121
+ });
122
+ const poller = yield createHttpPoller(lro, {
123
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
124
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
125
+ resourceLocationConfig: "location"
126
+ });
127
+ yield poller.poll();
128
+ return poller;
129
+ });
130
+ }
131
+ /**
132
+ * Update the state of specified private endpoint connection associated with the Elastic San
133
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
134
+ * @param elasticSanName The name of the ElasticSan.
135
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
136
+ * @param parameters Private Endpoint Connection Approval object.
137
+ * @param options The options parameters.
138
+ */
139
+ beginCreateAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ const poller = yield this.beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options);
142
+ return poller.pollUntilDone();
143
+ });
144
+ }
145
+ /**
146
+ * Gets the specified private endpoint connection associated with the Elastic San
147
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
148
+ * @param elasticSanName The name of the ElasticSan.
149
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
150
+ * @param options The options parameters.
151
+ */
152
+ get(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
153
+ return this.client.sendOperationRequest({
154
+ resourceGroupName,
155
+ elasticSanName,
156
+ privateEndpointConnectionName,
157
+ options
158
+ }, getOperationSpec);
159
+ }
160
+ /**
161
+ * Deletes the specified private endpoint connection associated with the Elastic San
162
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
163
+ * @param elasticSanName The name of the ElasticSan.
164
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
165
+ * @param options The options parameters.
166
+ */
167
+ beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
170
+ return this.client.sendOperationRequest(args, spec);
171
+ });
172
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
173
+ var _a;
174
+ let currentRawResponse = undefined;
175
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
176
+ const callback = (rawResponse, flatResponse) => {
177
+ currentRawResponse = rawResponse;
178
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
179
+ };
180
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
181
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
182
+ return {
183
+ flatResponse,
184
+ rawResponse: {
185
+ statusCode: currentRawResponse.status,
186
+ body: currentRawResponse.parsedBody,
187
+ headers: currentRawResponse.headers.toJSON()
188
+ }
189
+ };
190
+ });
191
+ const lro = createLroSpec({
192
+ sendOperationFn,
193
+ args: {
194
+ resourceGroupName,
195
+ elasticSanName,
196
+ privateEndpointConnectionName,
197
+ options
198
+ },
199
+ spec: deleteOperationSpec
200
+ });
201
+ const poller = yield createHttpPoller(lro, {
202
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
203
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
204
+ resourceLocationConfig: "location"
205
+ });
206
+ yield poller.poll();
207
+ return poller;
208
+ });
209
+ }
210
+ /**
211
+ * Deletes the specified private endpoint connection associated with the Elastic San
212
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
213
+ * @param elasticSanName The name of the ElasticSan.
214
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
215
+ * @param options The options parameters.
216
+ */
217
+ beginDeleteAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const poller = yield this.beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options);
220
+ return poller.pollUntilDone();
221
+ });
222
+ }
223
+ /**
224
+ * List all Private Endpoint Connections associated with the Elastic San.
225
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
226
+ * @param elasticSanName The name of the ElasticSan.
227
+ * @param options The options parameters.
228
+ */
229
+ _list(resourceGroupName, elasticSanName, options) {
230
+ return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listOperationSpec);
231
+ }
232
+ }
233
+ // Operation Specifications
234
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
235
+ const createOperationSpec = {
236
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
237
+ httpMethod: "PUT",
238
+ responses: {
239
+ 200: {
240
+ bodyMapper: Mappers.PrivateEndpointConnection
241
+ },
242
+ 201: {
243
+ bodyMapper: Mappers.PrivateEndpointConnection
244
+ },
245
+ 202: {
246
+ bodyMapper: Mappers.PrivateEndpointConnection
247
+ },
248
+ 204: {
249
+ bodyMapper: Mappers.PrivateEndpointConnection
250
+ },
251
+ default: {
252
+ bodyMapper: Mappers.ErrorResponse
253
+ }
254
+ },
255
+ requestBody: Parameters.parameters6,
256
+ queryParameters: [Parameters.apiVersion],
257
+ urlParameters: [
258
+ Parameters.$host,
259
+ Parameters.subscriptionId,
260
+ Parameters.resourceGroupName,
261
+ Parameters.elasticSanName,
262
+ Parameters.privateEndpointConnectionName
263
+ ],
264
+ headerParameters: [Parameters.accept, Parameters.contentType],
265
+ mediaType: "json",
266
+ serializer
267
+ };
268
+ const getOperationSpec = {
269
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
270
+ httpMethod: "GET",
271
+ responses: {
272
+ 200: {
273
+ bodyMapper: Mappers.PrivateEndpointConnection
274
+ },
275
+ default: {
276
+ bodyMapper: Mappers.ErrorResponse
277
+ }
278
+ },
279
+ queryParameters: [Parameters.apiVersion],
280
+ urlParameters: [
281
+ Parameters.$host,
282
+ Parameters.subscriptionId,
283
+ Parameters.resourceGroupName,
284
+ Parameters.elasticSanName,
285
+ Parameters.privateEndpointConnectionName
286
+ ],
287
+ headerParameters: [Parameters.accept],
288
+ serializer
289
+ };
290
+ const deleteOperationSpec = {
291
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
292
+ httpMethod: "DELETE",
293
+ responses: {
294
+ 200: {},
295
+ 201: {},
296
+ 202: {},
297
+ 204: {},
298
+ default: {
299
+ bodyMapper: Mappers.ErrorResponse
300
+ }
301
+ },
302
+ queryParameters: [Parameters.apiVersion],
303
+ urlParameters: [
304
+ Parameters.$host,
305
+ Parameters.subscriptionId,
306
+ Parameters.resourceGroupName,
307
+ Parameters.elasticSanName,
308
+ Parameters.privateEndpointConnectionName
309
+ ],
310
+ headerParameters: [Parameters.accept],
311
+ serializer
312
+ };
313
+ const listOperationSpec = {
314
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections",
315
+ httpMethod: "GET",
316
+ responses: {
317
+ 200: {
318
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
319
+ },
320
+ default: {
321
+ bodyMapper: Mappers.ErrorResponse
322
+ }
323
+ },
324
+ queryParameters: [Parameters.apiVersion],
325
+ urlParameters: [
326
+ Parameters.$host,
327
+ Parameters.subscriptionId,
328
+ Parameters.resourceGroupName,
329
+ Parameters.elasticSanName
330
+ ],
331
+ headerParameters: [Parameters.accept],
332
+ serializer
333
+ };
334
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.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;AAEnD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAY3C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,cAAsB,EACtB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAC5E,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;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,cAAsB,EACtB,OAAsD,EACtD,SAAwB;;YAExB,IAAI,MAA8C,CAAC;YACnD,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,c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aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,2JAA2J;IAC7J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { PrivateLinkResources } from "../operationsInterfaces";
2
+ import { ElasticSanManagement } from "../elasticSanManagement";
3
+ import { PrivateLinkResourcesListByElasticSanOptionalParams, PrivateLinkResourcesListByElasticSanResponse } from "../models";
4
+ /** Class containing PrivateLinkResources operations. */
5
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class PrivateLinkResources class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: ElasticSanManagement);
12
+ /**
13
+ * Gets the private link resources that need to be created for a elastic San.
14
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
15
+ * @param elasticSanName The name of the ElasticSan.
16
+ * @param options The options parameters.
17
+ */
18
+ listByElasticSan(resourceGroupName: string, elasticSanName: string, options?: PrivateLinkResourcesListByElasticSanOptionalParams): Promise<PrivateLinkResourcesListByElasticSanResponse>;
19
+ }
20
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;OAKG;IACH,gBAAgB,CACd,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC;CAMzD"}
@@ -0,0 +1,53 @@
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 PrivateLinkResources operations. */
12
+ export class PrivateLinkResourcesImpl {
13
+ /**
14
+ * Initialize a new instance of the class PrivateLinkResources class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets the private link resources that need to be created for a elastic San.
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param elasticSanName The name of the ElasticSan.
24
+ * @param options The options parameters.
25
+ */
26
+ listByElasticSan(resourceGroupName, elasticSanName, options) {
27
+ return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listByElasticSanOperationSpec);
28
+ }
29
+ }
30
+ // Operation Specifications
31
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
32
+ const listByElasticSanOperationSpec = {
33
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateLinkResources",
34
+ httpMethod: "GET",
35
+ responses: {
36
+ 200: {
37
+ bodyMapper: Mappers.PrivateLinkResourceListResult
38
+ },
39
+ default: {
40
+ bodyMapper: Mappers.ErrorResponse
41
+ }
42
+ },
43
+ queryParameters: [Parameters.apiVersion],
44
+ urlParameters: [
45
+ Parameters.$host,
46
+ Parameters.subscriptionId,
47
+ Parameters.resourceGroupName,
48
+ Parameters.elasticSanName
49
+ ],
50
+ headerParameters: [Parameters.accept],
51
+ serializer
52
+ };
53
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.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;AAOnD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CACd,iBAAyB,EACzB,cAAsB,EACtB,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE,EAC9C,6BAA6B,CAC9B,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EACF,qJAAqJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
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,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,cAAc,CAAC;YAkB9B,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}