@azure/arm-sqlvirtualmachine 5.0.0-beta.3 → 5.0.0-beta.4
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 +2 -2
- package/dist/index.js +51 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js +6 -2
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +15 -5
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +20 -2
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/package.json +4 -4
- package/src/operations/availabilityGroupListeners.ts +6 -2
- package/src/operations/sqlVirtualMachineGroups.ts +9 -3
- package/src/operations/sqlVirtualMachines.ts +15 -5
- package/src/sqlVirtualMachineManagementClient.ts +27 -2
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 5.0.0-beta.
|
|
3
|
+
## 5.0.0-beta.4 (2022-05-01)
|
|
4
4
|
|
|
5
|
-
The package of @azure/arm-sqlvirtualmachine is using our next generation design principles since version 5.0.0-beta.
|
|
5
|
+
The package of @azure/arm-sqlvirtualmachine is using our next generation design principles since version 5.0.0-beta.4, which contains breaking changes.
|
|
6
6
|
|
|
7
7
|
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
8
8
|
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
@@ -25,6 +26,7 @@ function _interopNamespace(e) {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
28
30
|
|
|
29
31
|
/*
|
|
30
32
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1810,10 +1812,12 @@ class AvailabilityGroupListenersImpl {
|
|
|
1810
1812
|
parameters,
|
|
1811
1813
|
options
|
|
1812
1814
|
}, createOrUpdateOperationSpec$2);
|
|
1813
|
-
|
|
1815
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1814
1816
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1815
1817
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1816
1818
|
});
|
|
1819
|
+
yield poller.poll();
|
|
1820
|
+
return poller;
|
|
1817
1821
|
});
|
|
1818
1822
|
}
|
|
1819
1823
|
/**
|
|
@@ -1869,10 +1873,12 @@ class AvailabilityGroupListenersImpl {
|
|
|
1869
1873
|
availabilityGroupListenerName,
|
|
1870
1874
|
options
|
|
1871
1875
|
}, deleteOperationSpec$2);
|
|
1872
|
-
|
|
1876
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1873
1877
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1874
1878
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1875
1879
|
});
|
|
1880
|
+
yield poller.poll();
|
|
1881
|
+
return poller;
|
|
1876
1882
|
});
|
|
1877
1883
|
}
|
|
1878
1884
|
/**
|
|
@@ -2288,10 +2294,12 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2288
2294
|
};
|
|
2289
2295
|
});
|
|
2290
2296
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
2291
|
-
|
|
2297
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2292
2298
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2293
2299
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2294
2300
|
});
|
|
2301
|
+
yield poller.poll();
|
|
2302
|
+
return poller;
|
|
2295
2303
|
});
|
|
2296
2304
|
}
|
|
2297
2305
|
/**
|
|
@@ -2340,10 +2348,12 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2340
2348
|
};
|
|
2341
2349
|
});
|
|
2342
2350
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, options }, deleteOperationSpec$1);
|
|
2343
|
-
|
|
2351
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2344
2352
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2345
2353
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2346
2354
|
});
|
|
2355
|
+
yield poller.poll();
|
|
2356
|
+
return poller;
|
|
2347
2357
|
});
|
|
2348
2358
|
}
|
|
2349
2359
|
/**
|
|
@@ -2392,10 +2402,12 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2392
2402
|
};
|
|
2393
2403
|
});
|
|
2394
2404
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, updateOperationSpec$1);
|
|
2395
|
-
|
|
2405
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2396
2406
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2397
2407
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2398
2408
|
});
|
|
2409
|
+
yield poller.poll();
|
|
2410
|
+
return poller;
|
|
2399
2411
|
});
|
|
2400
2412
|
}
|
|
2401
2413
|
/**
|
|
@@ -2826,10 +2838,12 @@ class SqlVirtualMachinesImpl {
|
|
|
2826
2838
|
};
|
|
2827
2839
|
});
|
|
2828
2840
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, redeployOperationSpec);
|
|
2829
|
-
|
|
2841
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2830
2842
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2831
2843
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2832
2844
|
});
|
|
2845
|
+
yield poller.poll();
|
|
2846
|
+
return poller;
|
|
2833
2847
|
});
|
|
2834
2848
|
}
|
|
2835
2849
|
/**
|
|
@@ -2888,10 +2902,12 @@ class SqlVirtualMachinesImpl {
|
|
|
2888
2902
|
};
|
|
2889
2903
|
});
|
|
2890
2904
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec);
|
|
2891
|
-
|
|
2905
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2892
2906
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2893
2907
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2894
2908
|
});
|
|
2909
|
+
yield poller.poll();
|
|
2910
|
+
return poller;
|
|
2895
2911
|
});
|
|
2896
2912
|
}
|
|
2897
2913
|
/**
|
|
@@ -2940,10 +2956,12 @@ class SqlVirtualMachinesImpl {
|
|
|
2940
2956
|
};
|
|
2941
2957
|
});
|
|
2942
2958
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec);
|
|
2943
|
-
|
|
2959
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2944
2960
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2945
2961
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2946
2962
|
});
|
|
2963
|
+
yield poller.poll();
|
|
2964
|
+
return poller;
|
|
2947
2965
|
});
|
|
2948
2966
|
}
|
|
2949
2967
|
/**
|
|
@@ -2992,10 +3010,12 @@ class SqlVirtualMachinesImpl {
|
|
|
2992
3010
|
};
|
|
2993
3011
|
});
|
|
2994
3012
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec);
|
|
2995
|
-
|
|
3013
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2996
3014
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2997
3015
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2998
3016
|
});
|
|
3017
|
+
yield poller.poll();
|
|
3018
|
+
return poller;
|
|
2999
3019
|
});
|
|
3000
3020
|
}
|
|
3001
3021
|
/**
|
|
@@ -3053,10 +3073,12 @@ class SqlVirtualMachinesImpl {
|
|
|
3053
3073
|
};
|
|
3054
3074
|
});
|
|
3055
3075
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, startAssessmentOperationSpec);
|
|
3056
|
-
|
|
3076
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3057
3077
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3058
3078
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3059
3079
|
});
|
|
3080
|
+
yield poller.poll();
|
|
3081
|
+
return poller;
|
|
3060
3082
|
});
|
|
3061
3083
|
}
|
|
3062
3084
|
/**
|
|
@@ -3346,6 +3368,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3346
3368
|
* @param options The parameter options
|
|
3347
3369
|
*/
|
|
3348
3370
|
constructor(credentials, subscriptionId, options) {
|
|
3371
|
+
var _a, _b;
|
|
3349
3372
|
if (credentials === undefined) {
|
|
3350
3373
|
throw new Error("'credentials' cannot be null");
|
|
3351
3374
|
}
|
|
@@ -3360,7 +3383,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3360
3383
|
requestContentType: "application/json; charset=utf-8",
|
|
3361
3384
|
credential: credentials
|
|
3362
3385
|
};
|
|
3363
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.
|
|
3386
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.4`;
|
|
3364
3387
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3365
3388
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3366
3389
|
: `${packageDetails}`;
|
|
@@ -3369,8 +3392,24 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3369
3392
|
}
|
|
3370
3393
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3371
3394
|
userAgentPrefix
|
|
3372
|
-
}, baseUri: options.endpoint
|
|
3395
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3373
3396
|
super(optionsWithDefaults);
|
|
3397
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3398
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3399
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3400
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3401
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
3402
|
+
this.pipeline.removePolicy({
|
|
3403
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3404
|
+
});
|
|
3405
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3406
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
3407
|
+
challengeCallbacks: {
|
|
3408
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3409
|
+
}
|
|
3410
|
+
}));
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3374
3413
|
// Parameter assignments
|
|
3375
3414
|
this.subscriptionId = subscriptionId;
|
|
3376
3415
|
// Assigning values to Constant parameters
|