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