@azure/arm-azurestack 1.1.0 → 3.0.0-beta.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 +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +75 -73
  4. package/dist/index.js +3000 -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/azureStackManagementClient.d.ts +24 -0
  9. package/dist-esm/src/azureStackManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureStackManagementClient.js +57 -0
  11. package/dist-esm/src/azureStackManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +854 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +55 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +37 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +779 -377
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +20 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +163 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/cloudManifestFile.d.ts +24 -0
  29. package/dist-esm/src/operations/cloudManifestFile.d.ts.map +1 -0
  30. package/dist-esm/src/operations/cloudManifestFile.js +70 -0
  31. package/dist-esm/src/operations/cloudManifestFile.js.map +1 -0
  32. package/dist-esm/src/operations/customerSubscriptions.d.ts +63 -0
  33. package/dist-esm/src/operations/customerSubscriptions.d.ts.map +1 -0
  34. package/dist-esm/src/operations/customerSubscriptions.js +241 -0
  35. package/dist-esm/src/operations/customerSubscriptions.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +3 -1
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +6 -6
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/linkedSubscriptions.d.ts +83 -0
  41. package/dist-esm/src/operations/linkedSubscriptions.d.ts.map +1 -0
  42. package/dist-esm/src/operations/linkedSubscriptions.js +359 -0
  43. package/dist-esm/src/operations/linkedSubscriptions.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/products.d.ts +78 -0
  49. package/dist-esm/src/operations/products.d.ts.map +1 -0
  50. package/dist-esm/src/operations/products.js +303 -0
  51. package/dist-esm/src/operations/products.js.map +1 -0
  52. package/dist-esm/src/operations/registrations.d.ts +97 -0
  53. package/dist-esm/src/operations/registrations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/registrations.js +416 -0
  55. package/dist-esm/src/operations/registrations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts +16 -0
  57. package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/cloudManifestFile.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/cloudManifestFile.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts +38 -0
  61. package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/customerSubscriptions.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/customerSubscriptions.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
  69. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/products.d.ts +53 -0
  77. package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/products.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/registrations.d.ts +61 -0
  81. package/dist-esm/src/operationsInterfaces/registrations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/registrations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/registrations.js.map +1 -0
  84. package/dist-esm/test/sampleTest.d.ts +4 -0
  85. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  86. package/dist-esm/test/sampleTest.js +43 -0
  87. package/dist-esm/test/sampleTest.js.map +1 -0
  88. package/package.json +68 -34
  89. package/review/arm-azurestack.api.md +695 -0
  90. package/rollup.config.js +184 -27
  91. package/src/azureStackManagementClient.ts +100 -0
  92. package/src/index.ts +12 -0
  93. package/src/models/index.ts +981 -0
  94. package/{lib → src}/models/mappers.ts +809 -377
  95. package/src/models/parameters.ts +192 -0
  96. package/src/operations/cloudManifestFile.ts +93 -0
  97. package/src/operations/customerSubscriptions.ts +317 -0
  98. package/{lib → src}/operations/index.ts +6 -6
  99. package/src/operations/linkedSubscriptions.ts +450 -0
  100. package/src/operations/operations.ts +137 -0
  101. package/src/operations/products.ts +403 -0
  102. package/src/operations/registrations.ts +521 -0
  103. package/src/operationsInterfaces/cloudManifestFile.ts +34 -0
  104. package/src/operationsInterfaces/customerSubscriptions.ts +75 -0
  105. package/src/operationsInterfaces/index.ts +14 -0
  106. package/src/operationsInterfaces/linkedSubscriptions.ts +91 -0
  107. package/src/operationsInterfaces/operations.ts +22 -0
  108. package/src/operationsInterfaces/products.ts +104 -0
  109. package/src/operationsInterfaces/registrations.ts +116 -0
  110. package/tsconfig.json +4 -4
  111. package/types/arm-azurestack.d.ts +1206 -0
  112. package/types/tsdoc-metadata.json +11 -0
  113. package/dist/arm-azurestack.js +0 -1844
  114. package/dist/arm-azurestack.js.map +0 -1
  115. package/dist/arm-azurestack.min.js +0 -1
  116. package/dist/arm-azurestack.min.js.map +0 -1
  117. package/esm/azureStackManagementClient.d.ts +0 -22
  118. package/esm/azureStackManagementClient.d.ts.map +0 -1
  119. package/esm/azureStackManagementClient.js +0 -37
  120. package/esm/azureStackManagementClient.js.map +0 -1
  121. package/esm/azureStackManagementClientContext.d.ts +0 -17
  122. package/esm/azureStackManagementClientContext.d.ts.map +0 -1
  123. package/esm/azureStackManagementClientContext.js +0 -57
  124. package/esm/azureStackManagementClientContext.js.map +0 -1
  125. package/esm/models/customerSubscriptionsMappers.d.ts +0 -2
  126. package/esm/models/customerSubscriptionsMappers.d.ts.map +0 -1
  127. package/esm/models/customerSubscriptionsMappers.js +0 -11
  128. package/esm/models/customerSubscriptionsMappers.js.map +0 -1
  129. package/esm/models/index.d.ts +0 -957
  130. package/esm/models/index.d.ts.map +0 -1
  131. package/esm/models/index.js +0 -10
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/mappers.d.ts +0 -27
  134. package/esm/models/mappers.d.ts.map +0 -1
  135. package/esm/models/mappers.js.map +0 -1
  136. package/esm/models/operationsMappers.d.ts +0 -2
  137. package/esm/models/operationsMappers.d.ts.map +0 -1
  138. package/esm/models/operationsMappers.js +0 -11
  139. package/esm/models/operationsMappers.js.map +0 -1
  140. package/esm/models/parameters.d.ts +0 -10
  141. package/esm/models/parameters.d.ts.map +0 -1
  142. package/esm/models/parameters.js +0 -92
  143. package/esm/models/parameters.js.map +0 -1
  144. package/esm/models/productsMappers.d.ts +0 -2
  145. package/esm/models/productsMappers.d.ts.map +0 -1
  146. package/esm/models/productsMappers.js +0 -11
  147. package/esm/models/productsMappers.js.map +0 -1
  148. package/esm/models/registrationsMappers.d.ts +0 -2
  149. package/esm/models/registrationsMappers.d.ts.map +0 -1
  150. package/esm/models/registrationsMappers.js +0 -11
  151. package/esm/models/registrationsMappers.js.map +0 -1
  152. package/esm/operations/customerSubscriptions.d.ts +0 -127
  153. package/esm/operations/customerSubscriptions.d.ts.map +0 -1
  154. package/esm/operations/customerSubscriptions.js +0 -188
  155. package/esm/operations/customerSubscriptions.js.map +0 -1
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js.map +0 -1
  158. package/esm/operations/operations.d.ts +0 -46
  159. package/esm/operations/operations.d.ts.map +0 -1
  160. package/esm/operations/operations.js +0 -77
  161. package/esm/operations/operations.js.map +0 -1
  162. package/esm/operations/products.d.ts +0 -100
  163. package/esm/operations/products.d.ts.map +0 -1
  164. package/esm/operations/products.js +0 -150
  165. package/esm/operations/products.js.map +0 -1
  166. package/esm/operations/registrations.d.ts +0 -160
  167. package/esm/operations/registrations.d.ts.map +0 -1
  168. package/esm/operations/registrations.js +0 -250
  169. package/esm/operations/registrations.js.map +0 -1
  170. package/lib/azureStackManagementClient.ts +0 -49
  171. package/lib/azureStackManagementClientContext.ts +0 -63
  172. package/lib/models/customerSubscriptionsMappers.ts +0 -26
  173. package/lib/models/index.ts +0 -1011
  174. package/lib/models/operationsMappers.ts +0 -17
  175. package/lib/models/parameters.ts +0 -94
  176. package/lib/models/productsMappers.ts +0 -29
  177. package/lib/models/registrationsMappers.ts +0 -28
  178. package/lib/operations/customerSubscriptions.ts +0 -332
  179. package/lib/operations/operations.ts +0 -123
  180. package/lib/operations/products.ts +0 -260
  181. package/lib/operations/registrations.ts +0 -440
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/customerSubscriptions.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,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,aAAqB,EACrB,gBAAwB,EACxB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC1E,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,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;YACvE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,aAAqB,EACrB,gBAAwB,EACxB,OAAiD;;YAEjD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA,CAAC;YACxE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,M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QAC3B,UAAU,CAAC,wBAAwB;KACpC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;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;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export * from "./operations";
2
+ export * from "./cloudManifestFile";
3
+ export * from "./customerSubscriptions";
2
4
  export * from "./products";
3
5
  export * from "./registrations";
4
- export * from "./customerSubscriptions";
6
+ export * from "./linkedSubscriptions";
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
  export * from "./operations";
9
+ export * from "./cloudManifestFile";
10
+ export * from "./customerSubscriptions";
11
11
  export * from "./products";
12
12
  export * from "./registrations";
13
- export * from "./customerSubscriptions";
13
+ export * from "./linkedSubscriptions";
14
14
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { LinkedSubscriptions } from "../operationsInterfaces";
3
+ import { AzureStackManagementClient } from "../azureStackManagementClient";
4
+ import { LinkedSubscription, LinkedSubscriptionsListByResourceGroupOptionalParams, LinkedSubscriptionsListBySubscriptionOptionalParams, LinkedSubscriptionsGetOptionalParams, LinkedSubscriptionsGetResponse, LinkedSubscriptionsDeleteOptionalParams, LinkedSubscriptionParameter, LinkedSubscriptionsCreateOrUpdateOptionalParams, LinkedSubscriptionsCreateOrUpdateResponse, LinkedSubscriptionsUpdateOptionalParams, LinkedSubscriptionsUpdateResponse } from "../models";
5
+ /** Class containing LinkedSubscriptions operations. */
6
+ export declare class LinkedSubscriptionsImpl implements LinkedSubscriptions {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class LinkedSubscriptions class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureStackManagementClient);
13
+ /**
14
+ * Returns a list of all linked subscriptions under current resource group.
15
+ * @param resourceGroup Name of the resource group.
16
+ * @param options The options parameters.
17
+ */
18
+ listByResourceGroup(resourceGroup: string, options?: LinkedSubscriptionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<LinkedSubscription>;
19
+ private listByResourceGroupPagingPage;
20
+ private listByResourceGroupPagingAll;
21
+ /**
22
+ * Returns a list of all linked subscriptions under current subscription.
23
+ * @param options The options parameters.
24
+ */
25
+ listBySubscription(options?: LinkedSubscriptionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<LinkedSubscription>;
26
+ private listBySubscriptionPagingPage;
27
+ private listBySubscriptionPagingAll;
28
+ /**
29
+ * Returns a list of all linked subscriptions under current resource group.
30
+ * @param resourceGroup Name of the resource group.
31
+ * @param options The options parameters.
32
+ */
33
+ private _listByResourceGroup;
34
+ /**
35
+ * Returns a list of all linked subscriptions under current subscription.
36
+ * @param options The options parameters.
37
+ */
38
+ private _listBySubscription;
39
+ /**
40
+ * Returns the properties of a Linked Subscription resource.
41
+ * @param resourceGroup Name of the resource group.
42
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
43
+ * @param options The options parameters.
44
+ */
45
+ get(resourceGroup: string, linkedSubscriptionName: string, options?: LinkedSubscriptionsGetOptionalParams): Promise<LinkedSubscriptionsGetResponse>;
46
+ /**
47
+ * Delete the requested Linked Subscription resource.
48
+ * @param resourceGroup Name of the resource group.
49
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
50
+ * @param options The options parameters.
51
+ */
52
+ delete(resourceGroup: string, linkedSubscriptionName: string, options?: LinkedSubscriptionsDeleteOptionalParams): Promise<void>;
53
+ /**
54
+ * Create or update a linked subscription resource.
55
+ * @param resourceGroup Name of the resource group.
56
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
57
+ * @param resource Linked subscription resource parameter.
58
+ * @param options The options parameters.
59
+ */
60
+ createOrUpdate(resourceGroup: string, linkedSubscriptionName: string, resource: LinkedSubscriptionParameter, options?: LinkedSubscriptionsCreateOrUpdateOptionalParams): Promise<LinkedSubscriptionsCreateOrUpdateResponse>;
61
+ /**
62
+ * Patch a Linked Subscription resource.
63
+ * @param resourceGroup Name of the resource group.
64
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
65
+ * @param resource Linked subscription resource parameter.
66
+ * @param options The options parameters.
67
+ */
68
+ update(resourceGroup: string, linkedSubscriptionName: string, resource: LinkedSubscriptionParameter, options?: LinkedSubscriptionsUpdateOptionalParams): Promise<LinkedSubscriptionsUpdateResponse>;
69
+ /**
70
+ * ListByResourceGroupNext
71
+ * @param resourceGroup Name of the resource group.
72
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
73
+ * @param options The options parameters.
74
+ */
75
+ private _listByResourceGroupNext;
76
+ /**
77
+ * ListBySubscriptionNext
78
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
79
+ * @param options The options parameters.
80
+ */
81
+ private _listBySubscriptionNext;
82
+ }
83
+ //# sourceMappingURL=linkedSubscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptions.d.ts","sourceRoot":"","sources":["../../../src/operations/linkedSubscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,kBAAkB,EAElB,oDAAoD,EAEpD,mDAAmD,EAGnD,oCAAoC,EACpC,8BAA8B,EAC9B,uCAAuC,EACvC,2BAA2B,EAC3B,+CAA+C,EAC/C,yCAAyC,EACzC,uCAAuC,EACvC,iCAAiC,EAGlC,MAAM,WAAW,CAAC;AAGnB,uDAAuD;AACvD,qBAAa,uBAAwB,YAAW,mBAAmB;IACjE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;;OAIG;IACI,mBAAmB,CACxB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,kBAAkB,CAAC;YAelC,6BAA6B;YAkB7B,4BAA4B;IAY3C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,kBAAkB,CAAC;YAelC,4BAA4B;YAa5B,2BAA2B;IAQ1C;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;OAKG;IACH,GAAG,CACD,aAAa,EAAE,MAAM,EACrB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;;OAKG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,cAAc,CACZ,aAAa,EAAE,MAAM,EACrB,sBAAsB,EAAE,MAAM,EAC9B,QAAQ,EAAE,2BAA2B,EACrC,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;OAMG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,sBAAsB,EAAE,MAAM,EAC9B,QAAQ,EAAE,2BAA2B,EACrC,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAShC"}
@@ -0,0 +1,359 @@
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 LinkedSubscriptions operations. */
14
+ export class LinkedSubscriptionsImpl {
15
+ /**
16
+ * Initialize a new instance of the class LinkedSubscriptions class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Returns a list of all linked subscriptions under current resource group.
24
+ * @param resourceGroup Name of the resource group.
25
+ * @param options The options parameters.
26
+ */
27
+ listByResourceGroup(resourceGroup, options) {
28
+ const iter = this.listByResourceGroupPagingAll(resourceGroup, options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: () => {
37
+ return this.listByResourceGroupPagingPage(resourceGroup, options);
38
+ }
39
+ };
40
+ }
41
+ listByResourceGroupPagingPage(resourceGroup, options) {
42
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
43
+ let result = yield __await(this._listByResourceGroup(resourceGroup, options));
44
+ yield yield __await(result.value || []);
45
+ let continuationToken = result.nextLink;
46
+ while (continuationToken) {
47
+ result = yield __await(this._listByResourceGroupNext(resourceGroup, continuationToken, options));
48
+ continuationToken = result.nextLink;
49
+ yield yield __await(result.value || []);
50
+ }
51
+ });
52
+ }
53
+ listByResourceGroupPagingAll(resourceGroup, options) {
54
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
55
+ var e_1, _a;
56
+ try {
57
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroup, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
58
+ const page = _c.value;
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 (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ });
70
+ }
71
+ /**
72
+ * Returns a list of all linked subscriptions under current subscription.
73
+ * @param options The options parameters.
74
+ */
75
+ listBySubscription(options) {
76
+ const iter = this.listBySubscriptionPagingAll(options);
77
+ return {
78
+ next() {
79
+ return iter.next();
80
+ },
81
+ [Symbol.asyncIterator]() {
82
+ return this;
83
+ },
84
+ byPage: () => {
85
+ return this.listBySubscriptionPagingPage(options);
86
+ }
87
+ };
88
+ }
89
+ listBySubscriptionPagingPage(options) {
90
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
91
+ let result = yield __await(this._listBySubscription(options));
92
+ yield yield __await(result.value || []);
93
+ let continuationToken = result.nextLink;
94
+ while (continuationToken) {
95
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
96
+ continuationToken = result.nextLink;
97
+ yield yield __await(result.value || []);
98
+ }
99
+ });
100
+ }
101
+ listBySubscriptionPagingAll(options) {
102
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
103
+ var e_2, _a;
104
+ try {
105
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
106
+ const page = _c.value;
107
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
108
+ }
109
+ }
110
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
111
+ finally {
112
+ try {
113
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
114
+ }
115
+ finally { if (e_2) throw e_2.error; }
116
+ }
117
+ });
118
+ }
119
+ /**
120
+ * Returns a list of all linked subscriptions under current resource group.
121
+ * @param resourceGroup Name of the resource group.
122
+ * @param options The options parameters.
123
+ */
124
+ _listByResourceGroup(resourceGroup, options) {
125
+ return this.client.sendOperationRequest({ resourceGroup, options }, listByResourceGroupOperationSpec);
126
+ }
127
+ /**
128
+ * Returns a list of all linked subscriptions under current subscription.
129
+ * @param options The options parameters.
130
+ */
131
+ _listBySubscription(options) {
132
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
133
+ }
134
+ /**
135
+ * Returns the properties of a Linked Subscription resource.
136
+ * @param resourceGroup Name of the resource group.
137
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
138
+ * @param options The options parameters.
139
+ */
140
+ get(resourceGroup, linkedSubscriptionName, options) {
141
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, getOperationSpec);
142
+ }
143
+ /**
144
+ * Delete the requested Linked Subscription resource.
145
+ * @param resourceGroup Name of the resource group.
146
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
147
+ * @param options The options parameters.
148
+ */
149
+ delete(resourceGroup, linkedSubscriptionName, options) {
150
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, deleteOperationSpec);
151
+ }
152
+ /**
153
+ * Create or update a linked subscription resource.
154
+ * @param resourceGroup Name of the resource group.
155
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
156
+ * @param resource Linked subscription resource parameter.
157
+ * @param options The options parameters.
158
+ */
159
+ createOrUpdate(resourceGroup, linkedSubscriptionName, resource, options) {
160
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, createOrUpdateOperationSpec);
161
+ }
162
+ /**
163
+ * Patch a Linked Subscription resource.
164
+ * @param resourceGroup Name of the resource group.
165
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
166
+ * @param resource Linked subscription resource parameter.
167
+ * @param options The options parameters.
168
+ */
169
+ update(resourceGroup, linkedSubscriptionName, resource, options) {
170
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, updateOperationSpec);
171
+ }
172
+ /**
173
+ * ListByResourceGroupNext
174
+ * @param resourceGroup Name of the resource group.
175
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
176
+ * @param options The options parameters.
177
+ */
178
+ _listByResourceGroupNext(resourceGroup, nextLink, options) {
179
+ return this.client.sendOperationRequest({ resourceGroup, nextLink, options }, listByResourceGroupNextOperationSpec);
180
+ }
181
+ /**
182
+ * ListBySubscriptionNext
183
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
184
+ * @param options The options parameters.
185
+ */
186
+ _listBySubscriptionNext(nextLink, options) {
187
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
188
+ }
189
+ }
190
+ // Operation Specifications
191
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
192
+ const listByResourceGroupOperationSpec = {
193
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions",
194
+ httpMethod: "GET",
195
+ responses: {
196
+ 200: {
197
+ bodyMapper: Mappers.LinkedSubscriptionsList
198
+ },
199
+ default: {
200
+ bodyMapper: Mappers.ErrorResponse
201
+ }
202
+ },
203
+ queryParameters: [Parameters.apiVersion],
204
+ urlParameters: [
205
+ Parameters.$host,
206
+ Parameters.subscriptionId,
207
+ Parameters.resourceGroup
208
+ ],
209
+ headerParameters: [Parameters.accept],
210
+ serializer
211
+ };
212
+ const listBySubscriptionOperationSpec = {
213
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions",
214
+ httpMethod: "GET",
215
+ responses: {
216
+ 200: {
217
+ bodyMapper: Mappers.LinkedSubscriptionsList
218
+ },
219
+ default: {
220
+ bodyMapper: Mappers.ErrorResponse
221
+ }
222
+ },
223
+ queryParameters: [Parameters.apiVersion],
224
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
225
+ headerParameters: [Parameters.accept],
226
+ serializer
227
+ };
228
+ const getOperationSpec = {
229
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
230
+ httpMethod: "GET",
231
+ responses: {
232
+ 200: {
233
+ bodyMapper: Mappers.LinkedSubscription
234
+ },
235
+ default: {
236
+ bodyMapper: Mappers.ErrorResponse
237
+ }
238
+ },
239
+ queryParameters: [Parameters.apiVersion],
240
+ urlParameters: [
241
+ Parameters.$host,
242
+ Parameters.subscriptionId,
243
+ Parameters.resourceGroup,
244
+ Parameters.linkedSubscriptionName
245
+ ],
246
+ headerParameters: [Parameters.accept],
247
+ serializer
248
+ };
249
+ const deleteOperationSpec = {
250
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
251
+ httpMethod: "DELETE",
252
+ responses: {
253
+ 200: {},
254
+ 204: {},
255
+ default: {
256
+ bodyMapper: Mappers.ErrorResponse
257
+ }
258
+ },
259
+ queryParameters: [Parameters.apiVersion],
260
+ urlParameters: [
261
+ Parameters.$host,
262
+ Parameters.subscriptionId,
263
+ Parameters.resourceGroup,
264
+ Parameters.linkedSubscriptionName
265
+ ],
266
+ headerParameters: [Parameters.accept],
267
+ serializer
268
+ };
269
+ const createOrUpdateOperationSpec = {
270
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
271
+ httpMethod: "PUT",
272
+ responses: {
273
+ 200: {
274
+ bodyMapper: Mappers.LinkedSubscription
275
+ },
276
+ 201: {
277
+ bodyMapper: Mappers.LinkedSubscription
278
+ },
279
+ default: {
280
+ bodyMapper: Mappers.ErrorResponse
281
+ }
282
+ },
283
+ requestBody: Parameters.resource,
284
+ queryParameters: [Parameters.apiVersion],
285
+ urlParameters: [
286
+ Parameters.$host,
287
+ Parameters.subscriptionId,
288
+ Parameters.resourceGroup,
289
+ Parameters.linkedSubscriptionName
290
+ ],
291
+ headerParameters: [Parameters.accept, Parameters.contentType],
292
+ mediaType: "json",
293
+ serializer
294
+ };
295
+ const updateOperationSpec = {
296
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
297
+ httpMethod: "PATCH",
298
+ responses: {
299
+ 200: {
300
+ bodyMapper: Mappers.LinkedSubscription
301
+ },
302
+ default: {
303
+ bodyMapper: Mappers.ErrorResponse
304
+ }
305
+ },
306
+ requestBody: Parameters.resource,
307
+ queryParameters: [Parameters.apiVersion],
308
+ urlParameters: [
309
+ Parameters.$host,
310
+ Parameters.subscriptionId,
311
+ Parameters.resourceGroup,
312
+ Parameters.linkedSubscriptionName
313
+ ],
314
+ headerParameters: [Parameters.accept, Parameters.contentType],
315
+ mediaType: "json",
316
+ serializer
317
+ };
318
+ const listByResourceGroupNextOperationSpec = {
319
+ path: "{nextLink}",
320
+ httpMethod: "GET",
321
+ responses: {
322
+ 200: {
323
+ bodyMapper: Mappers.LinkedSubscriptionsList
324
+ },
325
+ default: {
326
+ bodyMapper: Mappers.ErrorResponse
327
+ }
328
+ },
329
+ queryParameters: [Parameters.apiVersion],
330
+ urlParameters: [
331
+ Parameters.$host,
332
+ Parameters.nextLink,
333
+ Parameters.subscriptionId,
334
+ Parameters.resourceGroup
335
+ ],
336
+ headerParameters: [Parameters.accept],
337
+ serializer
338
+ };
339
+ const listBySubscriptionNextOperationSpec = {
340
+ path: "{nextLink}",
341
+ httpMethod: "GET",
342
+ responses: {
343
+ 200: {
344
+ bodyMapper: Mappers.LinkedSubscriptionsList
345
+ },
346
+ default: {
347
+ bodyMapper: Mappers.ErrorResponse
348
+ }
349
+ },
350
+ queryParameters: [Parameters.apiVersion],
351
+ urlParameters: [
352
+ Parameters.$host,
353
+ Parameters.nextLink,
354
+ Parameters.subscriptionId
355
+ ],
356
+ headerParameters: [Parameters.accept],
357
+ serializer
358
+ };
359
+ //# sourceMappingURL=linkedSubscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/linkedSubscriptions.ts"],"names":[],"mappings":"AAAA;;;;;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AAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;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"}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { AzureStackManagementClient } from "../azureStackManagementClient";
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: AzureStackManagementClient);
13
+ /**
14
+ * Returns the list of supported REST operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Returns the list of supported REST operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# 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,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,120 @@
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
+ * Returns the list of supported REST 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
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Returns the list of supported REST operations.
72
+ * @param options The options parameters.
73
+ */
74
+ _list(options) {
75
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
76
+ }
77
+ /**
78
+ * ListNext
79
+ * @param nextLink The nextLink from the previous successful call to the List method.
80
+ * @param options The options parameters.
81
+ */
82
+ _listNext(nextLink, options) {
83
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ }
86
+ // Operation Specifications
87
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
+ const listOperationSpec = {
89
+ path: "/providers/Microsoft.AzureStack/operations",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.OperationList
94
+ },
95
+ default: {
96
+ bodyMapper: Mappers.ErrorResponse
97
+ }
98
+ },
99
+ queryParameters: [Parameters.apiVersion],
100
+ urlParameters: [Parameters.$host],
101
+ headerParameters: [Parameters.accept],
102
+ serializer
103
+ };
104
+ const listNextOperationSpec = {
105
+ path: "{nextLink}",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.OperationList
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [Parameters.$host, Parameters.nextLink],
117
+ headerParameters: [Parameters.accept],
118
+ serializer
119
+ };
120
+ //# sourceMappingURL=operations.js.map