@azure/arm-deviceupdate 1.0.0-beta.2 → 1.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 +2 -6
- package/README.md +1 -1
- package/dist/index.js +20 -15
- 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/samples-dev/accountsCreateSample.js +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +1 -1
- package/dist-esm/samples-dev/accountsHeadSample.js +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/instancesCreateSample.js +1 -1
- package/dist-esm/samples-dev/instancesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/instancesGetSample.js +1 -1
- package/dist-esm/samples-dev/instancesHeadSample.js +1 -1
- package/dist-esm/samples-dev/instancesListByAccountSample.js +1 -1
- package/dist-esm/samples-dev/instancesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js +1 -1
- package/dist-esm/src/deviceUpdate.d.ts.map +1 -1
- package/dist-esm/src/deviceUpdate.js +19 -14
- package/dist-esm/src/deviceUpdate.js.map +1 -1
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/package.json +3 -3
- package/src/deviceUpdate.ts +24 -17
- package/src/models/index.ts +25 -25
- package/src/models/parameters.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 1.0.0
|
|
4
|
-
|
|
5
|
-
- Bug fix
|
|
6
|
-
|
|
7
|
-
## 1.0.0-beta.1 (2022-05-30)
|
|
2
|
+
|
|
3
|
+
## 1.0.0 (2022-08-18)
|
|
8
4
|
|
|
9
5
|
The package of @azure/arm-deviceupdate is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Microsoft Device Update resource provider.
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/deviceupdate/arm-deviceupdate) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-deviceupdate) |
|
|
9
|
-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-deviceupdate
|
|
9
|
+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-deviceupdate) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
package/dist/index.js
CHANGED
|
@@ -1533,7 +1533,7 @@ const $host = {
|
|
|
1533
1533
|
const apiVersion = {
|
|
1534
1534
|
parameterPath: "apiVersion",
|
|
1535
1535
|
mapper: {
|
|
1536
|
-
defaultValue: "2022-
|
|
1536
|
+
defaultValue: "2022-10-01",
|
|
1537
1537
|
isConstant: true,
|
|
1538
1538
|
serializedName: "api-version",
|
|
1539
1539
|
type: {
|
|
@@ -3605,7 +3605,7 @@ class DeviceUpdate extends coreClient__namespace.ServiceClient {
|
|
|
3605
3605
|
requestContentType: "application/json; charset=utf-8",
|
|
3606
3606
|
credential: credentials
|
|
3607
3607
|
};
|
|
3608
|
-
const packageDetails = `azsdk-js-arm-deviceupdate/1.0.0
|
|
3608
|
+
const packageDetails = `azsdk-js-arm-deviceupdate/1.0.0`;
|
|
3609
3609
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3610
3610
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3611
3611
|
: `${packageDetails}`;
|
|
@@ -3616,27 +3616,32 @@ class DeviceUpdate extends coreClient__namespace.ServiceClient {
|
|
|
3616
3616
|
userAgentPrefix
|
|
3617
3617
|
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3618
3618
|
super(optionsWithDefaults);
|
|
3619
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3619
3620
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3620
3621
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3621
|
-
|
|
3622
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3622
3623
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3624
|
+
}
|
|
3625
|
+
if (!options ||
|
|
3626
|
+
!options.pipeline ||
|
|
3627
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3628
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3629
|
+
this.pipeline.removePolicy({
|
|
3630
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3631
|
+
});
|
|
3632
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3633
|
+
credential: credentials,
|
|
3634
|
+
scopes: `${optionsWithDefaults.credentialScopes}`,
|
|
3635
|
+
challengeCallbacks: {
|
|
3636
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3637
|
+
}
|
|
3638
|
+
}));
|
|
3634
3639
|
}
|
|
3635
3640
|
// Parameter assignments
|
|
3636
3641
|
this.subscriptionId = subscriptionId;
|
|
3637
3642
|
// Assigning values to Constant parameters
|
|
3638
3643
|
this.$host = options.$host || "https://management.azure.com";
|
|
3639
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
3644
|
+
this.apiVersion = options.apiVersion || "2022-10-01";
|
|
3640
3645
|
this.accounts = new AccountsImpl(this);
|
|
3641
3646
|
this.instances = new InstancesImpl(this);
|
|
3642
3647
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|