@azure/arm-subscriptions 3.1.2 → 5.0.0

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 (199) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -79
  4. package/dist/index.js +2330 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +658 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +36 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +36 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +1057 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +15 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +121 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/alias.d.ts +53 -0
  29. package/dist-esm/src/operations/alias.d.ts.map +1 -0
  30. package/dist-esm/src/operations/alias.js +180 -0
  31. package/dist-esm/src/operations/alias.js.map +1 -0
  32. package/dist-esm/src/operations/billingAccount.d.ts +19 -0
  33. package/dist-esm/src/operations/billingAccount.d.ts.map +1 -0
  34. package/dist-esm/src/operations/billingAccount.js +47 -0
  35. package/dist-esm/src/operations/billingAccount.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +5 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/subscriptionOperations.d.ts +53 -0
  45. package/dist-esm/src/operations/subscriptionOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/subscriptionOperations.js +201 -0
  47. package/dist-esm/src/operations/subscriptionOperations.js.map +1 -0
  48. package/dist-esm/src/operations/subscriptionPolicy.d.ts +43 -0
  49. package/dist-esm/src/operations/subscriptionPolicy.d.ts.map +1 -0
  50. package/dist-esm/src/operations/subscriptionPolicy.js +169 -0
  51. package/dist-esm/src/operations/subscriptionPolicy.js.map +1 -0
  52. package/dist-esm/src/operations/subscriptions.d.ts +54 -0
  53. package/dist-esm/src/operations/subscriptions.d.ts.map +1 -0
  54. package/dist-esm/src/operations/subscriptions.js +201 -0
  55. package/dist-esm/src/operations/subscriptions.js.map +1 -0
  56. package/dist-esm/src/operations/tenants.d.ts +32 -0
  57. package/dist-esm/src/operations/tenants.d.ts.map +1 -0
  58. package/dist-esm/src/operations/tenants.js +114 -0
  59. package/dist-esm/src/operations/tenants.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/alias.d.ts +45 -0
  61. package/dist-esm/src/operationsInterfaces/alias.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/alias.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/alias.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/billingAccount.d.ts +11 -0
  65. package/dist-esm/src/operationsInterfaces/billingAccount.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/billingAccount.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/billingAccount.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  69. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  71. package/dist-esm/src/operationsInterfaces/index.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/subscriptionOperations.d.ts +45 -0
  77. package/dist-esm/src/operationsInterfaces/subscriptionOperations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/subscriptionOperations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/subscriptionOperations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.d.ts +22 -0
  81. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +24 -0
  85. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/subscriptions.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/subscriptions.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/tenants.d.ts +11 -0
  89. package/dist-esm/src/operationsInterfaces/tenants.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/tenants.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/tenants.js.map +1 -0
  92. package/dist-esm/src/subscriptionClient.d.ts +21 -0
  93. package/dist-esm/src/subscriptionClient.d.ts.map +1 -0
  94. package/dist-esm/src/subscriptionClient.js +50 -0
  95. package/dist-esm/src/subscriptionClient.js.map +1 -0
  96. package/dist-esm/test/sampleTest.d.ts +2 -0
  97. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  98. package/dist-esm/test/sampleTest.js +40 -0
  99. package/dist-esm/test/sampleTest.js.map +1 -0
  100. package/package.json +65 -32
  101. package/review/arm-subscriptions.api.md +559 -0
  102. package/rollup.config.js +181 -30
  103. package/src/index.ts +12 -0
  104. package/src/lroImpl.ts +34 -0
  105. package/src/models/index.ts +551 -489
  106. package/src/models/mappers.ts +685 -190
  107. package/src/models/parameters.ts +94 -27
  108. package/src/operations/alias.ts +170 -170
  109. package/src/operations/billingAccount.ts +65 -0
  110. package/src/operations/index.ts +5 -5
  111. package/src/operations/operations.ts +103 -40
  112. package/src/operations/subscriptionOperations.ts +216 -120
  113. package/src/operations/subscriptionPolicy.ts +207 -0
  114. package/src/operations/subscriptions.ts +163 -153
  115. package/src/operations/tenants.ts +87 -79
  116. package/src/operationsInterfaces/alias.ts +75 -0
  117. package/src/operationsInterfaces/billingAccount.ts +25 -0
  118. package/src/operationsInterfaces/index.ts +15 -0
  119. package/src/operationsInterfaces/operations.ts +22 -0
  120. package/src/operationsInterfaces/subscriptionOperations.ts +92 -0
  121. package/src/operationsInterfaces/subscriptionPolicy.ts +46 -0
  122. package/src/operationsInterfaces/subscriptions.ts +48 -0
  123. package/src/operationsInterfaces/tenants.ts +22 -0
  124. package/src/subscriptionClient.ts +81 -43
  125. package/tsconfig.json +3 -3
  126. package/types/arm-subscriptions.d.ts +925 -0
  127. package/types/tsdoc-metadata.json +11 -0
  128. package/dist/arm-subscriptions.js +0 -1442
  129. package/dist/arm-subscriptions.js.map +0 -1
  130. package/dist/arm-subscriptions.min.js +0 -1
  131. package/dist/arm-subscriptions.min.js.map +0 -1
  132. package/esm/models/aliasMappers.d.ts +0 -2
  133. package/esm/models/aliasMappers.d.ts.map +0 -1
  134. package/esm/models/aliasMappers.js +0 -9
  135. package/esm/models/aliasMappers.js.map +0 -1
  136. package/esm/models/index.d.ts +0 -624
  137. package/esm/models/index.d.ts.map +0 -1
  138. package/esm/models/index.js +0 -8
  139. package/esm/models/index.js.map +0 -1
  140. package/esm/models/mappers.d.ts +0 -25
  141. package/esm/models/mappers.d.ts.map +0 -1
  142. package/esm/models/mappers.js +0 -574
  143. package/esm/models/mappers.js.map +0 -1
  144. package/esm/models/operationsMappers.d.ts +0 -2
  145. package/esm/models/operationsMappers.d.ts.map +0 -1
  146. package/esm/models/operationsMappers.js +0 -9
  147. package/esm/models/operationsMappers.js.map +0 -1
  148. package/esm/models/parameters.d.ts +0 -8
  149. package/esm/models/parameters.d.ts.map +0 -1
  150. package/esm/models/parameters.js +0 -75
  151. package/esm/models/parameters.js.map +0 -1
  152. package/esm/models/subscriptionOperationsMappers.d.ts +0 -2
  153. package/esm/models/subscriptionOperationsMappers.d.ts.map +0 -1
  154. package/esm/models/subscriptionOperationsMappers.js +0 -9
  155. package/esm/models/subscriptionOperationsMappers.js.map +0 -1
  156. package/esm/models/subscriptionsMappers.d.ts +0 -2
  157. package/esm/models/subscriptionsMappers.d.ts.map +0 -1
  158. package/esm/models/subscriptionsMappers.js +0 -9
  159. package/esm/models/subscriptionsMappers.js.map +0 -1
  160. package/esm/models/tenantsMappers.d.ts +0 -2
  161. package/esm/models/tenantsMappers.d.ts.map +0 -1
  162. package/esm/models/tenantsMappers.js +0 -9
  163. package/esm/models/tenantsMappers.js.map +0 -1
  164. package/esm/operations/alias.d.ts +0 -81
  165. package/esm/operations/alias.d.ts.map +0 -1
  166. package/esm/operations/alias.js +0 -161
  167. package/esm/operations/alias.js.map +0 -1
  168. package/esm/operations/index.d.ts.map +0 -1
  169. package/esm/operations/index.js.map +0 -1
  170. package/esm/operations/operations.d.ts +0 -28
  171. package/esm/operations/operations.d.ts.map +0 -1
  172. package/esm/operations/operations.js +0 -51
  173. package/esm/operations/operations.js.map +0 -1
  174. package/esm/operations/subscriptionOperations.d.ts +0 -70
  175. package/esm/operations/subscriptionOperations.d.ts.map +0 -1
  176. package/esm/operations/subscriptionOperations.js +0 -117
  177. package/esm/operations/subscriptionOperations.js.map +0 -1
  178. package/esm/operations/subscriptions.d.ts +0 -84
  179. package/esm/operations/subscriptions.d.ts.map +0 -1
  180. package/esm/operations/subscriptions.js +0 -133
  181. package/esm/operations/subscriptions.js.map +0 -1
  182. package/esm/operations/tenants.d.ts +0 -46
  183. package/esm/operations/tenants.d.ts.map +0 -1
  184. package/esm/operations/tenants.js +0 -77
  185. package/esm/operations/tenants.js.map +0 -1
  186. package/esm/subscriptionClient.d.ts +0 -27
  187. package/esm/subscriptionClient.d.ts.map +0 -1
  188. package/esm/subscriptionClient.js +0 -41
  189. package/esm/subscriptionClient.js.map +0 -1
  190. package/esm/subscriptionClientContext.d.ts +0 -19
  191. package/esm/subscriptionClientContext.d.ts.map +0 -1
  192. package/esm/subscriptionClientContext.js +0 -55
  193. package/esm/subscriptionClientContext.js.map +0 -1
  194. package/src/models/aliasMappers.ts +0 -18
  195. package/src/models/operationsMappers.ts +0 -14
  196. package/src/models/subscriptionOperationsMappers.ts +0 -15
  197. package/src/models/subscriptionsMappers.ts +0 -16
  198. package/src/models/tenantsMappers.ts +0 -13
  199. package/src/subscriptionClientContext.ts +0 -60
@@ -0,0 +1,54 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Subscriptions } from "../operationsInterfaces";
3
+ import { SubscriptionClient } from "../subscriptionClient";
4
+ import { Location, SubscriptionsListLocationsOptionalParams, Subscription, SubscriptionsListOptionalParams, SubscriptionsGetOptionalParams, SubscriptionsGetResponse } from "../models";
5
+ /** Class containing Subscriptions operations. */
6
+ export declare class SubscriptionsImpl implements Subscriptions {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Subscriptions class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: SubscriptionClient);
13
+ /**
14
+ * This operation provides all the locations that are available for resource providers; however, each
15
+ * resource provider may support a subset of this list.
16
+ * @param subscriptionId The ID of the target subscription.
17
+ * @param options The options parameters.
18
+ */
19
+ listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location>;
20
+ private listLocationsPagingPage;
21
+ private listLocationsPagingAll;
22
+ /**
23
+ * Gets all subscriptions for a tenant.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription>;
27
+ private listPagingPage;
28
+ private listPagingAll;
29
+ /**
30
+ * This operation provides all the locations that are available for resource providers; however, each
31
+ * resource provider may support a subset of this list.
32
+ * @param subscriptionId The ID of the target subscription.
33
+ * @param options The options parameters.
34
+ */
35
+ private _listLocations;
36
+ /**
37
+ * Gets details about a specified subscription.
38
+ * @param subscriptionId The ID of the target subscription.
39
+ * @param options The options parameters.
40
+ */
41
+ get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<SubscriptionsGetResponse>;
42
+ /**
43
+ * Gets all subscriptions for a tenant.
44
+ * @param options The options parameters.
45
+ */
46
+ private _list;
47
+ /**
48
+ * ListNext
49
+ * @param nextLink The nextLink from the previous successful call to the List method.
50
+ * @param options The options parameters.
51
+ */
52
+ private _listNext;
53
+ }
54
+ //# sourceMappingURL=subscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,wCAAwC,EACxC,YAAY,EAEZ,+BAA+B,EAE/B,8BAA8B,EAC9B,wBAAwB,EAGzB,MAAM,WAAW,CAAC;AAGnB,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;;OAKG;IACI,aAAa,CAClB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,QAAQ,CAAC;YAexB,uBAAuB;YAQvB,sBAAsB;IAYrC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,+BAA+B,GACxC,0BAA0B,CAAC,YAAY,CAAC;YAe5B,cAAc;YAad,aAAa;IAQ5B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAUtB;;;;OAIG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,201 @@
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 Subscriptions operations. */
14
+ export class SubscriptionsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Subscriptions class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * This operation provides all the locations that are available for resource providers; however, each
24
+ * resource provider may support a subset of this list.
25
+ * @param subscriptionId The ID of the target subscription.
26
+ * @param options The options parameters.
27
+ */
28
+ listLocations(subscriptionId, options) {
29
+ const iter = this.listLocationsPagingAll(subscriptionId, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listLocationsPagingPage(subscriptionId, options);
39
+ }
40
+ };
41
+ }
42
+ listLocationsPagingPage(subscriptionId, options) {
43
+ return __asyncGenerator(this, arguments, function* listLocationsPagingPage_1() {
44
+ let result = yield __await(this._listLocations(subscriptionId, options));
45
+ yield yield __await(result.value || []);
46
+ });
47
+ }
48
+ listLocationsPagingAll(subscriptionId, options) {
49
+ return __asyncGenerator(this, arguments, function* listLocationsPagingAll_1() {
50
+ var e_1, _a;
51
+ try {
52
+ for (var _b = __asyncValues(this.listLocationsPagingPage(subscriptionId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
53
+ const page = _c.value;
54
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
55
+ }
56
+ }
57
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
58
+ finally {
59
+ try {
60
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
61
+ }
62
+ finally { if (e_1) throw e_1.error; }
63
+ }
64
+ });
65
+ }
66
+ /**
67
+ * Gets all subscriptions for a tenant.
68
+ * @param options The options parameters.
69
+ */
70
+ list(options) {
71
+ const iter = this.listPagingAll(options);
72
+ return {
73
+ next() {
74
+ return iter.next();
75
+ },
76
+ [Symbol.asyncIterator]() {
77
+ return this;
78
+ },
79
+ byPage: () => {
80
+ return this.listPagingPage(options);
81
+ }
82
+ };
83
+ }
84
+ listPagingPage(options) {
85
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
86
+ let result = yield __await(this._list(options));
87
+ yield yield __await(result.value || []);
88
+ let continuationToken = result.nextLink;
89
+ while (continuationToken) {
90
+ result = yield __await(this._listNext(continuationToken, options));
91
+ continuationToken = result.nextLink;
92
+ yield yield __await(result.value || []);
93
+ }
94
+ });
95
+ }
96
+ listPagingAll(options) {
97
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
98
+ var e_2, _a;
99
+ try {
100
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
101
+ const page = _c.value;
102
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
103
+ }
104
+ }
105
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
106
+ finally {
107
+ try {
108
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
109
+ }
110
+ finally { if (e_2) throw e_2.error; }
111
+ }
112
+ });
113
+ }
114
+ /**
115
+ * This operation provides all the locations that are available for resource providers; however, each
116
+ * resource provider may support a subset of this list.
117
+ * @param subscriptionId The ID of the target subscription.
118
+ * @param options The options parameters.
119
+ */
120
+ _listLocations(subscriptionId, options) {
121
+ return this.client.sendOperationRequest({ subscriptionId, options }, listLocationsOperationSpec);
122
+ }
123
+ /**
124
+ * Gets details about a specified subscription.
125
+ * @param subscriptionId The ID of the target subscription.
126
+ * @param options The options parameters.
127
+ */
128
+ get(subscriptionId, options) {
129
+ return this.client.sendOperationRequest({ subscriptionId, options }, getOperationSpec);
130
+ }
131
+ /**
132
+ * Gets all subscriptions for a tenant.
133
+ * @param options The options parameters.
134
+ */
135
+ _list(options) {
136
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
137
+ }
138
+ /**
139
+ * ListNext
140
+ * @param nextLink The nextLink from the previous successful call to the List method.
141
+ * @param options The options parameters.
142
+ */
143
+ _listNext(nextLink, options) {
144
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
145
+ }
146
+ }
147
+ // Operation Specifications
148
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
149
+ const listLocationsOperationSpec = {
150
+ path: "/subscriptions/{subscriptionId}/locations",
151
+ httpMethod: "GET",
152
+ responses: {
153
+ 200: {
154
+ bodyMapper: Mappers.LocationListResult
155
+ }
156
+ },
157
+ queryParameters: [Parameters.apiVersion],
158
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
159
+ headerParameters: [Parameters.accept],
160
+ serializer
161
+ };
162
+ const getOperationSpec = {
163
+ path: "/subscriptions/{subscriptionId}",
164
+ httpMethod: "GET",
165
+ responses: {
166
+ 200: {
167
+ bodyMapper: Mappers.Subscription
168
+ }
169
+ },
170
+ queryParameters: [Parameters.apiVersion],
171
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
172
+ headerParameters: [Parameters.accept],
173
+ serializer
174
+ };
175
+ const listOperationSpec = {
176
+ path: "/subscriptions",
177
+ httpMethod: "GET",
178
+ responses: {
179
+ 200: {
180
+ bodyMapper: Mappers.SubscriptionListResult
181
+ }
182
+ },
183
+ queryParameters: [Parameters.apiVersion],
184
+ urlParameters: [Parameters.$host],
185
+ headerParameters: [Parameters.accept],
186
+ serializer
187
+ };
188
+ const listNextOperationSpec = {
189
+ path: "{nextLink}",
190
+ httpMethod: "GET",
191
+ responses: {
192
+ 200: {
193
+ bodyMapper: Mappers.SubscriptionListResult
194
+ }
195
+ },
196
+ queryParameters: [Parameters.apiVersion],
197
+ urlParameters: [Parameters.$host, Parameters.nextLink],
198
+ headerParameters: [Parameters.accept],
199
+ serializer
200
+ };
201
+ //# sourceMappingURL=subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.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,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,cAAsB,EACtB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAClE,O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Y;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Tenants } from "../operationsInterfaces";
3
+ import { SubscriptionClient } from "../subscriptionClient";
4
+ import { TenantIdDescription, TenantsListOptionalParams } from "../models";
5
+ /** Class containing Tenants operations. */
6
+ export declare class TenantsImpl implements Tenants {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Tenants class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: SubscriptionClient);
13
+ /**
14
+ * Gets the tenants for your account.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: TenantsListOptionalParams): PagedAsyncIterableIterator<TenantIdDescription>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets the tenants for your account.
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=tenants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/operations/tenants.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,mBAAmB,EAEnB,yBAAyB,EAG1B,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,yBAAyB,GAClC,0BAA0B,CAAC,mBAAmB,CAAC;YAenC,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,114 @@
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 Tenants operations. */
14
+ export class TenantsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Tenants class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets the tenants for your account.
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
+ * Gets the tenants for your account.
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: "/tenants",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.TenantListResult
94
+ }
95
+ },
96
+ queryParameters: [Parameters.apiVersion],
97
+ urlParameters: [Parameters.$host],
98
+ headerParameters: [Parameters.accept],
99
+ serializer
100
+ };
101
+ const listNextOperationSpec = {
102
+ path: "{nextLink}",
103
+ httpMethod: "GET",
104
+ responses: {
105
+ 200: {
106
+ bodyMapper: Mappers.TenantListResult
107
+ }
108
+ },
109
+ queryParameters: [Parameters.apiVersion],
110
+ urlParameters: [Parameters.$host, Parameters.nextLink],
111
+ headerParameters: [Parameters.accept],
112
+ serializer
113
+ };
114
+ //# sourceMappingURL=tenants.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AAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
2
+ import { PutAliasRequest, AliasCreateOptionalParams, AliasCreateResponse, AliasGetOptionalParams, AliasGetResponse, AliasDeleteOptionalParams, AliasListOptionalParams, AliasListResponse } from "../models";
3
+ /** Interface representing a Alias. */
4
+ export interface Alias {
5
+ /**
6
+ * Create Alias Subscription.
7
+ * @param aliasName AliasName is the name for the subscription creation request. Note that this is not
8
+ * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for
9
+ * subscription creation.
10
+ * @param body The parameters required to create a new subscription.
11
+ * @param options The options parameters.
12
+ */
13
+ beginCreate(aliasName: string, body: PutAliasRequest, options?: AliasCreateOptionalParams): Promise<PollerLike<PollOperationState<AliasCreateResponse>, AliasCreateResponse>>;
14
+ /**
15
+ * Create Alias Subscription.
16
+ * @param aliasName AliasName is the name for the subscription creation request. Note that this is not
17
+ * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for
18
+ * subscription creation.
19
+ * @param body The parameters required to create a new subscription.
20
+ * @param options The options parameters.
21
+ */
22
+ beginCreateAndWait(aliasName: string, body: PutAliasRequest, options?: AliasCreateOptionalParams): Promise<AliasCreateResponse>;
23
+ /**
24
+ * Get Alias Subscription.
25
+ * @param aliasName AliasName is the name for the subscription creation request. Note that this is not
26
+ * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for
27
+ * subscription creation.
28
+ * @param options The options parameters.
29
+ */
30
+ get(aliasName: string, options?: AliasGetOptionalParams): Promise<AliasGetResponse>;
31
+ /**
32
+ * Delete Alias.
33
+ * @param aliasName AliasName is the name for the subscription creation request. Note that this is not
34
+ * the same as subscription name and this doesn’t have any other lifecycle need beyond the request for
35
+ * subscription creation.
36
+ * @param options The options parameters.
37
+ */
38
+ delete(aliasName: string, options?: AliasDeleteOptionalParams): Promise<void>;
39
+ /**
40
+ * List Alias Subscription.
41
+ * @param options The options parameters.
42
+ */
43
+ list(options?: AliasListOptionalParams): Promise<AliasListResponse>;
44
+ }
45
+ //# sourceMappingURL=alias.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/alias.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAEnB,sCAAsC;AACtC,MAAM,WAAW,KAAK;IACpB;;;;;;;OAOG;IACH,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CACR,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,CACzE,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,GAAG,CACD,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACrE"}
@@ -0,0 +1,9 @@
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=alias.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alias.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/alias.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,11 @@
1
+ import { BillingAccountGetPolicyOptionalParams, BillingAccountGetPolicyResponse } from "../models";
2
+ /** Interface representing a BillingAccount. */
3
+ export interface BillingAccount {
4
+ /**
5
+ * Get Billing Account Policy.
6
+ * @param billingAccountId Billing Account Id.
7
+ * @param options The options parameters.
8
+ */
9
+ getPolicy(billingAccountId: string, options?: BillingAccountGetPolicyOptionalParams): Promise<BillingAccountGetPolicyResponse>;
10
+ }
11
+ //# sourceMappingURL=billingAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingAccount.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/billingAccount.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAEnB,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,SAAS,CACP,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,9 @@
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=billingAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingAccount.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/billingAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,8 @@
1
+ export * from "./subscriptions";
2
+ export * from "./tenants";
3
+ export * from "./subscriptionOperations";
4
+ export * from "./operations";
5
+ export * from "./alias";
6
+ export * from "./subscriptionPolicy";
7
+ export * from "./billingAccount";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,15 @@
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 * from "./subscriptions";
9
+ export * from "./tenants";
10
+ export * from "./subscriptionOperations";
11
+ export * from "./operations";
12
+ export * from "./alias";
13
+ export * from "./subscriptionPolicy";
14
+ export * from "./billingAccount";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all of the available Microsoft.Subscription API operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
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=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,45 @@
1
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
2
+ import { SubscriptionCancelOptionalParams, SubscriptionCancelResponse, SubscriptionName, SubscriptionRenameOptionalParams, SubscriptionRenameResponse, SubscriptionEnableOptionalParams, SubscriptionEnableResponse, AcceptOwnershipRequest, SubscriptionAcceptOwnershipOptionalParams, SubscriptionAcceptOwnershipResponse, SubscriptionAcceptOwnershipStatusOptionalParams, SubscriptionAcceptOwnershipStatusResponse } from "../models";
3
+ /** Interface representing a SubscriptionOperations. */
4
+ export interface SubscriptionOperations {
5
+ /**
6
+ * The operation to cancel a subscription
7
+ * @param subscriptionId Subscription Id.
8
+ * @param options The options parameters.
9
+ */
10
+ cancel(subscriptionId: string, options?: SubscriptionCancelOptionalParams): Promise<SubscriptionCancelResponse>;
11
+ /**
12
+ * The operation to rename a subscription
13
+ * @param subscriptionId Subscription Id.
14
+ * @param body Subscription Name
15
+ * @param options The options parameters.
16
+ */
17
+ rename(subscriptionId: string, body: SubscriptionName, options?: SubscriptionRenameOptionalParams): Promise<SubscriptionRenameResponse>;
18
+ /**
19
+ * The operation to enable a subscription
20
+ * @param subscriptionId Subscription Id.
21
+ * @param options The options parameters.
22
+ */
23
+ enable(subscriptionId: string, options?: SubscriptionEnableOptionalParams): Promise<SubscriptionEnableResponse>;
24
+ /**
25
+ * Accept subscription ownership.
26
+ * @param subscriptionId Subscription Id.
27
+ * @param body The parameters required to accept subscription ownership.
28
+ * @param options The options parameters.
29
+ */
30
+ beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<PollerLike<PollOperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
31
+ /**
32
+ * Accept subscription ownership.
33
+ * @param subscriptionId Subscription Id.
34
+ * @param body The parameters required to accept subscription ownership.
35
+ * @param options The options parameters.
36
+ */
37
+ beginAcceptOwnershipAndWait(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SubscriptionAcceptOwnershipResponse>;
38
+ /**
39
+ * Accept subscription ownership status.
40
+ * @param subscriptionId Subscription Id.
41
+ * @param options The options parameters.
42
+ */
43
+ acceptOwnershipStatus(subscriptionId: string, options?: SubscriptionAcceptOwnershipStatusOptionalParams): Promise<SubscriptionAcceptOwnershipStatusResponse>;
44
+ }
45
+ //# sourceMappingURL=subscriptionOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionOperations.ts"],"names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+ /*
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=subscriptionOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptionOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}