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