Skip to content

Commit 7215f56

Browse files
author
SDKAuto
committed
CodeGen from PR 16041 in Azure/azure-rest-api-specs
Merge 990b015911b4d9b0479d40b4d7b496af40a9cfc3 into fcc24e69962d609b66f40d4f266d9a6a2202ea22
1 parent af0330b commit 7215f56

30 files changed

+3448
-378
lines changed

sdk/storagesync/arm-storagesync/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/storagesync/arm-storagesync/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure StorageSyncManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageSyncManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for StorageSyncManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-storagesync @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
4240

4341
##### Sample code
@@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new StorageSyncManagementClient(creds, subscriptionId);
54-
5552
client.operations.list().then((result) => {
5653
console.log("The result is:");
5754
console.log(result);
@@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8683
const credential = new InteractiveBrowserCredential(
8784
{
8885
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9087
});
9188
const client = new Azure.ArmStoragesync.StorageSyncManagementClient(creds, subscriptionId);
9289
client.operations.list().then((result) => {

sdk/storagesync/arm-storagesync/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/storagesync/arm-storagesync",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storagesync/arm-storagesync",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/storagesync/arm-storagesync/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -12,7 +12,10 @@ export {
1212
BaseResource,
1313
CloudEndpoint,
1414
CloudEndpointArray,
15+
CloudEndpointChangeEnumerationActivity,
16+
CloudEndpointChangeEnumerationStatus,
1517
CloudEndpointCreateParameters,
18+
CloudEndpointLastChangeEnumerationStatus,
1619
CloudEndpointsCreateHeaders,
1720
CloudEndpointsDeleteHeaders,
1821
CloudEndpointsGetHeaders,
@@ -23,15 +26,26 @@ export {
2326
CloudEndpointsPreRestoreHeaders,
2427
CloudEndpointsRestoreheartbeatHeaders,
2528
CloudEndpointsTriggerChangeDetectionHeaders,
29+
CloudTieringCachePerformance,
30+
CloudTieringDatePolicyStatus,
31+
CloudTieringFilesNotTiering,
32+
CloudTieringSpaceSavings,
33+
CloudTieringVolumeFreeSpacePolicyStatus,
34+
FilesNotTieringError,
2635
PostBackupResponse,
2736
PostRestoreRequest,
2837
PreRestoreRequest,
38+
PrivateEndpoint,
39+
PrivateEndpointConnection,
40+
PrivateLinkResource,
41+
PrivateLinkServiceConnectionState,
2942
ProxyResource,
3043
RegisteredServer,
3144
RegisteredServerCreateParameters,
3245
Resource,
3346
RestoreFileSpec,
3447
ServerEndpoint,
48+
ServerEndpointBackgroundDataDownloadActivity,
3549
ServerEndpointCloudTieringStatus,
3650
ServerEndpointCreateParameters,
3751
ServerEndpointFilesNotSyncingError,
@@ -43,6 +57,7 @@ export {
4357
StorageSyncApiError,
4458
StorageSyncError,
4559
StorageSyncErrorDetails,
60+
StorageSyncInnerErrorDetails,
4661
StorageSyncService,
4762
SyncGroup,
4863
SyncGroupCreateParameters,

0 commit comments

Comments
 (0)