@azure/arm-subscriptions 4.0.1-alpha.20220105.1 → 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 (85) hide show
  1. package/CHANGELOG.md +48 -11
  2. package/LICENSE +1 -1
  3. package/README.md +2 -1
  4. package/dist/index.js +644 -86
  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/src/models/index.d.ts +149 -5
  9. package/dist-esm/src/models/index.d.ts.map +1 -1
  10. package/dist-esm/src/models/index.js.map +1 -1
  11. package/dist-esm/src/models/mappers.d.ts +7 -0
  12. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  13. package/dist-esm/src/models/mappers.js +238 -6
  14. package/dist-esm/src/models/mappers.js.map +1 -1
  15. package/dist-esm/src/models/parameters.d.ts +2 -1
  16. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  17. package/dist-esm/src/models/parameters.js +22 -11
  18. package/dist-esm/src/models/parameters.js.map +1 -1
  19. package/dist-esm/src/operations/alias.js +4 -4
  20. package/dist-esm/src/operations/alias.js.map +1 -1
  21. package/dist-esm/src/operations/billingAccount.js +1 -1
  22. package/dist-esm/src/operations/billingAccount.js.map +1 -1
  23. package/dist-esm/src/operations/index.d.ts +3 -1
  24. package/dist-esm/src/operations/index.d.ts.map +1 -1
  25. package/dist-esm/src/operations/index.js +3 -1
  26. package/dist-esm/src/operations/index.js.map +1 -1
  27. package/dist-esm/src/operations/operations.js +2 -2
  28. package/dist-esm/src/operations/operations.js.map +1 -1
  29. package/dist-esm/src/operations/{subscription.d.ts → subscriptionOperations.d.ts} +5 -5
  30. package/dist-esm/src/operations/subscriptionOperations.d.ts.map +1 -0
  31. package/dist-esm/src/operations/{subscription.js → subscriptionOperations.js} +11 -11
  32. package/dist-esm/src/operations/subscriptionOperations.js.map +1 -0
  33. package/dist-esm/src/operations/subscriptionPolicy.js +5 -5
  34. package/dist-esm/src/operations/subscriptionPolicy.js.map +1 -1
  35. package/dist-esm/src/operations/subscriptions.d.ts +54 -0
  36. package/dist-esm/src/operations/subscriptions.d.ts.map +1 -0
  37. package/dist-esm/src/operations/subscriptions.js +201 -0
  38. package/dist-esm/src/operations/subscriptions.js.map +1 -0
  39. package/dist-esm/src/operations/tenants.d.ts +32 -0
  40. package/dist-esm/src/operations/tenants.d.ts.map +1 -0
  41. package/dist-esm/src/operations/tenants.js +114 -0
  42. package/dist-esm/src/operations/tenants.js.map +1 -0
  43. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -1
  44. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  45. package/dist-esm/src/operationsInterfaces/index.js +3 -1
  46. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  47. package/dist-esm/src/operationsInterfaces/{subscription.d.ts → subscriptionOperations.d.ts} +3 -3
  48. package/dist-esm/src/operationsInterfaces/subscriptionOperations.d.ts.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/subscriptionOperations.js +9 -0
  50. package/dist-esm/src/operationsInterfaces/subscriptionOperations.js.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +24 -0
  52. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/subscriptions.js +9 -0
  54. package/dist-esm/src/operationsInterfaces/subscriptions.js.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/tenants.d.ts +11 -0
  56. package/dist-esm/src/operationsInterfaces/tenants.d.ts.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/{subscription.js → tenants.js} +1 -1
  58. package/dist-esm/src/operationsInterfaces/tenants.js.map +1 -0
  59. package/dist-esm/src/subscriptionClient.d.ts +4 -3
  60. package/dist-esm/src/subscriptionClient.d.ts.map +1 -1
  61. package/dist-esm/src/subscriptionClient.js +5 -4
  62. package/dist-esm/src/subscriptionClient.js.map +1 -1
  63. package/package.json +4 -14
  64. package/review/arm-subscriptions.api.md +126 -13
  65. package/src/models/index.ts +173 -5
  66. package/src/models/mappers.ts +245 -6
  67. package/src/models/parameters.ts +24 -12
  68. package/src/operations/alias.ts +4 -4
  69. package/src/operations/billingAccount.ts +1 -1
  70. package/src/operations/index.ts +3 -1
  71. package/src/operations/operations.ts +2 -2
  72. package/src/operations/{subscription.ts → subscriptionOperations.ts} +12 -11
  73. package/src/operations/subscriptionPolicy.ts +5 -5
  74. package/src/operations/subscriptions.ts +237 -0
  75. package/src/operations/tenants.ts +131 -0
  76. package/src/operationsInterfaces/index.ts +3 -1
  77. package/src/operationsInterfaces/{subscription.ts → subscriptionOperations.ts} +2 -2
  78. package/src/operationsInterfaces/subscriptions.ts +48 -0
  79. package/src/operationsInterfaces/tenants.ts +22 -0
  80. package/src/subscriptionClient.ts +13 -7
  81. package/types/arm-subscriptions.d.ts +237 -39
  82. package/dist-esm/src/operations/subscription.d.ts.map +0 -1
  83. package/dist-esm/src/operations/subscription.js.map +0 -1
  84. package/dist-esm/src/operationsInterfaces/subscription.d.ts.map +0 -1
  85. package/dist-esm/src/operationsInterfaces/subscription.js.map +0 -1
@@ -0,0 +1,237 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Subscriptions } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { SubscriptionClient } from "../subscriptionClient";
15
+ import {
16
+ Location,
17
+ SubscriptionsListLocationsOptionalParams,
18
+ Subscription,
19
+ SubscriptionsListNextOptionalParams,
20
+ SubscriptionsListOptionalParams,
21
+ SubscriptionsListLocationsResponse,
22
+ SubscriptionsGetOptionalParams,
23
+ SubscriptionsGetResponse,
24
+ SubscriptionsListResponse,
25
+ SubscriptionsListNextResponse
26
+ } from "../models";
27
+
28
+ /// <reference lib="esnext.asynciterable" />
29
+ /** Class containing Subscriptions operations. */
30
+ export class SubscriptionsImpl implements Subscriptions {
31
+ private readonly client: SubscriptionClient;
32
+
33
+ /**
34
+ * Initialize a new instance of the class Subscriptions class.
35
+ * @param client Reference to the service client
36
+ */
37
+ constructor(client: SubscriptionClient) {
38
+ this.client = client;
39
+ }
40
+
41
+ /**
42
+ * This operation provides all the locations that are available for resource providers; however, each
43
+ * resource provider may support a subset of this list.
44
+ * @param subscriptionId The ID of the target subscription.
45
+ * @param options The options parameters.
46
+ */
47
+ public listLocations(
48
+ subscriptionId: string,
49
+ options?: SubscriptionsListLocationsOptionalParams
50
+ ): PagedAsyncIterableIterator<Location> {
51
+ const iter = this.listLocationsPagingAll(subscriptionId, options);
52
+ return {
53
+ next() {
54
+ return iter.next();
55
+ },
56
+ [Symbol.asyncIterator]() {
57
+ return this;
58
+ },
59
+ byPage: () => {
60
+ return this.listLocationsPagingPage(subscriptionId, options);
61
+ }
62
+ };
63
+ }
64
+
65
+ private async *listLocationsPagingPage(
66
+ subscriptionId: string,
67
+ options?: SubscriptionsListLocationsOptionalParams
68
+ ): AsyncIterableIterator<Location[]> {
69
+ let result = await this._listLocations(subscriptionId, options);
70
+ yield result.value || [];
71
+ }
72
+
73
+ private async *listLocationsPagingAll(
74
+ subscriptionId: string,
75
+ options?: SubscriptionsListLocationsOptionalParams
76
+ ): AsyncIterableIterator<Location> {
77
+ for await (const page of this.listLocationsPagingPage(
78
+ subscriptionId,
79
+ options
80
+ )) {
81
+ yield* page;
82
+ }
83
+ }
84
+
85
+ /**
86
+ * Gets all subscriptions for a tenant.
87
+ * @param options The options parameters.
88
+ */
89
+ public list(
90
+ options?: SubscriptionsListOptionalParams
91
+ ): PagedAsyncIterableIterator<Subscription> {
92
+ const iter = this.listPagingAll(options);
93
+ return {
94
+ next() {
95
+ return iter.next();
96
+ },
97
+ [Symbol.asyncIterator]() {
98
+ return this;
99
+ },
100
+ byPage: () => {
101
+ return this.listPagingPage(options);
102
+ }
103
+ };
104
+ }
105
+
106
+ private async *listPagingPage(
107
+ options?: SubscriptionsListOptionalParams
108
+ ): AsyncIterableIterator<Subscription[]> {
109
+ let result = await this._list(options);
110
+ yield result.value || [];
111
+ let continuationToken = result.nextLink;
112
+ while (continuationToken) {
113
+ result = await this._listNext(continuationToken, options);
114
+ continuationToken = result.nextLink;
115
+ yield result.value || [];
116
+ }
117
+ }
118
+
119
+ private async *listPagingAll(
120
+ options?: SubscriptionsListOptionalParams
121
+ ): AsyncIterableIterator<Subscription> {
122
+ for await (const page of this.listPagingPage(options)) {
123
+ yield* page;
124
+ }
125
+ }
126
+
127
+ /**
128
+ * This operation provides all the locations that are available for resource providers; however, each
129
+ * resource provider may support a subset of this list.
130
+ * @param subscriptionId The ID of the target subscription.
131
+ * @param options The options parameters.
132
+ */
133
+ private _listLocations(
134
+ subscriptionId: string,
135
+ options?: SubscriptionsListLocationsOptionalParams
136
+ ): Promise<SubscriptionsListLocationsResponse> {
137
+ return this.client.sendOperationRequest(
138
+ { subscriptionId, options },
139
+ listLocationsOperationSpec
140
+ );
141
+ }
142
+
143
+ /**
144
+ * Gets details about a specified subscription.
145
+ * @param subscriptionId The ID of the target subscription.
146
+ * @param options The options parameters.
147
+ */
148
+ get(
149
+ subscriptionId: string,
150
+ options?: SubscriptionsGetOptionalParams
151
+ ): Promise<SubscriptionsGetResponse> {
152
+ return this.client.sendOperationRequest(
153
+ { subscriptionId, options },
154
+ getOperationSpec
155
+ );
156
+ }
157
+
158
+ /**
159
+ * Gets all subscriptions for a tenant.
160
+ * @param options The options parameters.
161
+ */
162
+ private _list(
163
+ options?: SubscriptionsListOptionalParams
164
+ ): Promise<SubscriptionsListResponse> {
165
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
166
+ }
167
+
168
+ /**
169
+ * ListNext
170
+ * @param nextLink The nextLink from the previous successful call to the List method.
171
+ * @param options The options parameters.
172
+ */
173
+ private _listNext(
174
+ nextLink: string,
175
+ options?: SubscriptionsListNextOptionalParams
176
+ ): Promise<SubscriptionsListNextResponse> {
177
+ return this.client.sendOperationRequest(
178
+ { nextLink, options },
179
+ listNextOperationSpec
180
+ );
181
+ }
182
+ }
183
+ // Operation Specifications
184
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
185
+
186
+ const listLocationsOperationSpec: coreClient.OperationSpec = {
187
+ path: "/subscriptions/{subscriptionId}/locations",
188
+ httpMethod: "GET",
189
+ responses: {
190
+ 200: {
191
+ bodyMapper: Mappers.LocationListResult
192
+ }
193
+ },
194
+ queryParameters: [Parameters.apiVersion],
195
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
196
+ headerParameters: [Parameters.accept],
197
+ serializer
198
+ };
199
+ const getOperationSpec: coreClient.OperationSpec = {
200
+ path: "/subscriptions/{subscriptionId}",
201
+ httpMethod: "GET",
202
+ responses: {
203
+ 200: {
204
+ bodyMapper: Mappers.Subscription
205
+ }
206
+ },
207
+ queryParameters: [Parameters.apiVersion],
208
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
209
+ headerParameters: [Parameters.accept],
210
+ serializer
211
+ };
212
+ const listOperationSpec: coreClient.OperationSpec = {
213
+ path: "/subscriptions",
214
+ httpMethod: "GET",
215
+ responses: {
216
+ 200: {
217
+ bodyMapper: Mappers.SubscriptionListResult
218
+ }
219
+ },
220
+ queryParameters: [Parameters.apiVersion],
221
+ urlParameters: [Parameters.$host],
222
+ headerParameters: [Parameters.accept],
223
+ serializer
224
+ };
225
+ const listNextOperationSpec: coreClient.OperationSpec = {
226
+ path: "{nextLink}",
227
+ httpMethod: "GET",
228
+ responses: {
229
+ 200: {
230
+ bodyMapper: Mappers.SubscriptionListResult
231
+ }
232
+ },
233
+ queryParameters: [Parameters.apiVersion],
234
+ urlParameters: [Parameters.$host, Parameters.nextLink],
235
+ headerParameters: [Parameters.accept],
236
+ serializer
237
+ };
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Tenants } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { SubscriptionClient } from "../subscriptionClient";
15
+ import {
16
+ TenantIdDescription,
17
+ TenantsListNextOptionalParams,
18
+ TenantsListOptionalParams,
19
+ TenantsListResponse,
20
+ TenantsListNextResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing Tenants operations. */
25
+ export class TenantsImpl implements Tenants {
26
+ private readonly client: SubscriptionClient;
27
+
28
+ /**
29
+ * Initialize a new instance of the class Tenants class.
30
+ * @param client Reference to the service client
31
+ */
32
+ constructor(client: SubscriptionClient) {
33
+ this.client = client;
34
+ }
35
+
36
+ /**
37
+ * Gets the tenants for your account.
38
+ * @param options The options parameters.
39
+ */
40
+ public list(
41
+ options?: TenantsListOptionalParams
42
+ ): PagedAsyncIterableIterator<TenantIdDescription> {
43
+ const iter = this.listPagingAll(options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
+ },
48
+ [Symbol.asyncIterator]() {
49
+ return this;
50
+ },
51
+ byPage: () => {
52
+ return this.listPagingPage(options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listPagingPage(
58
+ options?: TenantsListOptionalParams
59
+ ): AsyncIterableIterator<TenantIdDescription[]> {
60
+ let result = await this._list(options);
61
+ yield result.value || [];
62
+ let continuationToken = result.nextLink;
63
+ while (continuationToken) {
64
+ result = await this._listNext(continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ yield result.value || [];
67
+ }
68
+ }
69
+
70
+ private async *listPagingAll(
71
+ options?: TenantsListOptionalParams
72
+ ): AsyncIterableIterator<TenantIdDescription> {
73
+ for await (const page of this.listPagingPage(options)) {
74
+ yield* page;
75
+ }
76
+ }
77
+
78
+ /**
79
+ * Gets the tenants for your account.
80
+ * @param options The options parameters.
81
+ */
82
+ private _list(
83
+ options?: TenantsListOptionalParams
84
+ ): Promise<TenantsListResponse> {
85
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
86
+ }
87
+
88
+ /**
89
+ * ListNext
90
+ * @param nextLink The nextLink from the previous successful call to the List method.
91
+ * @param options The options parameters.
92
+ */
93
+ private _listNext(
94
+ nextLink: string,
95
+ options?: TenantsListNextOptionalParams
96
+ ): Promise<TenantsListNextResponse> {
97
+ return this.client.sendOperationRequest(
98
+ { nextLink, options },
99
+ listNextOperationSpec
100
+ );
101
+ }
102
+ }
103
+ // Operation Specifications
104
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
+
106
+ const listOperationSpec: coreClient.OperationSpec = {
107
+ path: "/tenants",
108
+ httpMethod: "GET",
109
+ responses: {
110
+ 200: {
111
+ bodyMapper: Mappers.TenantListResult
112
+ }
113
+ },
114
+ queryParameters: [Parameters.apiVersion],
115
+ urlParameters: [Parameters.$host],
116
+ headerParameters: [Parameters.accept],
117
+ serializer
118
+ };
119
+ const listNextOperationSpec: coreClient.OperationSpec = {
120
+ path: "{nextLink}",
121
+ httpMethod: "GET",
122
+ responses: {
123
+ 200: {
124
+ bodyMapper: Mappers.TenantListResult
125
+ }
126
+ },
127
+ queryParameters: [Parameters.apiVersion],
128
+ urlParameters: [Parameters.$host, Parameters.nextLink],
129
+ headerParameters: [Parameters.accept],
130
+ serializer
131
+ };
@@ -6,7 +6,9 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- export * from "./subscription";
9
+ export * from "./subscriptions";
10
+ export * from "./tenants";
11
+ export * from "./subscriptionOperations";
10
12
  export * from "./operations";
11
13
  export * from "./alias";
12
14
  export * from "./subscriptionPolicy";
@@ -22,8 +22,8 @@ import {
22
22
  SubscriptionAcceptOwnershipStatusResponse
23
23
  } from "../models";
24
24
 
25
- /** Interface representing a Subscription. */
26
- export interface Subscription {
25
+ /** Interface representing a SubscriptionOperations. */
26
+ export interface SubscriptionOperations {
27
27
  /**
28
28
  * The operation to cancel a subscription
29
29
  * @param subscriptionId Subscription Id.
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Location,
12
+ SubscriptionsListLocationsOptionalParams,
13
+ Subscription,
14
+ SubscriptionsListOptionalParams,
15
+ SubscriptionsGetOptionalParams,
16
+ SubscriptionsGetResponse
17
+ } from "../models";
18
+
19
+ /// <reference lib="esnext.asynciterable" />
20
+ /** Interface representing a Subscriptions. */
21
+ export interface Subscriptions {
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(
29
+ subscriptionId: string,
30
+ options?: SubscriptionsListLocationsOptionalParams
31
+ ): PagedAsyncIterableIterator<Location>;
32
+ /**
33
+ * Gets all subscriptions for a tenant.
34
+ * @param options The options parameters.
35
+ */
36
+ list(
37
+ options?: SubscriptionsListOptionalParams
38
+ ): PagedAsyncIterableIterator<Subscription>;
39
+ /**
40
+ * Gets details about a specified subscription.
41
+ * @param subscriptionId The ID of the target subscription.
42
+ * @param options The options parameters.
43
+ */
44
+ get(
45
+ subscriptionId: string,
46
+ options?: SubscriptionsGetOptionalParams
47
+ ): Promise<SubscriptionsGetResponse>;
48
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { TenantIdDescription, TenantsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Tenants. */
14
+ export interface Tenants {
15
+ /**
16
+ * Gets the tenants for your account.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: TenantsListOptionalParams
21
+ ): PagedAsyncIterableIterator<TenantIdDescription>;
22
+ }
@@ -9,14 +9,18 @@
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreAuth from "@azure/core-auth";
11
11
  import {
12
- SubscriptionImpl,
12
+ SubscriptionsImpl,
13
+ TenantsImpl,
14
+ SubscriptionOperationsImpl,
13
15
  OperationsImpl,
14
16
  AliasImpl,
15
17
  SubscriptionPolicyImpl,
16
18
  BillingAccountImpl
17
19
  } from "./operations";
18
20
  import {
19
- Subscription,
21
+ Subscriptions,
22
+ Tenants,
23
+ SubscriptionOperations,
20
24
  Operations,
21
25
  Alias,
22
26
  SubscriptionPolicy,
@@ -26,7 +30,6 @@ import { SubscriptionClientOptionalParams } from "./models";
26
30
 
27
31
  export class SubscriptionClient extends coreClient.ServiceClient {
28
32
  $host: string;
29
- apiVersion: string;
30
33
 
31
34
  /**
32
35
  * Initializes a new instance of the SubscriptionClient class.
@@ -50,7 +53,7 @@ export class SubscriptionClient extends coreClient.ServiceClient {
50
53
  credential: credentials
51
54
  };
52
55
 
53
- const packageDetails = `azsdk-js-arm-subscriptions/4.0.0`;
56
+ const packageDetails = `azsdk-js-arm-subscriptions/5.0.0`;
54
57
  const userAgentPrefix =
55
58
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
56
59
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -71,15 +74,18 @@ export class SubscriptionClient extends coreClient.ServiceClient {
71
74
 
72
75
  // Assigning values to Constant parameters
73
76
  this.$host = options.$host || "https://management.azure.com";
74
- this.apiVersion = options.apiVersion || "2021-10-01";
75
- this.subscription = new SubscriptionImpl(this);
77
+ this.subscriptions = new SubscriptionsImpl(this);
78
+ this.tenants = new TenantsImpl(this);
79
+ this.subscriptionOperations = new SubscriptionOperationsImpl(this);
76
80
  this.operations = new OperationsImpl(this);
77
81
  this.alias = new AliasImpl(this);
78
82
  this.subscriptionPolicy = new SubscriptionPolicyImpl(this);
79
83
  this.billingAccount = new BillingAccountImpl(this);
80
84
  }
81
85
 
82
- subscription: Subscription;
86
+ subscriptions: Subscriptions;
87
+ tenants: Tenants;
88
+ subscriptionOperations: SubscriptionOperations;
83
89
  operations: Operations;
84
90
  alias: Alias;
85
91
  subscriptionPolicy: SubscriptionPolicy;