@azure/arm-azurestack 3.0.0-alpha.20260302.1 → 3.0.0-alpha.20260305.1
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/dist/commonjs/azureStackManagementClient.js +134 -118
- package/dist/commonjs/azureStackManagementClient.js.map +7 -1
- package/dist/commonjs/index.js +35 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/models/index.js +77 -81
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.js +1224 -1141
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.js +204 -155
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/cloudManifestFile.js +96 -68
- package/dist/commonjs/operations/cloudManifestFile.js.map +7 -1
- package/dist/commonjs/operations/customerSubscriptions.js +276 -223
- package/dist/commonjs/operations/customerSubscriptions.js.map +7 -1
- package/dist/commonjs/operations/index.js +31 -17
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/linkedSubscriptions.js +383 -324
- package/dist/commonjs/operations/linkedSubscriptions.js.map +7 -1
- package/dist/commonjs/operations/operations.js +137 -110
- package/dist/commonjs/operations/operations.js.map +7 -1
- package/dist/commonjs/operations/products.js +337 -278
- package/dist/commonjs/operations/products.js.map +7 -1
- package/dist/commonjs/operations/registrations.js +430 -376
- package/dist/commonjs/operations/registrations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/cloudManifestFile.js +15 -10
- package/dist/commonjs/operationsInterfaces/cloudManifestFile.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/customerSubscriptions.js +15 -10
- package/dist/commonjs/operationsInterfaces/customerSubscriptions.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.js +31 -17
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/linkedSubscriptions.js +15 -10
- package/dist/commonjs/operationsInterfaces/linkedSubscriptions.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/operations.js +15 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/products.js +15 -10
- package/dist/commonjs/operationsInterfaces/products.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/registrations.js +15 -10
- package/dist/commonjs/operationsInterfaces/registrations.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +39 -30
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/esm/azureStackManagementClient.js +107 -112
- package/dist/esm/azureStackManagementClient.js.map +7 -1
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/models/index.js +49 -78
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.js +1167 -1138
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.js +169 -151
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/cloudManifestFile.js +61 -61
- package/dist/esm/operations/cloudManifestFile.js.map +7 -1
- package/dist/esm/operations/customerSubscriptions.js +240 -215
- package/dist/esm/operations/customerSubscriptions.js.map +7 -1
- package/dist/esm/operations/index.js +0 -8
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/linkedSubscriptions.js +347 -316
- package/dist/esm/operations/linkedSubscriptions.js.map +7 -1
- package/dist/esm/operations/operations.js +101 -102
- package/dist/esm/operations/operations.js.map +7 -1
- package/dist/esm/operations/products.js +301 -270
- package/dist/esm/operations/products.js.map +7 -1
- package/dist/esm/operations/registrations.js +394 -368
- package/dist/esm/operations/registrations.js.map +7 -1
- package/dist/esm/operationsInterfaces/cloudManifestFile.js +0 -9
- package/dist/esm/operationsInterfaces/cloudManifestFile.js.map +7 -1
- package/dist/esm/operationsInterfaces/customerSubscriptions.js +0 -9
- package/dist/esm/operationsInterfaces/customerSubscriptions.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.js +0 -8
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/linkedSubscriptions.js +0 -9
- package/dist/esm/operationsInterfaces/linkedSubscriptions.js.map +7 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +7 -1
- package/dist/esm/operationsInterfaces/products.js +0 -9
- package/dist/esm/operationsInterfaces/products.js.map +7 -1
- package/dist/esm/operationsInterfaces/registrations.js +0 -9
- package/dist/esm/operationsInterfaces/registrations.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -28
- package/dist/esm/pagingHelper.js.map +7 -1
- package/package.json +3 -20
|
@@ -1,122 +1,138 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var azureStackManagementClient_exports = {};
|
|
29
|
+
__export(azureStackManagementClient_exports, {
|
|
30
|
+
AzureStackManagementClient: () => AzureStackManagementClient
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(azureStackManagementClient_exports);
|
|
33
|
+
var coreClient = __toESM(require("@azure/core-client"));
|
|
34
|
+
var coreRestPipeline = __toESM(require("@azure/core-rest-pipeline"));
|
|
35
|
+
var import_operations = require("./operations/index.js");
|
|
15
36
|
class AzureStackManagementClient extends coreClient.ServiceClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
if (subscriptionId === undefined) {
|
|
31
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
32
|
-
}
|
|
33
|
-
// Initializing default values for options
|
|
34
|
-
if (!options) {
|
|
35
|
-
options = {};
|
|
36
|
-
}
|
|
37
|
-
const defaults = {
|
|
38
|
-
requestContentType: "application/json; charset=utf-8",
|
|
39
|
-
credential: credentials
|
|
40
|
-
};
|
|
41
|
-
const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.7`;
|
|
42
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
43
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
44
|
-
: `${packageDetails}`;
|
|
45
|
-
const optionsWithDefaults = {
|
|
46
|
-
...defaults,
|
|
47
|
-
...options,
|
|
48
|
-
userAgentOptions: {
|
|
49
|
-
userAgentPrefix
|
|
50
|
-
},
|
|
51
|
-
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
52
|
-
};
|
|
53
|
-
super(optionsWithDefaults);
|
|
54
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
55
|
-
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
56
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
57
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
58
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
59
|
-
}
|
|
60
|
-
if (!options ||
|
|
61
|
-
!options.pipeline ||
|
|
62
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
63
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
64
|
-
this.pipeline.removePolicy({
|
|
65
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
66
|
-
});
|
|
67
|
-
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
68
|
-
credential: credentials,
|
|
69
|
-
scopes: optionsWithDefaults.credentialScopes ??
|
|
70
|
-
`${optionsWithDefaults.endpoint}/.default`,
|
|
71
|
-
challengeCallbacks: {
|
|
72
|
-
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
73
|
-
}
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
// Parameter assignments
|
|
77
|
-
this.subscriptionId = subscriptionId;
|
|
78
|
-
// Assigning values to Constant parameters
|
|
79
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
80
|
-
this.apiVersion = options.apiVersion || "2020-06-01-preview";
|
|
81
|
-
this.operations = new index_js_1.OperationsImpl(this);
|
|
82
|
-
this.cloudManifestFile = new index_js_1.CloudManifestFileImpl(this);
|
|
83
|
-
this.customerSubscriptions = new index_js_1.CustomerSubscriptionsImpl(this);
|
|
84
|
-
this.products = new index_js_1.ProductsImpl(this);
|
|
85
|
-
this.registrations = new index_js_1.RegistrationsImpl(this);
|
|
86
|
-
this.linkedSubscriptions = new index_js_1.LinkedSubscriptionsImpl(this);
|
|
87
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
37
|
+
$host;
|
|
38
|
+
apiVersion;
|
|
39
|
+
subscriptionId;
|
|
40
|
+
/**
|
|
41
|
+
* Initializes a new instance of the AzureStackManagementClient class.
|
|
42
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
43
|
+
* @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription.
|
|
44
|
+
* The subscription ID forms part of the URI for every service call.
|
|
45
|
+
* @param options The parameter options
|
|
46
|
+
*/
|
|
47
|
+
constructor(credentials, subscriptionId, options) {
|
|
48
|
+
if (credentials === void 0) {
|
|
49
|
+
throw new Error("'credentials' cannot be null");
|
|
88
50
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (!apiVersion) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const apiVersionPolicy = {
|
|
95
|
-
name: "CustomApiVersionPolicy",
|
|
96
|
-
async sendRequest(request, next) {
|
|
97
|
-
const param = request.url.split("?");
|
|
98
|
-
if (param.length > 1) {
|
|
99
|
-
const newParams = param[1].split("&").map((item) => {
|
|
100
|
-
if (item.indexOf("api-version") > -1) {
|
|
101
|
-
return "api-version=" + apiVersion;
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return item;
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
108
|
-
}
|
|
109
|
-
return next(request);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
51
|
+
if (subscriptionId === void 0) {
|
|
52
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
113
53
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
54
|
+
if (!options) {
|
|
55
|
+
options = {};
|
|
56
|
+
}
|
|
57
|
+
const defaults = {
|
|
58
|
+
requestContentType: "application/json; charset=utf-8",
|
|
59
|
+
credential: credentials
|
|
60
|
+
};
|
|
61
|
+
const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.7`;
|
|
62
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
|
|
63
|
+
const optionsWithDefaults = {
|
|
64
|
+
...defaults,
|
|
65
|
+
...options,
|
|
66
|
+
userAgentOptions: {
|
|
67
|
+
userAgentPrefix
|
|
68
|
+
},
|
|
69
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
70
|
+
};
|
|
71
|
+
super(optionsWithDefaults);
|
|
72
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
73
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
74
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
75
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
76
|
+
(pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
|
|
80
|
+
this.pipeline.removePolicy({
|
|
81
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
82
|
+
});
|
|
83
|
+
this.pipeline.addPolicy(
|
|
84
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
85
|
+
credential: credentials,
|
|
86
|
+
scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
|
|
87
|
+
challengeCallbacks: {
|
|
88
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
this.subscriptionId = subscriptionId;
|
|
94
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
95
|
+
this.apiVersion = options.apiVersion || "2020-06-01-preview";
|
|
96
|
+
this.operations = new import_operations.OperationsImpl(this);
|
|
97
|
+
this.cloudManifestFile = new import_operations.CloudManifestFileImpl(this);
|
|
98
|
+
this.customerSubscriptions = new import_operations.CustomerSubscriptionsImpl(this);
|
|
99
|
+
this.products = new import_operations.ProductsImpl(this);
|
|
100
|
+
this.registrations = new import_operations.RegistrationsImpl(this);
|
|
101
|
+
this.linkedSubscriptions = new import_operations.LinkedSubscriptionsImpl(this);
|
|
102
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
103
|
+
}
|
|
104
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
105
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
106
|
+
if (!apiVersion) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const apiVersionPolicy = {
|
|
110
|
+
name: "CustomApiVersionPolicy",
|
|
111
|
+
async sendRequest(request, next) {
|
|
112
|
+
const param = request.url.split("?");
|
|
113
|
+
if (param.length > 1) {
|
|
114
|
+
const newParams = param[1].split("&").map((item) => {
|
|
115
|
+
if (item.indexOf("api-version") > -1) {
|
|
116
|
+
return "api-version=" + apiVersion;
|
|
117
|
+
} else {
|
|
118
|
+
return item;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
122
|
+
}
|
|
123
|
+
return next(request);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
127
|
+
}
|
|
128
|
+
operations;
|
|
129
|
+
cloudManifestFile;
|
|
130
|
+
customerSubscriptions;
|
|
131
|
+
products;
|
|
132
|
+
registrations;
|
|
133
|
+
linkedSubscriptions;
|
|
120
134
|
}
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
136
|
+
0 && (module.exports = {
|
|
137
|
+
AzureStackManagementClient
|
|
138
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/azurestack/arm-azurestack/src/azureStackManagementClient.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n CloudManifestFileImpl,\n CustomerSubscriptionsImpl,\n ProductsImpl,\n RegistrationsImpl,\n LinkedSubscriptionsImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n CloudManifestFile,\n CustomerSubscriptions,\n Products,\n Registrations,\n LinkedSubscriptions\n} from \"./operationsInterfaces/index.js\";\nimport { AzureStackManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureStackManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureStackManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureStackManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureStackManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.7`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-06-01-preview\";\n this.operations = new OperationsImpl(this);\n this.cloudManifestFile = new CloudManifestFileImpl(this);\n this.customerSubscriptions = new CustomerSubscriptionsImpl(this);\n this.products = new ProductsImpl(this);\n this.registrations = new RegistrationsImpl(this);\n this.linkedSubscriptions = new LinkedSubscriptionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n cloudManifestFile: CloudManifestFile;\n customerSubscriptions: CustomerSubscriptions;\n products: Products;\n registrations: Registrations;\n linkedSubscriptions: LinkedSubscriptions;\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -1,19 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
|
+
AzureStackManagementClient: () => import_azureStackManagementClient.AzureStackManagementClient,
|
|
22
|
+
getContinuationToken: () => import_pagingHelper.getContinuationToken
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(src_exports);
|
|
25
|
+
var import_pagingHelper = require("./pagingHelper.js");
|
|
26
|
+
__reExport(src_exports, require("./models/index.js"), module.exports);
|
|
27
|
+
var import_azureStackManagementClient = require("./azureStackManagementClient.js");
|
|
28
|
+
__reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
AzureStackManagementClient,
|
|
32
|
+
getContinuationToken,
|
|
33
|
+
...require("./models/index.js"),
|
|
34
|
+
...require("./operationsInterfaces/index.js")
|
|
35
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/azurestack/arm-azurestack/src/index.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AzureStackManagementClient } from \"./azureStackManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,wCAA2C;AAC3C,wBAAc,4CAZd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,81 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
var KnownComputeRole
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/** Global */
|
|
79
|
-
KnownLocation["Global"] = "global";
|
|
80
|
-
})(KnownLocation || (exports.KnownLocation = KnownLocation = {}));
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var models_exports = {};
|
|
19
|
+
__export(models_exports, {
|
|
20
|
+
KnownCategory: () => KnownCategory,
|
|
21
|
+
KnownCompatibilityIssue: () => KnownCompatibilityIssue,
|
|
22
|
+
KnownComputeRole: () => KnownComputeRole,
|
|
23
|
+
KnownCreatedByType: () => KnownCreatedByType,
|
|
24
|
+
KnownLocation: () => KnownLocation,
|
|
25
|
+
KnownOperatingSystem: () => KnownOperatingSystem
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(models_exports);
|
|
28
|
+
var KnownCreatedByType = /* @__PURE__ */ ((KnownCreatedByType2) => {
|
|
29
|
+
KnownCreatedByType2["User"] = "User";
|
|
30
|
+
KnownCreatedByType2["Application"] = "Application";
|
|
31
|
+
KnownCreatedByType2["ManagedIdentity"] = "ManagedIdentity";
|
|
32
|
+
KnownCreatedByType2["Key"] = "Key";
|
|
33
|
+
return KnownCreatedByType2;
|
|
34
|
+
})(KnownCreatedByType || {});
|
|
35
|
+
var KnownCompatibilityIssue = /* @__PURE__ */ ((KnownCompatibilityIssue2) => {
|
|
36
|
+
KnownCompatibilityIssue2["HigherDeviceVersionRequired"] = "HigherDeviceVersionRequired";
|
|
37
|
+
KnownCompatibilityIssue2["LowerDeviceVersionRequired"] = "LowerDeviceVersionRequired";
|
|
38
|
+
KnownCompatibilityIssue2["CapacityBillingModelRequired"] = "CapacityBillingModelRequired";
|
|
39
|
+
KnownCompatibilityIssue2["PayAsYouGoBillingModelRequired"] = "PayAsYouGoBillingModelRequired";
|
|
40
|
+
KnownCompatibilityIssue2["DevelopmentBillingModelRequired"] = "DevelopmentBillingModelRequired";
|
|
41
|
+
KnownCompatibilityIssue2["AzureADIdentitySystemRequired"] = "AzureADIdentitySystemRequired";
|
|
42
|
+
KnownCompatibilityIssue2["AdfsIdentitySystemRequired"] = "ADFSIdentitySystemRequired";
|
|
43
|
+
KnownCompatibilityIssue2["ConnectionToInternetRequired"] = "ConnectionToInternetRequired";
|
|
44
|
+
KnownCompatibilityIssue2["ConnectionToAzureRequired"] = "ConnectionToAzureRequired";
|
|
45
|
+
KnownCompatibilityIssue2["DisconnectedEnvironmentRequired"] = "DisconnectedEnvironmentRequired";
|
|
46
|
+
return KnownCompatibilityIssue2;
|
|
47
|
+
})(KnownCompatibilityIssue || {});
|
|
48
|
+
var KnownComputeRole = /* @__PURE__ */ ((KnownComputeRole2) => {
|
|
49
|
+
KnownComputeRole2["None"] = "None";
|
|
50
|
+
KnownComputeRole2["IaaS"] = "IaaS";
|
|
51
|
+
KnownComputeRole2["PaaS"] = "PaaS";
|
|
52
|
+
return KnownComputeRole2;
|
|
53
|
+
})(KnownComputeRole || {});
|
|
54
|
+
var KnownOperatingSystem = /* @__PURE__ */ ((KnownOperatingSystem2) => {
|
|
55
|
+
KnownOperatingSystem2["None"] = "None";
|
|
56
|
+
KnownOperatingSystem2["Windows"] = "Windows";
|
|
57
|
+
KnownOperatingSystem2["Linux"] = "Linux";
|
|
58
|
+
return KnownOperatingSystem2;
|
|
59
|
+
})(KnownOperatingSystem || {});
|
|
60
|
+
var KnownCategory = /* @__PURE__ */ ((KnownCategory2) => {
|
|
61
|
+
KnownCategory2["AzureAD"] = "AzureAD";
|
|
62
|
+
KnownCategory2["Adfs"] = "ADFS";
|
|
63
|
+
return KnownCategory2;
|
|
64
|
+
})(KnownCategory || {});
|
|
65
|
+
var KnownLocation = /* @__PURE__ */ ((KnownLocation2) => {
|
|
66
|
+
KnownLocation2["Global"] = "global";
|
|
67
|
+
return KnownLocation2;
|
|
68
|
+
})(KnownLocation || {});
|
|
69
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
+
0 && (module.exports = {
|
|
71
|
+
KnownCategory,
|
|
72
|
+
KnownCompatibilityIssue,
|
|
73
|
+
KnownComputeRole,
|
|
74
|
+
KnownCreatedByType,
|
|
75
|
+
KnownLocation,
|
|
76
|
+
KnownOperatingSystem
|
|
77
|
+
});
|