Skip to content
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
7 changes: 3 additions & 4 deletions common/config/rush/pnpm-lock.yaml

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

12 changes: 12 additions & 0 deletions sdk/servicelinker/arm-servicelinker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 2.0.0 (2022-05-11)

**Features**

- Added Interface ValidateOperationResult
- Enum KnownValidationResultStatus has a new value Failure

**Breaking Changes**

- Enum KnownValidationResultStatus no longer has value Failed


## 1.0.0 (2022-04-27)

The package of @azure/arm-servicelinker is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
5 changes: 3 additions & 2 deletions sdk/servicelinker/arm-servicelinker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ const { ServiceLinkerManagementClient } = require("@azure/arm-servicelinker");
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 client = new ServiceLinkerManagementClient(new DefaultAzureCredential());
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ServiceLinkerManagementClient(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 ServiceLinkerManagementClient(credential);
// const client = new ServiceLinkerManagementClient(credential, subscriptionId);
```


Expand Down
8 changes: 4 additions & 4 deletions sdk/servicelinker/arm-servicelinker/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "af53c06807f579062e88531c0b292ac5414af0dd",
"commit": "37a56c6381a5a638f458be96262d788f30ae6a3b",
"readme": "specification/servicelinker/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\\servicelinker\\resource-manager\\readme.md --use=@autorest/[email protected].20220408.1 --generate-sample=true",
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/servicelinker/resource-manager/readme.md --use=@autorest/[email protected].20220425.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/[email protected].20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/[email protected].20220425.1"
}
22 changes: 8 additions & 14 deletions sdk/servicelinker/arm-servicelinker/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 ServiceLinkerManagementClient.",
"version": "1.0.0",
"version": "2.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -28,7 +28,7 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-servicelinker.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
Expand All @@ -40,9 +40,11 @@
"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"
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicelinker/arm-servicelinker",
"repository": {
Expand Down Expand Up @@ -93,7 +95,7 @@
"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:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
Expand All @@ -106,13 +108,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicelinker?view=azure-node-preview"
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export enum KnownTargetServiceType {
// @public
export enum KnownValidationResultStatus {
// (undocumented)
Failed = "failed",
Failure = "failure",
// (undocumented)
Success = "success",
// (undocumented)
Expand Down Expand Up @@ -312,7 +312,7 @@ export interface LinkerValidateOptionalParams extends coreClient.OperationOption
}

// @public
export type LinkerValidateResponse = ValidateResult;
export type LinkerValidateResponse = ValidateOperationResult;

// @public
export interface Operation {
Expand Down Expand Up @@ -473,13 +473,15 @@ export type UserAssignedIdentityAuthInfo = AuthInfoBase & {
};

// @public
export interface ValidateResult {
export interface ValidateOperationResult {
authType?: AuthType;
isConnectionAvailable?: boolean;
linkerName?: string;
reportEndTimeUtc?: Date;
reportStartTimeUtc?: Date;
resourceId?: string;
sourceId?: string;
status?: string;
targetId?: string;
validationDetail?: ValidationResultItem[];
}
Expand Down
14 changes: 9 additions & 5 deletions sdk/servicelinker/arm-servicelinker/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,12 @@ export interface LinkerPatch {
scope?: string;
}

/** The validation result for a linker. */
export interface ValidateResult {
/** The validation operation result for a linker. */
export interface ValidateOperationResult {
/** Validated linker id. */
resourceId?: string;
/** Validation operation status. */
status?: string;
/** The linker name. */
linkerName?: string;
/** A boolean value indicating whether the connection is available or not */
Expand Down Expand Up @@ -548,7 +552,7 @@ export type CreatedByType = string;
/** Known values of {@link ValidationResultStatus} that the service accepts. */
export enum KnownValidationResultStatus {
Success = "success",
Failed = "failed",
Failure = "failure",
Warning = "warning"
}

Expand All @@ -558,7 +562,7 @@ export enum KnownValidationResultStatus {
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **success** \
* **failed** \
* **failure** \
* **warning**
*/
export type ValidationResultStatus = string;
Expand Down Expand Up @@ -682,7 +686,7 @@ export interface LinkerValidateOptionalParams
}

/** Contains response data for the validate operation. */
export type LinkerValidateResponse = ValidateResult;
export type LinkerValidateResponse = ValidateOperationResult;

/** Optional parameters. */
export interface LinkerListConfigurationsOptionalParams
Expand Down
Loading