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

[AutoPR @azure/arm-migrationdiscoverysap] Batch 7 sdk gen test #11352

Closed
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
801 changes: 401 additions & 400 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions sdk/migrationdiscovery/arm-migrationdiscoverysap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 1.0.0-beta.2 (Unreleased)


## 1.0.0-beta.2 (2024-08-22)
Compared with version 1.0.0-beta.1

### Features Added

### Breaking Changes
- Added Interface WorkloadsClientForTestingOptionalParams
- Added Class WorkloadsClientForTesting

### Bugs Fixed

### Other Changes
### Breaking Changes

- Deleted Class WorkloadsClient
- Removed Enum KnownVersions


## 1.0.0-beta.1 (2024-03-12)

The package of @azure/arm-migrationdiscoverysap is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
12 changes: 6 additions & 6 deletions sdk/migrationdiscovery/arm-migrationdiscoverysap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Install the Azure Workloads client library for JavaScript with `npm`:
npm install @azure/arm-migrationdiscoverysap
```

### Create and authenticate a `WorkloadsClient`
### Create and authenticate a `WorkloadsClientForTesting`

To create a client object to access the Azure Workloads API, you will need the `endpoint` of your Azure Workloads resource and a `credential`. The Azure Workloads client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Workloads resource in the [Azure Portal][azure_portal].
Expand All @@ -49,19 +49,19 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
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 { WorkloadsClient } = require("@azure/arm-migrationdiscoverysap");
const { WorkloadsClientForTesting } = require("@azure/arm-migrationdiscoverysap");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new WorkloadsClient(new DefaultAzureCredential(), subscriptionId);
const client = new WorkloadsClientForTesting(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new WorkloadsClient(credential, subscriptionId);
// const client = new WorkloadsClientForTesting(credential, subscriptionId);
```


Expand All @@ -70,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For

## Key concepts

### WorkloadsClient
### WorkloadsClientForTesting

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

## Troubleshooting

Expand Down
10 changes: 5 additions & 5 deletions sdk/migrationdiscovery/arm-migrationdiscoverysap/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d",
"commit": "564bc134700944a7c4372730f23a15c86c46be26",
"readme": "specification/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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\\workloads\\resource-manager\\Microsoft.Workloads\\SAPDiscoverySites\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.17"
"autorest_command": "autorest --version=3.9.7 --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/workloads/resource-manager/Microsoft.Workloads/SAPDiscoverySites/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
"release_tool": "js-sdk-release-tools@2.7.21-beta",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 0 additions & 6 deletions sdk/migrationdiscovery/arm-migrationdiscoverysap/assets.json

This file was deleted.

23 changes: 8 additions & 15 deletions sdk/migrationdiscovery/arm-migrationdiscoverysap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "@azure/arm-migrationdiscoverysap",
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for WorkloadsClient.",
"description": "A generated SDK for WorkloadsClientForTesting.",
"version": "1.0.0-beta.2",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -35,11 +35,12 @@
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -99,19 +100,11 @@
"//metadata": {
"constantPaths": [
{
"path": "src/workloadsClient.ts",
"path": "src/workloadsClientForTesting.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrationdiscovery/arm-migrationdiscoverysap",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-migrationdiscoverysap?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrationdiscovery/arm-migrationdiscoverysap"
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ export enum KnownSapInstanceType {
Webdisp = "WEBDISP"
}

// @public
export enum KnownVersions {
V20231001Preview = "2023-10-01-preview"
}

// @public
export interface NativePerformanceData extends PerformanceData {
dataSource: "Native";
Expand Down Expand Up @@ -264,7 +259,7 @@ export interface SAPDiscoverySite extends TrackedResource {

// @public
export interface SAPDiscoverySiteListResult {
readonly nextLink?: string;
nextLink?: string;
value: SAPDiscoverySite[];
}

Expand Down Expand Up @@ -390,7 +385,7 @@ export type SapInstanceEnvironment = string;

// @public
export interface SAPInstanceListResult {
readonly nextLink?: string;
nextLink?: string;
value: SAPInstance[];
}

Expand Down Expand Up @@ -491,7 +486,7 @@ export interface ServerInstance extends ProxyResource {

// @public
export interface ServerInstanceListResult {
readonly nextLink?: string;
nextLink?: string;
value: ServerInstance[];
}

Expand Down Expand Up @@ -597,14 +592,11 @@ export interface UpdateServerInstanceRequest {
properties?: ServerInstanceProperties;
}

// @public
export type Versions = string;

// @public (undocumented)
export class WorkloadsClient extends coreClient.ServiceClient {
export class WorkloadsClientForTesting extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WorkloadsClientOptionalParams);
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WorkloadsClientForTestingOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
Expand All @@ -620,7 +612,7 @@ export class WorkloadsClient extends coreClient.ServiceClient {
}

// @public
export interface WorkloadsClientOptionalParams extends coreClient.ServiceClientOptions {
export interface WorkloadsClientForTestingOptionalParams extends coreClient.ServiceClientOptions {
$host?: string;
apiVersion?: string;
endpoint?: string;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading