Skip to content

Commit

Permalink
appconfiguration-release (#21403)
Browse files Browse the repository at this point in the history
  • Loading branch information
colawwj authored Apr 15, 2022
1 parent 3a783d1 commit d9bf358
Show file tree
Hide file tree
Showing 57 changed files with 2,383 additions and 22 deletions.
16 changes: 3 additions & 13 deletions sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# Release History

## 3.0.0-beta.4 (2022-04-14)

## 3.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 3.0.0-beta.3 (2022-04-06)

The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0-beta.3, which contains breaking changes.
The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0-beta.4, which contains breaking changes.

To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).

Expand Down
12 changes: 6 additions & 6 deletions sdk/appconfiguration/arm-appconfiguration/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1",
"readme": "specification\\appconfiguration\\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\\apimanagement\\resource-manager\\readme.md --use=@autorest/[email protected].18.20220329.1",
"commit": "cb00f6da00f783f26204f30ef4d57478cdccbeba",
"readme": "specification/appconfiguration/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\\appconfiguration\\resource-manager\\readme.md --use=@autorest/[email protected].19.20220408.1 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].1",
"use": "@autorest/[email protected].18.20220329.1"
}
"release_tool": "@azure-tools/[email protected].6",
"use": "@autorest/[email protected].19.20220408.1"
}
6 changes: 3 additions & 3 deletions sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-client": "^1.5.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -115,4 +115,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview"
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
*
* @summary Creates a configuration store with the specified parameters.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreate.json
*/
async function configurationStoresCreate() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
location: "westus",
sku: { name: "Standard" },
tags: { myTag: "myTagValue" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters
);
console.log(result);
}

configurationStoresCreate().catch(console.error);

/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
*
* @summary Creates a configuration store with the specified parameters.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreateWithIdentity.json
*/
async function configurationStoresCreateWithIdentity() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
identity: {
type: "SystemAssigned, UserAssigned",
userAssignedIdentities: {
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
{},
},
},
location: "westus",
sku: { name: "Standard" },
tags: { myTag: "myTagValue" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters
);
console.log(result);
}

configurationStoresCreateWithIdentity().catch(console.error);

/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
*
* @summary Creates a configuration store with the specified parameters.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
*/
async function configurationStoresCreateWithLocalAuthDisabled() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
disableLocalAuth: true,
location: "westus",
sku: { name: "Standard" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters
);
console.log(result);
}

configurationStoresCreateWithLocalAuthDisabled().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Deletes a configuration store.
*
* @summary Deletes a configuration store.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresDelete.json
*/
async function configurationStoresDelete() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginDeleteAndWait(
resourceGroupName,
configStoreName
);
console.log(result);
}

configurationStoresDelete().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Gets a deleted Azure app configuration store.
*
* @summary Gets a deleted Azure app configuration store.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresGet.json
*/
async function deletedConfigurationStoresGet() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const location = "westus";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.getDeleted(location, configStoreName);
console.log(result);
}

deletedConfigurationStoresGet().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Gets the properties of the specified configuration store.
*
* @summary Gets the properties of the specified configuration store.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresGet.json
*/
async function configurationStoresGet() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.get(resourceGroupName, configStoreName);
console.log(result);
}

configurationStoresGet().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Lists the configuration stores for a given resource group.
*
* @summary Lists the configuration stores for a given resource group.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListByResourceGroup.json
*/
async function configurationStoresListByResourceGroup() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.listByResourceGroup(resourceGroupName)) {
resArray.push(item);
}
console.log(resArray);
}

configurationStoresListByResourceGroup().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Gets information about the deleted configuration stores in a subscription.
*
* @summary Gets information about the deleted configuration stores in a subscription.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresList.json
*/
async function deletedConfigurationStoresList() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.listDeleted()) {
resArray.push(item);
}
console.log(resArray);
}

deletedConfigurationStoresList().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Lists the access key for the specified configuration store.
*
* @summary Lists the access key for the specified configuration store.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListKeys.json
*/
async function configurationStoresListKeys() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.listKeys(resourceGroupName, configStoreName)) {
resArray.push(item);
}
console.log(resArray);
}

configurationStoresListKeys().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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.
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");

/**
* This sample demonstrates how to Lists the configuration stores for a given subscription.
*
* @summary Lists the configuration stores for a given subscription.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresList.json
*/
async function configurationStoresList() {
const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.list()) {
resArray.push(item);
}
console.log(resArray);
}

configurationStoresList().catch(console.error);
Loading

0 comments on commit d9bf358

Please sign in to comment.