Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute-track2 #18239

Merged
merged 2 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions common/config/rush/pnpm-lock.yaml

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

75 changes: 67 additions & 8 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,73 @@
# Release History

## 17.0.0-beta.2 (Unreleased)
## 17.0.0-beta.2 (2021-10-18)
**Features**

### Features Added
- Added operation group CommunityGalleries
- Added operation group CommunityGalleryImages
- Added operation group CommunityGalleryImageVersions
- Added Interface CommunityGalleriesGetOptionalParams
- Added Interface CommunityGalleryImagesGetOptionalParams
- Added Interface CommunityGalleryImageVersionsGetOptionalParams
- Added Interface DiskRestorePointGetOptionalParams
- Added Interface DiskRestorePointGrantAccessOptionalParams
- Added Interface DiskRestorePointListByRestorePointNextOptionalParams
- Added Interface DiskRestorePointListByRestorePointOptionalParams
- Added Interface DiskRestorePointRevokeAccessOptionalParams
- Added Interface PirCommunityGalleryResource
- Added Interface SupportedCapabilities
- Added Interface UsageListNextOptionalParams
- Added Interface UsageListOptionalParams
- Added Type Alias CommunityGalleriesGetResponse
- Added Type Alias CommunityGallery
- Added Type Alias CommunityGalleryImage
- Added Type Alias CommunityGalleryImagesGetResponse
- Added Type Alias CommunityGalleryImageVersion
- Added Type Alias CommunityGalleryImageVersionsGetResponse
- Added Type Alias DiskRestorePointGetResponse
- Added Type Alias DiskRestorePointGrantAccessResponse
- Added Type Alias DiskRestorePointListByRestorePointNextResponse
- Added Type Alias DiskRestorePointListByRestorePointResponse
- Added Type Alias Image
- Added Type Alias PublicNetworkAccess
- Added Type Alias UsageListNextResponse
- Added Type Alias UsageListResponse
- Interface DiskUpdate has a new optional parameter publicNetworkAccess
- Interface DiskUpdate has a new optional parameter supportedCapabilities
- Interface SnapshotUpdate has a new optional parameter publicNetworkAccess
- Class ComputeManagementClient has a new parameter communityGalleries
- Class ComputeManagementClient has a new parameter communityGalleryImages
- Class ComputeManagementClient has a new parameter communityGalleryImageVersions
- Type Alias Disk has a new parameter supportedCapabilities
- Type Alias Disk has a new parameter completionPercent
- Type Alias Disk has a new parameter publicNetworkAccess
- Type Alias DiskAccess has a new parameter extendedLocation
- Type Alias DiskEncryptionSet has a new parameter autoKeyRotationError
- Type Alias DiskRestorePoint has a new parameter supportedCapabilities
- Type Alias DiskRestorePoint has a new parameter networkAccessPolicy
- Type Alias DiskRestorePoint has a new parameter publicNetworkAccess
- Type Alias DiskRestorePoint has a new parameter diskAccessId
- Type Alias DiskRestorePoint has a new parameter completionPercent
- Type Alias Snapshot has a new parameter supportedCapabilities
- Type Alias Snapshot has a new parameter publicNetworkAccess
- Type Alias Snapshot has a new parameter completionPercent
- Added Enum KnownPublicNetworkAccess
- Enum KnownDiskCreateOption has a new value CopyStart
- Enum KnownDiskState has a new value ActiveSASFrozen
- Enum KnownDiskState has a new value Frozen

### Breaking Changes
**Breaking Changes**

### Bugs Fixed

### Other Changes
- Operation DiskRestorePointOperations.beginGrantAccess has a new signature
- Operation DiskRestorePointOperations.beginGrantAccessAndWait has a new signature
- Operation DiskRestorePointOperations.beginRevokeAccess has a new signature
- Operation DiskRestorePointOperations.beginRevokeAccessAndWait has a new signature
- Operation DiskRestorePointOperations.get has a new signature
- Operation DiskRestorePointOperations.listByRestorePoint has a new signature
- Operation Images.beginCreateOrUpdate has a new signature
- Operation Images.beginCreateOrUpdateAndWait has a new signature
- Operation UsageOperations.list has a new signature

# Release History

## 17.0.0-beta.1 (2021-10-09)

Expand Down
5 changes: 3 additions & 2 deletions sdk/compute/arm-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ npm install @azure/arm-compute
To create a client object to access the Azure ComputeManagement API, you will need the `endpoint` of your Azure ComputeManagement resource and a `credential`. The Azure ComputeManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure ComputeManagement resource in the [Azure Portal][azure_portal].

#### Using an Azure Active Directory Credential
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).

You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:

```bash
npm install @azure/identity
Expand All @@ -45,6 +45,7 @@ You will also need to **register a new AAD application and grant access to Azure
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).

```javascript
const { ComputeManagementClient } = require("@azure/arm-compute");
const { DefaultAzureCredential } = require("@azure/identity");
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "f9e4843e2ed3494e8bd66a92c3e7f65655f58f46",
"commit": "62ec79080af0d0d609650d67155ef4a93ae11482",
"readme": "specification/compute/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/[email protected].12",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/[email protected].13",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].12"
"use": "@autorest/[email protected].13"
}
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
Expand Down
37 changes: 16 additions & 21 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "17.0.0-beta.2",
"engines": {
"node": ">=12.0.0"
},
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -16,19 +14,13 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/index.js",
"module": "./dist-esm/src/index.js",
"types": "./types/arm-compute.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@microsoft/api-extractor": "7.7.11",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
Expand All @@ -37,16 +29,19 @@
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9"
"uglify-js": "^3.4.9",
"@azure/identity": "2.0.0-beta.6",
"@azure-tools/test-recorder": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2",
"@azure/arm-network": "26.0.0-beta.1"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down Expand Up @@ -81,16 +76,16 @@
"check-format": "echo skipped",
"execute:samples": "echo skipped",
"format": "echo skipped",
"test": "echo skipped",
"test": "npm run integration-test",
"prebuild": "echo skipped",
"test:node": "echo skipped",
"test:browser": "echo skipped",
"unit-test": "echo skipped",
"unit-test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"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",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "echo skipped",
"docs": "echo skipped"
},
"sideEffects": false,
Expand Down
Loading