-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d738efb
commit e8109d6
Showing
57 changed files
with
1,804 additions
and
1,161 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,15 +1,33 @@ | ||
# Release History | ||
|
||
## 1.0.0-beta.2 (2024-03-12) | ||
|
||
**Features** | ||
|
||
## 1.0.0-beta.2 (Unreleased) | ||
- Added operation Workspace.listKeys | ||
- Added operation Workspace.regenerateKeys | ||
- Added Interface ApiKey | ||
- Added Interface APIKeys | ||
- Added Interface ListKeysResult | ||
- Added Interface WorkspaceListKeysOptionalParams | ||
- Added Interface WorkspaceRegenerateKeysOptionalParams | ||
- Added Interface WorkspaceResourceProperties | ||
- Added Type Alias KeyType_2 | ||
- Added Type Alias WorkspaceListKeysResponse | ||
- Interface QuantumWorkspace has a new optional parameter properties | ||
- Interface Resource has a new optional parameter systemData | ||
- Added Enum KnownKeyType | ||
|
||
### Features Added | ||
|
||
### Breaking Changes | ||
|
||
### Bugs Fixed | ||
|
||
### Other Changes | ||
**Breaking Changes** | ||
|
||
- Interface QuantumWorkspace no longer has parameter endpointUri | ||
- Interface QuantumWorkspace no longer has parameter providers | ||
- Interface QuantumWorkspace no longer has parameter provisioningState | ||
- Interface QuantumWorkspace no longer has parameter storageAccount | ||
- Interface QuantumWorkspace no longer has parameter systemData | ||
- Interface QuantumWorkspace no longer has parameter usable | ||
|
||
|
||
## 1.0.0-beta.1 (2023-07-10) | ||
|
||
The package of @azure/arm-quantum is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/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": "0f39a2d56070d2bc4251494525cb8af88583a938", | ||
"commit": "c45a7f47c1901149828eb8a33c74898c554659c0", | ||
"readme": "specification/quantum/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\\quantum\\resource-manager\\readme.md --use=@autorest/[email protected].5 --generate-sample=true", | ||
"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\\quantum\\resource-manager\\readme.md --use=@autorest/[email protected].17 --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].5" | ||
"release_tool": "@azure-tools/[email protected].4", | ||
"use": "@autorest/[email protected].17" | ||
} |
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
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
43 changes: 43 additions & 0 deletions
43
sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.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,43 @@ | ||
/* | ||
* 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 { AzureQuantumManagementClient } from "@azure/arm-quantum"; | ||
import { DefaultAzureCredential } from "@azure/identity"; | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
/** | ||
* This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. | ||
* | ||
* @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. | ||
* x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json | ||
*/ | ||
async function listKeys() { | ||
const subscriptionId = | ||
process.env["QUANTUM_SUBSCRIPTION_ID"] || | ||
"00000000-1111-2222-3333-444444444444"; | ||
const resourceGroupName = | ||
process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; | ||
const workspaceName = "quantumworkspace1"; | ||
const credential = new DefaultAzureCredential(); | ||
const client = new AzureQuantumManagementClient(credential, subscriptionId); | ||
const result = await client.workspace.listKeys( | ||
resourceGroupName, | ||
workspaceName, | ||
); | ||
console.log(result); | ||
} | ||
|
||
async function main() { | ||
listKeys(); | ||
} | ||
|
||
main().catch(console.error); |
45 changes: 45 additions & 0 deletions
45
sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.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,45 @@ | ||
/* | ||
* 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 { APIKeys, AzureQuantumManagementClient } from "@azure/arm-quantum"; | ||
import { DefaultAzureCredential } from "@azure/identity"; | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
/** | ||
* This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. | ||
* | ||
* @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. | ||
* x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json | ||
*/ | ||
async function regenerateKey() { | ||
const subscriptionId = | ||
process.env["QUANTUM_SUBSCRIPTION_ID"] || | ||
"00000000-1111-2222-3333-444444444444"; | ||
const resourceGroupName = | ||
process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; | ||
const workspaceName = "quantumworkspace1"; | ||
const keySpecification: APIKeys = { keys: ["Primary", "Secondary"] }; | ||
const credential = new DefaultAzureCredential(); | ||
const client = new AzureQuantumManagementClient(credential, subscriptionId); | ||
const result = await client.workspace.regenerateKeys( | ||
resourceGroupName, | ||
workspaceName, | ||
keySpecification, | ||
); | ||
console.log(result); | ||
} | ||
|
||
async function main() { | ||
regenerateKey(); | ||
} | ||
|
||
main().catch(console.error); |
Oops, something went wrong.