Skip to content

[AutoPR @azure/arm-dependencymap] Prepare client setting for releasing DependencyMap .Net SDK #15664

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
7 changes: 0 additions & 7 deletions sdk/dependencymap/arm-dependencymap/CHANGELOG.md

This file was deleted.

5 changes: 2 additions & 3 deletions sdk/dependencymap/arm-dependencymap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { DependencyMapClient } from "@azure/arm-dependencymap";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new DependencyMapClient(credential, subscriptionId);
```

Expand Down
6 changes: 0 additions & 6 deletions sdk/dependencymap/arm-dependencymap/assets.json

This file was deleted.

30 changes: 19 additions & 11 deletions sdk/dependencymap/arm-dependencymap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/arm-dependencymap",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "A generated SDK for DependencyMapClient.",
"engines": {
"node": ">=18.0.0"
Expand Down Expand Up @@ -66,9 +66,9 @@
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.9.0",
"@azure/core-lro": "^3.1.0",
"@azure/core-rest-pipeline": "^1.19.1",
"@azure/core-util": "^1.11.0",
"@azure/logger": "^1.1.4",
"@azure/core-rest-pipeline": "^1.20.0",
"@azure/core-util": "^1.12.0",
"@azure/logger": "^1.2.0",
"tslib": "^2.8.1"
},
"devDependencies": {
Expand All @@ -77,33 +77,41 @@
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure/identity": "^4.8.0",
"@azure/identity": "^4.9.1",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.9",
"@vitest/coverage-istanbul": "^3.0.9",
"dotenv": "^16.0.0",
"eslint": "^9.9.0",
"playwright": "^1.51.1",
"playwright": "^1.52.0",
"typescript": "~5.8.2",
"vitest": "^3.0.9"
},
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "dev-tool samples run samples-dev",
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"generate:client": "echo skipped",
"lint": "echo skipped",
"lint:fix": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"lint": "eslint package.json api-extractor.json src test",
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"test": "npm run test:node && npm run test:browser",
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
"test:browser": "echo skipped",
"test:node": "dev-tool run test:vitest",
"test:node:esm": "dev-tool run test:vitest --esm",
"update-snippets": "dev-tool run update-snippets"
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "dev-tool run update-snippets",
"test:node:esm": "dev-tool run test:vitest --esm"
},
"//sampleConfiguration": {
"productName": "@azure/arm-dependencymap",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"dependencies": {
"@azure/arm-dependencymap": "next",
"dotenv": "latest",
"@azure/identity": "^4.8.0"
"@azure/identity": "^4.9.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@azure/arm-dependencymap": "next",
"dotenv": "latest",
"@azure/identity": "^4.8.0"
"@azure/identity": "^4.9.1"
},
"devDependencies": {
"@types/node": "^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function createDependencyMap(
): DependencyMapContext {
const endpointUrl = options.endpoint ?? options.baseUrl ?? "https://management.azure.com";
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
const userAgentInfo = `azsdk-js-arm-dependencymap/1.0.0-beta.1`;
const userAgentInfo = `azsdk-js-arm-dependencymap/1.0.0-beta.2`;
const userAgentPrefix = prefixFromOptions
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
: `azsdk-js-api ${userAgentInfo}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import {
DiscoverySourcesCreateOrUpdateOptionalParams,
DiscoverySourcesGetOptionalParams,
} from "./options.js";
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
import {
PagedAsyncIterableIterator,
buildPagedAsyncIterator,
} from "../../static-helpers/pagingHelpers.js";
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
import {
StreamableMethod,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import {
MapsCreateOrUpdateOptionalParams,
MapsGetOptionalParams,
} from "./options.js";
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
import {
PagedAsyncIterableIterator,
buildPagedAsyncIterator,
} from "../../static-helpers/pagingHelpers.js";
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
import {
StreamableMethod,
Expand Down

This file was deleted.

20 changes: 20 additions & 0 deletions sdk/dependencymap/arm-dependencymap/test/public/sampleTest.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { assert, beforeEach, afterEach, it, describe } from "vitest";

describe("My test", () => {
// let recorder: Recorder;

beforeEach(async () => {
// recorder = await createRecorder(this);
});

afterEach(async () => {
// await recorder.stop();
});

it("sample test", async function () {
assert.equal(1, 1);
});
});
4 changes: 2 additions & 2 deletions sdk/dependencymap/arm-dependencymap/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/azuredependencymap/DependencyMap.Management
commit: 053f097e58bd110d2e11e5a783b393c3299e258a
commit: c8294111be770343690a652c4a6d381dce297712
repo: Azure/azure-rest-api-specs
additionalDirectories:
additionalDirectories: