@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
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
import * as Models from "../models";
|
|
3
|
-
import { SubscriptionClientContext } from "../subscriptionClientContext";
|
|
4
|
-
/** Class representing a Subscriptions. */
|
|
5
|
-
export declare class Subscriptions {
|
|
6
|
-
private readonly client;
|
|
7
|
-
/**
|
|
8
|
-
* Create a Subscriptions.
|
|
9
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
10
|
-
*/
|
|
11
|
-
constructor(client: SubscriptionClientContext);
|
|
12
|
-
/**
|
|
13
|
-
* This operation provides all the locations that are available for resource providers; however,
|
|
14
|
-
* each resource provider may support a subset of this list.
|
|
15
|
-
* @summary Gets all available geo-locations.
|
|
16
|
-
* @param subscriptionId The ID of the target subscription.
|
|
17
|
-
* @param [options] The optional parameters
|
|
18
|
-
* @returns Promise<Models.SubscriptionsListLocationsResponse>
|
|
19
|
-
*/
|
|
20
|
-
listLocations(subscriptionId: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsListLocationsResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* @param subscriptionId The ID of the target subscription.
|
|
23
|
-
* @param callback The callback
|
|
24
|
-
*/
|
|
25
|
-
listLocations(subscriptionId: string, callback: msRest.ServiceCallback<Models.LocationListResult>): void;
|
|
26
|
-
/**
|
|
27
|
-
* @param subscriptionId The ID of the target subscription.
|
|
28
|
-
* @param options The optional parameters
|
|
29
|
-
* @param callback The callback
|
|
30
|
-
*/
|
|
31
|
-
listLocations(subscriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.LocationListResult>): void;
|
|
32
|
-
/**
|
|
33
|
-
* Gets details about a specified subscription.
|
|
34
|
-
* @param subscriptionId The ID of the target subscription.
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.SubscriptionsGetResponse>
|
|
37
|
-
*/
|
|
38
|
-
get(subscriptionId: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsGetResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* @param subscriptionId The ID of the target subscription.
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
get(subscriptionId: string, callback: msRest.ServiceCallback<Models.Subscription>): void;
|
|
44
|
-
/**
|
|
45
|
-
* @param subscriptionId The ID of the target subscription.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
get(subscriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Subscription>): void;
|
|
50
|
-
/**
|
|
51
|
-
* Gets all subscriptions for a tenant.
|
|
52
|
-
* @param [options] The optional parameters
|
|
53
|
-
* @returns Promise<Models.SubscriptionsListResponse>
|
|
54
|
-
*/
|
|
55
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsListResponse>;
|
|
56
|
-
/**
|
|
57
|
-
* @param callback The callback
|
|
58
|
-
*/
|
|
59
|
-
list(callback: msRest.ServiceCallback<Models.SubscriptionListResult>): void;
|
|
60
|
-
/**
|
|
61
|
-
* @param options The optional parameters
|
|
62
|
-
* @param callback The callback
|
|
63
|
-
*/
|
|
64
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SubscriptionListResult>): void;
|
|
65
|
-
/**
|
|
66
|
-
* Gets all subscriptions for a tenant.
|
|
67
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
68
|
-
* @param [options] The optional parameters
|
|
69
|
-
* @returns Promise<Models.SubscriptionsListNextResponse>
|
|
70
|
-
*/
|
|
71
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsListNextResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
74
|
-
* @param callback The callback
|
|
75
|
-
*/
|
|
76
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SubscriptionListResult>): void;
|
|
77
|
-
/**
|
|
78
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
79
|
-
* @param options The optional parameters
|
|
80
|
-
* @param callback The callback
|
|
81
|
-
*/
|
|
82
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SubscriptionListResult>): void;
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/operations/subscriptions.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,0CAA0C;AAC1C,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;;;;;OAOG;IACH,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,kCAAkC,CAAC;IAC9H;;;OAGG;IACH,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,IAAI;IACxG;;;;OAIG;IACH,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,IAAI;IAW5I;;;;;OAKG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAAC;IAC1G;;;OAGG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI;IACxF;;;;OAIG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI;IAW5H;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAC;IACpF;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI;IAC3E;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI;IAU/G;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC;IAClH;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI;IACrG;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI;CAU1I"}
|
|
@@ -1,133 +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
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
11
|
-
import * as Mappers from "../models/subscriptionsMappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
/** Class representing a Subscriptions. */
|
|
14
|
-
var Subscriptions = /** @class */ (function () {
|
|
15
|
-
/**
|
|
16
|
-
* Create a Subscriptions.
|
|
17
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
18
|
-
*/
|
|
19
|
-
function Subscriptions(client) {
|
|
20
|
-
this.client = client;
|
|
21
|
-
}
|
|
22
|
-
Subscriptions.prototype.listLocations = function (subscriptionId, options, callback) {
|
|
23
|
-
return this.client.sendOperationRequest({
|
|
24
|
-
subscriptionId: subscriptionId,
|
|
25
|
-
options: options
|
|
26
|
-
}, listLocationsOperationSpec, callback);
|
|
27
|
-
};
|
|
28
|
-
Subscriptions.prototype.get = function (subscriptionId, options, callback) {
|
|
29
|
-
return this.client.sendOperationRequest({
|
|
30
|
-
subscriptionId: subscriptionId,
|
|
31
|
-
options: options
|
|
32
|
-
}, getOperationSpec, callback);
|
|
33
|
-
};
|
|
34
|
-
Subscriptions.prototype.list = function (options, callback) {
|
|
35
|
-
return this.client.sendOperationRequest({
|
|
36
|
-
options: options
|
|
37
|
-
}, listOperationSpec, callback);
|
|
38
|
-
};
|
|
39
|
-
Subscriptions.prototype.listNext = function (nextPageLink, options, callback) {
|
|
40
|
-
return this.client.sendOperationRequest({
|
|
41
|
-
nextPageLink: nextPageLink,
|
|
42
|
-
options: options
|
|
43
|
-
}, listNextOperationSpec, callback);
|
|
44
|
-
};
|
|
45
|
-
return Subscriptions;
|
|
46
|
-
}());
|
|
47
|
-
export { Subscriptions };
|
|
48
|
-
// Operation Specifications
|
|
49
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
50
|
-
var listLocationsOperationSpec = {
|
|
51
|
-
httpMethod: "GET",
|
|
52
|
-
path: "subscriptions/{subscriptionId}/locations",
|
|
53
|
-
urlParameters: [
|
|
54
|
-
Parameters.subscriptionId
|
|
55
|
-
],
|
|
56
|
-
queryParameters: [
|
|
57
|
-
Parameters.apiVersion0
|
|
58
|
-
],
|
|
59
|
-
headerParameters: [
|
|
60
|
-
Parameters.acceptLanguage
|
|
61
|
-
],
|
|
62
|
-
responses: {
|
|
63
|
-
200: {
|
|
64
|
-
bodyMapper: Mappers.LocationListResult
|
|
65
|
-
},
|
|
66
|
-
default: {
|
|
67
|
-
bodyMapper: Mappers.CloudError
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
serializer: serializer
|
|
71
|
-
};
|
|
72
|
-
var getOperationSpec = {
|
|
73
|
-
httpMethod: "GET",
|
|
74
|
-
path: "subscriptions/{subscriptionId}",
|
|
75
|
-
urlParameters: [
|
|
76
|
-
Parameters.subscriptionId
|
|
77
|
-
],
|
|
78
|
-
queryParameters: [
|
|
79
|
-
Parameters.apiVersion0
|
|
80
|
-
],
|
|
81
|
-
headerParameters: [
|
|
82
|
-
Parameters.acceptLanguage
|
|
83
|
-
],
|
|
84
|
-
responses: {
|
|
85
|
-
200: {
|
|
86
|
-
bodyMapper: Mappers.Subscription
|
|
87
|
-
},
|
|
88
|
-
default: {
|
|
89
|
-
bodyMapper: Mappers.CloudError
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
serializer: serializer
|
|
93
|
-
};
|
|
94
|
-
var listOperationSpec = {
|
|
95
|
-
httpMethod: "GET",
|
|
96
|
-
path: "subscriptions",
|
|
97
|
-
queryParameters: [
|
|
98
|
-
Parameters.apiVersion0
|
|
99
|
-
],
|
|
100
|
-
headerParameters: [
|
|
101
|
-
Parameters.acceptLanguage
|
|
102
|
-
],
|
|
103
|
-
responses: {
|
|
104
|
-
200: {
|
|
105
|
-
bodyMapper: Mappers.SubscriptionListResult
|
|
106
|
-
},
|
|
107
|
-
default: {
|
|
108
|
-
bodyMapper: Mappers.CloudError
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
serializer: serializer
|
|
112
|
-
};
|
|
113
|
-
var listNextOperationSpec = {
|
|
114
|
-
httpMethod: "GET",
|
|
115
|
-
baseUrl: "https://management.azure.com",
|
|
116
|
-
path: "{nextLink}",
|
|
117
|
-
urlParameters: [
|
|
118
|
-
Parameters.nextPageLink
|
|
119
|
-
],
|
|
120
|
-
headerParameters: [
|
|
121
|
-
Parameters.acceptLanguage
|
|
122
|
-
],
|
|
123
|
-
responses: {
|
|
124
|
-
200: {
|
|
125
|
-
bodyMapper: Mappers.SubscriptionListResult
|
|
126
|
-
},
|
|
127
|
-
default: {
|
|
128
|
-
bodyMapper: Mappers.CloudError
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
serializer: serializer
|
|
132
|
-
};
|
|
133
|
-
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/operations/subscriptions.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
import * as Models from "../models";
|
|
3
|
-
import { SubscriptionClientContext } from "../subscriptionClientContext";
|
|
4
|
-
/** Class representing a Tenants. */
|
|
5
|
-
export declare class Tenants {
|
|
6
|
-
private readonly client;
|
|
7
|
-
/**
|
|
8
|
-
* Create a Tenants.
|
|
9
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
10
|
-
*/
|
|
11
|
-
constructor(client: SubscriptionClientContext);
|
|
12
|
-
/**
|
|
13
|
-
* Gets the tenants for your account.
|
|
14
|
-
* @param [options] The optional parameters
|
|
15
|
-
* @returns Promise<Models.TenantsListResponse>
|
|
16
|
-
*/
|
|
17
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.TenantsListResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* @param callback The callback
|
|
20
|
-
*/
|
|
21
|
-
list(callback: msRest.ServiceCallback<Models.TenantListResult>): void;
|
|
22
|
-
/**
|
|
23
|
-
* @param options The optional parameters
|
|
24
|
-
* @param callback The callback
|
|
25
|
-
*/
|
|
26
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantListResult>): void;
|
|
27
|
-
/**
|
|
28
|
-
* Gets the tenants for your account.
|
|
29
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
30
|
-
* @param [options] The optional parameters
|
|
31
|
-
* @returns Promise<Models.TenantsListNextResponse>
|
|
32
|
-
*/
|
|
33
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.TenantsListNextResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
36
|
-
* @param callback The callback
|
|
37
|
-
*/
|
|
38
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.TenantListResult>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
41
|
-
* @param options The optional parameters
|
|
42
|
-
* @param callback The callback
|
|
43
|
-
*/
|
|
44
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantListResult>): void;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=tenants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/operations/tenants.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,oCAAoC;AACpC,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAC9E;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI;IACrE;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI;IAUzG;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAC;IAC5G;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI;IAC/F;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,IAAI;CAUpI"}
|
|
@@ -1,77 +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
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
11
|
-
import * as Mappers from "../models/tenantsMappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
/** Class representing a Tenants. */
|
|
14
|
-
var Tenants = /** @class */ (function () {
|
|
15
|
-
/**
|
|
16
|
-
* Create a Tenants.
|
|
17
|
-
* @param {SubscriptionClientContext} client Reference to the service client.
|
|
18
|
-
*/
|
|
19
|
-
function Tenants(client) {
|
|
20
|
-
this.client = client;
|
|
21
|
-
}
|
|
22
|
-
Tenants.prototype.list = function (options, callback) {
|
|
23
|
-
return this.client.sendOperationRequest({
|
|
24
|
-
options: options
|
|
25
|
-
}, listOperationSpec, callback);
|
|
26
|
-
};
|
|
27
|
-
Tenants.prototype.listNext = function (nextPageLink, options, callback) {
|
|
28
|
-
return this.client.sendOperationRequest({
|
|
29
|
-
nextPageLink: nextPageLink,
|
|
30
|
-
options: options
|
|
31
|
-
}, listNextOperationSpec, callback);
|
|
32
|
-
};
|
|
33
|
-
return Tenants;
|
|
34
|
-
}());
|
|
35
|
-
export { Tenants };
|
|
36
|
-
// Operation Specifications
|
|
37
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
38
|
-
var listOperationSpec = {
|
|
39
|
-
httpMethod: "GET",
|
|
40
|
-
path: "tenants",
|
|
41
|
-
queryParameters: [
|
|
42
|
-
Parameters.apiVersion0
|
|
43
|
-
],
|
|
44
|
-
headerParameters: [
|
|
45
|
-
Parameters.acceptLanguage
|
|
46
|
-
],
|
|
47
|
-
responses: {
|
|
48
|
-
200: {
|
|
49
|
-
bodyMapper: Mappers.TenantListResult
|
|
50
|
-
},
|
|
51
|
-
default: {
|
|
52
|
-
bodyMapper: Mappers.CloudError
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
serializer: serializer
|
|
56
|
-
};
|
|
57
|
-
var listNextOperationSpec = {
|
|
58
|
-
httpMethod: "GET",
|
|
59
|
-
baseUrl: "https://management.azure.com",
|
|
60
|
-
path: "{nextLink}",
|
|
61
|
-
urlParameters: [
|
|
62
|
-
Parameters.nextPageLink
|
|
63
|
-
],
|
|
64
|
-
headerParameters: [
|
|
65
|
-
Parameters.acceptLanguage
|
|
66
|
-
],
|
|
67
|
-
responses: {
|
|
68
|
-
200: {
|
|
69
|
-
bodyMapper: Mappers.TenantListResult
|
|
70
|
-
},
|
|
71
|
-
default: {
|
|
72
|
-
bodyMapper: Mappers.CloudError
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
serializer: serializer
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=tenants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../src/operations/tenants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAGnD,oCAAoC;AACpC;IAGE;;;OAGG;IACH,iBAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAiBD,sBAAI,GAAJ,UAAK,OAAqF,EAAE,QAA0D;QACpJ,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,OAAO,SAAA;SACR,EACD,iBAAiB,EACjB,QAAQ,CAAwC,CAAC;IACrD,CAAC;IAoBD,0BAAQ,GAAR,UAAS,YAAoB,EAAE,OAAqF,EAAE,QAA0D;QAC9K,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,YAAY,cAAA;YACZ,OAAO,SAAA;SACR,EACD,qBAAqB,EACrB,QAAQ,CAA4C,CAAC;IACzD,CAAC;IACH,cAAC;AAAD,CAAC,AA9DD,IA8DC;;AAED,2BAA2B;AAC3B,IAAM,UAAU,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAClD,IAAM,iBAAiB,GAAyB;IAC9C,UAAU,EAAE,KAAK;IACjB,IAAI,EAAE,SAAS;IACf,eAAe,EAAE;QACf,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,cAAc;KAC1B;IACD,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,UAAU,YAAA;CACX,CAAC;AAEF,IAAM,qBAAqB,GAAyB;IAClD,UAAU,EAAE,KAAK;IACjB,OAAO,EAAE,8BAA8B;IACvC,IAAI,EAAE,YAAY;IAClB,aAAa,EAAE;QACb,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,cAAc;KAC1B;IACD,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,UAAU,YAAA;CACX,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
2
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
-
import * as Models from "./models";
|
|
4
|
-
import * as Mappers from "./models/mappers";
|
|
5
|
-
import * as operations from "./operations";
|
|
6
|
-
import { SubscriptionClientContext } from "./subscriptionClientContext";
|
|
7
|
-
declare class SubscriptionClient extends SubscriptionClientContext {
|
|
8
|
-
subscriptions: operations.Subscriptions;
|
|
9
|
-
tenants: operations.Tenants;
|
|
10
|
-
subscription: operations.SubscriptionOperations;
|
|
11
|
-
operations: operations.Operations;
|
|
12
|
-
alias: operations.Alias;
|
|
13
|
-
/**
|
|
14
|
-
* Initializes a new instance of the SubscriptionClient class.
|
|
15
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
16
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
17
|
-
* more information about these credentials, see
|
|
18
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
19
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
20
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
21
|
-
* @param [options] The parameter options
|
|
22
|
-
*/
|
|
23
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.SubscriptionClientOptions);
|
|
24
|
-
}
|
|
25
|
-
export { SubscriptionClient, SubscriptionClientContext, Models as SubscriptionModels, Mappers as SubscriptionMappers };
|
|
26
|
-
export * from "./operations";
|
|
27
|
-
//# sourceMappingURL=subscriptionClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionClient.d.ts","sourceRoot":"","sources":["../src/subscriptionClient.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,cAAM,kBAAmB,SAAQ,yBAAyB;IAExD,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;IAC5B,YAAY,EAAE,UAAU,CAAC,sBAAsB,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAClC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IAExB;;;;;;;;;OASG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,yBAAyB;CAQvH;AAID,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,MAAM,IAAI,kBAAkB,EAC5B,OAAO,IAAI,mBAAmB,EAC/B,CAAC;AACF,cAAc,cAAc,CAAC"}
|
|
@@ -1,41 +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
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
import { __extends } from "tslib";
|
|
11
|
-
import * as Models from "./models";
|
|
12
|
-
import * as Mappers from "./models/mappers";
|
|
13
|
-
import * as operations from "./operations";
|
|
14
|
-
import { SubscriptionClientContext } from "./subscriptionClientContext";
|
|
15
|
-
var SubscriptionClient = /** @class */ (function (_super) {
|
|
16
|
-
__extends(SubscriptionClient, _super);
|
|
17
|
-
/**
|
|
18
|
-
* Initializes a new instance of the SubscriptionClient class.
|
|
19
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
20
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
21
|
-
* more information about these credentials, see
|
|
22
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
23
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
24
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
25
|
-
* @param [options] The parameter options
|
|
26
|
-
*/
|
|
27
|
-
function SubscriptionClient(credentials, options) {
|
|
28
|
-
var _this = _super.call(this, credentials, options) || this;
|
|
29
|
-
_this.subscriptions = new operations.Subscriptions(_this);
|
|
30
|
-
_this.tenants = new operations.Tenants(_this);
|
|
31
|
-
_this.subscription = new operations.SubscriptionOperations(_this);
|
|
32
|
-
_this.operations = new operations.Operations(_this);
|
|
33
|
-
_this.alias = new operations.Alias(_this);
|
|
34
|
-
return _this;
|
|
35
|
-
}
|
|
36
|
-
return SubscriptionClient;
|
|
37
|
-
}(SubscriptionClientContext));
|
|
38
|
-
// Operation Specifications
|
|
39
|
-
export { SubscriptionClient, SubscriptionClientContext, Models as SubscriptionModels, Mappers as SubscriptionMappers };
|
|
40
|
-
export * from "./operations";
|
|
41
|
-
//# sourceMappingURL=subscriptionClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionClient.js","sourceRoot":"","sources":["../src/subscriptionClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;AAIH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAGxE;IAAiC,sCAAyB;IAQxD;;;;;;;;;OASG;IACH,4BAAY,WAA8D,EAAE,OAA0C;QAAtH,YACE,kBAAM,WAAW,EAAE,OAAO,CAAC,SAM5B;QALC,KAAI,CAAC,aAAa,GAAG,IAAI,UAAU,CAAC,aAAa,CAAC,KAAI,CAAC,CAAC;QACxD,KAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,KAAI,CAAC,CAAC;QAC5C,KAAI,CAAC,YAAY,GAAG,IAAI,UAAU,CAAC,sBAAsB,CAAC,KAAI,CAAC,CAAC;QAChE,KAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,UAAU,CAAC,KAAI,CAAC,CAAC;QAClD,KAAI,CAAC,KAAK,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC,KAAI,CAAC,CAAC;;IAC1C,CAAC;IACH,yBAAC;AAAD,CAAC,AA1BD,CAAiC,yBAAyB,GA0BzD;AAED,2BAA2B;AAE3B,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,MAAM,IAAI,kBAAkB,EAC5B,OAAO,IAAI,mBAAmB,EAC/B,CAAC;AACF,cAAc,cAAc,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Models from "./models";
|
|
2
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
3
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
4
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
5
|
-
export declare class SubscriptionClientContext extends msRestAzure.AzureServiceClient {
|
|
6
|
-
credentials: msRest.ServiceClientCredentials | TokenCredential;
|
|
7
|
-
/**
|
|
8
|
-
* Initializes a new instance of the SubscriptionClient class.
|
|
9
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
10
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
11
|
-
* more information about these credentials, see
|
|
12
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
13
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
14
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
15
|
-
* @param [options] The parameter options
|
|
16
|
-
*/
|
|
17
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, options?: Models.SubscriptionClientOptions);
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=subscriptionClientContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionClientContext.d.ts","sourceRoot":"","sources":["../src/subscriptionClientContext.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAKvD,qBAAa,yBAA0B,SAAQ,WAAW,CAAC,kBAAkB;IAC3E,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,CAAC;IAE/D;;;;;;;;;OASG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,yBAAyB;CA4BvH"}
|
|
@@ -1,55 +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
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
import { __extends } from "tslib";
|
|
11
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
12
|
-
var packageName = "@azure/arm-subscriptions";
|
|
13
|
-
var packageVersion = "3.1.2";
|
|
14
|
-
var SubscriptionClientContext = /** @class */ (function (_super) {
|
|
15
|
-
__extends(SubscriptionClientContext, _super);
|
|
16
|
-
/**
|
|
17
|
-
* Initializes a new instance of the SubscriptionClient class.
|
|
18
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
19
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
20
|
-
* more information about these credentials, see
|
|
21
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
22
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
23
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
24
|
-
* @param [options] The parameter options
|
|
25
|
-
*/
|
|
26
|
-
function SubscriptionClientContext(credentials, options) {
|
|
27
|
-
var _this = this;
|
|
28
|
-
if (credentials == undefined) {
|
|
29
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
30
|
-
}
|
|
31
|
-
if (!options) {
|
|
32
|
-
options = {};
|
|
33
|
-
}
|
|
34
|
-
if (!options.userAgent) {
|
|
35
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
36
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
37
|
-
}
|
|
38
|
-
_this = _super.call(this, credentials, options) || this;
|
|
39
|
-
_this.acceptLanguage = 'en-US';
|
|
40
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
41
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
42
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
43
|
-
_this.credentials = credentials;
|
|
44
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
45
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
46
|
-
}
|
|
47
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
48
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
49
|
-
}
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
return SubscriptionClientContext;
|
|
53
|
-
}(msRestAzure.AzureServiceClient));
|
|
54
|
-
export { SubscriptionClientContext };
|
|
55
|
-
//# sourceMappingURL=subscriptionClientContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionClientContext.js","sourceRoot":"","sources":["../src/subscriptionClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;AAKH,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAEvD,IAAM,WAAW,GAAG,0BAA0B,CAAC;AAC/C,IAAM,cAAc,GAAG,OAAO,CAAC;AAE/B;IAA+C,6CAA8B;IAG3E;;;;;;;;;OASG;IACH,mCAAY,WAA8D,EAAE,OAA0C;QAAtH,iBA2BC;QA1BC,IAAI,WAAW,IAAI,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,IAAM,gBAAgB,GAAG,WAAW,CAAC,wBAAwB,EAAE,CAAC;YAChE,OAAO,CAAC,SAAS,GAAM,WAAW,SAAI,cAAc,SAAI,gBAAkB,CAAC;SAC5E;QAED,QAAA,kBAAM,WAAW,EAAE,OAAO,CAAC,SAAC;QAE5B,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,KAAI,CAAC,gCAAgC,GAAG,EAAE,CAAC;QAC3C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,KAAI,CAAC,OAAO,IAAI,8BAA8B,CAAC;QACjF,KAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAC5D,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE;YAC3E,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SAC9C;QACD,IAAI,OAAO,CAAC,gCAAgC,KAAK,IAAI,IAAI,OAAO,CAAC,gCAAgC,KAAK,SAAS,EAAE;YAC/G,KAAI,CAAC,gCAAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC;SAClF;;IACH,CAAC;IACH,gCAAC;AAAD,CAAC,AAzCD,CAA+C,WAAW,CAAC,kBAAkB,GAyC5E"}
|
|
@@ -1,18 +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
|
-
|
|
9
|
-
export {
|
|
10
|
-
BaseResource,
|
|
11
|
-
ErrorResponse,
|
|
12
|
-
ErrorResponseBody,
|
|
13
|
-
PutAliasListResult,
|
|
14
|
-
PutAliasRequest,
|
|
15
|
-
PutAliasRequestProperties,
|
|
16
|
-
PutAliasResponse,
|
|
17
|
-
PutAliasResponseProperties
|
|
18
|
-
} from "../models/mappers";
|
|
@@ -1,14 +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
|
-
|
|
9
|
-
export {
|
|
10
|
-
ErrorResponse,
|
|
11
|
-
Operation,
|
|
12
|
-
OperationDisplay,
|
|
13
|
-
OperationListResult
|
|
14
|
-
} from "../models/mappers";
|
|
@@ -1,15 +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
|
-
|
|
9
|
-
export {
|
|
10
|
-
CanceledSubscriptionId,
|
|
11
|
-
EnabledSubscriptionId,
|
|
12
|
-
ErrorResponse,
|
|
13
|
-
RenamedSubscriptionId,
|
|
14
|
-
SubscriptionName
|
|
15
|
-
} from "../models/mappers";
|
|
@@ -1,16 +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
|
-
|
|
9
|
-
export {
|
|
10
|
-
CloudError,
|
|
11
|
-
Location,
|
|
12
|
-
LocationListResult,
|
|
13
|
-
Subscription,
|
|
14
|
-
SubscriptionListResult,
|
|
15
|
-
SubscriptionPolicies
|
|
16
|
-
} from "../models/mappers";
|
|
@@ -1,13 +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
|
-
|
|
9
|
-
export {
|
|
10
|
-
CloudError,
|
|
11
|
-
TenantIdDescription,
|
|
12
|
-
TenantListResult
|
|
13
|
-
} from "../models/mappers";
|