@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,61 +1,70 @@
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 { CloudErrorMapper, BaseResourceMapper } 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 const CloudError = CloudErrorMapper;
13
- export const BaseResource = BaseResourceMapper;
14
-
15
- export const Location: msRest.CompositeMapper = {
16
- serializedName: "Location",
11
+ export const CanceledSubscriptionId: coreClient.CompositeMapper = {
17
12
  type: {
18
13
  name: "Composite",
19
- className: "Location",
14
+ className: "CanceledSubscriptionId",
20
15
  modelProperties: {
21
- id: {
16
+ value: {
17
+ serializedName: "value",
22
18
  readOnly: true,
23
- serializedName: "id",
24
19
  type: {
25
20
  name: "String"
26
21
  }
27
- },
28
- subscriptionId: {
29
- readOnly: true,
30
- serializedName: "subscriptionId",
22
+ }
23
+ }
24
+ }
25
+ };
26
+
27
+ export const ErrorResponseBody: coreClient.CompositeMapper = {
28
+ type: {
29
+ name: "Composite",
30
+ className: "ErrorResponseBody",
31
+ modelProperties: {
32
+ error: {
33
+ serializedName: "error",
31
34
  type: {
32
- name: "String"
35
+ name: "Composite",
36
+ className: "ErrorResponse"
33
37
  }
34
38
  },
35
- name: {
36
- readOnly: true,
37
- serializedName: "name",
39
+ code: {
40
+ serializedName: "code",
38
41
  type: {
39
42
  name: "String"
40
43
  }
41
44
  },
42
- displayName: {
43
- readOnly: true,
44
- serializedName: "displayName",
45
+ message: {
46
+ serializedName: "message",
45
47
  type: {
46
48
  name: "String"
47
49
  }
48
- },
49
- latitude: {
50
- readOnly: true,
51
- serializedName: "latitude",
50
+ }
51
+ }
52
+ }
53
+ };
54
+
55
+ export const ErrorResponse: coreClient.CompositeMapper = {
56
+ type: {
57
+ name: "Composite",
58
+ className: "ErrorResponse",
59
+ modelProperties: {
60
+ code: {
61
+ serializedName: "code",
52
62
  type: {
53
63
  name: "String"
54
64
  }
55
65
  },
56
- longitude: {
57
- readOnly: true,
58
- serializedName: "longitude",
66
+ message: {
67
+ serializedName: "message",
59
68
  type: {
60
69
  name: "String"
61
70
  }
@@ -64,138 +73,133 @@ export const Location: msRest.CompositeMapper = {
64
73
  }
65
74
  };
66
75
 
67
- export const SubscriptionPolicies: msRest.CompositeMapper = {
68
- serializedName: "SubscriptionPolicies",
76
+ export const SubscriptionName: coreClient.CompositeMapper = {
69
77
  type: {
70
78
  name: "Composite",
71
- className: "SubscriptionPolicies",
79
+ className: "SubscriptionName",
72
80
  modelProperties: {
73
- locationPlacementId: {
74
- readOnly: true,
75
- serializedName: "locationPlacementId",
81
+ subscriptionName: {
82
+ serializedName: "subscriptionName",
76
83
  type: {
77
84
  name: "String"
78
85
  }
79
- },
80
- quotaId: {
86
+ }
87
+ }
88
+ }
89
+ };
90
+
91
+ export const RenamedSubscriptionId: coreClient.CompositeMapper = {
92
+ type: {
93
+ name: "Composite",
94
+ className: "RenamedSubscriptionId",
95
+ modelProperties: {
96
+ value: {
97
+ serializedName: "value",
81
98
  readOnly: true,
82
- serializedName: "quotaId",
83
99
  type: {
84
100
  name: "String"
85
101
  }
86
- },
87
- spendingLimit: {
102
+ }
103
+ }
104
+ }
105
+ };
106
+
107
+ export const EnabledSubscriptionId: coreClient.CompositeMapper = {
108
+ type: {
109
+ name: "Composite",
110
+ className: "EnabledSubscriptionId",
111
+ modelProperties: {
112
+ value: {
113
+ serializedName: "value",
88
114
  readOnly: true,
89
- serializedName: "spendingLimit",
90
115
  type: {
91
- name: "Enum",
92
- allowedValues: [
93
- "On",
94
- "Off",
95
- "CurrentPeriodOff"
96
- ]
116
+ name: "String"
97
117
  }
98
118
  }
99
119
  }
100
120
  }
101
121
  };
102
122
 
103
- export const Subscription: msRest.CompositeMapper = {
104
- serializedName: "Subscription",
123
+ export const OperationListResult: coreClient.CompositeMapper = {
105
124
  type: {
106
125
  name: "Composite",
107
- className: "Subscription",
126
+ className: "OperationListResult",
108
127
  modelProperties: {
109
- id: {
110
- readOnly: true,
111
- serializedName: "id",
128
+ value: {
129
+ serializedName: "value",
112
130
  type: {
113
- name: "String"
131
+ name: "Sequence",
132
+ element: {
133
+ type: {
134
+ name: "Composite",
135
+ className: "Operation"
136
+ }
137
+ }
114
138
  }
115
139
  },
116
- subscriptionId: {
117
- readOnly: true,
118
- serializedName: "subscriptionId",
140
+ nextLink: {
141
+ serializedName: "nextLink",
119
142
  type: {
120
143
  name: "String"
121
144
  }
122
- },
123
- displayName: {
124
- readOnly: true,
125
- serializedName: "displayName",
145
+ }
146
+ }
147
+ }
148
+ };
149
+
150
+ export const Operation: coreClient.CompositeMapper = {
151
+ type: {
152
+ name: "Composite",
153
+ className: "Operation",
154
+ modelProperties: {
155
+ name: {
156
+ serializedName: "name",
126
157
  type: {
127
158
  name: "String"
128
159
  }
129
160
  },
130
- state: {
131
- readOnly: true,
132
- serializedName: "state",
161
+ isDataAction: {
162
+ serializedName: "isDataAction",
133
163
  type: {
134
- name: "Enum",
135
- allowedValues: [
136
- "Enabled",
137
- "Warned",
138
- "PastDue",
139
- "Disabled",
140
- "Deleted"
141
- ]
164
+ name: "Boolean"
142
165
  }
143
166
  },
144
- subscriptionPolicies: {
145
- serializedName: "subscriptionPolicies",
167
+ display: {
168
+ serializedName: "display",
146
169
  type: {
147
170
  name: "Composite",
148
- className: "SubscriptionPolicies"
149
- }
150
- },
151
- authorizationSource: {
152
- serializedName: "authorizationSource",
153
- type: {
154
- name: "String"
171
+ className: "OperationDisplay"
155
172
  }
156
173
  }
157
174
  }
158
175
  }
159
176
  };
160
177
 
161
- export const TenantIdDescription: msRest.CompositeMapper = {
162
- serializedName: "TenantIdDescription",
178
+ export const OperationDisplay: coreClient.CompositeMapper = {
163
179
  type: {
164
180
  name: "Composite",
165
- className: "TenantIdDescription",
181
+ className: "OperationDisplay",
166
182
  modelProperties: {
167
- id: {
168
- readOnly: true,
169
- serializedName: "id",
183
+ provider: {
184
+ serializedName: "provider",
170
185
  type: {
171
186
  name: "String"
172
187
  }
173
188
  },
174
- tenantId: {
175
- readOnly: true,
176
- serializedName: "tenantId",
189
+ resource: {
190
+ serializedName: "resource",
177
191
  type: {
178
192
  name: "String"
179
193
  }
180
- }
181
- }
182
- }
183
- };
184
-
185
- export const ErrorResponse: msRest.CompositeMapper = {
186
- serializedName: "ErrorResponse",
187
- type: {
188
- name: "Composite",
189
- className: "ErrorResponse",
190
- modelProperties: {
191
- code: {
192
- serializedName: "code",
194
+ },
195
+ operation: {
196
+ serializedName: "operation",
193
197
  type: {
194
198
  name: "String"
195
199
  }
196
200
  },
197
- message: {
198
- serializedName: "message",
201
+ description: {
202
+ serializedName: "description",
199
203
  type: {
200
204
  name: "String"
201
205
  }
@@ -204,161 +208,291 @@ export const ErrorResponse: msRest.CompositeMapper = {
204
208
  }
205
209
  };
206
210
 
207
- export const ErrorResponseBody: msRest.CompositeMapper = {
208
- serializedName: "ErrorResponseBody",
211
+ export const PutAliasRequest: coreClient.CompositeMapper = {
209
212
  type: {
210
213
  name: "Composite",
211
- className: "ErrorResponseBody",
214
+ className: "PutAliasRequest",
212
215
  modelProperties: {
213
- error: {
214
- serializedName: "error",
216
+ properties: {
217
+ serializedName: "properties",
215
218
  type: {
216
219
  name: "Composite",
217
- className: "ErrorResponse"
220
+ className: "PutAliasRequestProperties"
218
221
  }
219
222
  }
220
223
  }
221
224
  }
222
225
  };
223
226
 
224
- export const CanceledSubscriptionId: msRest.CompositeMapper = {
225
- serializedName: "CanceledSubscriptionId",
227
+ export const PutAliasRequestProperties: coreClient.CompositeMapper = {
226
228
  type: {
227
229
  name: "Composite",
228
- className: "CanceledSubscriptionId",
230
+ className: "PutAliasRequestProperties",
229
231
  modelProperties: {
230
- value: {
231
- readOnly: true,
232
- serializedName: "value",
232
+ displayName: {
233
+ serializedName: "displayName",
234
+ type: {
235
+ name: "String"
236
+ }
237
+ },
238
+ workload: {
239
+ serializedName: "workload",
240
+ type: {
241
+ name: "String"
242
+ }
243
+ },
244
+ billingScope: {
245
+ serializedName: "billingScope",
233
246
  type: {
234
247
  name: "String"
235
248
  }
249
+ },
250
+ subscriptionId: {
251
+ serializedName: "subscriptionId",
252
+ type: {
253
+ name: "String"
254
+ }
255
+ },
256
+ resellerId: {
257
+ serializedName: "resellerId",
258
+ type: {
259
+ name: "String"
260
+ }
261
+ },
262
+ additionalProperties: {
263
+ serializedName: "additionalProperties",
264
+ type: {
265
+ name: "Composite",
266
+ className: "PutAliasRequestAdditionalProperties"
267
+ }
236
268
  }
237
269
  }
238
270
  }
239
271
  };
240
272
 
241
- export const RenamedSubscriptionId: msRest.CompositeMapper = {
242
- serializedName: "RenamedSubscriptionId",
273
+ export const PutAliasRequestAdditionalProperties: coreClient.CompositeMapper = {
243
274
  type: {
244
275
  name: "Composite",
245
- className: "RenamedSubscriptionId",
276
+ className: "PutAliasRequestAdditionalProperties",
246
277
  modelProperties: {
247
- value: {
248
- readOnly: true,
249
- serializedName: "value",
278
+ managementGroupId: {
279
+ serializedName: "managementGroupId",
280
+ type: {
281
+ name: "String"
282
+ }
283
+ },
284
+ subscriptionTenantId: {
285
+ serializedName: "subscriptionTenantId",
286
+ type: {
287
+ name: "String"
288
+ }
289
+ },
290
+ subscriptionOwnerId: {
291
+ serializedName: "subscriptionOwnerId",
250
292
  type: {
251
293
  name: "String"
252
294
  }
295
+ },
296
+ tags: {
297
+ serializedName: "tags",
298
+ type: {
299
+ name: "Dictionary",
300
+ value: { type: { name: "String" } }
301
+ }
253
302
  }
254
303
  }
255
304
  }
256
305
  };
257
306
 
258
- export const EnabledSubscriptionId: msRest.CompositeMapper = {
259
- serializedName: "EnabledSubscriptionId",
307
+ export const SubscriptionAliasResponse: coreClient.CompositeMapper = {
260
308
  type: {
261
309
  name: "Composite",
262
- className: "EnabledSubscriptionId",
310
+ className: "SubscriptionAliasResponse",
263
311
  modelProperties: {
264
- value: {
312
+ id: {
313
+ serializedName: "id",
265
314
  readOnly: true,
266
- serializedName: "value",
267
315
  type: {
268
316
  name: "String"
269
317
  }
270
- }
271
- }
272
- }
273
- };
274
-
275
- export const SubscriptionName: msRest.CompositeMapper = {
276
- serializedName: "SubscriptionName",
277
- type: {
278
- name: "Composite",
279
- className: "SubscriptionName",
280
- modelProperties: {
281
- subscriptionName: {
282
- serializedName: "subscriptionName",
318
+ },
319
+ name: {
320
+ serializedName: "name",
321
+ readOnly: true,
322
+ type: {
323
+ name: "String"
324
+ }
325
+ },
326
+ type: {
327
+ serializedName: "type",
328
+ readOnly: true,
283
329
  type: {
284
330
  name: "String"
285
331
  }
332
+ },
333
+ properties: {
334
+ serializedName: "properties",
335
+ type: {
336
+ name: "Composite",
337
+ className: "SubscriptionAliasResponseProperties"
338
+ }
339
+ },
340
+ systemData: {
341
+ serializedName: "systemData",
342
+ type: {
343
+ name: "Composite",
344
+ className: "SystemData"
345
+ }
286
346
  }
287
347
  }
288
348
  }
289
349
  };
290
350
 
291
- export const OperationDisplay: msRest.CompositeMapper = {
292
- serializedName: "Operation_display",
351
+ export const SubscriptionAliasResponseProperties: coreClient.CompositeMapper = {
293
352
  type: {
294
353
  name: "Composite",
295
- className: "OperationDisplay",
354
+ className: "SubscriptionAliasResponseProperties",
296
355
  modelProperties: {
297
- provider: {
298
- serializedName: "provider",
356
+ subscriptionId: {
357
+ serializedName: "subscriptionId",
358
+ readOnly: true,
299
359
  type: {
300
360
  name: "String"
301
361
  }
302
362
  },
303
- resource: {
304
- serializedName: "resource",
363
+ displayName: {
364
+ serializedName: "displayName",
305
365
  type: {
306
366
  name: "String"
307
367
  }
308
368
  },
309
- operation: {
310
- serializedName: "operation",
369
+ provisioningState: {
370
+ serializedName: "provisioningState",
371
+ type: {
372
+ name: "String"
373
+ }
374
+ },
375
+ acceptOwnershipUrl: {
376
+ serializedName: "acceptOwnershipUrl",
377
+ readOnly: true,
378
+ type: {
379
+ name: "String"
380
+ }
381
+ },
382
+ acceptOwnershipState: {
383
+ serializedName: "acceptOwnershipState",
384
+ readOnly: true,
385
+ type: {
386
+ name: "String"
387
+ }
388
+ },
389
+ billingScope: {
390
+ serializedName: "billingScope",
391
+ type: {
392
+ name: "String"
393
+ }
394
+ },
395
+ workload: {
396
+ serializedName: "workload",
397
+ type: {
398
+ name: "String"
399
+ }
400
+ },
401
+ resellerId: {
402
+ serializedName: "resellerId",
311
403
  type: {
312
404
  name: "String"
313
405
  }
406
+ },
407
+ subscriptionOwnerId: {
408
+ serializedName: "subscriptionOwnerId",
409
+ type: {
410
+ name: "String"
411
+ }
412
+ },
413
+ managementGroupId: {
414
+ serializedName: "managementGroupId",
415
+ type: {
416
+ name: "String"
417
+ }
418
+ },
419
+ tags: {
420
+ serializedName: "tags",
421
+ type: {
422
+ name: "Dictionary",
423
+ value: { type: { name: "String" } }
424
+ }
314
425
  }
315
426
  }
316
427
  }
317
428
  };
318
429
 
319
- export const Operation: msRest.CompositeMapper = {
320
- serializedName: "Operation",
430
+ export const SystemData: coreClient.CompositeMapper = {
321
431
  type: {
322
432
  name: "Composite",
323
- className: "Operation",
433
+ className: "SystemData",
324
434
  modelProperties: {
325
- name: {
326
- serializedName: "name",
435
+ createdBy: {
436
+ serializedName: "createdBy",
327
437
  type: {
328
438
  name: "String"
329
439
  }
330
440
  },
331
- display: {
332
- serializedName: "display",
441
+ createdByType: {
442
+ serializedName: "createdByType",
333
443
  type: {
334
- name: "Composite",
335
- className: "OperationDisplay"
444
+ name: "String"
445
+ }
446
+ },
447
+ createdAt: {
448
+ serializedName: "createdAt",
449
+ type: {
450
+ name: "DateTime"
451
+ }
452
+ },
453
+ lastModifiedBy: {
454
+ serializedName: "lastModifiedBy",
455
+ type: {
456
+ name: "String"
457
+ }
458
+ },
459
+ lastModifiedByType: {
460
+ serializedName: "lastModifiedByType",
461
+ type: {
462
+ name: "String"
463
+ }
464
+ },
465
+ lastModifiedAt: {
466
+ serializedName: "lastModifiedAt",
467
+ type: {
468
+ name: "DateTime"
336
469
  }
337
470
  }
338
471
  }
339
472
  }
340
473
  };
341
474
 
342
- export const OperationListResult: msRest.CompositeMapper = {
343
- serializedName: "OperationListResult",
475
+ export const SubscriptionAliasListResult: coreClient.CompositeMapper = {
344
476
  type: {
345
477
  name: "Composite",
346
- className: "OperationListResult",
478
+ className: "SubscriptionAliasListResult",
347
479
  modelProperties: {
348
480
  value: {
349
481
  serializedName: "value",
482
+ readOnly: true,
350
483
  type: {
351
484
  name: "Sequence",
352
485
  element: {
353
486
  type: {
354
487
  name: "Composite",
355
- className: "Operation"
488
+ className: "SubscriptionAliasResponse"
356
489
  }
357
490
  }
358
491
  }
359
492
  },
360
493
  nextLink: {
361
494
  serializedName: "nextLink",
495
+ readOnly: true,
362
496
  type: {
363
497
  name: "String"
364
498
  }
@@ -367,147 +501,236 @@ export const OperationListResult: msRest.CompositeMapper = {
367
501
  }
368
502
  };
369
503
 
370
- export const PutAliasRequestProperties: msRest.CompositeMapper = {
371
- serializedName: "PutAliasRequestProperties",
504
+ export const AcceptOwnershipRequest: coreClient.CompositeMapper = {
372
505
  type: {
373
506
  name: "Composite",
374
- className: "PutAliasRequestProperties",
507
+ className: "AcceptOwnershipRequest",
508
+ modelProperties: {
509
+ properties: {
510
+ serializedName: "properties",
511
+ type: {
512
+ name: "Composite",
513
+ className: "AcceptOwnershipRequestProperties"
514
+ }
515
+ }
516
+ }
517
+ }
518
+ };
519
+
520
+ export const AcceptOwnershipRequestProperties: coreClient.CompositeMapper = {
521
+ type: {
522
+ name: "Composite",
523
+ className: "AcceptOwnershipRequestProperties",
375
524
  modelProperties: {
376
525
  displayName: {
377
526
  serializedName: "displayName",
527
+ required: true,
378
528
  type: {
379
529
  name: "String"
380
530
  }
381
531
  },
382
- workload: {
383
- serializedName: "workload",
532
+ managementGroupId: {
533
+ serializedName: "managementGroupId",
384
534
  type: {
385
535
  name: "String"
386
536
  }
387
537
  },
388
- billingScope: {
389
- serializedName: "billingScope",
538
+ tags: {
539
+ serializedName: "tags",
390
540
  type: {
391
- name: "String"
541
+ name: "Dictionary",
542
+ value: { type: { name: "String" } }
392
543
  }
393
- },
544
+ }
545
+ }
546
+ }
547
+ };
548
+
549
+ export const AcceptOwnershipStatusResponse: coreClient.CompositeMapper = {
550
+ type: {
551
+ name: "Composite",
552
+ className: "AcceptOwnershipStatusResponse",
553
+ modelProperties: {
394
554
  subscriptionId: {
395
555
  serializedName: "subscriptionId",
556
+ readOnly: true,
396
557
  type: {
397
558
  name: "String"
398
559
  }
399
560
  },
400
- resellerId: {
401
- serializedName: "resellerId",
561
+ acceptOwnershipState: {
562
+ serializedName: "acceptOwnershipState",
563
+ readOnly: true,
564
+ type: {
565
+ name: "String"
566
+ }
567
+ },
568
+ billingOwner: {
569
+ serializedName: "billingOwner",
570
+ readOnly: true,
571
+ type: {
572
+ name: "String"
573
+ }
574
+ },
575
+ subscriptionTenantId: {
576
+ serializedName: "subscriptionTenantId",
402
577
  type: {
403
578
  name: "String"
404
579
  }
580
+ },
581
+ displayName: {
582
+ serializedName: "displayName",
583
+ type: {
584
+ name: "String"
585
+ }
586
+ },
587
+ tags: {
588
+ serializedName: "tags",
589
+ type: {
590
+ name: "Dictionary",
591
+ value: { type: { name: "String" } }
592
+ }
405
593
  }
406
594
  }
407
595
  }
408
596
  };
409
597
 
410
- export const PutAliasRequest: msRest.CompositeMapper = {
411
- serializedName: "PutAliasRequest",
598
+ export const PutTenantPolicyRequestProperties: coreClient.CompositeMapper = {
412
599
  type: {
413
600
  name: "Composite",
414
- className: "PutAliasRequest",
601
+ className: "PutTenantPolicyRequestProperties",
415
602
  modelProperties: {
416
- properties: {
417
- required: true,
418
- serializedName: "properties",
603
+ blockSubscriptionsLeavingTenant: {
604
+ serializedName: "blockSubscriptionsLeavingTenant",
419
605
  type: {
420
- name: "Composite",
421
- className: "PutAliasRequestProperties"
606
+ name: "Boolean"
607
+ }
608
+ },
609
+ blockSubscriptionsIntoTenant: {
610
+ serializedName: "blockSubscriptionsIntoTenant",
611
+ type: {
612
+ name: "Boolean"
613
+ }
614
+ },
615
+ exemptedPrincipals: {
616
+ serializedName: "exemptedPrincipals",
617
+ type: {
618
+ name: "Sequence",
619
+ element: {
620
+ type: {
621
+ name: "Uuid"
622
+ }
623
+ }
422
624
  }
423
625
  }
424
626
  }
425
627
  }
426
628
  };
427
629
 
428
- export const PutAliasResponseProperties: msRest.CompositeMapper = {
429
- serializedName: "PutAliasResponseProperties",
630
+ export const GetTenantPolicyResponse: coreClient.CompositeMapper = {
430
631
  type: {
431
632
  name: "Composite",
432
- className: "PutAliasResponseProperties",
633
+ className: "GetTenantPolicyResponse",
433
634
  modelProperties: {
434
- subscriptionId: {
635
+ id: {
636
+ serializedName: "id",
435
637
  readOnly: true,
436
- serializedName: "subscriptionId",
437
638
  type: {
438
639
  name: "String"
439
640
  }
440
641
  },
441
- provisioningState: {
442
- serializedName: "provisioningState",
642
+ name: {
643
+ serializedName: "name",
644
+ readOnly: true,
645
+ type: {
646
+ name: "String"
647
+ }
648
+ },
649
+ type: {
650
+ serializedName: "type",
651
+ readOnly: true,
443
652
  type: {
444
653
  name: "String"
445
654
  }
655
+ },
656
+ properties: {
657
+ serializedName: "properties",
658
+ type: {
659
+ name: "Composite",
660
+ className: "TenantPolicy"
661
+ }
662
+ },
663
+ systemData: {
664
+ serializedName: "systemData",
665
+ type: {
666
+ name: "Composite",
667
+ className: "SystemData"
668
+ }
446
669
  }
447
670
  }
448
671
  }
449
672
  };
450
673
 
451
- export const PutAliasResponse: msRest.CompositeMapper = {
452
- serializedName: "PutAliasResponse",
674
+ export const TenantPolicy: coreClient.CompositeMapper = {
453
675
  type: {
454
676
  name: "Composite",
455
- className: "PutAliasResponse",
677
+ className: "TenantPolicy",
456
678
  modelProperties: {
457
- id: {
679
+ policyId: {
680
+ serializedName: "policyId",
458
681
  readOnly: true,
459
- serializedName: "id",
460
682
  type: {
461
683
  name: "String"
462
684
  }
463
685
  },
464
- name: {
465
- readOnly: true,
466
- serializedName: "name",
686
+ blockSubscriptionsLeavingTenant: {
687
+ serializedName: "blockSubscriptionsLeavingTenant",
467
688
  type: {
468
- name: "String"
689
+ name: "Boolean"
469
690
  }
470
691
  },
471
- type: {
472
- readOnly: true,
473
- serializedName: "type",
692
+ blockSubscriptionsIntoTenant: {
693
+ serializedName: "blockSubscriptionsIntoTenant",
474
694
  type: {
475
- name: "String"
695
+ name: "Boolean"
476
696
  }
477
697
  },
478
- properties: {
479
- serializedName: "properties",
698
+ exemptedPrincipals: {
699
+ serializedName: "exemptedPrincipals",
480
700
  type: {
481
- name: "Composite",
482
- className: "PutAliasResponseProperties"
701
+ name: "Sequence",
702
+ element: {
703
+ type: {
704
+ name: "Uuid"
705
+ }
706
+ }
483
707
  }
484
708
  }
485
709
  }
486
710
  }
487
711
  };
488
712
 
489
- export const PutAliasListResult: msRest.CompositeMapper = {
490
- serializedName: "PutAliasListResult",
713
+ export const GetTenantPolicyListResponse: coreClient.CompositeMapper = {
491
714
  type: {
492
715
  name: "Composite",
493
- className: "PutAliasListResult",
716
+ className: "GetTenantPolicyListResponse",
494
717
  modelProperties: {
495
718
  value: {
496
- readOnly: true,
497
719
  serializedName: "value",
720
+ readOnly: true,
498
721
  type: {
499
722
  name: "Sequence",
500
723
  element: {
501
724
  type: {
502
725
  name: "Composite",
503
- className: "PutAliasResponse"
726
+ className: "GetTenantPolicyResponse"
504
727
  }
505
728
  }
506
729
  }
507
730
  },
508
731
  nextLink: {
509
- readOnly: true,
510
732
  serializedName: "nextLink",
733
+ readOnly: true,
511
734
  type: {
512
735
  name: "String"
513
736
  }
@@ -516,78 +739,90 @@ export const PutAliasListResult: msRest.CompositeMapper = {
516
739
  }
517
740
  };
518
741
 
519
- export const LocationListResult: msRest.CompositeMapper = {
520
- serializedName: "LocationListResult",
742
+ export const BillingAccountPoliciesResponse: coreClient.CompositeMapper = {
521
743
  type: {
522
744
  name: "Composite",
523
- className: "LocationListResult",
745
+ className: "BillingAccountPoliciesResponse",
524
746
  modelProperties: {
525
- value: {
526
- serializedName: "",
747
+ id: {
748
+ serializedName: "id",
749
+ readOnly: true,
527
750
  type: {
528
- name: "Sequence",
529
- element: {
530
- type: {
531
- name: "Composite",
532
- className: "Location"
533
- }
534
- }
751
+ name: "String"
752
+ }
753
+ },
754
+ name: {
755
+ serializedName: "name",
756
+ readOnly: true,
757
+ type: {
758
+ name: "String"
759
+ }
760
+ },
761
+ type: {
762
+ serializedName: "type",
763
+ readOnly: true,
764
+ type: {
765
+ name: "String"
766
+ }
767
+ },
768
+ properties: {
769
+ serializedName: "properties",
770
+ type: {
771
+ name: "Composite",
772
+ className: "BillingAccountPoliciesResponseProperties"
773
+ }
774
+ },
775
+ systemData: {
776
+ serializedName: "systemData",
777
+ type: {
778
+ name: "Composite",
779
+ className: "SystemData"
535
780
  }
536
781
  }
537
782
  }
538
783
  }
539
784
  };
540
785
 
541
- export const SubscriptionListResult: msRest.CompositeMapper = {
542
- serializedName: "SubscriptionListResult",
786
+ export const BillingAccountPoliciesResponseProperties: coreClient.CompositeMapper = {
543
787
  type: {
544
788
  name: "Composite",
545
- className: "SubscriptionListResult",
789
+ className: "BillingAccountPoliciesResponseProperties",
546
790
  modelProperties: {
547
- value: {
548
- serializedName: "",
791
+ serviceTenants: {
792
+ serializedName: "serviceTenants",
549
793
  type: {
550
794
  name: "Sequence",
551
795
  element: {
552
796
  type: {
553
797
  name: "Composite",
554
- className: "Subscription"
798
+ className: "ServiceTenantResponse"
555
799
  }
556
800
  }
557
801
  }
558
802
  },
559
- nextLink: {
560
- required: true,
561
- serializedName: "nextLink",
803
+ allowTransfers: {
804
+ serializedName: "allowTransfers",
562
805
  type: {
563
- name: "String"
806
+ name: "Boolean"
564
807
  }
565
808
  }
566
809
  }
567
810
  }
568
811
  };
569
812
 
570
- export const TenantListResult: msRest.CompositeMapper = {
571
- serializedName: "TenantListResult",
813
+ export const ServiceTenantResponse: coreClient.CompositeMapper = {
572
814
  type: {
573
815
  name: "Composite",
574
- className: "TenantListResult",
816
+ className: "ServiceTenantResponse",
575
817
  modelProperties: {
576
- value: {
577
- serializedName: "",
818
+ tenantId: {
819
+ serializedName: "tenantId",
578
820
  type: {
579
- name: "Sequence",
580
- element: {
581
- type: {
582
- name: "Composite",
583
- className: "TenantIdDescription"
584
- }
585
- }
821
+ name: "String"
586
822
  }
587
823
  },
588
- nextLink: {
589
- required: true,
590
- serializedName: "nextLink",
824
+ tenantName: {
825
+ serializedName: "tenantName",
591
826
  type: {
592
827
  name: "String"
593
828
  }
@@ -595,3 +830,24 @@ export const TenantListResult: msRest.CompositeMapper = {
595
830
  }
596
831
  }
597
832
  };
833
+
834
+ export const SubscriptionAcceptOwnershipHeaders: coreClient.CompositeMapper = {
835
+ type: {
836
+ name: "Composite",
837
+ className: "SubscriptionAcceptOwnershipHeaders",
838
+ modelProperties: {
839
+ location: {
840
+ serializedName: "location",
841
+ type: {
842
+ name: "String"
843
+ }
844
+ },
845
+ retryAfter: {
846
+ serializedName: "retry-after",
847
+ type: {
848
+ name: "Number"
849
+ }
850
+ }
851
+ }
852
+ }
853
+ };