@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
|
@@ -1,1442 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
(function (global, factory) {
|
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
10
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
11
|
-
(global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmSubscriptions = {}), global.msRestAzure, global.msRest));
|
|
12
|
-
}(this, (function (exports, msRestAzure, msRest) { 'use strict';
|
|
13
|
-
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
/* global Reflect, Promise */
|
|
29
|
-
|
|
30
|
-
var extendStatics = function(d, b) {
|
|
31
|
-
extendStatics = Object.setPrototypeOf ||
|
|
32
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34
|
-
return extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function __extends(d, b) {
|
|
38
|
-
extendStatics(d, b);
|
|
39
|
-
function __() { this.constructor = d; }
|
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var __assign = function() {
|
|
44
|
-
__assign = Object.assign || function __assign(t) {
|
|
45
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
-
s = arguments[i];
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
return __assign.apply(this, arguments);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
56
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
57
|
-
*
|
|
58
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
59
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
63
|
-
__proto__: null
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/*
|
|
67
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
68
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
69
|
-
*
|
|
70
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
71
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
72
|
-
*/
|
|
73
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
74
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
75
|
-
var Location = {
|
|
76
|
-
serializedName: "Location",
|
|
77
|
-
type: {
|
|
78
|
-
name: "Composite",
|
|
79
|
-
className: "Location",
|
|
80
|
-
modelProperties: {
|
|
81
|
-
id: {
|
|
82
|
-
readOnly: true,
|
|
83
|
-
serializedName: "id",
|
|
84
|
-
type: {
|
|
85
|
-
name: "String"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
subscriptionId: {
|
|
89
|
-
readOnly: true,
|
|
90
|
-
serializedName: "subscriptionId",
|
|
91
|
-
type: {
|
|
92
|
-
name: "String"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
name: {
|
|
96
|
-
readOnly: true,
|
|
97
|
-
serializedName: "name",
|
|
98
|
-
type: {
|
|
99
|
-
name: "String"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
displayName: {
|
|
103
|
-
readOnly: true,
|
|
104
|
-
serializedName: "displayName",
|
|
105
|
-
type: {
|
|
106
|
-
name: "String"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
latitude: {
|
|
110
|
-
readOnly: true,
|
|
111
|
-
serializedName: "latitude",
|
|
112
|
-
type: {
|
|
113
|
-
name: "String"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
longitude: {
|
|
117
|
-
readOnly: true,
|
|
118
|
-
serializedName: "longitude",
|
|
119
|
-
type: {
|
|
120
|
-
name: "String"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
var SubscriptionPolicies = {
|
|
127
|
-
serializedName: "SubscriptionPolicies",
|
|
128
|
-
type: {
|
|
129
|
-
name: "Composite",
|
|
130
|
-
className: "SubscriptionPolicies",
|
|
131
|
-
modelProperties: {
|
|
132
|
-
locationPlacementId: {
|
|
133
|
-
readOnly: true,
|
|
134
|
-
serializedName: "locationPlacementId",
|
|
135
|
-
type: {
|
|
136
|
-
name: "String"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
quotaId: {
|
|
140
|
-
readOnly: true,
|
|
141
|
-
serializedName: "quotaId",
|
|
142
|
-
type: {
|
|
143
|
-
name: "String"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
spendingLimit: {
|
|
147
|
-
readOnly: true,
|
|
148
|
-
serializedName: "spendingLimit",
|
|
149
|
-
type: {
|
|
150
|
-
name: "Enum",
|
|
151
|
-
allowedValues: [
|
|
152
|
-
"On",
|
|
153
|
-
"Off",
|
|
154
|
-
"CurrentPeriodOff"
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
var Subscription = {
|
|
162
|
-
serializedName: "Subscription",
|
|
163
|
-
type: {
|
|
164
|
-
name: "Composite",
|
|
165
|
-
className: "Subscription",
|
|
166
|
-
modelProperties: {
|
|
167
|
-
id: {
|
|
168
|
-
readOnly: true,
|
|
169
|
-
serializedName: "id",
|
|
170
|
-
type: {
|
|
171
|
-
name: "String"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
subscriptionId: {
|
|
175
|
-
readOnly: true,
|
|
176
|
-
serializedName: "subscriptionId",
|
|
177
|
-
type: {
|
|
178
|
-
name: "String"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
displayName: {
|
|
182
|
-
readOnly: true,
|
|
183
|
-
serializedName: "displayName",
|
|
184
|
-
type: {
|
|
185
|
-
name: "String"
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
state: {
|
|
189
|
-
readOnly: true,
|
|
190
|
-
serializedName: "state",
|
|
191
|
-
type: {
|
|
192
|
-
name: "Enum",
|
|
193
|
-
allowedValues: [
|
|
194
|
-
"Enabled",
|
|
195
|
-
"Warned",
|
|
196
|
-
"PastDue",
|
|
197
|
-
"Disabled",
|
|
198
|
-
"Deleted"
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
subscriptionPolicies: {
|
|
203
|
-
serializedName: "subscriptionPolicies",
|
|
204
|
-
type: {
|
|
205
|
-
name: "Composite",
|
|
206
|
-
className: "SubscriptionPolicies"
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
authorizationSource: {
|
|
210
|
-
serializedName: "authorizationSource",
|
|
211
|
-
type: {
|
|
212
|
-
name: "String"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
var TenantIdDescription = {
|
|
219
|
-
serializedName: "TenantIdDescription",
|
|
220
|
-
type: {
|
|
221
|
-
name: "Composite",
|
|
222
|
-
className: "TenantIdDescription",
|
|
223
|
-
modelProperties: {
|
|
224
|
-
id: {
|
|
225
|
-
readOnly: true,
|
|
226
|
-
serializedName: "id",
|
|
227
|
-
type: {
|
|
228
|
-
name: "String"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
tenantId: {
|
|
232
|
-
readOnly: true,
|
|
233
|
-
serializedName: "tenantId",
|
|
234
|
-
type: {
|
|
235
|
-
name: "String"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
var ErrorResponse = {
|
|
242
|
-
serializedName: "ErrorResponse",
|
|
243
|
-
type: {
|
|
244
|
-
name: "Composite",
|
|
245
|
-
className: "ErrorResponse",
|
|
246
|
-
modelProperties: {
|
|
247
|
-
code: {
|
|
248
|
-
serializedName: "code",
|
|
249
|
-
type: {
|
|
250
|
-
name: "String"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
message: {
|
|
254
|
-
serializedName: "message",
|
|
255
|
-
type: {
|
|
256
|
-
name: "String"
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
var ErrorResponseBody = {
|
|
263
|
-
serializedName: "ErrorResponseBody",
|
|
264
|
-
type: {
|
|
265
|
-
name: "Composite",
|
|
266
|
-
className: "ErrorResponseBody",
|
|
267
|
-
modelProperties: {
|
|
268
|
-
error: {
|
|
269
|
-
serializedName: "error",
|
|
270
|
-
type: {
|
|
271
|
-
name: "Composite",
|
|
272
|
-
className: "ErrorResponse"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
var CanceledSubscriptionId = {
|
|
279
|
-
serializedName: "CanceledSubscriptionId",
|
|
280
|
-
type: {
|
|
281
|
-
name: "Composite",
|
|
282
|
-
className: "CanceledSubscriptionId",
|
|
283
|
-
modelProperties: {
|
|
284
|
-
value: {
|
|
285
|
-
readOnly: true,
|
|
286
|
-
serializedName: "value",
|
|
287
|
-
type: {
|
|
288
|
-
name: "String"
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
var RenamedSubscriptionId = {
|
|
295
|
-
serializedName: "RenamedSubscriptionId",
|
|
296
|
-
type: {
|
|
297
|
-
name: "Composite",
|
|
298
|
-
className: "RenamedSubscriptionId",
|
|
299
|
-
modelProperties: {
|
|
300
|
-
value: {
|
|
301
|
-
readOnly: true,
|
|
302
|
-
serializedName: "value",
|
|
303
|
-
type: {
|
|
304
|
-
name: "String"
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
var EnabledSubscriptionId = {
|
|
311
|
-
serializedName: "EnabledSubscriptionId",
|
|
312
|
-
type: {
|
|
313
|
-
name: "Composite",
|
|
314
|
-
className: "EnabledSubscriptionId",
|
|
315
|
-
modelProperties: {
|
|
316
|
-
value: {
|
|
317
|
-
readOnly: true,
|
|
318
|
-
serializedName: "value",
|
|
319
|
-
type: {
|
|
320
|
-
name: "String"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
var SubscriptionName = {
|
|
327
|
-
serializedName: "SubscriptionName",
|
|
328
|
-
type: {
|
|
329
|
-
name: "Composite",
|
|
330
|
-
className: "SubscriptionName",
|
|
331
|
-
modelProperties: {
|
|
332
|
-
subscriptionName: {
|
|
333
|
-
serializedName: "subscriptionName",
|
|
334
|
-
type: {
|
|
335
|
-
name: "String"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var OperationDisplay = {
|
|
342
|
-
serializedName: "Operation_display",
|
|
343
|
-
type: {
|
|
344
|
-
name: "Composite",
|
|
345
|
-
className: "OperationDisplay",
|
|
346
|
-
modelProperties: {
|
|
347
|
-
provider: {
|
|
348
|
-
serializedName: "provider",
|
|
349
|
-
type: {
|
|
350
|
-
name: "String"
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
resource: {
|
|
354
|
-
serializedName: "resource",
|
|
355
|
-
type: {
|
|
356
|
-
name: "String"
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
operation: {
|
|
360
|
-
serializedName: "operation",
|
|
361
|
-
type: {
|
|
362
|
-
name: "String"
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
var Operation = {
|
|
369
|
-
serializedName: "Operation",
|
|
370
|
-
type: {
|
|
371
|
-
name: "Composite",
|
|
372
|
-
className: "Operation",
|
|
373
|
-
modelProperties: {
|
|
374
|
-
name: {
|
|
375
|
-
serializedName: "name",
|
|
376
|
-
type: {
|
|
377
|
-
name: "String"
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
display: {
|
|
381
|
-
serializedName: "display",
|
|
382
|
-
type: {
|
|
383
|
-
name: "Composite",
|
|
384
|
-
className: "OperationDisplay"
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
var OperationListResult = {
|
|
391
|
-
serializedName: "OperationListResult",
|
|
392
|
-
type: {
|
|
393
|
-
name: "Composite",
|
|
394
|
-
className: "OperationListResult",
|
|
395
|
-
modelProperties: {
|
|
396
|
-
value: {
|
|
397
|
-
serializedName: "value",
|
|
398
|
-
type: {
|
|
399
|
-
name: "Sequence",
|
|
400
|
-
element: {
|
|
401
|
-
type: {
|
|
402
|
-
name: "Composite",
|
|
403
|
-
className: "Operation"
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
nextLink: {
|
|
409
|
-
serializedName: "nextLink",
|
|
410
|
-
type: {
|
|
411
|
-
name: "String"
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
var PutAliasRequestProperties = {
|
|
418
|
-
serializedName: "PutAliasRequestProperties",
|
|
419
|
-
type: {
|
|
420
|
-
name: "Composite",
|
|
421
|
-
className: "PutAliasRequestProperties",
|
|
422
|
-
modelProperties: {
|
|
423
|
-
displayName: {
|
|
424
|
-
serializedName: "displayName",
|
|
425
|
-
type: {
|
|
426
|
-
name: "String"
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
workload: {
|
|
430
|
-
serializedName: "workload",
|
|
431
|
-
type: {
|
|
432
|
-
name: "String"
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
billingScope: {
|
|
436
|
-
serializedName: "billingScope",
|
|
437
|
-
type: {
|
|
438
|
-
name: "String"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
subscriptionId: {
|
|
442
|
-
serializedName: "subscriptionId",
|
|
443
|
-
type: {
|
|
444
|
-
name: "String"
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
resellerId: {
|
|
448
|
-
serializedName: "resellerId",
|
|
449
|
-
type: {
|
|
450
|
-
name: "String"
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
var PutAliasRequest = {
|
|
457
|
-
serializedName: "PutAliasRequest",
|
|
458
|
-
type: {
|
|
459
|
-
name: "Composite",
|
|
460
|
-
className: "PutAliasRequest",
|
|
461
|
-
modelProperties: {
|
|
462
|
-
properties: {
|
|
463
|
-
required: true,
|
|
464
|
-
serializedName: "properties",
|
|
465
|
-
type: {
|
|
466
|
-
name: "Composite",
|
|
467
|
-
className: "PutAliasRequestProperties"
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
var PutAliasResponseProperties = {
|
|
474
|
-
serializedName: "PutAliasResponseProperties",
|
|
475
|
-
type: {
|
|
476
|
-
name: "Composite",
|
|
477
|
-
className: "PutAliasResponseProperties",
|
|
478
|
-
modelProperties: {
|
|
479
|
-
subscriptionId: {
|
|
480
|
-
readOnly: true,
|
|
481
|
-
serializedName: "subscriptionId",
|
|
482
|
-
type: {
|
|
483
|
-
name: "String"
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
provisioningState: {
|
|
487
|
-
serializedName: "provisioningState",
|
|
488
|
-
type: {
|
|
489
|
-
name: "String"
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
var PutAliasResponse = {
|
|
496
|
-
serializedName: "PutAliasResponse",
|
|
497
|
-
type: {
|
|
498
|
-
name: "Composite",
|
|
499
|
-
className: "PutAliasResponse",
|
|
500
|
-
modelProperties: {
|
|
501
|
-
id: {
|
|
502
|
-
readOnly: true,
|
|
503
|
-
serializedName: "id",
|
|
504
|
-
type: {
|
|
505
|
-
name: "String"
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
name: {
|
|
509
|
-
readOnly: true,
|
|
510
|
-
serializedName: "name",
|
|
511
|
-
type: {
|
|
512
|
-
name: "String"
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
type: {
|
|
516
|
-
readOnly: true,
|
|
517
|
-
serializedName: "type",
|
|
518
|
-
type: {
|
|
519
|
-
name: "String"
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
properties: {
|
|
523
|
-
serializedName: "properties",
|
|
524
|
-
type: {
|
|
525
|
-
name: "Composite",
|
|
526
|
-
className: "PutAliasResponseProperties"
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
var PutAliasListResult = {
|
|
533
|
-
serializedName: "PutAliasListResult",
|
|
534
|
-
type: {
|
|
535
|
-
name: "Composite",
|
|
536
|
-
className: "PutAliasListResult",
|
|
537
|
-
modelProperties: {
|
|
538
|
-
value: {
|
|
539
|
-
readOnly: true,
|
|
540
|
-
serializedName: "value",
|
|
541
|
-
type: {
|
|
542
|
-
name: "Sequence",
|
|
543
|
-
element: {
|
|
544
|
-
type: {
|
|
545
|
-
name: "Composite",
|
|
546
|
-
className: "PutAliasResponse"
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
},
|
|
551
|
-
nextLink: {
|
|
552
|
-
readOnly: true,
|
|
553
|
-
serializedName: "nextLink",
|
|
554
|
-
type: {
|
|
555
|
-
name: "String"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
var LocationListResult = {
|
|
562
|
-
serializedName: "LocationListResult",
|
|
563
|
-
type: {
|
|
564
|
-
name: "Composite",
|
|
565
|
-
className: "LocationListResult",
|
|
566
|
-
modelProperties: {
|
|
567
|
-
value: {
|
|
568
|
-
serializedName: "",
|
|
569
|
-
type: {
|
|
570
|
-
name: "Sequence",
|
|
571
|
-
element: {
|
|
572
|
-
type: {
|
|
573
|
-
name: "Composite",
|
|
574
|
-
className: "Location"
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
var SubscriptionListResult = {
|
|
583
|
-
serializedName: "SubscriptionListResult",
|
|
584
|
-
type: {
|
|
585
|
-
name: "Composite",
|
|
586
|
-
className: "SubscriptionListResult",
|
|
587
|
-
modelProperties: {
|
|
588
|
-
value: {
|
|
589
|
-
serializedName: "",
|
|
590
|
-
type: {
|
|
591
|
-
name: "Sequence",
|
|
592
|
-
element: {
|
|
593
|
-
type: {
|
|
594
|
-
name: "Composite",
|
|
595
|
-
className: "Subscription"
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
nextLink: {
|
|
601
|
-
required: true,
|
|
602
|
-
serializedName: "nextLink",
|
|
603
|
-
type: {
|
|
604
|
-
name: "String"
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
var TenantListResult = {
|
|
611
|
-
serializedName: "TenantListResult",
|
|
612
|
-
type: {
|
|
613
|
-
name: "Composite",
|
|
614
|
-
className: "TenantListResult",
|
|
615
|
-
modelProperties: {
|
|
616
|
-
value: {
|
|
617
|
-
serializedName: "",
|
|
618
|
-
type: {
|
|
619
|
-
name: "Sequence",
|
|
620
|
-
element: {
|
|
621
|
-
type: {
|
|
622
|
-
name: "Composite",
|
|
623
|
-
className: "TenantIdDescription"
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
nextLink: {
|
|
629
|
-
required: true,
|
|
630
|
-
serializedName: "nextLink",
|
|
631
|
-
type: {
|
|
632
|
-
name: "String"
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
640
|
-
__proto__: null,
|
|
641
|
-
CloudError: CloudError,
|
|
642
|
-
BaseResource: BaseResource,
|
|
643
|
-
Location: Location,
|
|
644
|
-
SubscriptionPolicies: SubscriptionPolicies,
|
|
645
|
-
Subscription: Subscription,
|
|
646
|
-
TenantIdDescription: TenantIdDescription,
|
|
647
|
-
ErrorResponse: ErrorResponse,
|
|
648
|
-
ErrorResponseBody: ErrorResponseBody,
|
|
649
|
-
CanceledSubscriptionId: CanceledSubscriptionId,
|
|
650
|
-
RenamedSubscriptionId: RenamedSubscriptionId,
|
|
651
|
-
EnabledSubscriptionId: EnabledSubscriptionId,
|
|
652
|
-
SubscriptionName: SubscriptionName,
|
|
653
|
-
OperationDisplay: OperationDisplay,
|
|
654
|
-
Operation: Operation,
|
|
655
|
-
OperationListResult: OperationListResult,
|
|
656
|
-
PutAliasRequestProperties: PutAliasRequestProperties,
|
|
657
|
-
PutAliasRequest: PutAliasRequest,
|
|
658
|
-
PutAliasResponseProperties: PutAliasResponseProperties,
|
|
659
|
-
PutAliasResponse: PutAliasResponse,
|
|
660
|
-
PutAliasListResult: PutAliasListResult,
|
|
661
|
-
LocationListResult: LocationListResult,
|
|
662
|
-
SubscriptionListResult: SubscriptionListResult,
|
|
663
|
-
TenantListResult: TenantListResult
|
|
664
|
-
});
|
|
665
|
-
|
|
666
|
-
/*
|
|
667
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
668
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
669
|
-
*
|
|
670
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
671
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
672
|
-
*/
|
|
673
|
-
|
|
674
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
675
|
-
__proto__: null,
|
|
676
|
-
CloudError: CloudError,
|
|
677
|
-
Location: Location,
|
|
678
|
-
LocationListResult: LocationListResult,
|
|
679
|
-
Subscription: Subscription,
|
|
680
|
-
SubscriptionListResult: SubscriptionListResult,
|
|
681
|
-
SubscriptionPolicies: SubscriptionPolicies
|
|
682
|
-
});
|
|
683
|
-
|
|
684
|
-
/*
|
|
685
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
686
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
687
|
-
* license information.
|
|
688
|
-
*
|
|
689
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
690
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
691
|
-
* regenerated.
|
|
692
|
-
*/
|
|
693
|
-
var acceptLanguage = {
|
|
694
|
-
parameterPath: "acceptLanguage",
|
|
695
|
-
mapper: {
|
|
696
|
-
serializedName: "accept-language",
|
|
697
|
-
defaultValue: 'en-US',
|
|
698
|
-
type: {
|
|
699
|
-
name: "String"
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
var aliasName = {
|
|
704
|
-
parameterPath: "aliasName",
|
|
705
|
-
mapper: {
|
|
706
|
-
required: true,
|
|
707
|
-
serializedName: "aliasName",
|
|
708
|
-
type: {
|
|
709
|
-
name: "String"
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
var apiVersion0 = {
|
|
714
|
-
parameterPath: "apiVersion",
|
|
715
|
-
mapper: {
|
|
716
|
-
required: true,
|
|
717
|
-
isConstant: true,
|
|
718
|
-
serializedName: "api-version",
|
|
719
|
-
defaultValue: '2016-06-01',
|
|
720
|
-
type: {
|
|
721
|
-
name: "String"
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
};
|
|
725
|
-
var apiVersion1 = {
|
|
726
|
-
parameterPath: "apiVersion",
|
|
727
|
-
mapper: {
|
|
728
|
-
required: true,
|
|
729
|
-
isConstant: true,
|
|
730
|
-
serializedName: "api-version",
|
|
731
|
-
defaultValue: '2020-09-01',
|
|
732
|
-
type: {
|
|
733
|
-
name: "String"
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
var nextPageLink = {
|
|
738
|
-
parameterPath: "nextPageLink",
|
|
739
|
-
mapper: {
|
|
740
|
-
required: true,
|
|
741
|
-
serializedName: "nextLink",
|
|
742
|
-
type: {
|
|
743
|
-
name: "String"
|
|
744
|
-
}
|
|
745
|
-
},
|
|
746
|
-
skipEncoding: true
|
|
747
|
-
};
|
|
748
|
-
var subscriptionId = {
|
|
749
|
-
parameterPath: "subscriptionId",
|
|
750
|
-
mapper: {
|
|
751
|
-
required: true,
|
|
752
|
-
serializedName: "subscriptionId",
|
|
753
|
-
type: {
|
|
754
|
-
name: "String"
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
/*
|
|
760
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
761
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
762
|
-
* license information.
|
|
763
|
-
*
|
|
764
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
765
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
766
|
-
* regenerated.
|
|
767
|
-
*/
|
|
768
|
-
/** Class representing a Subscriptions. */
|
|
769
|
-
var Subscriptions = /** @class */ (function () {
|
|
770
|
-
/**
|
|
771
|
-
* Create a Subscriptions.
|
|
772
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
773
|
-
*/
|
|
774
|
-
function Subscriptions(client) {
|
|
775
|
-
this.client = client;
|
|
776
|
-
}
|
|
777
|
-
Subscriptions.prototype.listLocations = function (subscriptionId, options, callback) {
|
|
778
|
-
return this.client.sendOperationRequest({
|
|
779
|
-
subscriptionId: subscriptionId,
|
|
780
|
-
options: options
|
|
781
|
-
}, listLocationsOperationSpec, callback);
|
|
782
|
-
};
|
|
783
|
-
Subscriptions.prototype.get = function (subscriptionId, options, callback) {
|
|
784
|
-
return this.client.sendOperationRequest({
|
|
785
|
-
subscriptionId: subscriptionId,
|
|
786
|
-
options: options
|
|
787
|
-
}, getOperationSpec, callback);
|
|
788
|
-
};
|
|
789
|
-
Subscriptions.prototype.list = function (options, callback) {
|
|
790
|
-
return this.client.sendOperationRequest({
|
|
791
|
-
options: options
|
|
792
|
-
}, listOperationSpec, callback);
|
|
793
|
-
};
|
|
794
|
-
Subscriptions.prototype.listNext = function (nextPageLink, options, callback) {
|
|
795
|
-
return this.client.sendOperationRequest({
|
|
796
|
-
nextPageLink: nextPageLink,
|
|
797
|
-
options: options
|
|
798
|
-
}, listNextOperationSpec, callback);
|
|
799
|
-
};
|
|
800
|
-
return Subscriptions;
|
|
801
|
-
}());
|
|
802
|
-
// Operation Specifications
|
|
803
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
804
|
-
var listLocationsOperationSpec = {
|
|
805
|
-
httpMethod: "GET",
|
|
806
|
-
path: "subscriptions/{subscriptionId}/locations",
|
|
807
|
-
urlParameters: [
|
|
808
|
-
subscriptionId
|
|
809
|
-
],
|
|
810
|
-
queryParameters: [
|
|
811
|
-
apiVersion0
|
|
812
|
-
],
|
|
813
|
-
headerParameters: [
|
|
814
|
-
acceptLanguage
|
|
815
|
-
],
|
|
816
|
-
responses: {
|
|
817
|
-
200: {
|
|
818
|
-
bodyMapper: LocationListResult
|
|
819
|
-
},
|
|
820
|
-
default: {
|
|
821
|
-
bodyMapper: CloudError
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
serializer: serializer
|
|
825
|
-
};
|
|
826
|
-
var getOperationSpec = {
|
|
827
|
-
httpMethod: "GET",
|
|
828
|
-
path: "subscriptions/{subscriptionId}",
|
|
829
|
-
urlParameters: [
|
|
830
|
-
subscriptionId
|
|
831
|
-
],
|
|
832
|
-
queryParameters: [
|
|
833
|
-
apiVersion0
|
|
834
|
-
],
|
|
835
|
-
headerParameters: [
|
|
836
|
-
acceptLanguage
|
|
837
|
-
],
|
|
838
|
-
responses: {
|
|
839
|
-
200: {
|
|
840
|
-
bodyMapper: Subscription
|
|
841
|
-
},
|
|
842
|
-
default: {
|
|
843
|
-
bodyMapper: CloudError
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
serializer: serializer
|
|
847
|
-
};
|
|
848
|
-
var listOperationSpec = {
|
|
849
|
-
httpMethod: "GET",
|
|
850
|
-
path: "subscriptions",
|
|
851
|
-
queryParameters: [
|
|
852
|
-
apiVersion0
|
|
853
|
-
],
|
|
854
|
-
headerParameters: [
|
|
855
|
-
acceptLanguage
|
|
856
|
-
],
|
|
857
|
-
responses: {
|
|
858
|
-
200: {
|
|
859
|
-
bodyMapper: SubscriptionListResult
|
|
860
|
-
},
|
|
861
|
-
default: {
|
|
862
|
-
bodyMapper: CloudError
|
|
863
|
-
}
|
|
864
|
-
},
|
|
865
|
-
serializer: serializer
|
|
866
|
-
};
|
|
867
|
-
var listNextOperationSpec = {
|
|
868
|
-
httpMethod: "GET",
|
|
869
|
-
baseUrl: "https://management.azure.com",
|
|
870
|
-
path: "{nextLink}",
|
|
871
|
-
urlParameters: [
|
|
872
|
-
nextPageLink
|
|
873
|
-
],
|
|
874
|
-
headerParameters: [
|
|
875
|
-
acceptLanguage
|
|
876
|
-
],
|
|
877
|
-
responses: {
|
|
878
|
-
200: {
|
|
879
|
-
bodyMapper: SubscriptionListResult
|
|
880
|
-
},
|
|
881
|
-
default: {
|
|
882
|
-
bodyMapper: CloudError
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
serializer: serializer
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
/*
|
|
889
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
890
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
891
|
-
*
|
|
892
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
893
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
894
|
-
*/
|
|
895
|
-
|
|
896
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
897
|
-
__proto__: null,
|
|
898
|
-
CloudError: CloudError,
|
|
899
|
-
TenantIdDescription: TenantIdDescription,
|
|
900
|
-
TenantListResult: TenantListResult
|
|
901
|
-
});
|
|
902
|
-
|
|
903
|
-
/*
|
|
904
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
905
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
906
|
-
* license information.
|
|
907
|
-
*
|
|
908
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
909
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
910
|
-
* regenerated.
|
|
911
|
-
*/
|
|
912
|
-
/** Class representing a Tenants. */
|
|
913
|
-
var Tenants = /** @class */ (function () {
|
|
914
|
-
/**
|
|
915
|
-
* Create a Tenants.
|
|
916
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
917
|
-
*/
|
|
918
|
-
function Tenants(client) {
|
|
919
|
-
this.client = client;
|
|
920
|
-
}
|
|
921
|
-
Tenants.prototype.list = function (options, callback) {
|
|
922
|
-
return this.client.sendOperationRequest({
|
|
923
|
-
options: options
|
|
924
|
-
}, listOperationSpec$1, callback);
|
|
925
|
-
};
|
|
926
|
-
Tenants.prototype.listNext = function (nextPageLink, options, callback) {
|
|
927
|
-
return this.client.sendOperationRequest({
|
|
928
|
-
nextPageLink: nextPageLink,
|
|
929
|
-
options: options
|
|
930
|
-
}, listNextOperationSpec$1, callback);
|
|
931
|
-
};
|
|
932
|
-
return Tenants;
|
|
933
|
-
}());
|
|
934
|
-
// Operation Specifications
|
|
935
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
936
|
-
var listOperationSpec$1 = {
|
|
937
|
-
httpMethod: "GET",
|
|
938
|
-
path: "tenants",
|
|
939
|
-
queryParameters: [
|
|
940
|
-
apiVersion0
|
|
941
|
-
],
|
|
942
|
-
headerParameters: [
|
|
943
|
-
acceptLanguage
|
|
944
|
-
],
|
|
945
|
-
responses: {
|
|
946
|
-
200: {
|
|
947
|
-
bodyMapper: TenantListResult
|
|
948
|
-
},
|
|
949
|
-
default: {
|
|
950
|
-
bodyMapper: CloudError
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
serializer: serializer$1
|
|
954
|
-
};
|
|
955
|
-
var listNextOperationSpec$1 = {
|
|
956
|
-
httpMethod: "GET",
|
|
957
|
-
baseUrl: "https://management.azure.com",
|
|
958
|
-
path: "{nextLink}",
|
|
959
|
-
urlParameters: [
|
|
960
|
-
nextPageLink
|
|
961
|
-
],
|
|
962
|
-
headerParameters: [
|
|
963
|
-
acceptLanguage
|
|
964
|
-
],
|
|
965
|
-
responses: {
|
|
966
|
-
200: {
|
|
967
|
-
bodyMapper: TenantListResult
|
|
968
|
-
},
|
|
969
|
-
default: {
|
|
970
|
-
bodyMapper: CloudError
|
|
971
|
-
}
|
|
972
|
-
},
|
|
973
|
-
serializer: serializer$1
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
/*
|
|
977
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
978
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
979
|
-
*
|
|
980
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
981
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
982
|
-
*/
|
|
983
|
-
|
|
984
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
985
|
-
__proto__: null,
|
|
986
|
-
CanceledSubscriptionId: CanceledSubscriptionId,
|
|
987
|
-
EnabledSubscriptionId: EnabledSubscriptionId,
|
|
988
|
-
ErrorResponse: ErrorResponse,
|
|
989
|
-
RenamedSubscriptionId: RenamedSubscriptionId,
|
|
990
|
-
SubscriptionName: SubscriptionName
|
|
991
|
-
});
|
|
992
|
-
|
|
993
|
-
/*
|
|
994
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
995
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
996
|
-
* license information.
|
|
997
|
-
*
|
|
998
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
999
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1000
|
-
* regenerated.
|
|
1001
|
-
*/
|
|
1002
|
-
/** Class representing a SubscriptionOperations. */
|
|
1003
|
-
var SubscriptionOperations = /** @class */ (function () {
|
|
1004
|
-
/**
|
|
1005
|
-
* Create a SubscriptionOperations.
|
|
1006
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
1007
|
-
*/
|
|
1008
|
-
function SubscriptionOperations(client) {
|
|
1009
|
-
this.client = client;
|
|
1010
|
-
}
|
|
1011
|
-
SubscriptionOperations.prototype.cancel = function (subscriptionId, options, callback) {
|
|
1012
|
-
return this.client.sendOperationRequest({
|
|
1013
|
-
subscriptionId: subscriptionId,
|
|
1014
|
-
options: options
|
|
1015
|
-
}, cancelOperationSpec, callback);
|
|
1016
|
-
};
|
|
1017
|
-
SubscriptionOperations.prototype.rename = function (subscriptionId, body, options, callback) {
|
|
1018
|
-
return this.client.sendOperationRequest({
|
|
1019
|
-
subscriptionId: subscriptionId,
|
|
1020
|
-
body: body,
|
|
1021
|
-
options: options
|
|
1022
|
-
}, renameOperationSpec, callback);
|
|
1023
|
-
};
|
|
1024
|
-
SubscriptionOperations.prototype.enable = function (subscriptionId, options, callback) {
|
|
1025
|
-
return this.client.sendOperationRequest({
|
|
1026
|
-
subscriptionId: subscriptionId,
|
|
1027
|
-
options: options
|
|
1028
|
-
}, enableOperationSpec, callback);
|
|
1029
|
-
};
|
|
1030
|
-
return SubscriptionOperations;
|
|
1031
|
-
}());
|
|
1032
|
-
// Operation Specifications
|
|
1033
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
1034
|
-
var cancelOperationSpec = {
|
|
1035
|
-
httpMethod: "POST",
|
|
1036
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Subscription/cancel",
|
|
1037
|
-
urlParameters: [
|
|
1038
|
-
subscriptionId
|
|
1039
|
-
],
|
|
1040
|
-
queryParameters: [
|
|
1041
|
-
apiVersion1
|
|
1042
|
-
],
|
|
1043
|
-
headerParameters: [
|
|
1044
|
-
acceptLanguage
|
|
1045
|
-
],
|
|
1046
|
-
responses: {
|
|
1047
|
-
200: {
|
|
1048
|
-
bodyMapper: CanceledSubscriptionId
|
|
1049
|
-
},
|
|
1050
|
-
default: {
|
|
1051
|
-
bodyMapper: ErrorResponse
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
serializer: serializer$2
|
|
1055
|
-
};
|
|
1056
|
-
var renameOperationSpec = {
|
|
1057
|
-
httpMethod: "POST",
|
|
1058
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename",
|
|
1059
|
-
urlParameters: [
|
|
1060
|
-
subscriptionId
|
|
1061
|
-
],
|
|
1062
|
-
queryParameters: [
|
|
1063
|
-
apiVersion1
|
|
1064
|
-
],
|
|
1065
|
-
headerParameters: [
|
|
1066
|
-
acceptLanguage
|
|
1067
|
-
],
|
|
1068
|
-
requestBody: {
|
|
1069
|
-
parameterPath: "body",
|
|
1070
|
-
mapper: __assign(__assign({}, SubscriptionName), { required: true })
|
|
1071
|
-
},
|
|
1072
|
-
responses: {
|
|
1073
|
-
200: {
|
|
1074
|
-
bodyMapper: RenamedSubscriptionId
|
|
1075
|
-
},
|
|
1076
|
-
default: {
|
|
1077
|
-
bodyMapper: ErrorResponse
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
serializer: serializer$2
|
|
1081
|
-
};
|
|
1082
|
-
var enableOperationSpec = {
|
|
1083
|
-
httpMethod: "POST",
|
|
1084
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable",
|
|
1085
|
-
urlParameters: [
|
|
1086
|
-
subscriptionId
|
|
1087
|
-
],
|
|
1088
|
-
queryParameters: [
|
|
1089
|
-
apiVersion1
|
|
1090
|
-
],
|
|
1091
|
-
headerParameters: [
|
|
1092
|
-
acceptLanguage
|
|
1093
|
-
],
|
|
1094
|
-
responses: {
|
|
1095
|
-
200: {
|
|
1096
|
-
bodyMapper: EnabledSubscriptionId
|
|
1097
|
-
},
|
|
1098
|
-
default: {
|
|
1099
|
-
bodyMapper: ErrorResponse
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
serializer: serializer$2
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
|
-
/*
|
|
1106
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1107
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
1108
|
-
*
|
|
1109
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1110
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1111
|
-
*/
|
|
1112
|
-
|
|
1113
|
-
var Mappers$3 = /*#__PURE__*/Object.freeze({
|
|
1114
|
-
__proto__: null,
|
|
1115
|
-
ErrorResponse: ErrorResponse,
|
|
1116
|
-
Operation: Operation,
|
|
1117
|
-
OperationDisplay: OperationDisplay,
|
|
1118
|
-
OperationListResult: OperationListResult
|
|
1119
|
-
});
|
|
1120
|
-
|
|
1121
|
-
/*
|
|
1122
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1123
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1124
|
-
* license information.
|
|
1125
|
-
*
|
|
1126
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1127
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1128
|
-
* regenerated.
|
|
1129
|
-
*/
|
|
1130
|
-
/** Class representing a Operations. */
|
|
1131
|
-
var Operations = /** @class */ (function () {
|
|
1132
|
-
/**
|
|
1133
|
-
* Create a Operations.
|
|
1134
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
1135
|
-
*/
|
|
1136
|
-
function Operations(client) {
|
|
1137
|
-
this.client = client;
|
|
1138
|
-
}
|
|
1139
|
-
Operations.prototype.list = function (options, callback) {
|
|
1140
|
-
return this.client.sendOperationRequest({
|
|
1141
|
-
options: options
|
|
1142
|
-
}, listOperationSpec$2, callback);
|
|
1143
|
-
};
|
|
1144
|
-
return Operations;
|
|
1145
|
-
}());
|
|
1146
|
-
// Operation Specifications
|
|
1147
|
-
var serializer$3 = new msRest.Serializer(Mappers$3);
|
|
1148
|
-
var listOperationSpec$2 = {
|
|
1149
|
-
httpMethod: "GET",
|
|
1150
|
-
path: "providers/Microsoft.Subscription/operations",
|
|
1151
|
-
queryParameters: [
|
|
1152
|
-
apiVersion1
|
|
1153
|
-
],
|
|
1154
|
-
headerParameters: [
|
|
1155
|
-
acceptLanguage
|
|
1156
|
-
],
|
|
1157
|
-
responses: {
|
|
1158
|
-
200: {
|
|
1159
|
-
bodyMapper: OperationListResult
|
|
1160
|
-
},
|
|
1161
|
-
default: {
|
|
1162
|
-
bodyMapper: ErrorResponse
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
serializer: serializer$3
|
|
1166
|
-
};
|
|
1167
|
-
|
|
1168
|
-
/*
|
|
1169
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1170
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
1171
|
-
*
|
|
1172
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1173
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1174
|
-
*/
|
|
1175
|
-
|
|
1176
|
-
var Mappers$4 = /*#__PURE__*/Object.freeze({
|
|
1177
|
-
__proto__: null,
|
|
1178
|
-
BaseResource: BaseResource,
|
|
1179
|
-
ErrorResponse: ErrorResponse,
|
|
1180
|
-
ErrorResponseBody: ErrorResponseBody,
|
|
1181
|
-
PutAliasListResult: PutAliasListResult,
|
|
1182
|
-
PutAliasRequest: PutAliasRequest,
|
|
1183
|
-
PutAliasRequestProperties: PutAliasRequestProperties,
|
|
1184
|
-
PutAliasResponse: PutAliasResponse,
|
|
1185
|
-
PutAliasResponseProperties: PutAliasResponseProperties
|
|
1186
|
-
});
|
|
1187
|
-
|
|
1188
|
-
/*
|
|
1189
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1190
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1191
|
-
* license information.
|
|
1192
|
-
*
|
|
1193
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1194
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1195
|
-
* regenerated.
|
|
1196
|
-
*/
|
|
1197
|
-
/** Class representing a Alias. */
|
|
1198
|
-
var Alias = /** @class */ (function () {
|
|
1199
|
-
/**
|
|
1200
|
-
* Create a Alias.
|
|
1201
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
1202
|
-
*/
|
|
1203
|
-
function Alias(client) {
|
|
1204
|
-
this.client = client;
|
|
1205
|
-
}
|
|
1206
|
-
/**
|
|
1207
|
-
* Create Alias Subscription.
|
|
1208
|
-
* @param aliasName Alias Name
|
|
1209
|
-
* @param body
|
|
1210
|
-
* @param [options] The optional parameters
|
|
1211
|
-
* @returns Promise<Models.AliasCreateResponse>
|
|
1212
|
-
*/
|
|
1213
|
-
Alias.prototype.create = function (aliasName, body, options) {
|
|
1214
|
-
return this.beginCreate(aliasName, body, options)
|
|
1215
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1216
|
-
};
|
|
1217
|
-
Alias.prototype.get = function (aliasName, options, callback) {
|
|
1218
|
-
return this.client.sendOperationRequest({
|
|
1219
|
-
aliasName: aliasName,
|
|
1220
|
-
options: options
|
|
1221
|
-
}, getOperationSpec$1, callback);
|
|
1222
|
-
};
|
|
1223
|
-
Alias.prototype.deleteMethod = function (aliasName, options, callback) {
|
|
1224
|
-
return this.client.sendOperationRequest({
|
|
1225
|
-
aliasName: aliasName,
|
|
1226
|
-
options: options
|
|
1227
|
-
}, deleteMethodOperationSpec, callback);
|
|
1228
|
-
};
|
|
1229
|
-
Alias.prototype.list = function (options, callback) {
|
|
1230
|
-
return this.client.sendOperationRequest({
|
|
1231
|
-
options: options
|
|
1232
|
-
}, listOperationSpec$3, callback);
|
|
1233
|
-
};
|
|
1234
|
-
/**
|
|
1235
|
-
* Create Alias Subscription.
|
|
1236
|
-
* @param aliasName Alias Name
|
|
1237
|
-
* @param body
|
|
1238
|
-
* @param [options] The optional parameters
|
|
1239
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1240
|
-
*/
|
|
1241
|
-
Alias.prototype.beginCreate = function (aliasName, body, options) {
|
|
1242
|
-
return this.client.sendLRORequest({
|
|
1243
|
-
aliasName: aliasName,
|
|
1244
|
-
body: body,
|
|
1245
|
-
options: options
|
|
1246
|
-
}, beginCreateOperationSpec, options);
|
|
1247
|
-
};
|
|
1248
|
-
return Alias;
|
|
1249
|
-
}());
|
|
1250
|
-
// Operation Specifications
|
|
1251
|
-
var serializer$4 = new msRest.Serializer(Mappers$4);
|
|
1252
|
-
var getOperationSpec$1 = {
|
|
1253
|
-
httpMethod: "GET",
|
|
1254
|
-
path: "providers/Microsoft.Subscription/aliases/{aliasName}",
|
|
1255
|
-
urlParameters: [
|
|
1256
|
-
aliasName
|
|
1257
|
-
],
|
|
1258
|
-
queryParameters: [
|
|
1259
|
-
apiVersion1
|
|
1260
|
-
],
|
|
1261
|
-
headerParameters: [
|
|
1262
|
-
acceptLanguage
|
|
1263
|
-
],
|
|
1264
|
-
responses: {
|
|
1265
|
-
200: {
|
|
1266
|
-
bodyMapper: PutAliasResponse
|
|
1267
|
-
},
|
|
1268
|
-
default: {
|
|
1269
|
-
bodyMapper: ErrorResponseBody
|
|
1270
|
-
}
|
|
1271
|
-
},
|
|
1272
|
-
serializer: serializer$4
|
|
1273
|
-
};
|
|
1274
|
-
var deleteMethodOperationSpec = {
|
|
1275
|
-
httpMethod: "DELETE",
|
|
1276
|
-
path: "providers/Microsoft.Subscription/aliases/{aliasName}",
|
|
1277
|
-
urlParameters: [
|
|
1278
|
-
aliasName
|
|
1279
|
-
],
|
|
1280
|
-
queryParameters: [
|
|
1281
|
-
apiVersion1
|
|
1282
|
-
],
|
|
1283
|
-
headerParameters: [
|
|
1284
|
-
acceptLanguage
|
|
1285
|
-
],
|
|
1286
|
-
responses: {
|
|
1287
|
-
200: {},
|
|
1288
|
-
204: {},
|
|
1289
|
-
default: {
|
|
1290
|
-
bodyMapper: ErrorResponseBody
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
serializer: serializer$4
|
|
1294
|
-
};
|
|
1295
|
-
var listOperationSpec$3 = {
|
|
1296
|
-
httpMethod: "GET",
|
|
1297
|
-
path: "providers/Microsoft.Subscription/aliases",
|
|
1298
|
-
queryParameters: [
|
|
1299
|
-
apiVersion1
|
|
1300
|
-
],
|
|
1301
|
-
headerParameters: [
|
|
1302
|
-
acceptLanguage
|
|
1303
|
-
],
|
|
1304
|
-
responses: {
|
|
1305
|
-
200: {
|
|
1306
|
-
bodyMapper: PutAliasListResult
|
|
1307
|
-
},
|
|
1308
|
-
default: {
|
|
1309
|
-
bodyMapper: ErrorResponseBody
|
|
1310
|
-
}
|
|
1311
|
-
},
|
|
1312
|
-
serializer: serializer$4
|
|
1313
|
-
};
|
|
1314
|
-
var beginCreateOperationSpec = {
|
|
1315
|
-
httpMethod: "PUT",
|
|
1316
|
-
path: "providers/Microsoft.Subscription/aliases/{aliasName}",
|
|
1317
|
-
urlParameters: [
|
|
1318
|
-
aliasName
|
|
1319
|
-
],
|
|
1320
|
-
queryParameters: [
|
|
1321
|
-
apiVersion1
|
|
1322
|
-
],
|
|
1323
|
-
headerParameters: [
|
|
1324
|
-
acceptLanguage
|
|
1325
|
-
],
|
|
1326
|
-
requestBody: {
|
|
1327
|
-
parameterPath: "body",
|
|
1328
|
-
mapper: __assign(__assign({}, PutAliasRequest), { required: true })
|
|
1329
|
-
},
|
|
1330
|
-
responses: {
|
|
1331
|
-
200: {
|
|
1332
|
-
bodyMapper: PutAliasResponse
|
|
1333
|
-
},
|
|
1334
|
-
201: {
|
|
1335
|
-
bodyMapper: PutAliasResponse
|
|
1336
|
-
},
|
|
1337
|
-
default: {
|
|
1338
|
-
bodyMapper: ErrorResponseBody
|
|
1339
|
-
}
|
|
1340
|
-
},
|
|
1341
|
-
serializer: serializer$4
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
/*
|
|
1345
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1346
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1347
|
-
* license information.
|
|
1348
|
-
*
|
|
1349
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1350
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1351
|
-
* regenerated.
|
|
1352
|
-
*/
|
|
1353
|
-
var packageName = "@azure/arm-subscriptions";
|
|
1354
|
-
var packageVersion = "3.1.2";
|
|
1355
|
-
var SubscriptionClientContext = /** @class */ (function (_super) {
|
|
1356
|
-
__extends(SubscriptionClientContext, _super);
|
|
1357
|
-
/**
|
|
1358
|
-
* Initializes a new instance of the SubscriptionClient class.
|
|
1359
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1360
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1361
|
-
* more information about these credentials, see
|
|
1362
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1363
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1364
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1365
|
-
* @param [options] The parameter options
|
|
1366
|
-
*/
|
|
1367
|
-
function SubscriptionClientContext(credentials, options) {
|
|
1368
|
-
var _this = this;
|
|
1369
|
-
if (credentials == undefined) {
|
|
1370
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1371
|
-
}
|
|
1372
|
-
if (!options) {
|
|
1373
|
-
options = {};
|
|
1374
|
-
}
|
|
1375
|
-
if (!options.userAgent) {
|
|
1376
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1377
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1378
|
-
}
|
|
1379
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1380
|
-
_this.acceptLanguage = 'en-US';
|
|
1381
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1382
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1383
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1384
|
-
_this.credentials = credentials;
|
|
1385
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1386
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1387
|
-
}
|
|
1388
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1389
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1390
|
-
}
|
|
1391
|
-
return _this;
|
|
1392
|
-
}
|
|
1393
|
-
return SubscriptionClientContext;
|
|
1394
|
-
}(msRestAzure.AzureServiceClient));
|
|
1395
|
-
|
|
1396
|
-
/*
|
|
1397
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1398
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1399
|
-
* license information.
|
|
1400
|
-
*
|
|
1401
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1402
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1403
|
-
* regenerated.
|
|
1404
|
-
*/
|
|
1405
|
-
var SubscriptionClient = /** @class */ (function (_super) {
|
|
1406
|
-
__extends(SubscriptionClient, _super);
|
|
1407
|
-
/**
|
|
1408
|
-
* Initializes a new instance of the SubscriptionClient class.
|
|
1409
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1410
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1411
|
-
* more information about these credentials, see
|
|
1412
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1413
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1414
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1415
|
-
* @param [options] The parameter options
|
|
1416
|
-
*/
|
|
1417
|
-
function SubscriptionClient(credentials, options) {
|
|
1418
|
-
var _this = _super.call(this, credentials, options) || this;
|
|
1419
|
-
_this.subscriptions = new Subscriptions(_this);
|
|
1420
|
-
_this.tenants = new Tenants(_this);
|
|
1421
|
-
_this.subscription = new SubscriptionOperations(_this);
|
|
1422
|
-
_this.operations = new Operations(_this);
|
|
1423
|
-
_this.alias = new Alias(_this);
|
|
1424
|
-
return _this;
|
|
1425
|
-
}
|
|
1426
|
-
return SubscriptionClient;
|
|
1427
|
-
}(SubscriptionClientContext));
|
|
1428
|
-
|
|
1429
|
-
exports.Alias = Alias;
|
|
1430
|
-
exports.Operations = Operations;
|
|
1431
|
-
exports.SubscriptionClient = SubscriptionClient;
|
|
1432
|
-
exports.SubscriptionClientContext = SubscriptionClientContext;
|
|
1433
|
-
exports.SubscriptionMappers = mappers;
|
|
1434
|
-
exports.SubscriptionModels = index;
|
|
1435
|
-
exports.SubscriptionOperations = SubscriptionOperations;
|
|
1436
|
-
exports.Subscriptions = Subscriptions;
|
|
1437
|
-
exports.Tenants = Tenants;
|
|
1438
|
-
|
|
1439
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1440
|
-
|
|
1441
|
-
})));
|
|
1442
|
-
//# sourceMappingURL=arm-subscriptions.js.map
|