@azure/arm-subscriptions 3.1.2 → 4.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 (184) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +68 -79
  4. package/dist/index.js +1772 -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 +514 -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 +29 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +825 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +14 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +110 -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/dist-esm/src/operations/index.d.ts +6 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/dist-esm/src/operations/index.js +13 -0
  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/subscription.d.ts +53 -0
  45. package/dist-esm/src/operations/subscription.d.ts.map +1 -0
  46. package/dist-esm/src/operations/subscription.js +201 -0
  47. package/dist-esm/src/operations/subscription.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/operationsInterfaces/alias.d.ts +45 -0
  53. package/dist-esm/src/operationsInterfaces/alias.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/alias.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/alias.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/billingAccount.d.ts +11 -0
  57. package/dist-esm/src/operationsInterfaces/billingAccount.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/billingAccount.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/billingAccount.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  65. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/subscription.d.ts +45 -0
  69. package/dist-esm/src/operationsInterfaces/subscription.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/subscription.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/subscription.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.d.ts +22 -0
  73. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/subscriptionPolicy.js.map +1 -0
  76. package/dist-esm/src/subscriptionClient.d.ts +20 -0
  77. package/dist-esm/src/subscriptionClient.d.ts.map +1 -0
  78. package/dist-esm/src/subscriptionClient.js +49 -0
  79. package/dist-esm/src/subscriptionClient.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +65 -32
  85. package/review/arm-subscriptions.api.md +446 -0
  86. package/rollup.config.js +181 -30
  87. package/src/index.ts +12 -0
  88. package/src/lroImpl.ts +34 -0
  89. package/src/models/index.ts +449 -555
  90. package/src/models/mappers.ts +506 -250
  91. package/src/models/parameters.ts +82 -27
  92. package/src/operations/alias.ts +170 -170
  93. package/src/operations/billingAccount.ts +65 -0
  94. package/src/operations/index.ts +6 -8
  95. package/src/operations/operations.ts +103 -40
  96. package/src/operations/subscription.ts +289 -0
  97. package/src/operations/subscriptionPolicy.ts +207 -0
  98. package/src/operationsInterfaces/alias.ts +75 -0
  99. package/src/operationsInterfaces/billingAccount.ts +25 -0
  100. package/src/operationsInterfaces/index.ts +13 -0
  101. package/src/operationsInterfaces/operations.ts +22 -0
  102. package/src/operationsInterfaces/subscription.ts +92 -0
  103. package/src/operationsInterfaces/subscriptionPolicy.ts +46 -0
  104. package/src/subscriptionClient.ts +75 -43
  105. package/tsconfig.json +3 -3
  106. package/types/arm-subscriptions.d.ts +727 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-subscriptions.js +0 -1442
  109. package/dist/arm-subscriptions.js.map +0 -1
  110. package/dist/arm-subscriptions.min.js +0 -1
  111. package/dist/arm-subscriptions.min.js.map +0 -1
  112. package/esm/models/aliasMappers.d.ts +0 -2
  113. package/esm/models/aliasMappers.d.ts.map +0 -1
  114. package/esm/models/aliasMappers.js +0 -9
  115. package/esm/models/aliasMappers.js.map +0 -1
  116. package/esm/models/index.d.ts +0 -624
  117. package/esm/models/index.d.ts.map +0 -1
  118. package/esm/models/index.js +0 -8
  119. package/esm/models/index.js.map +0 -1
  120. package/esm/models/mappers.d.ts +0 -25
  121. package/esm/models/mappers.d.ts.map +0 -1
  122. package/esm/models/mappers.js +0 -574
  123. package/esm/models/mappers.js.map +0 -1
  124. package/esm/models/operationsMappers.d.ts +0 -2
  125. package/esm/models/operationsMappers.d.ts.map +0 -1
  126. package/esm/models/operationsMappers.js +0 -9
  127. package/esm/models/operationsMappers.js.map +0 -1
  128. package/esm/models/parameters.d.ts +0 -8
  129. package/esm/models/parameters.d.ts.map +0 -1
  130. package/esm/models/parameters.js +0 -75
  131. package/esm/models/parameters.js.map +0 -1
  132. package/esm/models/subscriptionOperationsMappers.d.ts +0 -2
  133. package/esm/models/subscriptionOperationsMappers.d.ts.map +0 -1
  134. package/esm/models/subscriptionOperationsMappers.js +0 -9
  135. package/esm/models/subscriptionOperationsMappers.js.map +0 -1
  136. package/esm/models/subscriptionsMappers.d.ts +0 -2
  137. package/esm/models/subscriptionsMappers.d.ts.map +0 -1
  138. package/esm/models/subscriptionsMappers.js +0 -9
  139. package/esm/models/subscriptionsMappers.js.map +0 -1
  140. package/esm/models/tenantsMappers.d.ts +0 -2
  141. package/esm/models/tenantsMappers.d.ts.map +0 -1
  142. package/esm/models/tenantsMappers.js +0 -9
  143. package/esm/models/tenantsMappers.js.map +0 -1
  144. package/esm/operations/alias.d.ts +0 -81
  145. package/esm/operations/alias.d.ts.map +0 -1
  146. package/esm/operations/alias.js +0 -161
  147. package/esm/operations/alias.js.map +0 -1
  148. package/esm/operations/index.d.ts +0 -6
  149. package/esm/operations/index.d.ts.map +0 -1
  150. package/esm/operations/index.js +0 -15
  151. package/esm/operations/index.js.map +0 -1
  152. package/esm/operations/operations.d.ts +0 -28
  153. package/esm/operations/operations.d.ts.map +0 -1
  154. package/esm/operations/operations.js +0 -51
  155. package/esm/operations/operations.js.map +0 -1
  156. package/esm/operations/subscriptionOperations.d.ts +0 -70
  157. package/esm/operations/subscriptionOperations.d.ts.map +0 -1
  158. package/esm/operations/subscriptionOperations.js +0 -117
  159. package/esm/operations/subscriptionOperations.js.map +0 -1
  160. package/esm/operations/subscriptions.d.ts +0 -84
  161. package/esm/operations/subscriptions.d.ts.map +0 -1
  162. package/esm/operations/subscriptions.js +0 -133
  163. package/esm/operations/subscriptions.js.map +0 -1
  164. package/esm/operations/tenants.d.ts +0 -46
  165. package/esm/operations/tenants.d.ts.map +0 -1
  166. package/esm/operations/tenants.js +0 -77
  167. package/esm/operations/tenants.js.map +0 -1
  168. package/esm/subscriptionClient.d.ts +0 -27
  169. package/esm/subscriptionClient.d.ts.map +0 -1
  170. package/esm/subscriptionClient.js +0 -41
  171. package/esm/subscriptionClient.js.map +0 -1
  172. package/esm/subscriptionClientContext.d.ts +0 -19
  173. package/esm/subscriptionClientContext.d.ts.map +0 -1
  174. package/esm/subscriptionClientContext.js +0 -55
  175. package/esm/subscriptionClientContext.js.map +0 -1
  176. package/src/models/aliasMappers.ts +0 -18
  177. package/src/models/operationsMappers.ts +0 -14
  178. package/src/models/subscriptionOperationsMappers.ts +0 -15
  179. package/src/models/subscriptionsMappers.ts +0 -16
  180. package/src/models/tenantsMappers.ts +0 -13
  181. package/src/operations/subscriptionOperations.ts +0 -194
  182. package/src/operations/subscriptions.ts +0 -227
  183. package/src/operations/tenants.ts +0 -123
  184. package/src/subscriptionClientContext.ts +0 -60
@@ -1,686 +1,580 @@
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 };
13
-
14
- /**
15
- * Location information.
16
- */
17
- export interface Location {
18
- /**
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.**
22
- */
23
- readonly id?: string;
24
- /**
25
- * The subscription ID.
26
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
27
- */
28
- readonly subscriptionId?: string;
29
- /**
30
- * The location name.
31
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
32
- */
33
- readonly name?: string;
34
- /**
35
- * The display name of the location.
36
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
37
- */
38
- readonly displayName?: string;
39
- /**
40
- * The latitude of the location.
41
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
42
- */
43
- readonly latitude?: string;
44
- /**
45
- * The longitude of the location.
46
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
47
- */
48
- readonly longitude?: string;
49
- }
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
- */
77
- export interface Subscription {
78
- /**
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.**
82
- */
83
- readonly id?: string;
84
- /**
85
- * The subscription ID.
86
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
87
- */
88
- readonly subscriptionId?: string;
89
- /**
90
- * The subscription display name.
91
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
92
- */
93
- readonly displayName?: string;
94
- /**
95
- * 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.**
98
- */
99
- readonly state?: SubscriptionState;
100
- /**
101
- * The subscription policies.
102
- */
103
- subscriptionPolicies?: SubscriptionPolicies;
11
+ /** The ID of the canceled subscription */
12
+ export interface CanceledSubscriptionId {
104
13
  /**
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'.
14
+ * The ID of the canceled subscription
15
+ * NOTE: This property will not be serialized. It can only be populated by the server.
107
16
  */
108
- authorizationSource?: string;
17
+ readonly value?: string;
109
18
  }
110
19
 
111
- /**
112
- * Tenant Id information.
113
- */
114
- export interface TenantIdDescription {
115
- /**
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.**
119
- */
120
- readonly id?: string;
121
- /**
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.**
124
- */
125
- readonly tenantId?: string;
20
+ /** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */
21
+ export interface ErrorResponseBody {
22
+ /** The details of the error. */
23
+ error?: ErrorResponse;
24
+ /** Error code */
25
+ code?: string;
26
+ /** Error message indicating why the operation failed. */
27
+ message?: string;
126
28
  }
127
29
 
128
- /**
129
- * Describes the format of Error response.
130
- */
30
+ /** Describes the format of Error response. */
131
31
  export interface ErrorResponse {
132
- /**
133
- * Error code
134
- */
32
+ /** Error code */
135
33
  code?: string;
136
- /**
137
- * Error message indicating why the operation failed.
138
- */
34
+ /** Error message indicating why the operation failed. */
139
35
  message?: string;
140
36
  }
141
37
 
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
- */
146
- export interface ErrorResponseBody {
147
- /**
148
- * The details of the error.
149
- */
150
- error?: ErrorResponse;
151
- }
152
-
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;
38
+ /** The new name of the subscription. */
39
+ export interface SubscriptionName {
40
+ /** New subscription name */
41
+ subscriptionName?: string;
162
42
  }
163
43
 
164
- /**
165
- * The ID of the subscriptions that is being renamed
166
- */
44
+ /** The ID of the subscriptions that is being renamed */
167
45
  export interface RenamedSubscriptionId {
168
46
  /**
169
47
  * 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.**
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
49
  */
172
50
  readonly value?: string;
173
51
  }
174
52
 
175
- /**
176
- * The ID of the subscriptions that is being enabled
177
- */
53
+ /** The ID of the subscriptions that is being enabled */
178
54
  export interface EnabledSubscriptionId {
179
55
  /**
180
56
  * 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.**
57
+ * NOTE: This property will not be serialized. It can only be populated by the server.
182
58
  */
183
59
  readonly value?: string;
184
60
  }
185
61
 
186
- /**
187
- * The new name of the subscription.
188
- */
189
- export interface SubscriptionName {
190
- /**
191
- * New subscription name
192
- */
193
- subscriptionName?: string;
62
+ /** Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results. */
63
+ export interface OperationListResult {
64
+ /** List of operations. */
65
+ value?: Operation[];
66
+ /** URL to get the next set of operation list results if there are any. */
67
+ nextLink?: string;
194
68
  }
195
69
 
196
- /**
197
- * The object that represents the operation.
198
- */
70
+ /** REST API operation */
71
+ export interface Operation {
72
+ /** Operation name: {provider}/{resource}/{operation} */
73
+ name?: string;
74
+ /** Indicates whether the operation is a data action */
75
+ isDataAction?: boolean;
76
+ /** The object that represents the operation. */
77
+ display?: OperationDisplay;
78
+ }
79
+
80
+ /** The object that represents the operation. */
199
81
  export interface OperationDisplay {
200
- /**
201
- * Service provider: Microsoft.Subscription
202
- */
82
+ /** Service provider: Microsoft.Subscription */
203
83
  provider?: string;
204
- /**
205
- * Resource on which the operation is performed: Profile, endpoint, etc.
206
- */
84
+ /** Resource on which the operation is performed: Profile, endpoint, etc. */
207
85
  resource?: string;
86
+ /** Operation type: Read, write, delete, etc. */
87
+ operation?: string;
88
+ /** Localized friendly description for the operation */
89
+ description?: string;
90
+ }
91
+
92
+ /** The parameters required to create a new subscription. */
93
+ export interface PutAliasRequest {
94
+ /** Put alias request properties. */
95
+ properties?: PutAliasRequestProperties;
96
+ }
97
+
98
+ /** Put subscription properties. */
99
+ export interface PutAliasRequestProperties {
100
+ /** The friendly name of the subscription. */
101
+ displayName?: string;
102
+ /** The workload type of the subscription. It can be either Production or DevTest. */
103
+ workload?: Workload;
208
104
  /**
209
- * Operation type: Read, write, delete, etc.
105
+ * Billing scope of the subscription.
106
+ * For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
107
+ * For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
108
+ * For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
210
109
  */
211
- operation?: string;
110
+ billingScope?: string;
111
+ /** This parameter can be used to create alias for existing subscription Id */
112
+ subscriptionId?: string;
113
+ /** Reseller Id */
114
+ resellerId?: string;
115
+ /** Put alias request additional properties. */
116
+ additionalProperties?: PutAliasRequestAdditionalProperties;
212
117
  }
213
118
 
214
- /**
215
- * REST API operation
216
- */
217
- export interface Operation {
119
+ /** Put subscription additional properties. */
120
+ export interface PutAliasRequestAdditionalProperties {
121
+ /** Management group Id for the subscription. */
122
+ managementGroupId?: string;
123
+ /** Tenant Id of the subscription */
124
+ subscriptionTenantId?: string;
125
+ /** Owner Id of the subscription */
126
+ subscriptionOwnerId?: string;
127
+ /** Tags for the subscription */
128
+ tags?: { [propertyName: string]: string };
129
+ }
130
+
131
+ /** Subscription Information with the alias. */
132
+ export interface SubscriptionAliasResponse {
218
133
  /**
219
- * Operation name: {provider}/{resource}/{operation}
134
+ * Fully qualified ID for the alias resource.
135
+ * NOTE: This property will not be serialized. It can only be populated by the server.
220
136
  */
221
- name?: string;
137
+ readonly id?: string;
222
138
  /**
223
- * The object that represents the operation.
139
+ * Alias ID.
140
+ * NOTE: This property will not be serialized. It can only be populated by the server.
224
141
  */
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 {
142
+ readonly name?: string;
233
143
  /**
234
- * List of operations.
144
+ * Resource type, Microsoft.Subscription/aliases.
145
+ * NOTE: This property will not be serialized. It can only be populated by the server.
235
146
  */
236
- value?: Operation[];
147
+ readonly type?: string;
148
+ /** Subscription Alias response properties. */
149
+ properties?: SubscriptionAliasResponseProperties;
237
150
  /**
238
- * URL to get the next set of operation list results if there are any.
151
+ * Metadata pertaining to creation and last modification of the resource.
152
+ * NOTE: This property will not be serialized. It can only be populated by the server.
239
153
  */
240
- nextLink?: string;
154
+ readonly systemData?: SystemData;
241
155
  }
242
156
 
243
- /**
244
- * Put subscription properties.
245
- */
246
- export interface PutAliasRequestProperties {
157
+ /** Put subscription creation result properties. */
158
+ export interface SubscriptionAliasResponseProperties {
247
159
  /**
248
- * The friendly name of the subscription.
160
+ * Newly created subscription Id.
161
+ * NOTE: This property will not be serialized. It can only be populated by the server.
249
162
  */
163
+ readonly subscriptionId?: string;
164
+ /** The display name of the subscription. */
250
165
  displayName?: string;
166
+ /** The provisioning state of the resource. */
167
+ provisioningState?: ProvisioningState;
251
168
  /**
252
- * The workload type of the subscription. It can be either Production or DevTest. Possible values
253
- * include: 'Production', 'DevTest'
169
+ * Url to accept ownership of the subscription.
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
254
171
  */
255
- workload?: Workload;
172
+ readonly acceptOwnershipUrl?: string;
256
173
  /**
257
- * Determines whether subscription is fieldLed, partnerLed or LegacyEA
174
+ * The accept ownership state of the resource.
175
+ * NOTE: This property will not be serialized. It can only be populated by the server.
258
176
  */
259
- billingScope?: string;
177
+ readonly acceptOwnershipState?: AcceptOwnership;
260
178
  /**
261
- * This parameter can be used to create alias for existing subscription Id
262
- */
263
- subscriptionId?: string;
264
- /**
265
- * Reseller ID, basically MPN Id
179
+ * Billing scope of the subscription.
180
+ * For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
181
+ * For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
182
+ * For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
266
183
  */
184
+ billingScope?: string;
185
+ /** The workload type of the subscription. It can be either Production or DevTest. */
186
+ workload?: Workload;
187
+ /** Reseller Id */
267
188
  resellerId?: string;
189
+ /** Owner Id of the subscription */
190
+ subscriptionOwnerId?: string;
191
+ /** The Management Group Id. */
192
+ managementGroupId?: string;
193
+ /** Tags for the subscription */
194
+ tags?: { [propertyName: string]: string };
268
195
  }
269
196
 
270
- /**
271
- * The parameters required to create a new subscription.
272
- */
273
- export interface PutAliasRequest {
197
+ /** Metadata pertaining to creation and last modification of the resource. */
198
+ export interface SystemData {
199
+ /** The identity that created the resource. */
200
+ createdBy?: string;
201
+ /** The type of identity that created the resource. */
202
+ createdByType?: CreatedByType;
203
+ /** The timestamp of resource creation (UTC). */
204
+ createdAt?: Date;
205
+ /** The identity that last modified the resource. */
206
+ lastModifiedBy?: string;
207
+ /** The type of identity that last modified the resource. */
208
+ lastModifiedByType?: CreatedByType;
209
+ /** The timestamp of resource last modification (UTC) */
210
+ lastModifiedAt?: Date;
211
+ }
212
+
213
+ /** The list of aliases. */
214
+ export interface SubscriptionAliasListResult {
274
215
  /**
275
- * Put alias request properties.
216
+ * The list of alias.
217
+ * NOTE: This property will not be serialized. It can only be populated by the server.
276
218
  */
277
- properties: PutAliasRequestProperties;
219
+ readonly value?: SubscriptionAliasResponse[];
220
+ /**
221
+ * The link (url) to the next page of results.
222
+ * NOTE: This property will not be serialized. It can only be populated by the server.
223
+ */
224
+ readonly nextLink?: string;
278
225
  }
279
226
 
280
- /**
281
- * Put subscription creation result properties.
282
- */
283
- export interface PutAliasResponseProperties {
227
+ /** The parameters required to accept subscription ownership. */
228
+ export interface AcceptOwnershipRequest {
229
+ /** Accept subscription ownership request properties. */
230
+ properties?: AcceptOwnershipRequestProperties;
231
+ }
232
+
233
+ /** Accept subscription ownership request properties. */
234
+ export interface AcceptOwnershipRequestProperties {
235
+ /** The friendly name of the subscription. */
236
+ displayName: string;
237
+ /** Management group Id for the subscription. */
238
+ managementGroupId?: string;
239
+ /** Tags for the subscription */
240
+ tags?: { [propertyName: string]: string };
241
+ }
242
+
243
+ /** Subscription Accept Ownership Response */
244
+ export interface AcceptOwnershipStatusResponse {
284
245
  /**
285
246
  * Newly created subscription Id.
286
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
247
+ * NOTE: This property will not be serialized. It can only be populated by the server.
287
248
  */
288
249
  readonly subscriptionId?: string;
289
250
  /**
290
- * The provisioning state of the resource. Possible values include: 'Accepted', 'Succeeded',
291
- * 'Failed'
251
+ * The accept ownership state of the resource.
252
+ * NOTE: This property will not be serialized. It can only be populated by the server.
292
253
  */
293
- provisioningState?: ProvisioningState;
254
+ readonly acceptOwnershipState?: AcceptOwnership;
255
+ /**
256
+ * UPN of the billing owner
257
+ * NOTE: This property will not be serialized. It can only be populated by the server.
258
+ */
259
+ readonly billingOwner?: string;
260
+ /** Tenant Id of the subscription */
261
+ subscriptionTenantId?: string;
262
+ /** The display name of the subscription. */
263
+ displayName?: string;
264
+ /** Tags for the subscription */
265
+ tags?: { [propertyName: string]: string };
294
266
  }
295
267
 
296
- /**
297
- * Subscription Information with the alias.
298
- */
299
- export interface PutAliasResponse extends BaseResource {
268
+ /** Put tenant policy request properties. */
269
+ export interface PutTenantPolicyRequestProperties {
270
+ /** Blocks the leaving of subscriptions from user's tenant. */
271
+ blockSubscriptionsLeavingTenant?: boolean;
272
+ /** Blocks the entering of subscriptions into user's tenant. */
273
+ blockSubscriptionsIntoTenant?: boolean;
274
+ /** List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. */
275
+ exemptedPrincipals?: string[];
276
+ }
277
+
278
+ /** Tenant policy Information. */
279
+ export interface GetTenantPolicyResponse {
300
280
  /**
301
- * Fully qualified ID for the alias resource.
302
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
281
+ * Policy Id.
282
+ * NOTE: This property will not be serialized. It can only be populated by the server.
303
283
  */
304
284
  readonly id?: string;
305
285
  /**
306
- * Alias ID.
307
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
286
+ * Policy name.
287
+ * NOTE: This property will not be serialized. It can only be populated by the server.
308
288
  */
309
289
  readonly name?: string;
310
290
  /**
311
- * Resource type, Microsoft.Subscription/aliases.
312
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
291
+ * Resource type.
292
+ * NOTE: This property will not be serialized. It can only be populated by the server.
313
293
  */
314
294
  readonly type?: string;
295
+ /** Tenant policy properties. */
296
+ properties?: TenantPolicy;
315
297
  /**
316
- * Put Alias response properties.
298
+ * Metadata pertaining to creation and last modification of the resource.
299
+ * NOTE: This property will not be serialized. It can only be populated by the server.
317
300
  */
318
- properties?: PutAliasResponseProperties;
301
+ readonly systemData?: SystemData;
319
302
  }
320
303
 
321
- /**
322
- * The list of aliases.
323
- */
324
- export interface PutAliasListResult {
304
+ /** Tenant policy. */
305
+ export interface TenantPolicy {
325
306
  /**
326
- * The list of alias.
327
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
307
+ * Policy Id.
308
+ * NOTE: This property will not be serialized. It can only be populated by the server.
328
309
  */
329
- readonly value?: PutAliasResponse[];
310
+ readonly policyId?: string;
311
+ /** Blocks the leaving of subscriptions from user's tenant. */
312
+ blockSubscriptionsLeavingTenant?: boolean;
313
+ /** Blocks the entering of subscriptions into user's tenant. */
314
+ blockSubscriptionsIntoTenant?: boolean;
315
+ /** List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. */
316
+ exemptedPrincipals?: string[];
317
+ }
318
+
319
+ /** Tenant policy information list. */
320
+ export interface GetTenantPolicyListResponse {
321
+ /**
322
+ * The list of tenant policies.
323
+ * NOTE: This property will not be serialized. It can only be populated by the server.
324
+ */
325
+ readonly value?: GetTenantPolicyResponse[];
330
326
  /**
331
327
  * 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.**
328
+ * NOTE: This property will not be serialized. It can only be populated by the server.
333
329
  */
334
330
  readonly nextLink?: string;
335
331
  }
336
332
 
337
- /**
338
- * An interface representing SubscriptionClientOptions.
339
- */
340
- export interface SubscriptionClientOptions extends AzureServiceClientOptions {
341
- baseUri?: string;
333
+ /** Billing account policies information. */
334
+ export interface BillingAccountPoliciesResponse {
335
+ /**
336
+ * Fully qualified ID for the policy.
337
+ * NOTE: This property will not be serialized. It can only be populated by the server.
338
+ */
339
+ readonly id?: string;
340
+ /**
341
+ * Policy name.
342
+ * NOTE: This property will not be serialized. It can only be populated by the server.
343
+ */
344
+ readonly name?: string;
345
+ /**
346
+ * Resource type.
347
+ * NOTE: This property will not be serialized. It can only be populated by the server.
348
+ */
349
+ readonly type?: string;
350
+ /** Billing account policies response properties. */
351
+ properties?: BillingAccountPoliciesResponseProperties;
352
+ /**
353
+ * Metadata pertaining to creation and last modification of the resource.
354
+ * NOTE: This property will not be serialized. It can only be populated by the server.
355
+ */
356
+ readonly systemData?: SystemData;
342
357
  }
343
358
 
344
- /**
345
- * @interface
346
- * Location list operation response.
347
- * @extends Array<Location>
348
- */
349
- export interface LocationListResult extends Array<Location> {
359
+ /** Put billing account policies response properties. */
360
+ export interface BillingAccountPoliciesResponseProperties {
361
+ /** Service tenant for the billing account. */
362
+ serviceTenants?: ServiceTenantResponse[];
363
+ /** Determine if the transfers are allowed for the billing account */
364
+ allowTransfers?: boolean;
350
365
  }
351
366
 
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;
367
+ /** Billing account service tenant. */
368
+ export interface ServiceTenantResponse {
369
+ /** Service tenant id. */
370
+ tenantId?: string;
371
+ /** Service tenant name. */
372
+ tenantName?: string;
362
373
  }
363
374
 
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;
375
+ /** Defines headers for Subscription_acceptOwnership operation. */
376
+ export interface SubscriptionAcceptOwnershipHeaders {
377
+ /** GET this URL to retrieve the status of the asynchronous operation. */
378
+ location?: string;
379
+ /** The amount of delay to use while the status of the operation is checked. The value is expressed in seconds. */
380
+ retryAfter?: number;
374
381
  }
375
382
 
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';
383
+ /** Known values of {@link Workload} that the service accepts. */
384
+ export enum KnownWorkload {
385
+ Production = "Production",
386
+ DevTest = "DevTest"
387
+ }
383
388
 
384
389
  /**
385
- * Defines values for SpendingLimit.
386
- * Possible values include: 'On', 'Off', 'CurrentPeriodOff'
387
- * @readonly
388
- * @enum {string}
390
+ * Defines values for Workload. \
391
+ * {@link KnownWorkload} can be used interchangeably with Workload,
392
+ * this enum contains the known values that the service supports.
393
+ * ### Known values supported by the service
394
+ * **Production** \
395
+ * **DevTest**
389
396
  */
390
- export type SpendingLimit = 'On' | 'Off' | 'CurrentPeriodOff';
397
+ export type Workload = string;
391
398
 
392
- /**
393
- * Defines values for Workload.
394
- * Possible values include: 'Production', 'DevTest'
395
- * @readonly
396
- * @enum {string}
397
- */
398
- export type Workload = 'Production' | 'DevTest';
399
+ /** Known values of {@link ProvisioningState} that the service accepts. */
400
+ export enum KnownProvisioningState {
401
+ Accepted = "Accepted",
402
+ Succeeded = "Succeeded",
403
+ Failed = "Failed"
404
+ }
399
405
 
400
406
  /**
401
- * Defines values for ProvisioningState.
402
- * Possible values include: 'Accepted', 'Succeeded', 'Failed'
403
- * @readonly
404
- * @enum {string}
407
+ * Defines values for ProvisioningState. \
408
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
409
+ * this enum contains the known values that the service supports.
410
+ * ### Known values supported by the service
411
+ * **Accepted** \
412
+ * **Succeeded** \
413
+ * **Failed**
405
414
  */
406
- export type ProvisioningState = 'Accepted' | 'Succeeded' | 'Failed';
415
+ export type ProvisioningState = string;
407
416
 
408
- /**
409
- * Contains response data for the listLocations operation.
410
- */
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;
420
-
421
- /**
422
- * The response body as parsed JSON or XML
423
- */
424
- parsedBody: LocationListResult;
425
- };
426
- };
417
+ /** Known values of {@link AcceptOwnership} that the service accepts. */
418
+ export enum KnownAcceptOwnership {
419
+ Pending = "Pending",
420
+ Completed = "Completed",
421
+ Expired = "Expired"
422
+ }
427
423
 
428
424
  /**
429
- * Contains response data for the get operation.
425
+ * Defines values for AcceptOwnership. \
426
+ * {@link KnownAcceptOwnership} can be used interchangeably with AcceptOwnership,
427
+ * this enum contains the known values that the service supports.
428
+ * ### Known values supported by the service
429
+ * **Pending** \
430
+ * **Completed** \
431
+ * **Expired**
430
432
  */
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;
440
-
441
- /**
442
- * The response body as parsed JSON or XML
443
- */
444
- parsedBody: Subscription;
445
- };
446
- };
433
+ export type AcceptOwnership = string;
447
434
 
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;
460
-
461
- /**
462
- * The response body as parsed JSON or XML
463
- */
464
- parsedBody: SubscriptionListResult;
465
- };
466
- };
435
+ /** Known values of {@link CreatedByType} that the service accepts. */
436
+ export enum KnownCreatedByType {
437
+ User = "User",
438
+ Application = "Application",
439
+ ManagedIdentity = "ManagedIdentity",
440
+ Key = "Key"
441
+ }
467
442
 
468
443
  /**
469
- * Contains response data for the listNext operation.
444
+ * Defines values for CreatedByType. \
445
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
446
+ * this enum contains the known values that the service supports.
447
+ * ### Known values supported by the service
448
+ * **User** \
449
+ * **Application** \
450
+ * **ManagedIdentity** \
451
+ * **Key**
470
452
  */
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;
480
-
481
- /**
482
- * The response body as parsed JSON or XML
483
- */
484
- parsedBody: SubscriptionListResult;
485
- };
486
- };
453
+ export type CreatedByType = string;
487
454
 
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;
500
-
501
- /**
502
- * The response body as parsed JSON or XML
503
- */
504
- parsedBody: TenantListResult;
505
- };
506
- };
455
+ /** Optional parameters. */
456
+ export interface SubscriptionCancelOptionalParams
457
+ extends coreClient.OperationOptions {}
507
458
 
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;
520
-
521
- /**
522
- * The response body as parsed JSON or XML
523
- */
524
- parsedBody: TenantListResult;
525
- };
526
- };
459
+ /** Contains response data for the cancel operation. */
460
+ export type SubscriptionCancelResponse = CanceledSubscriptionId;
527
461
 
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;
540
-
541
- /**
542
- * The response body as parsed JSON or XML
543
- */
544
- parsedBody: CanceledSubscriptionId;
545
- };
546
- };
462
+ /** Optional parameters. */
463
+ export interface SubscriptionRenameOptionalParams
464
+ extends coreClient.OperationOptions {}
547
465
 
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;
560
-
561
- /**
562
- * The response body as parsed JSON or XML
563
- */
564
- parsedBody: RenamedSubscriptionId;
565
- };
566
- };
466
+ /** Contains response data for the rename operation. */
467
+ export type SubscriptionRenameResponse = RenamedSubscriptionId;
567
468
 
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;
580
-
581
- /**
582
- * The response body as parsed JSON or XML
583
- */
584
- parsedBody: EnabledSubscriptionId;
585
- };
586
- };
469
+ /** Optional parameters. */
470
+ export interface SubscriptionEnableOptionalParams
471
+ extends coreClient.OperationOptions {}
587
472
 
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;
600
-
601
- /**
602
- * The response body as parsed JSON or XML
603
- */
604
- parsedBody: OperationListResult;
605
- };
606
- };
473
+ /** Contains response data for the enable operation. */
474
+ export type SubscriptionEnableResponse = EnabledSubscriptionId;
607
475
 
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;
620
-
621
- /**
622
- * The response body as parsed JSON or XML
623
- */
624
- parsedBody: PutAliasResponse;
625
- };
626
- };
476
+ /** Optional parameters. */
477
+ export interface SubscriptionAcceptOwnershipOptionalParams
478
+ extends coreClient.OperationOptions {
479
+ /** Delay to wait until next poll, in milliseconds. */
480
+ updateIntervalInMs?: number;
481
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
482
+ resumeFrom?: string;
483
+ }
627
484
 
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;
640
-
641
- /**
642
- * The response body as parsed JSON or XML
643
- */
644
- parsedBody: PutAliasResponse;
645
- };
646
- };
485
+ /** Contains response data for the acceptOwnership operation. */
486
+ export type SubscriptionAcceptOwnershipResponse = SubscriptionAcceptOwnershipHeaders;
647
487
 
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;
660
-
661
- /**
662
- * The response body as parsed JSON or XML
663
- */
664
- parsedBody: PutAliasListResult;
665
- };
666
- };
488
+ /** Optional parameters. */
489
+ export interface SubscriptionAcceptOwnershipStatusOptionalParams
490
+ extends coreClient.OperationOptions {}
667
491
 
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
- };
492
+ /** Contains response data for the acceptOwnershipStatus operation. */
493
+ export type SubscriptionAcceptOwnershipStatusResponse = AcceptOwnershipStatusResponse;
494
+
495
+ /** Optional parameters. */
496
+ export interface OperationsListOptionalParams
497
+ extends coreClient.OperationOptions {}
498
+
499
+ /** Contains response data for the list operation. */
500
+ export type OperationsListResponse = OperationListResult;
501
+
502
+ /** Optional parameters. */
503
+ export interface OperationsListNextOptionalParams
504
+ extends coreClient.OperationOptions {}
505
+
506
+ /** Contains response data for the listNext operation. */
507
+ export type OperationsListNextResponse = OperationListResult;
508
+
509
+ /** Optional parameters. */
510
+ export interface AliasCreateOptionalParams extends coreClient.OperationOptions {
511
+ /** Delay to wait until next poll, in milliseconds. */
512
+ updateIntervalInMs?: number;
513
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
514
+ resumeFrom?: string;
515
+ }
516
+
517
+ /** Contains response data for the create operation. */
518
+ export type AliasCreateResponse = SubscriptionAliasResponse;
519
+
520
+ /** Optional parameters. */
521
+ export interface AliasGetOptionalParams extends coreClient.OperationOptions {}
522
+
523
+ /** Contains response data for the get operation. */
524
+ export type AliasGetResponse = SubscriptionAliasResponse;
525
+
526
+ /** Optional parameters. */
527
+ export interface AliasDeleteOptionalParams
528
+ extends coreClient.OperationOptions {}
529
+
530
+ /** Optional parameters. */
531
+ export interface AliasListOptionalParams extends coreClient.OperationOptions {}
532
+
533
+ /** Contains response data for the list operation. */
534
+ export type AliasListResponse = SubscriptionAliasListResult;
535
+
536
+ /** Optional parameters. */
537
+ export interface SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams
538
+ extends coreClient.OperationOptions {}
539
+
540
+ /** Contains response data for the addUpdatePolicyForTenant operation. */
541
+ export type SubscriptionPolicyAddUpdatePolicyForTenantResponse = GetTenantPolicyResponse;
542
+
543
+ /** Optional parameters. */
544
+ export interface SubscriptionPolicyGetPolicyForTenantOptionalParams
545
+ extends coreClient.OperationOptions {}
546
+
547
+ /** Contains response data for the getPolicyForTenant operation. */
548
+ export type SubscriptionPolicyGetPolicyForTenantResponse = GetTenantPolicyResponse;
549
+
550
+ /** Optional parameters. */
551
+ export interface SubscriptionPolicyListPolicyForTenantOptionalParams
552
+ extends coreClient.OperationOptions {}
553
+
554
+ /** Contains response data for the listPolicyForTenant operation. */
555
+ export type SubscriptionPolicyListPolicyForTenantResponse = GetTenantPolicyListResponse;
556
+
557
+ /** Optional parameters. */
558
+ export interface SubscriptionPolicyListPolicyForTenantNextOptionalParams
559
+ extends coreClient.OperationOptions {}
560
+
561
+ /** Contains response data for the listPolicyForTenantNext operation. */
562
+ export type SubscriptionPolicyListPolicyForTenantNextResponse = GetTenantPolicyListResponse;
563
+
564
+ /** Optional parameters. */
565
+ export interface BillingAccountGetPolicyOptionalParams
566
+ extends coreClient.OperationOptions {}
567
+
568
+ /** Contains response data for the getPolicy operation. */
569
+ export type BillingAccountGetPolicyResponse = BillingAccountPoliciesResponse;
570
+
571
+ /** Optional parameters. */
572
+ export interface SubscriptionClientOptionalParams
573
+ extends coreClient.ServiceClientOptions {
574
+ /** server parameter */
575
+ $host?: string;
576
+ /** Api Version */
577
+ apiVersion?: string;
578
+ /** Overrides client endpoint. */
579
+ endpoint?: string;
580
+ }