Skip to content

Commit

Permalink
CodeGen from PR 20517 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 27f6dd0ade9e8696792b61a666c94995f67948b3 into f96a42b9777a4bb55e6385e7ebc68fd2c215af3c
  • Loading branch information
SDKAuto committed Sep 1, 2022
1 parent fd849fc commit d70a1d0
Show file tree
Hide file tree
Showing 14 changed files with 697 additions and 266 deletions.
33 changes: 17 additions & 16 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 38 additions & 10 deletions sdk/storagesync/arm-storagesync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
# Release History

## 10.0.0 (2022-09-01)

**Features**

## 9.0.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation CloudEndpoints.afsShareMetadataCertificatePublicKeys
- Added Interface CloudEndpoint
- Added Interface CloudEndpointAfsShareMetadataCertificatePublicKeys
- Added Interface CloudEndpointCreateParameters
- Added Interface CloudEndpointsAfsShareMetadataCertificatePublicKeysHeaders
- Added Interface CloudEndpointsAfsShareMetadataCertificatePublicKeysOptionalParams
- Added Interface CloudTieringLowDiskMode
- Added Interface PrivateEndpointConnection
- Added Interface PrivateLinkResource
- Added Interface ProxyResource
- Added Interface RegisteredServer
- Added Interface RegisteredServerCreateParameters
- Added Interface ServerEndpoint
- Added Interface ServerEndpointCreateParameters
- Added Interface StorageSyncService
- Added Interface SyncGroup
- Added Interface SyncGroupCreateParameters
- Added Interface SystemData
- Added Interface TrackedResource
- Added Interface Workflow
- Added Type Alias CloudEndpointsAfsShareMetadataCertificatePublicKeysResponse
- Added Type Alias CloudTieringLowDiskModeState
- Added Type Alias CreatedByType
- Interface OperationResourceMetricSpecification has a new optional parameter supportedAggregationTypes
- Interface Resource has a new optional parameter systemData
- Interface ServerEndpointCloudTieringStatus has a new optional parameter lowDiskMode
- Interface StorageSyncApiError has a new optional parameter innererror
- Added Enum KnownCloudTieringLowDiskModeState
- Added Enum KnownCreatedByType

**Breaking Changes**

- Interface StorageSyncApiError no longer has parameter innerError

## 9.0.1 (2022-05-01)

**Features**
Expand Down
14 changes: 7 additions & 7 deletions sdk/storagesync/arm-storagesync/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Service client library for JavaScript
# Azure MicrosoftStorageSync client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftStorageSync client.

Microsoft Storage Sync Service API

Expand All @@ -24,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP

### Install the `@azure/arm-storagesync` package

Install the Azure Service client library for JavaScript with `npm`:
Install the Azure MicrosoftStorageSync client library for JavaScript with `npm`:

```bash
npm install @azure/arm-storagesync
```

### Create and authenticate a `MicrosoftStorageSync`

To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure MicrosoftStorageSync API, you will need the `endpoint` of your Azure MicrosoftStorageSync resource and a `credential`. The Azure MicrosoftStorageSync client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure MicrosoftStorageSync resource in the [Azure Portal][azure_portal].

You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).

Expand All @@ -43,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
You will also need to **register a new AAD application and grant access to Azure MicrosoftStorageSync** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
Expand Down Expand Up @@ -72,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For

### MicrosoftStorageSync

`MicrosoftStorageSync` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access.
`MicrosoftStorageSync` is the primary interface for developers using the Azure MicrosoftStorageSync client library. Explore the methods on this client object to understand the different features of the Azure MicrosoftStorageSync service that you can access.

## Troubleshooting

Expand Down
10 changes: 5 additions & 5 deletions sdk/storagesync/arm-storagesync/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
"readme": "specification\\storagesync\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storagesync\\resource-manager\\readme.md --use=@autorest/[email protected]alpha.19.20220408.1 --generate-sample=true",
"commit": "209a6da2e534f3039f91de68a324e309aca6a10b",
"readme": "specification/storagesync/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/storagesync/resource-manager/readme.md --use=@autorest/[email protected]rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/[email protected]alpha.19.20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected]rc.1"
}
27 changes: 11 additions & 16 deletions sdk/storagesync/arm-storagesync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for MicrosoftStorageSync.",
"version": "9.0.2",
"version": "10.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -40,9 +40,13 @@
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagesync/arm-storagesync",
"repository": {
Expand Down Expand Up @@ -93,9 +97,8 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -106,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagesync?view=azure-node-preview"
}
}
"autoPublish": true
}
Loading

0 comments on commit d70a1d0

Please sign in to comment.