@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.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +68 -79
- package/dist/index.js +1772 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +514 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +36 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +29 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +825 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +110 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/alias.d.ts +53 -0
- package/dist-esm/src/operations/alias.d.ts.map +1 -0
- package/dist-esm/src/operations/alias.js +180 -0
- package/dist-esm/src/operations/alias.js.map +1 -0
- package/dist-esm/src/operations/billingAccount.d.ts +19 -0
- package/dist-esm/src/operations/billingAccount.d.ts.map +1 -0
- package/dist-esm/src/operations/billingAccount.js +47 -0
- package/dist-esm/src/operations/billingAccount.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +13 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/subscription.d.ts +53 -0
- package/dist-esm/src/operations/subscription.d.ts.map +1 -0
- package/dist-esm/src/operations/subscription.js +201 -0
- package/dist-esm/src/operations/subscription.js.map +1 -0
- package/dist-esm/src/operations/subscriptionPolicy.d.ts +43 -0
- package/dist-esm/src/operations/subscriptionPolicy.d.ts.map +1 -0
- package/dist-esm/src/operations/subscriptionPolicy.js +169 -0
- package/dist-esm/src/operations/subscriptionPolicy.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/alias.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/alias.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/alias.js +9 -0
- package/dist-esm/src/operationsInterfaces/alias.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingAccount.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/billingAccount.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingAccount.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingAccount.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscription.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/subscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/subscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscriptionPolicy.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/subscriptionPolicy.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscriptionPolicy.js +9 -0
- package/dist-esm/src/operationsInterfaces/subscriptionPolicy.js.map +1 -0
- package/dist-esm/src/subscriptionClient.d.ts +20 -0
- package/dist-esm/src/subscriptionClient.d.ts.map +1 -0
- package/dist-esm/src/subscriptionClient.js +49 -0
- package/dist-esm/src/subscriptionClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-subscriptions.api.md +446 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +449 -555
- package/src/models/mappers.ts +506 -250
- package/src/models/parameters.ts +82 -27
- package/src/operations/alias.ts +170 -170
- package/src/operations/billingAccount.ts +65 -0
- package/src/operations/index.ts +6 -8
- package/src/operations/operations.ts +103 -40
- package/src/operations/subscription.ts +289 -0
- package/src/operations/subscriptionPolicy.ts +207 -0
- package/src/operationsInterfaces/alias.ts +75 -0
- package/src/operationsInterfaces/billingAccount.ts +25 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/subscription.ts +92 -0
- package/src/operationsInterfaces/subscriptionPolicy.ts +46 -0
- package/src/subscriptionClient.ts +75 -43
- package/tsconfig.json +3 -3
- package/types/arm-subscriptions.d.ts +727 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-subscriptions.js +0 -1442
- package/dist/arm-subscriptions.js.map +0 -1
- package/dist/arm-subscriptions.min.js +0 -1
- package/dist/arm-subscriptions.min.js.map +0 -1
- package/esm/models/aliasMappers.d.ts +0 -2
- package/esm/models/aliasMappers.d.ts.map +0 -1
- package/esm/models/aliasMappers.js +0 -9
- package/esm/models/aliasMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -624
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -25
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -574
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -75
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/subscriptionOperationsMappers.d.ts +0 -2
- package/esm/models/subscriptionOperationsMappers.d.ts.map +0 -1
- package/esm/models/subscriptionOperationsMappers.js +0 -9
- package/esm/models/subscriptionOperationsMappers.js.map +0 -1
- package/esm/models/subscriptionsMappers.d.ts +0 -2
- package/esm/models/subscriptionsMappers.d.ts.map +0 -1
- package/esm/models/subscriptionsMappers.js +0 -9
- package/esm/models/subscriptionsMappers.js.map +0 -1
- package/esm/models/tenantsMappers.d.ts +0 -2
- package/esm/models/tenantsMappers.d.ts.map +0 -1
- package/esm/models/tenantsMappers.js +0 -9
- package/esm/models/tenantsMappers.js.map +0 -1
- package/esm/operations/alias.d.ts +0 -81
- package/esm/operations/alias.d.ts.map +0 -1
- package/esm/operations/alias.js +0 -161
- package/esm/operations/alias.js.map +0 -1
- package/esm/operations/index.d.ts +0 -6
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -15
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/subscriptionOperations.d.ts +0 -70
- package/esm/operations/subscriptionOperations.d.ts.map +0 -1
- package/esm/operations/subscriptionOperations.js +0 -117
- package/esm/operations/subscriptionOperations.js.map +0 -1
- package/esm/operations/subscriptions.d.ts +0 -84
- package/esm/operations/subscriptions.d.ts.map +0 -1
- package/esm/operations/subscriptions.js +0 -133
- package/esm/operations/subscriptions.js.map +0 -1
- package/esm/operations/tenants.d.ts +0 -46
- package/esm/operations/tenants.d.ts.map +0 -1
- package/esm/operations/tenants.js +0 -77
- package/esm/operations/tenants.js.map +0 -1
- package/esm/subscriptionClient.d.ts +0 -27
- package/esm/subscriptionClient.d.ts.map +0 -1
- package/esm/subscriptionClient.js +0 -41
- package/esm/subscriptionClient.js.map +0 -1
- package/esm/subscriptionClientContext.d.ts +0 -19
- package/esm/subscriptionClientContext.d.ts.map +0 -1
- package/esm/subscriptionClientContext.js +0 -55
- package/esm/subscriptionClientContext.js.map +0 -1
- package/src/models/aliasMappers.ts +0 -18
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/subscriptionOperationsMappers.ts +0 -15
- package/src/models/subscriptionsMappers.ts +0 -16
- package/src/models/tenantsMappers.ts +0 -13
- package/src/operations/subscriptionOperations.ts +0 -194
- package/src/operations/subscriptions.ts +0 -227
- package/src/operations/tenants.ts +0 -123
- package/src/subscriptionClientContext.ts +0 -60
package/src/models/index.ts
CHANGED
|
@@ -1,686 +1,580 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
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
|
|
10
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
11
10
|
|
|
12
|
-
|
|
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
|
|
106
|
-
*
|
|
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
|
-
|
|
17
|
+
readonly value?: string;
|
|
109
18
|
}
|
|
110
19
|
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
144
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
216
|
-
*/
|
|
217
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
137
|
+
readonly id?: string;
|
|
222
138
|
/**
|
|
223
|
-
*
|
|
139
|
+
* Alias ID.
|
|
140
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
224
141
|
*/
|
|
225
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
147
|
+
readonly type?: string;
|
|
148
|
+
/** Subscription Alias response properties. */
|
|
149
|
+
properties?: SubscriptionAliasResponseProperties;
|
|
237
150
|
/**
|
|
238
|
-
*
|
|
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
|
-
|
|
154
|
+
readonly systemData?: SystemData;
|
|
241
155
|
}
|
|
242
156
|
|
|
243
|
-
/**
|
|
244
|
-
|
|
245
|
-
*/
|
|
246
|
-
export interface PutAliasRequestProperties {
|
|
157
|
+
/** Put subscription creation result properties. */
|
|
158
|
+
export interface SubscriptionAliasResponseProperties {
|
|
247
159
|
/**
|
|
248
|
-
*
|
|
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
|
-
*
|
|
253
|
-
*
|
|
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
|
-
|
|
172
|
+
readonly acceptOwnershipUrl?: string;
|
|
256
173
|
/**
|
|
257
|
-
*
|
|
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
|
-
|
|
177
|
+
readonly acceptOwnershipState?: AcceptOwnership;
|
|
260
178
|
/**
|
|
261
|
-
*
|
|
262
|
-
|
|
263
|
-
|
|
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
|
-
|
|
272
|
-
*/
|
|
273
|
-
|
|
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
|
-
*
|
|
216
|
+
* The list of alias.
|
|
217
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
276
218
|
*/
|
|
277
|
-
|
|
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
|
-
|
|
282
|
-
*/
|
|
283
|
-
|
|
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
|
-
*
|
|
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
|
|
291
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
298
|
-
*/
|
|
299
|
-
|
|
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
|
-
*
|
|
302
|
-
*
|
|
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
|
-
*
|
|
307
|
-
*
|
|
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
|
|
312
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
301
|
+
readonly systemData?: SystemData;
|
|
319
302
|
}
|
|
320
303
|
|
|
321
|
-
/**
|
|
322
|
-
|
|
323
|
-
*/
|
|
324
|
-
export interface PutAliasListResult {
|
|
304
|
+
/** Tenant policy. */
|
|
305
|
+
export interface TenantPolicy {
|
|
325
306
|
/**
|
|
326
|
-
*
|
|
327
|
-
*
|
|
307
|
+
* Policy Id.
|
|
308
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
328
309
|
*/
|
|
329
|
-
readonly
|
|
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
|
-
*
|
|
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
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
*/
|
|
349
|
-
|
|
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
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
*/
|
|
357
|
-
|
|
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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
*/
|
|
369
|
-
|
|
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
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
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
|
|
397
|
+
export type Workload = string;
|
|
391
398
|
|
|
392
|
-
/**
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
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 =
|
|
415
|
+
export type ProvisioningState = string;
|
|
407
416
|
|
|
408
|
-
/**
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
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
|
+
}
|