Skip to content

Commit

Permalink
refresh12 (#24650)
Browse files Browse the repository at this point in the history
* refresh 12

* update files

* update files

* update files

* update files

* update files

* update files

* merge main

* merge main

* refresh12

* udpate files

* update files

* update files

* update files

* update files
  • Loading branch information
kazrael2119 authored Feb 2, 2023
1 parent ec75d88 commit 7a29215
Show file tree
Hide file tree
Showing 840 changed files with 10,736 additions and 3,715 deletions.
36 changes: 20 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.

10 changes: 5 additions & 5 deletions sdk/migrate/arm-migrate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Release History

## 2.0.3 (Unreleased)
## 2.0.3 (2023-01-29)

### Features Added
**Features**

### Breaking Changes
- Exposes `getContinuationToken` helper function to extract continuation token

### Bugs Fixed
**Bugs Fixed**

### Other Changes
- A series of small bug fixs relevant to authentication and apiVersion policy

## 2.0.2 (2022-07-04)

Expand Down
2 changes: 1 addition & 1 deletion sdk/migrate/arm-migrate/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions sdk/migrate/arm-migrate/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "d967edeee8fd6af6d40bffe53cceed1bd053d7ad",
"readme": "specification\\migrate\\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:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\migrate\\resource-manager\\readme.md --use=@autorest/[email protected].1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\migrate\\resource-manager\\readme.md --use=@autorest/[email protected].7 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
"use": "@autorest/[email protected].1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
"use": "@autorest/[email protected].7"
}
10 changes: 6 additions & 4 deletions sdk/migrate/arm-migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.5.0",
"@azure/core-client": "^1.6.1",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -34,19 +34,20 @@
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^8.2.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrate/arm-migrate",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -108,6 +109,7 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrate/arm-migrate",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
Expand All @@ -116,4 +118,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-migrate?view=azure-node-preview"
}
}
}
3 changes: 3 additions & 0 deletions sdk/migrate/arm-migrate/review/arm-migrate.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ export interface DownloadUrl {
readonly expirationTime?: Date;
}

// @public
export function getContinuationToken(page: unknown): string | undefined;

// @public
export interface Group {
eTag?: string;
Expand Down
16 changes: 13 additions & 3 deletions sdk/migrate/arm-migrate/samples-dev/assessedMachinesGetSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { AzureMigrateV2 } from "@azure/arm-migrate";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Get an assessed machine with its size & cost estimate that was evaluated in the specified assessment.
Expand All @@ -18,8 +21,11 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessedMachines_Get.json
*/
async function assessedMachinesGet() {
const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName = "abgoyal-westEurope";
const subscriptionId =
process.env["MIGRATE_SUBSCRIPTION_ID"] ||
"6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName =
process.env["MIGRATE_RESOURCE_GROUP"] || "abgoyal-westEurope";
const projectName = "abgoyalWEselfhostb72bproject";
const groupName = "Test1";
const assessmentName = "assessment_5_9_2019_16_22_14";
Expand All @@ -36,4 +42,8 @@ async function assessedMachinesGet() {
console.log(result);
}

assessedMachinesGet().catch(console.error);
async function main() {
assessedMachinesGet();
}

main().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { AzureMigrateV2 } from "@azure/arm-migrate";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Get list of machines that assessed as part of the specified assessment. Returns a json array of objects of type 'assessedMachine' as specified in the Models section.
Expand All @@ -26,8 +29,11 @@ During the period when the assessment is under computation, the list of assessed
* x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessedMachines_ListByAssessment.json
*/
async function assessedMachinesListByAssessment() {
const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName = "abgoyal-westEurope";
const subscriptionId =
process.env["MIGRATE_SUBSCRIPTION_ID"] ||
"6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName =
process.env["MIGRATE_RESOURCE_GROUP"] || "abgoyal-westEurope";
const projectName = "abgoyalWEselfhostb72bproject";
const groupName = "Test1";
const assessmentName = "assessment_5_9_2019_16_22_14";
Expand All @@ -45,4 +51,8 @@ async function assessedMachinesListByAssessment() {
console.log(resArray);
}

assessedMachinesListByAssessment().catch(console.error);
async function main() {
assessedMachinesListByAssessment();
}

main().catch(console.error);
16 changes: 13 additions & 3 deletions sdk/migrate/arm-migrate/samples-dev/assessmentsCreateSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import {
AzureMigrateV2
} from "@azure/arm-migrate";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Create a new assessment with the given name and the specified settings. Since name of an assessment in a project is a unique identifier, if an assessment with the name provided already exists, then the existing assessment is updated.
Expand All @@ -32,8 +35,11 @@ When assessment is under computation, any PUT will lead to a 400 - Bad Request e
* x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_Create.json
*/
async function assessmentsCreate() {
const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName = "abgoyal-westEurope";
const subscriptionId =
process.env["MIGRATE_SUBSCRIPTION_ID"] ||
"6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName =
process.env["MIGRATE_RESOURCE_GROUP"] || "abgoyal-westEurope";
const projectName = "abgoyalWEselfhostb72bproject";
const groupName = "Group2";
const assessmentName = "assessment_5_14_2019_16_48_47";
Expand Down Expand Up @@ -85,4 +91,8 @@ async function assessmentsCreate() {
console.log(result);
}

assessmentsCreate().catch(console.error);
async function main() {
assessmentsCreate();
}

main().catch(console.error);
16 changes: 13 additions & 3 deletions sdk/migrate/arm-migrate/samples-dev/assessmentsDeleteSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { AzureMigrateV2 } from "@azure/arm-migrate";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Delete an assessment from the project. The machines remain in the assessment. Deleting a non-existent assessment results in a no-operation.
Expand All @@ -24,8 +27,11 @@ When an assessment is under computation, as indicated by the 'computationState'
* x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_Delete.json
*/
async function assessmentsDelete() {
const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName = "abgoyal-westEurope";
const subscriptionId =
process.env["MIGRATE_SUBSCRIPTION_ID"] ||
"6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName =
process.env["MIGRATE_RESOURCE_GROUP"] || "abgoyal-westEurope";
const projectName = "abgoyalWEselfhostb72bproject";
const groupName = "Test1";
const assessmentName = "assessment_5_9_2019_16_22_14";
Expand All @@ -40,4 +46,8 @@ async function assessmentsDelete() {
console.log(result);
}

assessmentsDelete().catch(console.error);
async function main() {
assessmentsDelete();
}

main().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { AzureMigrateV2 } from "@azure/arm-migrate";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Get the URL for downloading the assessment in a report format.
Expand All @@ -18,8 +21,11 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Assessments_GetReportDownloadUrl.json
*/
async function assessmentsGetReportDownloadUrl() {
const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName = "abgoyal-westEurope";
const subscriptionId =
process.env["MIGRATE_SUBSCRIPTION_ID"] ||
"6393a73f-8d55-47ef-b6dd-179b3e0c7910";
const resourceGroupName =
process.env["MIGRATE_RESOURCE_GROUP"] || "abgoyal-westEurope";
const projectName = "abgoyalWEselfhostb72bproject";
const groupName = "Test1";
const assessmentName = "assessment_5_9_2019_16_22_14";
Expand All @@ -34,4 +40,8 @@ async function assessmentsGetReportDownloadUrl() {
console.log(result);
}

assessmentsGetReportDownloadUrl().catch(console.error);
async function main() {
assessmentsGetReportDownloadUrl();
}

main().catch(console.error);
Loading

0 comments on commit 7a29215

Please sign in to comment.