forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resourceconnector release (Azure#25433)
- Loading branch information
1 parent
1a39e0f
commit 3dfb489
Showing
54 changed files
with
759 additions
and
399 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
# Release History | ||
|
||
## 1.0.0-beta.3 (Unreleased) | ||
|
||
### Features Added | ||
|
||
### Breaking Changes | ||
|
||
### Bugs Fixed | ||
|
||
### Other Changes | ||
|
||
## 1.0.0-beta.2 (2023-02-01) | ||
|
||
**Features** | ||
|
||
- Exposes `getContinuationToken` helper function to extract continuation token | ||
|
||
**Bugs Fixed** | ||
|
||
- A series of small bug fixs relevant to authentication and apiVersion policy | ||
|
||
## 1.0.0-beta.1 (2022-06-28) | ||
|
||
## 1.0.0 (2023-04-03) | ||
|
||
The package of @azure/arm-resourceconnector is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"commit": "b8fc2b4ff626aab886f929e49926c6e836548e01", | ||
"readme": "specification\\resourceconnector\\resource-manager\\readme.md", | ||
"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\\resourceconnector\\resource-manager\\readme.md --use=@autorest/[email protected].7 --generate-sample=true", | ||
"commit": "9627e7e581c1517585c9f821d89a4903c6514e07", | ||
"readme": "specification/resourceconnector/resource-manager/readme.md", | ||
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourceconnector\\resource-manager\\readme.md --use=@autorest/[email protected].10 --generate-sample=true", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git", | ||
"release_tool": "@azure-tools/[email protected].0", | ||
"use": "@autorest/[email protected].7" | ||
"release_tool": "@azure-tools/[email protected].2", | ||
"use": "@autorest/[email protected].10" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...resourceconnector/arm-resourceconnector/samples-dev/appliancesGetTelemetryConfigSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
|
||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector"; | ||
import { DefaultAzureCredential } from "@azure/identity"; | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
/** | ||
* This sample demonstrates how to Gets the telemetry config. | ||
* | ||
* @summary Gets the telemetry config. | ||
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json | ||
*/ | ||
async function getTelemetryConfigAppliance() { | ||
const subscriptionId = | ||
process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] || | ||
"11111111-2222-3333-4444-555555555555"; | ||
const credential = new DefaultAzureCredential(); | ||
const client = new ResourceConnectorManagementClient( | ||
credential, | ||
subscriptionId | ||
); | ||
const result = await client.appliances.getTelemetryConfig(); | ||
console.log(result); | ||
} | ||
|
||
async function main() { | ||
getTelemetryConfigAppliance(); | ||
} | ||
|
||
main().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.