@azure/arm-standbypool 1.0.0-beta.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/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2605 -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/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +53 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js +57 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js +39 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js +56 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js +48 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js +39 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js +47 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js +40 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +55 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +581 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +62 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +38 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +877 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +143 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -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 +133 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.d.ts +99 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.d.ts.map +1 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.js +502 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.js.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts +99 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.js +502 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.js.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachines.d.ts +47 -0
- package/dist-esm/src/operations/standbyVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachines.js +188 -0
- package/dist-esm/src/operations/standbyVirtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -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/standbyContainerGroupPools.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js +9 -0
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js +9 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/standbyPoolManagementClient.d.ts +23 -0
- package/dist-esm/src/standbyPoolManagementClient.d.ts.map +1 -0
- package/dist-esm/src/standbyPoolManagementClient.js +103 -0
- package/dist-esm/src/standbyPoolManagementClient.js.map +1 -0
- package/dist-esm/test/standbypool_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/standbypool_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/standbypool_operations_test.spec.js +73 -0
- package/dist-esm/test/standbypool_operations_test.spec.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-standbypool.api.md +520 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +695 -0
- package/src/models/mappers.ts +947 -0
- package/src/models/parameters.ts +167 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/standbyContainerGroupPools.ts +650 -0
- package/src/operations/standbyVirtualMachinePools.ts +650 -0
- package/src/operations/standbyVirtualMachines.ts +252 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/standbyContainerGroupPools.ts +127 -0
- package/src/operationsInterfaces/standbyVirtualMachinePools.ts +127 -0
- package/src/operationsInterfaces/standbyVirtualMachines.ts +44 -0
- package/src/pagingHelper.ts +39 -0
- package/src/standbyPoolManagementClient.ts +157 -0
- package/tsconfig.json +33 -0
- package/types/arm-standbypool.d.ts +853 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
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
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import { OperationsImpl, StandbyContainerGroupPoolsImpl, StandbyVirtualMachinePoolsImpl, StandbyVirtualMachinesImpl, } from "./operations";
|
|
12
|
+
export class StandbyPoolManagementClient extends coreClient.ServiceClient {
|
|
13
|
+
/**
|
|
14
|
+
* Initializes a new instance of the StandbyPoolManagementClient class.
|
|
15
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
16
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
17
|
+
* @param options The parameter options
|
|
18
|
+
*/
|
|
19
|
+
constructor(credentials, subscriptionId, options) {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
if (credentials === undefined) {
|
|
22
|
+
throw new Error("'credentials' cannot be null");
|
|
23
|
+
}
|
|
24
|
+
if (subscriptionId === undefined) {
|
|
25
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
26
|
+
}
|
|
27
|
+
// Initializing default values for options
|
|
28
|
+
if (!options) {
|
|
29
|
+
options = {};
|
|
30
|
+
}
|
|
31
|
+
const defaults = {
|
|
32
|
+
requestContentType: "application/json; charset=utf-8",
|
|
33
|
+
credential: credentials,
|
|
34
|
+
};
|
|
35
|
+
const packageDetails = `azsdk-js-arm-standbypool/1.0.0-beta.1`;
|
|
36
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
|
+
: `${packageDetails}`;
|
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
+
userAgentPrefix,
|
|
41
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
|
+
super(optionsWithDefaults);
|
|
43
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
48
|
+
}
|
|
49
|
+
if (!options ||
|
|
50
|
+
!options.pipeline ||
|
|
51
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
53
|
+
this.pipeline.removePolicy({
|
|
54
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
55
|
+
});
|
|
56
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
|
+
credential: credentials,
|
|
58
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
59
|
+
challengeCallbacks: {
|
|
60
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
61
|
+
},
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
// Parameter assignments
|
|
65
|
+
this.subscriptionId = subscriptionId;
|
|
66
|
+
// Assigning values to Constant parameters
|
|
67
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
68
|
+
this.apiVersion = options.apiVersion || "2023-12-01-preview";
|
|
69
|
+
this.operations = new OperationsImpl(this);
|
|
70
|
+
this.standbyContainerGroupPools = new StandbyContainerGroupPoolsImpl(this);
|
|
71
|
+
this.standbyVirtualMachinePools = new StandbyVirtualMachinePoolsImpl(this);
|
|
72
|
+
this.standbyVirtualMachines = new StandbyVirtualMachinesImpl(this);
|
|
73
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
74
|
+
}
|
|
75
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
76
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
77
|
+
if (!apiVersion) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const apiVersionPolicy = {
|
|
81
|
+
name: "CustomApiVersionPolicy",
|
|
82
|
+
sendRequest(request, next) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const param = request.url.split("?");
|
|
85
|
+
if (param.length > 1) {
|
|
86
|
+
const newParams = param[1].split("&").map((item) => {
|
|
87
|
+
if (item.indexOf("api-version") > -1) {
|
|
88
|
+
return "api-version=" + apiVersion;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return item;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
95
|
+
}
|
|
96
|
+
return next(request);
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=standbyPoolManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyPoolManagementClient.js","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IAKvE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAmD;;QAEnD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ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G,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gCACrC,OAAO,cAAc,GAAG,UAAU,CAAC;4BACrC,CAAC;iCAAM,CAAC;gCACN,OAAO,IAAI,CAAC;4BACd,CAAC;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACrD,CAAC;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAMF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbypool_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/standbypool_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
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
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { StandbyPoolManagementClient } from "../src/standbyPoolManagementClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe.skip("StandbyPool test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let resourcename;
|
|
32
|
+
beforeEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
recorder = new Recorder(this.currentTest);
|
|
35
|
+
yield recorder.start(recorderOptions);
|
|
36
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
37
|
+
// This is an example of how the environment variables are used
|
|
38
|
+
const credential = createTestCredential();
|
|
39
|
+
client = new StandbyPoolManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
40
|
+
location = "eastus";
|
|
41
|
+
resourceGroup = "myjstest";
|
|
42
|
+
resourcename = "resourcetest";
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
afterEach(function () {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield recorder.stop();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
it("operations list test", function () {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
var _a, e_1, _b, _c;
|
|
53
|
+
const resArray = new Array();
|
|
54
|
+
try {
|
|
55
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
56
|
+
_c = _f.value;
|
|
57
|
+
_d = false;
|
|
58
|
+
let item = _c;
|
|
59
|
+
resArray.push(item);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_1) throw e_1.error; }
|
|
68
|
+
}
|
|
69
|
+
assert.notEqual(resArray.length, 0);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=standbypool_operations_test.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbypool_operations_test.spec.js","sourceRoot":"","sources":["../../test/standbypool_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACrC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAmC,CAAC;IACxC,IAAI,QAAg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Microsoft Corporation",
|
|
5
|
+
"description": "A generated SDK for StandbyPoolManagementClient.",
|
|
6
|
+
"version": "1.0.0-beta.1",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18.0.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@azure/core-lro": "^2.5.4",
|
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
|
+
"@azure/core-auth": "^1.6.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.14.0",
|
|
17
|
+
"tslib": "^2.2.0"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"node",
|
|
21
|
+
"azure",
|
|
22
|
+
"typescript",
|
|
23
|
+
"browser",
|
|
24
|
+
"isomorphic"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-standbypool.d.ts",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
+
"mkdirp": "^3.0.1",
|
|
33
|
+
"typescript": "~5.4.5",
|
|
34
|
+
"uglify-js": "^3.4.9",
|
|
35
|
+
"rimraf": "^5.0.0",
|
|
36
|
+
"dotenv": "^16.0.0",
|
|
37
|
+
"@azure/dev-tool": "^1.0.0",
|
|
38
|
+
"@azure/identity": "^4.0.1",
|
|
39
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
40
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
41
|
+
"mocha": "^10.0.0",
|
|
42
|
+
"@types/mocha": "^10.0.0",
|
|
43
|
+
"esm": "^3.2.18",
|
|
44
|
+
"@types/chai": "^4.2.8",
|
|
45
|
+
"chai": "^4.2.0",
|
|
46
|
+
"cross-env": "^7.0.2",
|
|
47
|
+
"@types/node": "^18.0.0",
|
|
48
|
+
"ts-node": "^10.0.0"
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
53
|
+
},
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"dist/**/*.js",
|
|
59
|
+
"dist/**/*.js.map",
|
|
60
|
+
"dist/**/*.d.ts",
|
|
61
|
+
"dist/**/*.d.ts.map",
|
|
62
|
+
"dist-esm/**/*.js",
|
|
63
|
+
"dist-esm/**/*.js.map",
|
|
64
|
+
"dist-esm/**/*.d.ts",
|
|
65
|
+
"dist-esm/**/*.d.ts.map",
|
|
66
|
+
"src/**/*.ts",
|
|
67
|
+
"README.md",
|
|
68
|
+
"LICENSE",
|
|
69
|
+
"tsconfig.json",
|
|
70
|
+
"review/*",
|
|
71
|
+
"CHANGELOG.md",
|
|
72
|
+
"types/*"
|
|
73
|
+
],
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
|
|
76
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
77
|
+
"prepack": "npm run build",
|
|
78
|
+
"pack": "npm pack 2>&1",
|
|
79
|
+
"extract-api": "api-extractor run --local",
|
|
80
|
+
"lint": "echo skipped",
|
|
81
|
+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
82
|
+
"build:node": "echo skipped",
|
|
83
|
+
"build:browser": "echo skipped",
|
|
84
|
+
"build:test": "echo skipped",
|
|
85
|
+
"build:samples": "echo skipped.",
|
|
86
|
+
"check-format": "echo skipped",
|
|
87
|
+
"execute:samples": "echo skipped",
|
|
88
|
+
"format": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
90
|
+
"test:node": "echo skipped",
|
|
91
|
+
"test:browser": "echo skipped",
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
|
+
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
97
|
+
"integration-test:browser": "echo skipped"
|
|
98
|
+
},
|
|
99
|
+
"sideEffects": false,
|
|
100
|
+
"//metadata": {
|
|
101
|
+
"constantPaths": [
|
|
102
|
+
{
|
|
103
|
+
"path": "src/standbyPoolManagementClient.ts",
|
|
104
|
+
"prefix": "packageDetails"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"autoPublish": true,
|
|
109
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool",
|
|
110
|
+
"//sampleConfiguration": {
|
|
111
|
+
"productName": "",
|
|
112
|
+
"productSlugs": [
|
|
113
|
+
"azure"
|
|
114
|
+
],
|
|
115
|
+
"disableDocsMs": true,
|
|
116
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview"
|
|
117
|
+
}
|
|
118
|
+
}
|