@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
@@ -1,686 +1,748 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
11
+ /** Location list operation response. */
12
+ export interface LocationListResult {
13
+ /** An array of locations. */
14
+ value?: Location[];
15
+ }
13
16
 
14
- /**
15
- * Location information.
16
- */
17
+ /** Location information. */
17
18
  export interface Location {
18
19
  /**
19
- * The fully qualified ID of the location. For example,
20
- * /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
21
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
20
+ * The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
22
22
  */
23
23
  readonly id?: string;
24
24
  /**
25
25
  * The subscription ID.
26
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
27
  */
28
28
  readonly subscriptionId?: string;
29
29
  /**
30
30
  * The location name.
31
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
32
  */
33
33
  readonly name?: string;
34
34
  /**
35
35
  * The display name of the location.
36
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
36
+ * NOTE: This property will not be serialized. It can only be populated by the server.
37
37
  */
38
38
  readonly displayName?: string;
39
39
  /**
40
40
  * The latitude of the location.
41
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
41
+ * NOTE: This property will not be serialized. It can only be populated by the server.
42
42
  */
43
43
  readonly latitude?: string;
44
44
  /**
45
45
  * The longitude of the location.
46
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
46
+ * NOTE: This property will not be serialized. It can only be populated by the server.
47
47
  */
48
48
  readonly longitude?: string;
49
49
  }
50
50
 
51
- /**
52
- * Subscription policies.
53
- */
54
- export interface SubscriptionPolicies {
55
- /**
56
- * The subscription location placement ID. The ID indicates which regions are visible for a
57
- * subscription. For example, a subscription with a location placement Id of Public_2014-09-01
58
- * has access to Azure public regions.
59
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
60
- */
61
- readonly locationPlacementId?: string;
62
- /**
63
- * The subscription quota ID.
64
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
65
- */
66
- readonly quotaId?: string;
67
- /**
68
- * The subscription spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff'
69
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
70
- */
71
- readonly spendingLimit?: SpendingLimit;
72
- }
73
-
74
- /**
75
- * Subscription information.
76
- */
51
+ /** Subscription information. */
77
52
  export interface Subscription {
78
53
  /**
79
- * The fully qualified ID for the subscription. For example,
80
- * /subscriptions/00000000-0000-0000-0000-000000000000.
81
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
54
+ * The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
55
+ * NOTE: This property will not be serialized. It can only be populated by the server.
82
56
  */
83
57
  readonly id?: string;
84
58
  /**
85
59
  * The subscription ID.
86
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
60
+ * NOTE: This property will not be serialized. It can only be populated by the server.
87
61
  */
88
62
  readonly subscriptionId?: string;
89
63
  /**
90
64
  * The subscription display name.
91
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
92
66
  */
93
67
  readonly displayName?: string;
94
68
  /**
95
69
  * The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
96
- * Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
97
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
70
+ * NOTE: This property will not be serialized. It can only be populated by the server.
98
71
  */
99
72
  readonly state?: SubscriptionState;
73
+ /** The subscription policies. */
74
+ subscriptionPolicies?: SubscriptionPolicies;
75
+ /** The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. */
76
+ authorizationSource?: string;
77
+ }
78
+
79
+ /** Subscription policies. */
80
+ export interface SubscriptionPolicies {
100
81
  /**
101
- * The subscription policies.
82
+ * The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.
83
+ * NOTE: This property will not be serialized. It can only be populated by the server.
102
84
  */
103
- subscriptionPolicies?: SubscriptionPolicies;
85
+ readonly locationPlacementId?: string;
104
86
  /**
105
- * The authorization source of the request. Valid values are one or more combinations of Legacy,
106
- * RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
87
+ * The subscription quota ID.
88
+ * NOTE: This property will not be serialized. It can only be populated by the server.
107
89
  */
108
- authorizationSource?: string;
90
+ readonly quotaId?: string;
91
+ /**
92
+ * The subscription spending limit.
93
+ * NOTE: This property will not be serialized. It can only be populated by the server.
94
+ */
95
+ readonly spendingLimit?: SpendingLimit;
109
96
  }
110
97
 
111
- /**
112
- * Tenant Id information.
113
- */
98
+ /** Subscription list operation response. */
99
+ export interface SubscriptionListResult {
100
+ /** An array of subscriptions. */
101
+ value?: Subscription[];
102
+ /** The URL to get the next set of results. */
103
+ nextLink: string;
104
+ }
105
+
106
+ /** Tenant Ids information. */
107
+ export interface TenantListResult {
108
+ /** An array of tenants. */
109
+ value?: TenantIdDescription[];
110
+ /** The URL to use for getting the next set of results. */
111
+ nextLink: string;
112
+ }
113
+
114
+ /** Tenant Id information. */
114
115
  export interface TenantIdDescription {
115
116
  /**
116
- * The fully qualified ID of the tenant. For example,
117
- * /tenants/00000000-0000-0000-0000-000000000000.
118
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
117
+ * The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.
118
+ * NOTE: This property will not be serialized. It can only be populated by the server.
119
119
  */
120
120
  readonly id?: string;
121
121
  /**
122
122
  * The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
123
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
123
+ * NOTE: This property will not be serialized. It can only be populated by the server.
124
124
  */
125
125
  readonly tenantId?: string;
126
126
  }
127
127
 
128
- /**
129
- * Describes the format of Error response.
130
- */
131
- export interface ErrorResponse {
132
- /**
133
- * Error code
134
- */
135
- code?: string;
128
+ /** The ID of the canceled subscription */
129
+ export interface CanceledSubscriptionId {
136
130
  /**
137
- * Error message indicating why the operation failed.
131
+ * The ID of the canceled subscription
132
+ * NOTE: This property will not be serialized. It can only be populated by the server.
138
133
  */
139
- message?: string;
134
+ readonly subscriptionId?: string;
140
135
  }
141
136
 
142
- /**
143
- * Error response indicates that the service is not able to process the incoming request. The
144
- * reason is provided in the error message.
145
- */
137
+ /** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */
146
138
  export interface ErrorResponseBody {
147
- /**
148
- * The details of the error.
149
- */
139
+ /** The details of the error. */
150
140
  error?: ErrorResponse;
141
+ /** Error code */
142
+ code?: string;
143
+ /** Error message indicating why the operation failed. */
144
+ message?: string;
151
145
  }
152
146
 
153
- /**
154
- * The ID of the canceled subscription
155
- */
156
- export interface CanceledSubscriptionId {
157
- /**
158
- * The ID of the canceled subscription
159
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
160
- */
161
- readonly value?: string;
147
+ /** Describes the format of Error response. */
148
+ export interface ErrorResponse {
149
+ /** Error code */
150
+ code?: string;
151
+ /** Error message indicating why the operation failed. */
152
+ message?: string;
162
153
  }
163
154
 
164
- /**
165
- * The ID of the subscriptions that is being renamed
166
- */
155
+ /** The new name of the subscription. */
156
+ export interface SubscriptionName {
157
+ /** New subscription name */
158
+ subscriptionName?: string;
159
+ }
160
+
161
+ /** The ID of the subscriptions that is being renamed */
167
162
  export interface RenamedSubscriptionId {
168
163
  /**
169
164
  * The ID of the subscriptions that is being renamed
170
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
166
  */
172
- readonly value?: string;
167
+ readonly subscriptionId?: string;
173
168
  }
174
169
 
175
- /**
176
- * The ID of the subscriptions that is being enabled
177
- */
170
+ /** The ID of the subscriptions that is being enabled */
178
171
  export interface EnabledSubscriptionId {
179
172
  /**
180
173
  * The ID of the subscriptions that is being enabled
181
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
174
+ * NOTE: This property will not be serialized. It can only be populated by the server.
182
175
  */
183
- readonly value?: string;
176
+ readonly subscriptionId?: string;
184
177
  }
185
178
 
186
- /**
187
- * The new name of the subscription.
188
- */
189
- export interface SubscriptionName {
190
- /**
191
- * New subscription name
192
- */
193
- subscriptionName?: string;
179
+ /** Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results. */
180
+ export interface OperationListResult {
181
+ /** List of operations. */
182
+ value?: Operation[];
183
+ /** URL to get the next set of operation list results if there are any. */
184
+ nextLink?: string;
194
185
  }
195
186
 
196
- /**
197
- * The object that represents the operation.
198
- */
187
+ /** REST API operation */
188
+ export interface Operation {
189
+ /** Operation name: {provider}/{resource}/{operation} */
190
+ name?: string;
191
+ /** Indicates whether the operation is a data action */
192
+ isDataAction?: boolean;
193
+ /** The object that represents the operation. */
194
+ display?: OperationDisplay;
195
+ }
196
+
197
+ /** The object that represents the operation. */
199
198
  export interface OperationDisplay {
200
- /**
201
- * Service provider: Microsoft.Subscription
202
- */
199
+ /** Service provider: Microsoft.Subscription */
203
200
  provider?: string;
204
- /**
205
- * Resource on which the operation is performed: Profile, endpoint, etc.
206
- */
201
+ /** Resource on which the operation is performed: Profile, endpoint, etc. */
207
202
  resource?: string;
203
+ /** Operation type: Read, write, delete, etc. */
204
+ operation?: string;
205
+ /** Localized friendly description for the operation */
206
+ description?: string;
207
+ }
208
+
209
+ /** The parameters required to create a new subscription. */
210
+ export interface PutAliasRequest {
211
+ /** Put alias request properties. */
212
+ properties?: PutAliasRequestProperties;
213
+ }
214
+
215
+ /** Put subscription properties. */
216
+ export interface PutAliasRequestProperties {
217
+ /** The friendly name of the subscription. */
218
+ displayName?: string;
219
+ /** The workload type of the subscription. It can be either Production or DevTest. */
220
+ workload?: Workload;
208
221
  /**
209
- * Operation type: Read, write, delete, etc.
222
+ * Billing scope of the subscription.
223
+ * For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
224
+ * For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
225
+ * For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
210
226
  */
211
- operation?: string;
227
+ billingScope?: string;
228
+ /** This parameter can be used to create alias for existing subscription Id */
229
+ subscriptionId?: string;
230
+ /** Reseller Id */
231
+ resellerId?: string;
232
+ /** Put alias request additional properties. */
233
+ additionalProperties?: PutAliasRequestAdditionalProperties;
212
234
  }
213
235
 
214
- /**
215
- * REST API operation
216
- */
217
- export interface Operation {
236
+ /** Put subscription additional properties. */
237
+ export interface PutAliasRequestAdditionalProperties {
238
+ /** Management group Id for the subscription. */
239
+ managementGroupId?: string;
240
+ /** Tenant Id of the subscription */
241
+ subscriptionTenantId?: string;
242
+ /** Owner Id of the subscription */
243
+ subscriptionOwnerId?: string;
244
+ /** Tags for the subscription */
245
+ tags?: { [propertyName: string]: string };
246
+ }
247
+
248
+ /** Subscription Information with the alias. */
249
+ export interface SubscriptionAliasResponse {
218
250
  /**
219
- * Operation name: {provider}/{resource}/{operation}
251
+ * Fully qualified ID for the alias resource.
252
+ * NOTE: This property will not be serialized. It can only be populated by the server.
220
253
  */
221
- name?: string;
254
+ readonly id?: string;
222
255
  /**
223
- * The object that represents the operation.
256
+ * Alias ID.
257
+ * NOTE: This property will not be serialized. It can only be populated by the server.
224
258
  */
225
- display?: OperationDisplay;
226
- }
227
-
228
- /**
229
- * Result of the request to list operations. It contains a list of operations and a URL link to get
230
- * the next set of results.
231
- */
232
- export interface OperationListResult {
259
+ readonly name?: string;
233
260
  /**
234
- * List of operations.
261
+ * Resource type, Microsoft.Subscription/aliases.
262
+ * NOTE: This property will not be serialized. It can only be populated by the server.
235
263
  */
236
- value?: Operation[];
264
+ readonly type?: string;
265
+ /** Subscription Alias response properties. */
266
+ properties?: SubscriptionAliasResponseProperties;
237
267
  /**
238
- * URL to get the next set of operation list results if there are any.
268
+ * Metadata pertaining to creation and last modification of the resource.
269
+ * NOTE: This property will not be serialized. It can only be populated by the server.
239
270
  */
240
- nextLink?: string;
271
+ readonly systemData?: SystemData;
241
272
  }
242
273
 
243
- /**
244
- * Put subscription properties.
245
- */
246
- export interface PutAliasRequestProperties {
274
+ /** Put subscription creation result properties. */
275
+ export interface SubscriptionAliasResponseProperties {
247
276
  /**
248
- * The friendly name of the subscription.
277
+ * Newly created subscription Id.
278
+ * NOTE: This property will not be serialized. It can only be populated by the server.
249
279
  */
280
+ readonly subscriptionId?: string;
281
+ /** The display name of the subscription. */
250
282
  displayName?: string;
283
+ /** The provisioning state of the resource. */
284
+ provisioningState?: ProvisioningState;
251
285
  /**
252
- * The workload type of the subscription. It can be either Production or DevTest. Possible values
253
- * include: 'Production', 'DevTest'
286
+ * Url to accept ownership of the subscription.
287
+ * NOTE: This property will not be serialized. It can only be populated by the server.
254
288
  */
255
- workload?: Workload;
289
+ readonly acceptOwnershipUrl?: string;
256
290
  /**
257
- * Determines whether subscription is fieldLed, partnerLed or LegacyEA
291
+ * The accept ownership state of the resource.
292
+ * NOTE: This property will not be serialized. It can only be populated by the server.
258
293
  */
259
- billingScope?: string;
294
+ readonly acceptOwnershipState?: AcceptOwnership;
260
295
  /**
261
- * This parameter can be used to create alias for existing subscription Id
262
- */
263
- subscriptionId?: string;
264
- /**
265
- * Reseller ID, basically MPN Id
296
+ * Billing scope of the subscription.
297
+ * For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
298
+ * For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
299
+ * For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
266
300
  */
301
+ billingScope?: string;
302
+ /** The workload type of the subscription. It can be either Production or DevTest. */
303
+ workload?: Workload;
304
+ /** Reseller Id */
267
305
  resellerId?: string;
306
+ /** Owner Id of the subscription */
307
+ subscriptionOwnerId?: string;
308
+ /** The Management Group Id. */
309
+ managementGroupId?: string;
310
+ /** Created Time */
311
+ createdTime?: string;
312
+ /** Tags for the subscription */
313
+ tags?: { [propertyName: string]: string };
268
314
  }
269
315
 
270
- /**
271
- * The parameters required to create a new subscription.
272
- */
273
- export interface PutAliasRequest {
316
+ /** Metadata pertaining to creation and last modification of the resource. */
317
+ export interface SystemData {
318
+ /** The identity that created the resource. */
319
+ createdBy?: string;
320
+ /** The type of identity that created the resource. */
321
+ createdByType?: CreatedByType;
322
+ /** The timestamp of resource creation (UTC). */
323
+ createdAt?: Date;
324
+ /** The identity that last modified the resource. */
325
+ lastModifiedBy?: string;
326
+ /** The type of identity that last modified the resource. */
327
+ lastModifiedByType?: CreatedByType;
328
+ /** The timestamp of resource last modification (UTC) */
329
+ lastModifiedAt?: Date;
330
+ }
331
+
332
+ /** The list of aliases. */
333
+ export interface SubscriptionAliasListResult {
274
334
  /**
275
- * Put alias request properties.
335
+ * The list of alias.
336
+ * NOTE: This property will not be serialized. It can only be populated by the server.
276
337
  */
277
- properties: PutAliasRequestProperties;
338
+ readonly value?: SubscriptionAliasResponse[];
339
+ /**
340
+ * The link (url) to the next page of results.
341
+ * NOTE: This property will not be serialized. It can only be populated by the server.
342
+ */
343
+ readonly nextLink?: string;
278
344
  }
279
345
 
280
- /**
281
- * Put subscription creation result properties.
282
- */
283
- export interface PutAliasResponseProperties {
346
+ /** The parameters required to accept subscription ownership. */
347
+ export interface AcceptOwnershipRequest {
348
+ /** Accept subscription ownership request properties. */
349
+ properties?: AcceptOwnershipRequestProperties;
350
+ }
351
+
352
+ /** Accept subscription ownership request properties. */
353
+ export interface AcceptOwnershipRequestProperties {
354
+ /** The friendly name of the subscription. */
355
+ displayName: string;
356
+ /** Management group Id for the subscription. */
357
+ managementGroupId?: string;
358
+ /** Tags for the subscription */
359
+ tags?: { [propertyName: string]: string };
360
+ }
361
+
362
+ /** Subscription Accept Ownership Response */
363
+ export interface AcceptOwnershipStatusResponse {
284
364
  /**
285
365
  * Newly created subscription Id.
286
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
366
+ * NOTE: This property will not be serialized. It can only be populated by the server.
287
367
  */
288
368
  readonly subscriptionId?: string;
289
369
  /**
290
- * The provisioning state of the resource. Possible values include: 'Accepted', 'Succeeded',
291
- * 'Failed'
370
+ * The accept ownership state of the resource.
371
+ * NOTE: This property will not be serialized. It can only be populated by the server.
292
372
  */
293
- provisioningState?: ProvisioningState;
373
+ readonly acceptOwnershipState?: AcceptOwnership;
374
+ /**
375
+ * UPN of the billing owner
376
+ * NOTE: This property will not be serialized. It can only be populated by the server.
377
+ */
378
+ readonly billingOwner?: string;
379
+ /** Tenant Id of the subscription */
380
+ subscriptionTenantId?: string;
381
+ /** The display name of the subscription. */
382
+ displayName?: string;
383
+ /** Tags for the subscription */
384
+ tags?: { [propertyName: string]: string };
294
385
  }
295
386
 
296
- /**
297
- * Subscription Information with the alias.
298
- */
299
- export interface PutAliasResponse extends BaseResource {
387
+ /** Put tenant policy request properties. */
388
+ export interface PutTenantPolicyRequestProperties {
389
+ /** Blocks the leaving of subscriptions from user's tenant. */
390
+ blockSubscriptionsLeavingTenant?: boolean;
391
+ /** Blocks the entering of subscriptions into user's tenant. */
392
+ blockSubscriptionsIntoTenant?: boolean;
393
+ /** List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. */
394
+ exemptedPrincipals?: string[];
395
+ }
396
+
397
+ /** Tenant policy Information. */
398
+ export interface GetTenantPolicyResponse {
300
399
  /**
301
- * Fully qualified ID for the alias resource.
302
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
400
+ * Policy Id.
401
+ * NOTE: This property will not be serialized. It can only be populated by the server.
303
402
  */
304
403
  readonly id?: string;
305
404
  /**
306
- * Alias ID.
307
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
405
+ * Policy name.
406
+ * NOTE: This property will not be serialized. It can only be populated by the server.
308
407
  */
309
408
  readonly name?: string;
310
409
  /**
311
- * Resource type, Microsoft.Subscription/aliases.
312
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
410
+ * Resource type.
411
+ * NOTE: This property will not be serialized. It can only be populated by the server.
313
412
  */
314
413
  readonly type?: string;
414
+ /** Tenant policy properties. */
415
+ properties?: TenantPolicy;
315
416
  /**
316
- * Put Alias response properties.
417
+ * Metadata pertaining to creation and last modification of the resource.
418
+ * NOTE: This property will not be serialized. It can only be populated by the server.
317
419
  */
318
- properties?: PutAliasResponseProperties;
420
+ readonly systemData?: SystemData;
319
421
  }
320
422
 
321
- /**
322
- * The list of aliases.
323
- */
324
- export interface PutAliasListResult {
423
+ /** Tenant policy. */
424
+ export interface TenantPolicy {
325
425
  /**
326
- * The list of alias.
327
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
426
+ * Policy Id.
427
+ * NOTE: This property will not be serialized. It can only be populated by the server.
328
428
  */
329
- readonly value?: PutAliasResponse[];
429
+ readonly policyId?: string;
430
+ /** Blocks the leaving of subscriptions from user's tenant. */
431
+ blockSubscriptionsLeavingTenant?: boolean;
432
+ /** Blocks the entering of subscriptions into user's tenant. */
433
+ blockSubscriptionsIntoTenant?: boolean;
434
+ /** List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. */
435
+ exemptedPrincipals?: string[];
436
+ }
437
+
438
+ /** Tenant policy information list. */
439
+ export interface GetTenantPolicyListResponse {
440
+ /**
441
+ * The list of tenant policies.
442
+ * NOTE: This property will not be serialized. It can only be populated by the server.
443
+ */
444
+ readonly value?: GetTenantPolicyResponse[];
330
445
  /**
331
446
  * The link (url) to the next page of results.
332
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
447
+ * NOTE: This property will not be serialized. It can only be populated by the server.
333
448
  */
334
449
  readonly nextLink?: string;
335
450
  }
336
451
 
337
- /**
338
- * An interface representing SubscriptionClientOptions.
339
- */
340
- export interface SubscriptionClientOptions extends AzureServiceClientOptions {
341
- baseUri?: string;
452
+ /** Billing account policies information. */
453
+ export interface BillingAccountPoliciesResponse {
454
+ /**
455
+ * Fully qualified ID for the policy.
456
+ * NOTE: This property will not be serialized. It can only be populated by the server.
457
+ */
458
+ readonly id?: string;
459
+ /**
460
+ * Policy name.
461
+ * NOTE: This property will not be serialized. It can only be populated by the server.
462
+ */
463
+ readonly name?: string;
464
+ /**
465
+ * Resource type.
466
+ * NOTE: This property will not be serialized. It can only be populated by the server.
467
+ */
468
+ readonly type?: string;
469
+ /** Billing account policies response properties. */
470
+ properties?: BillingAccountPoliciesResponseProperties;
471
+ /**
472
+ * Metadata pertaining to creation and last modification of the resource.
473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
474
+ */
475
+ readonly systemData?: SystemData;
342
476
  }
343
477
 
344
- /**
345
- * @interface
346
- * Location list operation response.
347
- * @extends Array<Location>
348
- */
349
- export interface LocationListResult extends Array<Location> {
478
+ /** Put billing account policies response properties. */
479
+ export interface BillingAccountPoliciesResponseProperties {
480
+ /** Service tenant for the billing account. */
481
+ serviceTenants?: ServiceTenantResponse[];
482
+ /** Determine if the transfers are allowed for the billing account */
483
+ allowTransfers?: boolean;
350
484
  }
351
485
 
352
- /**
353
- * @interface
354
- * Subscription list operation response.
355
- * @extends Array<Subscription>
356
- */
357
- export interface SubscriptionListResult extends Array<Subscription> {
358
- /**
359
- * The URL to get the next set of results.
360
- */
361
- nextLink: string;
486
+ /** Billing account service tenant. */
487
+ export interface ServiceTenantResponse {
488
+ /** Service tenant id. */
489
+ tenantId?: string;
490
+ /** Service tenant name. */
491
+ tenantName?: string;
362
492
  }
363
493
 
364
- /**
365
- * @interface
366
- * Tenant Ids information.
367
- * @extends Array<TenantIdDescription>
368
- */
369
- export interface TenantListResult extends Array<TenantIdDescription> {
370
- /**
371
- * The URL to use for getting the next set of results.
372
- */
373
- nextLink: string;
494
+ /** Defines headers for Subscription_acceptOwnership operation. */
495
+ export interface SubscriptionAcceptOwnershipHeaders {
496
+ /** GET this URL to retrieve the status of the asynchronous operation. */
497
+ location?: string;
498
+ /** The amount of delay to use while the status of the operation is checked. The value is expressed in seconds. */
499
+ retryAfter?: number;
374
500
  }
375
501
 
376
- /**
377
- * Defines values for SubscriptionState.
378
- * Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
379
- * @readonly
380
- * @enum {string}
381
- */
382
- export type SubscriptionState = 'Enabled' | 'Warned' | 'PastDue' | 'Disabled' | 'Deleted';
502
+ /** Known values of {@link Workload} that the service accepts. */
503
+ export enum KnownWorkload {
504
+ Production = "Production",
505
+ DevTest = "DevTest"
506
+ }
383
507
 
384
508
  /**
385
- * Defines values for SpendingLimit.
386
- * Possible values include: 'On', 'Off', 'CurrentPeriodOff'
387
- * @readonly
388
- * @enum {string}
509
+ * Defines values for Workload. \
510
+ * {@link KnownWorkload} can be used interchangeably with Workload,
511
+ * this enum contains the known values that the service supports.
512
+ * ### Known values supported by the service
513
+ * **Production** \
514
+ * **DevTest**
389
515
  */
390
- export type SpendingLimit = 'On' | 'Off' | 'CurrentPeriodOff';
516
+ export type Workload = string;
391
517
 
392
- /**
393
- * Defines values for Workload.
394
- * Possible values include: 'Production', 'DevTest'
395
- * @readonly
396
- * @enum {string}
397
- */
398
- export type Workload = 'Production' | 'DevTest';
518
+ /** Known values of {@link ProvisioningState} that the service accepts. */
519
+ export enum KnownProvisioningState {
520
+ Accepted = "Accepted",
521
+ Succeeded = "Succeeded",
522
+ Failed = "Failed"
523
+ }
399
524
 
400
525
  /**
401
- * Defines values for ProvisioningState.
402
- * Possible values include: 'Accepted', 'Succeeded', 'Failed'
403
- * @readonly
404
- * @enum {string}
526
+ * Defines values for ProvisioningState. \
527
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
528
+ * this enum contains the known values that the service supports.
529
+ * ### Known values supported by the service
530
+ * **Accepted** \
531
+ * **Succeeded** \
532
+ * **Failed**
405
533
  */
406
- export type ProvisioningState = 'Accepted' | 'Succeeded' | 'Failed';
534
+ export type ProvisioningState = string;
535
+
536
+ /** Known values of {@link AcceptOwnership} that the service accepts. */
537
+ export enum KnownAcceptOwnership {
538
+ Pending = "Pending",
539
+ Completed = "Completed",
540
+ Expired = "Expired"
541
+ }
407
542
 
408
543
  /**
409
- * Contains response data for the listLocations operation.
544
+ * Defines values for AcceptOwnership. \
545
+ * {@link KnownAcceptOwnership} can be used interchangeably with AcceptOwnership,
546
+ * this enum contains the known values that the service supports.
547
+ * ### Known values supported by the service
548
+ * **Pending** \
549
+ * **Completed** \
550
+ * **Expired**
410
551
  */
411
- export type SubscriptionsListLocationsResponse = LocationListResult & {
412
- /**
413
- * The underlying HTTP response.
414
- */
415
- _response: msRest.HttpResponse & {
416
- /**
417
- * The response body as text (string format)
418
- */
419
- bodyAsText: string;
552
+ export type AcceptOwnership = string;
420
553
 
421
- /**
422
- * The response body as parsed JSON or XML
423
- */
424
- parsedBody: LocationListResult;
425
- };
426
- };
554
+ /** Known values of {@link CreatedByType} that the service accepts. */
555
+ export enum KnownCreatedByType {
556
+ User = "User",
557
+ Application = "Application",
558
+ ManagedIdentity = "ManagedIdentity",
559
+ Key = "Key"
560
+ }
427
561
 
428
562
  /**
429
- * Contains response data for the get operation.
430
- */
431
- export type SubscriptionsGetResponse = Subscription & {
432
- /**
433
- * The underlying HTTP response.
434
- */
435
- _response: msRest.HttpResponse & {
436
- /**
437
- * The response body as text (string format)
438
- */
439
- bodyAsText: string;
563
+ * Defines values for CreatedByType. \
564
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
565
+ * this enum contains the known values that the service supports.
566
+ * ### Known values supported by the service
567
+ * **User** \
568
+ * **Application** \
569
+ * **ManagedIdentity** \
570
+ * **Key**
571
+ */
572
+ export type CreatedByType = string;
573
+ /** Defines values for SubscriptionState. */
574
+ export type SubscriptionState =
575
+ | "Enabled"
576
+ | "Warned"
577
+ | "PastDue"
578
+ | "Disabled"
579
+ | "Deleted";
580
+ /** Defines values for SpendingLimit. */
581
+ export type SpendingLimit = "On" | "Off" | "CurrentPeriodOff";
582
+
583
+ /** Optional parameters. */
584
+ export interface SubscriptionsListLocationsOptionalParams
585
+ extends coreClient.OperationOptions {}
586
+
587
+ /** Contains response data for the listLocations operation. */
588
+ export type SubscriptionsListLocationsResponse = LocationListResult;
589
+
590
+ /** Optional parameters. */
591
+ export interface SubscriptionsGetOptionalParams
592
+ extends coreClient.OperationOptions {}
593
+
594
+ /** Contains response data for the get operation. */
595
+ export type SubscriptionsGetResponse = Subscription;
596
+
597
+ /** Optional parameters. */
598
+ export interface SubscriptionsListOptionalParams
599
+ extends coreClient.OperationOptions {}
600
+
601
+ /** Contains response data for the list operation. */
602
+ export type SubscriptionsListResponse = SubscriptionListResult;
603
+
604
+ /** Optional parameters. */
605
+ export interface SubscriptionsListNextOptionalParams
606
+ extends coreClient.OperationOptions {}
607
+
608
+ /** Contains response data for the listNext operation. */
609
+ export type SubscriptionsListNextResponse = SubscriptionListResult;
610
+
611
+ /** Optional parameters. */
612
+ export interface TenantsListOptionalParams
613
+ extends coreClient.OperationOptions {}
614
+
615
+ /** Contains response data for the list operation. */
616
+ export type TenantsListResponse = TenantListResult;
617
+
618
+ /** Optional parameters. */
619
+ export interface TenantsListNextOptionalParams
620
+ extends coreClient.OperationOptions {}
621
+
622
+ /** Contains response data for the listNext operation. */
623
+ export type TenantsListNextResponse = TenantListResult;
624
+
625
+ /** Optional parameters. */
626
+ export interface SubscriptionCancelOptionalParams
627
+ extends coreClient.OperationOptions {}
628
+
629
+ /** Contains response data for the cancel operation. */
630
+ export type SubscriptionCancelResponse = CanceledSubscriptionId;
631
+
632
+ /** Optional parameters. */
633
+ export interface SubscriptionRenameOptionalParams
634
+ extends coreClient.OperationOptions {}
635
+
636
+ /** Contains response data for the rename operation. */
637
+ export type SubscriptionRenameResponse = RenamedSubscriptionId;
638
+
639
+ /** Optional parameters. */
640
+ export interface SubscriptionEnableOptionalParams
641
+ extends coreClient.OperationOptions {}
642
+
643
+ /** Contains response data for the enable operation. */
644
+ export type SubscriptionEnableResponse = EnabledSubscriptionId;
645
+
646
+ /** Optional parameters. */
647
+ export interface SubscriptionAcceptOwnershipOptionalParams
648
+ extends coreClient.OperationOptions {
649
+ /** Delay to wait until next poll, in milliseconds. */
650
+ updateIntervalInMs?: number;
651
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
652
+ resumeFrom?: string;
653
+ }
440
654
 
441
- /**
442
- * The response body as parsed JSON or XML
443
- */
444
- parsedBody: Subscription;
445
- };
446
- };
655
+ /** Contains response data for the acceptOwnership operation. */
656
+ export type SubscriptionAcceptOwnershipResponse = SubscriptionAcceptOwnershipHeaders;
447
657
 
448
- /**
449
- * Contains response data for the list operation.
450
- */
451
- export type SubscriptionsListResponse = SubscriptionListResult & {
452
- /**
453
- * The underlying HTTP response.
454
- */
455
- _response: msRest.HttpResponse & {
456
- /**
457
- * The response body as text (string format)
458
- */
459
- bodyAsText: string;
658
+ /** Optional parameters. */
659
+ export interface SubscriptionAcceptOwnershipStatusOptionalParams
660
+ extends coreClient.OperationOptions {}
460
661
 
461
- /**
462
- * The response body as parsed JSON or XML
463
- */
464
- parsedBody: SubscriptionListResult;
465
- };
466
- };
662
+ /** Contains response data for the acceptOwnershipStatus operation. */
663
+ export type SubscriptionAcceptOwnershipStatusResponse = AcceptOwnershipStatusResponse;
467
664
 
468
- /**
469
- * Contains response data for the listNext operation.
470
- */
471
- export type SubscriptionsListNextResponse = SubscriptionListResult & {
472
- /**
473
- * The underlying HTTP response.
474
- */
475
- _response: msRest.HttpResponse & {
476
- /**
477
- * The response body as text (string format)
478
- */
479
- bodyAsText: string;
665
+ /** Optional parameters. */
666
+ export interface OperationsListOptionalParams
667
+ extends coreClient.OperationOptions {}
480
668
 
481
- /**
482
- * The response body as parsed JSON or XML
483
- */
484
- parsedBody: SubscriptionListResult;
485
- };
486
- };
669
+ /** Contains response data for the list operation. */
670
+ export type OperationsListResponse = OperationListResult;
487
671
 
488
- /**
489
- * Contains response data for the list operation.
490
- */
491
- export type TenantsListResponse = TenantListResult & {
492
- /**
493
- * The underlying HTTP response.
494
- */
495
- _response: msRest.HttpResponse & {
496
- /**
497
- * The response body as text (string format)
498
- */
499
- bodyAsText: string;
672
+ /** Optional parameters. */
673
+ export interface OperationsListNextOptionalParams
674
+ extends coreClient.OperationOptions {}
500
675
 
501
- /**
502
- * The response body as parsed JSON or XML
503
- */
504
- parsedBody: TenantListResult;
505
- };
506
- };
676
+ /** Contains response data for the listNext operation. */
677
+ export type OperationsListNextResponse = OperationListResult;
507
678
 
508
- /**
509
- * Contains response data for the listNext operation.
510
- */
511
- export type TenantsListNextResponse = TenantListResult & {
512
- /**
513
- * The underlying HTTP response.
514
- */
515
- _response: msRest.HttpResponse & {
516
- /**
517
- * The response body as text (string format)
518
- */
519
- bodyAsText: string;
679
+ /** Optional parameters. */
680
+ export interface AliasCreateOptionalParams extends coreClient.OperationOptions {
681
+ /** Delay to wait until next poll, in milliseconds. */
682
+ updateIntervalInMs?: number;
683
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
684
+ resumeFrom?: string;
685
+ }
520
686
 
521
- /**
522
- * The response body as parsed JSON or XML
523
- */
524
- parsedBody: TenantListResult;
525
- };
526
- };
687
+ /** Contains response data for the create operation. */
688
+ export type AliasCreateResponse = SubscriptionAliasResponse;
527
689
 
528
- /**
529
- * Contains response data for the cancel operation.
530
- */
531
- export type SubscriptionCancelResponse = CanceledSubscriptionId & {
532
- /**
533
- * The underlying HTTP response.
534
- */
535
- _response: msRest.HttpResponse & {
536
- /**
537
- * The response body as text (string format)
538
- */
539
- bodyAsText: string;
690
+ /** Optional parameters. */
691
+ export interface AliasGetOptionalParams extends coreClient.OperationOptions {}
540
692
 
541
- /**
542
- * The response body as parsed JSON or XML
543
- */
544
- parsedBody: CanceledSubscriptionId;
545
- };
546
- };
693
+ /** Contains response data for the get operation. */
694
+ export type AliasGetResponse = SubscriptionAliasResponse;
547
695
 
548
- /**
549
- * Contains response data for the rename operation.
550
- */
551
- export type SubscriptionRenameResponse = RenamedSubscriptionId & {
552
- /**
553
- * The underlying HTTP response.
554
- */
555
- _response: msRest.HttpResponse & {
556
- /**
557
- * The response body as text (string format)
558
- */
559
- bodyAsText: string;
696
+ /** Optional parameters. */
697
+ export interface AliasDeleteOptionalParams
698
+ extends coreClient.OperationOptions {}
560
699
 
561
- /**
562
- * The response body as parsed JSON or XML
563
- */
564
- parsedBody: RenamedSubscriptionId;
565
- };
566
- };
700
+ /** Optional parameters. */
701
+ export interface AliasListOptionalParams extends coreClient.OperationOptions {}
567
702
 
568
- /**
569
- * Contains response data for the enable operation.
570
- */
571
- export type SubscriptionEnableResponse = EnabledSubscriptionId & {
572
- /**
573
- * The underlying HTTP response.
574
- */
575
- _response: msRest.HttpResponse & {
576
- /**
577
- * The response body as text (string format)
578
- */
579
- bodyAsText: string;
703
+ /** Contains response data for the list operation. */
704
+ export type AliasListResponse = SubscriptionAliasListResult;
580
705
 
581
- /**
582
- * The response body as parsed JSON or XML
583
- */
584
- parsedBody: EnabledSubscriptionId;
585
- };
586
- };
706
+ /** Optional parameters. */
707
+ export interface SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams
708
+ extends coreClient.OperationOptions {}
587
709
 
588
- /**
589
- * Contains response data for the list operation.
590
- */
591
- export type OperationsListResponse = OperationListResult & {
592
- /**
593
- * The underlying HTTP response.
594
- */
595
- _response: msRest.HttpResponse & {
596
- /**
597
- * The response body as text (string format)
598
- */
599
- bodyAsText: string;
710
+ /** Contains response data for the addUpdatePolicyForTenant operation. */
711
+ export type SubscriptionPolicyAddUpdatePolicyForTenantResponse = GetTenantPolicyResponse;
600
712
 
601
- /**
602
- * The response body as parsed JSON or XML
603
- */
604
- parsedBody: OperationListResult;
605
- };
606
- };
713
+ /** Optional parameters. */
714
+ export interface SubscriptionPolicyGetPolicyForTenantOptionalParams
715
+ extends coreClient.OperationOptions {}
607
716
 
608
- /**
609
- * Contains response data for the create operation.
610
- */
611
- export type AliasCreateResponse = PutAliasResponse & {
612
- /**
613
- * The underlying HTTP response.
614
- */
615
- _response: msRest.HttpResponse & {
616
- /**
617
- * The response body as text (string format)
618
- */
619
- bodyAsText: string;
717
+ /** Contains response data for the getPolicyForTenant operation. */
718
+ export type SubscriptionPolicyGetPolicyForTenantResponse = GetTenantPolicyResponse;
620
719
 
621
- /**
622
- * The response body as parsed JSON or XML
623
- */
624
- parsedBody: PutAliasResponse;
625
- };
626
- };
720
+ /** Optional parameters. */
721
+ export interface SubscriptionPolicyListPolicyForTenantOptionalParams
722
+ extends coreClient.OperationOptions {}
627
723
 
628
- /**
629
- * Contains response data for the get operation.
630
- */
631
- export type AliasGetResponse = PutAliasResponse & {
632
- /**
633
- * The underlying HTTP response.
634
- */
635
- _response: msRest.HttpResponse & {
636
- /**
637
- * The response body as text (string format)
638
- */
639
- bodyAsText: string;
724
+ /** Contains response data for the listPolicyForTenant operation. */
725
+ export type SubscriptionPolicyListPolicyForTenantResponse = GetTenantPolicyListResponse;
640
726
 
641
- /**
642
- * The response body as parsed JSON or XML
643
- */
644
- parsedBody: PutAliasResponse;
645
- };
646
- };
727
+ /** Optional parameters. */
728
+ export interface SubscriptionPolicyListPolicyForTenantNextOptionalParams
729
+ extends coreClient.OperationOptions {}
647
730
 
648
- /**
649
- * Contains response data for the list operation.
650
- */
651
- export type AliasListResponse = PutAliasListResult & {
652
- /**
653
- * The underlying HTTP response.
654
- */
655
- _response: msRest.HttpResponse & {
656
- /**
657
- * The response body as text (string format)
658
- */
659
- bodyAsText: string;
731
+ /** Contains response data for the listPolicyForTenantNext operation. */
732
+ export type SubscriptionPolicyListPolicyForTenantNextResponse = GetTenantPolicyListResponse;
660
733
 
661
- /**
662
- * The response body as parsed JSON or XML
663
- */
664
- parsedBody: PutAliasListResult;
665
- };
666
- };
734
+ /** Optional parameters. */
735
+ export interface BillingAccountGetPolicyOptionalParams
736
+ extends coreClient.OperationOptions {}
667
737
 
668
- /**
669
- * Contains response data for the beginCreate operation.
670
- */
671
- export type AliasBeginCreateResponse = PutAliasResponse & {
672
- /**
673
- * The underlying HTTP response.
674
- */
675
- _response: msRest.HttpResponse & {
676
- /**
677
- * The response body as text (string format)
678
- */
679
- bodyAsText: string;
680
-
681
- /**
682
- * The response body as parsed JSON or XML
683
- */
684
- parsedBody: PutAliasResponse;
685
- };
686
- };
738
+ /** Contains response data for the getPolicy operation. */
739
+ export type BillingAccountGetPolicyResponse = BillingAccountPoliciesResponse;
740
+
741
+ /** Optional parameters. */
742
+ export interface SubscriptionClientOptionalParams
743
+ extends coreClient.ServiceClientOptions {
744
+ /** server parameter */
745
+ $host?: string;
746
+ /** Overrides client endpoint. */
747
+ endpoint?: string;
748
+ }