Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsCalculateTemplateHashSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCalculateTemplateHashSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCalculateTemplateHashSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Calculate the hash of the given template.
*
* @summary Calculate the hash of the given template.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/CalculateTemplateHash.json
*/
function calculateTemplateHash() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const template = {
$schema: "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview",
contentVersion: "1.0.0.0",
outputs: { string: { type: "string", value: "myvalue" } },
parameters: { string: { type: "string" } },
resources: [],
variables: {
array: [1, 2, 3, 4],
bool: true,
int: 42,
object: { object: { location: "West US", vmSize: "Large" } },
string: "string"
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.calculateTemplateHash(template);
console.log(result);
});
}
calculateTemplateHash().catch(console.error);
//# sourceMappingURL=deploymentsCalculateTemplateHashSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCalculateTemplateHashSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCalculateTemplateHashSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uC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ManagementGroupScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentAtManagementGroup.json
*/
function createDeploymentAtManagementGroupScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const groupId = "my-management-group-id";
const deploymentName = "my-deployment";
const parameters = {
location: "eastus",
properties: {
mode: "Incremental",
parameters: {},
templateLink: { uri: "https://example.com/exampleTemplate.json" }
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters);
console.log(result);
});
}
createDeploymentAtManagementGroupScope().catch(console.error);
//# sourceMappingURL=deploymentsCreateOrUpdateAtManagementGroupScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtManagementGroupScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtManagementGroupScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,OAAO,GAAG,wBAAwB,CAAC;QACzC,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAqB;YACnC,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,IAAI,EAAE,aAAa;gBACnB,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE;aAClE;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,gDAAgD,CACtF,OAAO,EACP,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsCreateOrUpdateAtScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtScopeSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentAtScope.json
*/
function createDeploymentAtAGivenScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const scope = "providers/Microsoft.Management/managementGroups/my-management-group-id";
const deploymentName = "my-deployment";
const parameters = {
location: "eastus",
properties: {
mode: "Incremental",
parameters: {},
templateLink: { uri: "https://example.com/exampleTemplate.json" }
},
tags: { tagKey1: "tag-value-1", tagKey2: "tag-value-2" }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters);
console.log(result);
});
}
createDeploymentAtAGivenScope().catch(console.error);
//# sourceMappingURL=deploymentsCreateOrUpdateAtScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAc,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,KAAK,GACT,wEAAwE,CAAC;QAC3E,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAe;YAC7B,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,IAAI,EAAE,aAAa;gBACnB,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE;aAClE;YACD,IAAI,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE;SACzD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,iCAAiC,CACvE,KAAK,EACL,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtSubscriptionScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json
*/
function createADeploymentThatWillDeployATemplateSpecWithTheGivenResourceId() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000001";
const deploymentName = "my-deployment";
const parameters = {
location: "eastus",
properties: {
mode: "Incremental",
parameters: {},
templateLink: {
id: "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"
}
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters);
console.log(result);
});
}
createADeploymentThatWillDeployATemplateSpecWithTheGivenResourceId().catch(console.error);
//# sourceMappingURL=deploymentsCreateOrUpdateAtSubscriptionScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtSubscriptionScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtSubscriptionScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAc,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kEAAkE;;QAC/E,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAe;YAC7B,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,IAAI,EAAE,aAAa;gBACnB,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE;oBACZ,EAAE,EACA,gKAAgK;iBACnK;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,6CAA6C,CACnF,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kEAAkE,EAAE,CAAC,KAAK,CACxE,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsCreateOrUpdateAtTenantScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtTenantScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentAtTenant.json
*/
function createDeploymentAtTenantScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const deploymentName = "tenant-dep01";
const parameters = {
location: "eastus",
properties: {
mode: "Incremental",
parameters: {},
templateLink: { uri: "https://example.com/exampleTemplate.json" }
},
tags: { tagKey1: "tag-value-1", tagKey2: "tag-value-2" }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters);
console.log(result);
});
}
createDeploymentAtTenantScope().catch(console.error);
//# sourceMappingURL=deploymentsCreateOrUpdateAtTenantScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateAtTenantScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateAtTenantScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,cAAc,GAAG,cAAc,CAAC;QACtC,MAAM,UAAU,GAAqB;YACnC,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,IAAI,EAAE,aAAa;gBACnB,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE;aAClE;YACD,IAAI,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE;SACzD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,uCAAuC,CAC7E,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,123 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentResourceGroup.json
*/
function createADeploymentThatWillDeployATemplateWithAUriAndQueryString() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000001";
const resourceGroupName = "my-resource-group";
const deploymentName = "my-deployment";
const parameters = {
properties: {
mode: "Incremental",
parameters: {},
templateLink: {
queryString: "sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=xxxxxxxx0xxxxxxxxxxxxx%2bxxxxxxxxxxxxxxxxxxxx%3d",
uri: "https://example.com/exampleTemplate.json"
}
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters);
console.log(result);
});
}
createADeploymentThatWillDeployATemplateWithAUriAndQueryString().catch(console.error);
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json
*/
function createADeploymentThatWillDeployATemplateSpecWithTheGivenResourceId() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000001";
const resourceGroupName = "my-resource-group";
const deploymentName = "my-deployment";
const parameters = {
properties: {
mode: "Incremental",
parameters: {},
templateLink: {
id: "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"
}
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters);
console.log(result);
});
}
createADeploymentThatWillDeployATemplateSpecWithTheGivenResourceId().catch(console.error);
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json
*/
function createADeploymentThatWillRedeployAnotherDeploymentOnFailure() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const deploymentName = "my-deployment";
const parameters = {
properties: {
mode: "Complete",
onErrorDeployment: {
type: "SpecificDeployment",
deploymentName: "name-of-deployment-to-use"
},
parameters: {},
templateLink: { uri: "https://example.com/exampleTemplate.json" }
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters);
console.log(result);
});
}
createADeploymentThatWillRedeployAnotherDeploymentOnFailure().catch(console.error);
/**
* This sample demonstrates how to You can provide the template and parameters directly in the request or link to JSON files.
*
* @summary You can provide the template and parameters directly in the request or link to JSON files.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json
*/
function createADeploymentThatWillRedeployTheLastSuccessfulDeploymentOnFailure() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const deploymentName = "my-deployment";
const parameters = {
properties: {
mode: "Complete",
onErrorDeployment: { type: "LastSuccessful" },
parameters: {},
templateLink: { uri: "https://example.com/exampleTemplate.json" }
}
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters);
console.log(result);
});
}
createADeploymentThatWillRedeployTheLastSuccessfulDeploymentOnFailure().catch(console.error);
//# sourceMappingURL=deploymentsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAc,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,8DAA8D;;QAC3E,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE;gBACV,IAAI,EAAE,aAAa;gBACnB,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE;oBACZ,WAAW,EACT,2KAA2K;oBAC7K,GAAG,EAAE,0CAA0C;iBAChD;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8DAA8D,EAAE,CAAC,KAAK,CACpE,OAAO,CAAC,KAAK,CACd,CAAC;AAEF;;;;;GAKG;AACH,SAAe,kEAAkE;;QAC/E,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,C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MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2DAA2D,EAAE,CAAC,KAAK,CACjE,OAAO,CAAC,KAAK,CACd,CAAC;AAEF;;;;;GAKG;AACH,SAAe,qEAAqE;;QAClF,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE;gBACV,IAAI,EAAE,UAAU;gBAChB,iBAAiB,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;gBAC7C,UAAU,EAAE,EAAE;gBACd,YAAY,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE;aAClE;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qEAAqE,EAAE,CAAC,KAAK,CAC3E,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsWhatIfAtManagementGroupScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfAtManagementGroupScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Returns changes that will be made by the deployment if executed at the scope of the management group.
*
* @summary Returns changes that will be made by the deployment if executed at the scope of the management group.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnManagementGroup.json
*/
function predictTemplateChangesAtManagementGroupScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const groupId = "myManagementGruop";
const deploymentName = "exampleDeploymentName";
const parameters = {
location: "eastus",
properties: { mode: "Incremental", parameters: {}, templateLink: {} }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters);
console.log(result);
});
}
predictTemplateChangesAtManagementGroupScope().catch(console.error);
//# sourceMappingURL=deploymentsWhatIfAtManagementGroupScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfAtManagementGroupScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfAtManagementGroupScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4CAA4C;;QACzD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,OAAO,GAAG,mBAAmB,CAAC;QACpC,MAAM,cAAc,GAAG,uBAAuB,CAAC;QAC/C,MAAM,UAAU,GAA2B;YACzC,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;SACtE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,wCAAwC,CAC9E,OAAO,EACP,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsWhatIfAtSubscriptionScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfAtSubscriptionScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Returns changes that will be made by the deployment if executed at the scope of the subscription.
*
* @summary Returns changes that will be made by the deployment if executed at the scope of the subscription.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnSubscription.json
*/
function predictTemplateChangesAtSubscriptionScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000001";
const deploymentName = "my-deployment";
const parameters = {
location: "westus",
properties: { mode: "Incremental", parameters: {}, templateLink: {} }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters);
console.log(result);
});
}
predictTemplateChangesAtSubscriptionScope().catch(console.error);
//# sourceMappingURL=deploymentsWhatIfAtSubscriptionScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfAtSubscriptionScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfAtSubscriptionScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yCAAyC;;QACtD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAqB;YACnC,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;SACtE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,qCAAqC,CAC3E,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsWhatIfAtTenantScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfAtTenantScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfAtTenantScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Returns changes that will be made by the deployment if executed at the scope of the tenant group.
*
* @summary Returns changes that will be made by the deployment if executed at the scope of the tenant group.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnTenant.json
*/
function predictTemplateChangesAtManagementGroupScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const deploymentName = "exampleDeploymentName";
const parameters = {
location: "eastus",
properties: { mode: "Incremental", parameters: {}, templateLink: {} }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginWhatIfAtTenantScopeAndWait(deploymentName, parameters);
console.log(result);
});
}
predictTemplateChangesAtManagementGroupScope().catch(console.error);
//# sourceMappingURL=deploymentsWhatIfAtTenantScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfAtTenantScopeSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfAtTenantScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4CAA4C;;QACzD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,cAAc,GAAG,uBAAuB,CAAC;QAC/C,MAAM,UAAU,GAA2B;YACzC,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;SACtE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,+BAA+B,CACrE,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=deploymentsWhatIfSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Returns changes that will be made by the deployment if executed at the scope of the resource group.
*
* @summary Returns changes that will be made by the deployment if executed at the scope of the resource group.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PostDeploymentWhatIfOnResourceGroup.json
*/
function predictTemplateChangesAtResourceGroupScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000001";
const resourceGroupName = "my-resource-group";
const deploymentName = "my-deployment";
const parameters = {
properties: { mode: "Incremental", parameters: {}, templateLink: {} }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.deployments.beginWhatIfAndWait(resourceGroupName, deploymentName, parameters);
console.log(result);
});
}
predictTemplateChangesAtResourceGroupScope().catch(console.error);
//# sourceMappingURL=deploymentsWhatIfSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deploymentsWhatIfSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsWhatIfSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,cAAc,GAAG,eAAe,CAAC;QACvC,MAAM,UAAU,GAAqB;YACnC,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;SACtE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,kBAAkB,CACxD,iBAAiB,EACjB,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=providerResourceTypesListSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providerResourceTypesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/providerResourceTypesListSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to List the resource types for a specified resource provider.
*
* @summary List the resource types for a specified resource provider.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProviderResourceTypes.json
*/
function getProviderResourceTypes() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceProviderNamespace = "Microsoft.TestRP";
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.providerResourceTypes.list(resourceProviderNamespace);
console.log(result);
});
}
getProviderResourceTypes().catch(console.error);
//# sourceMappingURL=providerResourceTypesListSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providerResourceTypesListSample.js","sourceRoot":"","sources":["../../samples-dev/providerResourceTypesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,IAAI,CACpD,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=providersGetAtTenantScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providersGetAtTenantScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/providersGetAtTenantScopeSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets the specified resource provider at the tenant level.
*
* @summary Gets the specified resource provider at the tenant level.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetNamedProviderAtTenant.json
*/
function getAResourceProviderAtTenantScope() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const expand = "resourceTypes/aliases";
const resourceProviderNamespace = "Microsoft.Storage";
const options = { expand };
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.providers.getAtTenantScope(resourceProviderNamespace, options);
console.log(result);
});
}
getAResourceProviderAtTenantScope().catch(console.error);
//# sourceMappingURL=providersGetAtTenantScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providersGetAtTenantScopeSample.js","sourceRoot":"","sources":["../../samples-dev/providersGetAtTenantScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,MAAM,GAAG,uBAAuB,CAAC;QACvC,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,OAAO,GAA4C,EAAE,MAAM,EAAE,CAAC;QACpE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gBAAgB,CACpD,yBAAyB,EACzB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=providersGetSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providersGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/providersGetSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets the specified resource provider.
*
* @summary Gets the specified resource provider.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProvider.json
*/
function getProvider() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceProviderNamespace = "Microsoft.TestRP1";
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.providers.get(resourceProviderNamespace);
console.log(result);
});
}
getProvider().catch(console.error);
//# sourceMappingURL=providersGetSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providersGetSample.js","sourceRoot":"","sources":["../../samples-dev/providersGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=providersListSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providersListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/providersListSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __asyncValues, __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets all resource providers for a subscription.
*
* @summary Gets all resource providers for a subscription.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProviders.json
*/
function getProviders() {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const resArray = new Array();
try {
for (var _b = __asyncValues(client.providers.list()), _c; _c = yield _b.next(), !_c.done;) {
let item = _c.value;
resArray.push(item);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
console.log(resArray);
});
}
getProviders().catch(console.error);
//# sourceMappingURL=providersListSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providersListSample.js","sourceRoot":"","sources":["../../samples-dev/providersListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,YAAY;;;QACzB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAnC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=providersProviderPermissionsSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"providersProviderPermissionsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/providersProviderPermissionsSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Get the provider permissions.
*
* @summary Get the provider permissions.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetProviderPermissions.json
*/
function getProviderResourceTypes() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceProviderNamespace = "Microsoft.TestRP";
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.providers.providerPermissions(resourceProviderNamespace);
console.log(result);
});
}
getProviderResourceTypes().catch(console.error);
//# sourceMappingURL=providersProviderPermissionsSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"providersProviderPermissionsSample.js","sourceRoot":"","sources":["../../samples-dev/providersProviderPermissionsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resourceGroupsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroupsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Creates or updates a resource group.
*
* @summary Creates or updates a resource group.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/CreateResourceGroup.json
*/
function createOrUpdateAResourceGroup() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const parameters = { location: "eastus" };
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.resourceGroups.createOrUpdate(resourceGroupName, parameters);
console.log(result);
});
}
createOrUpdateAResourceGroup().catch(console.error);
//# sourceMappingURL=resourceGroupsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroupsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/resourceGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAiB,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,UAAU,GAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QACzD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,cAAc,CACvD,iBAAiB,EACjB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resourceGroupsDeleteSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroupsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceGroupsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
*
* @summary When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.json
*/
function forceDeleteAllTheVirtualMachinesAndVirtualMachineScaleSetsInAResourceGroup() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const forceDeletionTypes = "Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets";
const options = { forceDeletionTypes };
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.resourceGroups.beginDeleteAndWait(resourceGroupName, options);
console.log(result);
});
}
forceDeleteAllTheVirtualMachinesAndVirtualMachineScaleSetsInAResourceGroup().catch(console.error);
/**
* This sample demonstrates how to When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
*
* @summary When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ForceDeleteVMsInResourceGroup.json
*/
function forceDeleteAllTheVirtualMachinesInAResourceGroup() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const forceDeletionTypes = "Microsoft.Compute/virtualMachines";
const options = { forceDeletionTypes };
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.resourceGroups.beginDeleteAndWait(resourceGroupName, options);
console.log(result);
});
}
forceDeleteAllTheVirtualMachinesInAResourceGroup().catch(console.error);
//# sourceMappingURL=resourceGroupsDeleteSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroupsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/resourceGroupsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0EAA0E;;QACvF,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,kBAAkB,GACtB,6EAA6E,CAAC;QAChF,MAAM,OAAO,GAAuC,EAAE,kBAAkB,EAAE,CAAC;QAC3E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0EAA0E,EAAE,CAAC,KAAK,CAChF,OAAO,CAAC,KAAK,CACd,CAAC;AAEF;;;;;GAKG;AACH,SAAe,gDAAgD;;QAC7D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,kBAAkB,GAAG,mCAAmC,CAAC;QAC/D,MAAM,OAAO,GAAuC,EAAE,kBAAkB,EAAE,CAAC;QAC3E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAC3D,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gDAAgD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=resourceGroupsExportTemplateSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroupsExportTemplateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceGroupsExportTemplateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Captures the specified resource group as a template.
*
* @summary Captures the specified resource group as a template.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ExportResourceGroup.json
*/
function exportAResourceGroup() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const parameters = {
options: "IncludeParameterDefaultValue,IncludeComments",
resources: ["*"]
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.resourceGroups.beginExportTemplateAndWait(resourceGroupName, parameters);
console.log(result);
});
}
exportAResourceGroup().catch(console.error);
/**
* This sample demonstrates how to Captures the specified resource group as a template.
*
* @summary Captures the specified resource group as a template.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/ExportResourceGroupWithFiltering.json
*/
function exportAResourceGroupWithFiltering() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "my-resource-group";
const parameters = {
options: "SkipResourceNameParameterization",
resources: [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/My.RP/myResourceType/myFirstResource"
]
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.resourceGroups.beginExportTemplateAndWait(resourceGroupName, parameters);
console.log(result);
});
}
exportAResourceGroupWithFiltering().catch(console.error);
//# sourceMappingURL=resourceGroupsExportTemplateSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"resourceGroupsExportTemplateSample.js","sourceRoot":"","sources":["../../samples-dev/resourceGroupsExportTemplateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,UAAU,GAA0B;YACxC,OAAO,EAAE,8CAA8C;YACvD,SAAS,EAAE,CAAC,GAAG,CAAC;SACjB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,0BAA0B,CACnE,iBAAiB,EACjB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE5C;;;;;GAKG;AACH,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;QAC9C,MAAM,UAAU,GAA0B;YACxC,OAAO,EAAE,kCAAkC;YAC3C,SAAS,EAAE;gBACT,qIAAqI;aACtI;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,0BAA0B,CACnE,iBAAiB,EACjB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=tagsCreateOrUpdateAtScopeSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"tagsCreateOrUpdateAtScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tagsCreateOrUpdateAtScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
*
* @summary This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutTagsResource.json
*/
function updateTagsOnAResource() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const scope = "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm";
const parameters = {
properties: { tags: { tagKey1: "tag-value-1", tagKey2: "tag-value-2" } }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.tagsOperations.createOrUpdateAtScope(scope, parameters);
console.log(result);
});
}
updateTagsOnAResource().catch(console.error);
/**
* This sample demonstrates how to This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
*
* @summary This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/PutTagsSubscription.json
*/
function updateTagsOnASubscription() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const scope = "subscriptions/00000000-0000-0000-0000-000000000000";
const parameters = {
properties: { tags: { tagKey1: "tag-value-1", tagKey2: "tag-value-2" } }
};
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.tagsOperations.createOrUpdateAtScope(scope, parameters);
console.log(result);
});
}
updateTagsOnASubscription().catch(console.error);
//# sourceMappingURL=tagsCreateOrUpdateAtScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"tagsCreateOrUpdateAtScopeSample.js","sourceRoot":"","sources":["../../samples-dev/tagsCreateOrUpdateAtScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAgB,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,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-0,0 +1 @@
{"version":3,"file":"tagsGetAtScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tagsGetAtScopeSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
/*
* 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.
*/
import { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceManagementClient } from "@azure/arm-resources";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets the entire set of tags on a resource or subscription.
*
* @summary Gets the entire set of tags on a resource or subscription.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetTagsResource.json
*/
function getTagsOnAResource() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const scope = "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm";
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.tagsOperations.getAtScope(scope);
console.log(result);
});
}
getTagsOnAResource().catch(console.error);
/**
* This sample demonstrates how to Gets the entire set of tags on a resource or subscription.
*
* @summary Gets the entire set of tags on a resource or subscription.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/examples/GetTagsSubscription.json
*/
function getTagsOnASubscription() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const scope = "subscriptions/00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new ResourceManagementClient(credential, subscriptionId);
const result = yield client.tagsOperations.getAtScope(scope);
console.log(result);
});
}
getTagsOnASubscription().catch(console.error);
//# sourceMappingURL=tagsGetAtScopeSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"tagsGetAtScopeSample.js","sourceRoot":"","sources":["../../samples-dev/tagsGetAtScopeSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,KAAK,GACT,qHAAqH,CAAC;QACxH,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC7D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE1C;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,KAAK,GAAG,oDAAoD,CAAC;QACnE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC7D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
+5
View File
@@ -0,0 +1,5 @@
/// <reference lib="esnext.asynciterable" />
export * from "./models";
export { ResourceManagementClient } from "./resourceManagementClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,wBAAwB,CAAC"}
+12
View File
@@ -0,0 +1,12 @@
/*
* 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.
*/
/// <reference lib="esnext.asynciterable" />
export * from "./models";
export { ResourceManagementClient } from "./resourceManagementClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,wBAAwB,CAAC"}
+16
View File
@@ -0,0 +1,16 @@
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
export declare class LroImpl<T> implements LongRunningOperation<T> {
private sendOperationFn;
private args;
private spec;
requestPath: string;
requestMethod: string;
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
readonly requestBody?: unknown;
readonly path?: string;
readonly httpMethod: string;
} & Record<string, any>, requestPath?: string, requestMethod?: string);
sendInitialRequest(): Promise<LroResponse<T>>;
sendPollRequest(path: string): Promise<LroResponse<T>>;
}
//# sourceMappingURL=lroImpl.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
+29
View File
@@ -0,0 +1,29 @@
/*
* 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.
*/
import { __awaiter, __rest } from "tslib";
export class LroImpl {
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
this.sendOperationFn = sendOperationFn;
this.args = args;
this.spec = spec;
this.requestPath = requestPath;
this.requestMethod = requestMethod;
}
sendInitialRequest() {
return __awaiter(this, void 0, void 0, function* () {
return this.sendOperationFn(this.args, this.spec);
});
}
sendPollRequest(path) {
return __awaiter(this, void 0, void 0, function* () {
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
});
}
}
//# sourceMappingURL=lroImpl.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+82
View File
@@ -0,0 +1,82 @@
/*
* 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.
*/
/** Known values of {@link ExpressionEvaluationOptionsScopeType} that the service accepts. */
export var KnownExpressionEvaluationOptionsScopeType;
(function (KnownExpressionEvaluationOptionsScopeType) {
KnownExpressionEvaluationOptionsScopeType["NotSpecified"] = "NotSpecified";
KnownExpressionEvaluationOptionsScopeType["Outer"] = "Outer";
KnownExpressionEvaluationOptionsScopeType["Inner"] = "Inner";
})(KnownExpressionEvaluationOptionsScopeType || (KnownExpressionEvaluationOptionsScopeType = {}));
/** Known values of {@link ProvisioningState} that the service accepts. */
export var KnownProvisioningState;
(function (KnownProvisioningState) {
KnownProvisioningState["NotSpecified"] = "NotSpecified";
KnownProvisioningState["Accepted"] = "Accepted";
KnownProvisioningState["Running"] = "Running";
KnownProvisioningState["Ready"] = "Ready";
KnownProvisioningState["Creating"] = "Creating";
KnownProvisioningState["Created"] = "Created";
KnownProvisioningState["Deleting"] = "Deleting";
KnownProvisioningState["Deleted"] = "Deleted";
KnownProvisioningState["Canceled"] = "Canceled";
KnownProvisioningState["Failed"] = "Failed";
KnownProvisioningState["Succeeded"] = "Succeeded";
KnownProvisioningState["Updating"] = "Updating";
})(KnownProvisioningState || (KnownProvisioningState = {}));
/** Known values of {@link AliasPathTokenType} that the service accepts. */
export var KnownAliasPathTokenType;
(function (KnownAliasPathTokenType) {
/** The token type is not specified. */
KnownAliasPathTokenType["NotSpecified"] = "NotSpecified";
/** The token type can be anything. */
KnownAliasPathTokenType["Any"] = "Any";
/** The token type is string. */
KnownAliasPathTokenType["String"] = "String";
/** The token type is object. */
KnownAliasPathTokenType["Object"] = "Object";
/** The token type is array. */
KnownAliasPathTokenType["Array"] = "Array";
/** The token type is integer. */
KnownAliasPathTokenType["Integer"] = "Integer";
/** The token type is number. */
KnownAliasPathTokenType["Number"] = "Number";
/** The token type is boolean. */
KnownAliasPathTokenType["Boolean"] = "Boolean";
})(KnownAliasPathTokenType || (KnownAliasPathTokenType = {}));
/** Known values of {@link AliasPathAttributes} that the service accepts. */
export var KnownAliasPathAttributes;
(function (KnownAliasPathAttributes) {
/** The token that the alias path is referring to has no attributes. */
KnownAliasPathAttributes["None"] = "None";
/** The token that the alias path is referring to is modifiable by policies with 'modify' effect. */
KnownAliasPathAttributes["Modifiable"] = "Modifiable";
})(KnownAliasPathAttributes || (KnownAliasPathAttributes = {}));
/** Known values of {@link ProviderAuthorizationConsentState} that the service accepts. */
export var KnownProviderAuthorizationConsentState;
(function (KnownProviderAuthorizationConsentState) {
KnownProviderAuthorizationConsentState["NotSpecified"] = "NotSpecified";
KnownProviderAuthorizationConsentState["Required"] = "Required";
KnownProviderAuthorizationConsentState["NotRequired"] = "NotRequired";
KnownProviderAuthorizationConsentState["Consented"] = "Consented";
})(KnownProviderAuthorizationConsentState || (KnownProviderAuthorizationConsentState = {}));
/** Known values of {@link ExtendedLocationType} that the service accepts. */
export var KnownExtendedLocationType;
(function (KnownExtendedLocationType) {
KnownExtendedLocationType["EdgeZone"] = "EdgeZone";
})(KnownExtendedLocationType || (KnownExtendedLocationType = {}));
/** Known values of {@link TagsPatchOperation} that the service accepts. */
export var KnownTagsPatchOperation;
(function (KnownTagsPatchOperation) {
/** The 'replace' option replaces the entire set of existing tags with a new set. */
KnownTagsPatchOperation["Replace"] = "Replace";
/** The 'merge' option allows adding tags with new names and updating the values of tags with existing names. */
KnownTagsPatchOperation["Merge"] = "Merge";
/** The 'delete' option allows selectively deleting tags based on given names or name/value pairs. */
KnownTagsPatchOperation["Delete"] = "Delete";
})(KnownTagsPatchOperation || (KnownTagsPatchOperation = {}));
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmnCH,6FAA6F;AAC7F,MAAM,CAAN,IAAY,yCAIX;AAJD,WAAY,yCAAyC;IACnD,0EAA6B,CAAA;IAC7B,4DAAe,CAAA;IACf,4DAAe,CAAA;AACjB,CAAC,EAJW,yCAAyC,KAAzC,yCAAyC,QAIpD;AAaD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBAaX;AAbD,WAAY,sBAAsB;IAChC,uDAA6B,CAAA;IAC7B,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,yCAAe,CA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AA;IACnB,gHAAgH;IAChH,0CAAe,CAAA;IACf,qGAAqG;IACrG,4CAAiB,CAAA;AACnB,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC"}
+88
View File
@@ -0,0 +1,88 @@
import * as coreClient from "@azure/core-client";
export declare const OperationListResult: coreClient.CompositeMapper;
export declare const Operation: coreClient.CompositeMapper;
export declare const OperationDisplay: coreClient.CompositeMapper;
export declare const CloudError: coreClient.CompositeMapper;
export declare const ErrorResponse: coreClient.CompositeMapper;
export declare const ErrorAdditionalInfo: coreClient.CompositeMapper;
export declare const Deployment: coreClient.CompositeMapper;
export declare const DeploymentProperties: coreClient.CompositeMapper;
export declare const TemplateLink: coreClient.CompositeMapper;
export declare const ParametersLink: coreClient.CompositeMapper;
export declare const DebugSetting: coreClient.CompositeMapper;
export declare const OnErrorDeployment: coreClient.CompositeMapper;
export declare const ExpressionEvaluationOptions: coreClient.CompositeMapper;
export declare const DeploymentExtended: coreClient.CompositeMapper;
export declare const DeploymentPropertiesExtended: coreClient.CompositeMapper;
export declare const Provider: coreClient.CompositeMapper;
export declare const ProviderResourceType: coreClient.CompositeMapper;
export declare const ProviderExtendedLocation: coreClient.CompositeMapper;
export declare const Alias: coreClient.CompositeMapper;
export declare const AliasPath: coreClient.CompositeMapper;
export declare const AliasPattern: coreClient.CompositeMapper;
export declare const AliasPathMetadata: coreClient.CompositeMapper;
export declare const ZoneMapping: coreClient.CompositeMapper;
export declare const ApiProfile: coreClient.CompositeMapper;
export declare const Dependency: coreClient.CompositeMapper;
export declare const BasicDependency: coreClient.CompositeMapper;
export declare const OnErrorDeploymentExtended: coreClient.CompositeMapper;
export declare const ResourceReference: coreClient.CompositeMapper;
export declare const DeploymentValidateResult: coreClient.CompositeMapper;
export declare const DeploymentExportResult: coreClient.CompositeMapper;
export declare const DeploymentListResult: coreClient.CompositeMapper;
export declare const ScopedDeployment: coreClient.CompositeMapper;
export declare const ScopedDeploymentWhatIf: coreClient.CompositeMapper;
export declare const DeploymentWhatIfSettings: coreClient.CompositeMapper;
export declare const WhatIfOperationResult: coreClient.CompositeMapper;
export declare const WhatIfChange: coreClient.CompositeMapper;
export declare const WhatIfPropertyChange: coreClient.CompositeMapper;
export declare const DeploymentWhatIf: coreClient.CompositeMapper;
export declare const ProviderPermissionListResult: coreClient.CompositeMapper;
export declare const ProviderPermission: coreClient.CompositeMapper;
export declare const RoleDefinition: coreClient.CompositeMapper;
export declare const Permission: coreClient.CompositeMapper;
export declare const ProviderRegistrationRequest: coreClient.CompositeMapper;
export declare const ProviderConsentDefinition: coreClient.CompositeMapper;
export declare const ProviderListResult: coreClient.CompositeMapper;
export declare const ProviderResourceTypeListResult: coreClient.CompositeMapper;
export declare const ResourceListResult: coreClient.CompositeMapper;
export declare const Plan: coreClient.CompositeMapper;
export declare const Sku: coreClient.CompositeMapper;
export declare const Identity: coreClient.CompositeMapper;
export declare const IdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper;
export declare const Resource: coreClient.CompositeMapper;
export declare const ExtendedLocation: coreClient.CompositeMapper;
export declare const ResourceGroup: coreClient.CompositeMapper;
export declare const ResourceGroupProperties: coreClient.CompositeMapper;
export declare const ResourceGroupPatchable: coreClient.CompositeMapper;
export declare const ExportTemplateRequest: coreClient.CompositeMapper;
export declare const ResourceGroupExportResult: coreClient.CompositeMapper;
export declare const ResourceGroupListResult: coreClient.CompositeMapper;
export declare const ResourcesMoveInfo: coreClient.CompositeMapper;
export declare const TagValue: coreClient.CompositeMapper;
export declare const TagCount: coreClient.CompositeMapper;
export declare const TagDetails: coreClient.CompositeMapper;
export declare const TagsListResult: coreClient.CompositeMapper;
export declare const DeploymentOperation: coreClient.CompositeMapper;
export declare const DeploymentOperationProperties: coreClient.CompositeMapper;
export declare const StatusMessage: coreClient.CompositeMapper;
export declare const TargetResource: coreClient.CompositeMapper;
export declare const HttpMessage: coreClient.CompositeMapper;
export declare const DeploymentOperationsListResult: coreClient.CompositeMapper;
export declare const TemplateHashResult: coreClient.CompositeMapper;
export declare const TagsResource: coreClient.CompositeMapper;
export declare const Tags: coreClient.CompositeMapper;
export declare const TagsPatchResource: coreClient.CompositeMapper;
export declare const DeploymentExtendedFilter: coreClient.CompositeMapper;
export declare const GenericResourceFilter: coreClient.CompositeMapper;
export declare const ResourceGroupFilter: coreClient.CompositeMapper;
export declare const ResourceProviderOperationDisplayProperties: coreClient.CompositeMapper;
export declare const SubResource: coreClient.CompositeMapper;
export declare const DeploymentWhatIfProperties: coreClient.CompositeMapper;
export declare const GenericResource: coreClient.CompositeMapper;
export declare const GenericResourceExpanded: coreClient.CompositeMapper;
export declare const DeploymentsWhatIfAtTenantScopeHeaders: coreClient.CompositeMapper;
export declare const DeploymentsWhatIfAtManagementGroupScopeHeaders: coreClient.CompositeMapper;
export declare const DeploymentsWhatIfAtSubscriptionScopeHeaders: coreClient.CompositeMapper;
export declare const DeploymentsWhatIfHeaders: coreClient.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAyB5C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAoBlC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eA+BzC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAcnC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAsDtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAsB5C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eA2BnC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eAgE7C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,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,eAc7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,eAoB1C,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,eAajD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAyB9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAmB5C,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,UAAU,CAAC,eAqCnE,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAapC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAenD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAmDxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eA6BhD,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,UAAU,CAAC,eAmB9D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,UAAU,CAAC,eAmBvE,CAAC;AAEF,eAAO,MAAM,2CAA2C,EAAE,UAAU,CAAC,eAmBpE,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,eAmBjD,CAAC"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+40
View File
@@ -0,0 +1,40 @@
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
export declare const accept: OperationParameter;
export declare const $host: OperationURLParameter;
export declare const apiVersion: OperationQueryParameter;
export declare const nextLink: OperationURLParameter;
export declare const scope: OperationURLParameter;
export declare const deploymentName: OperationURLParameter;
export declare const contentType: OperationParameter;
export declare const parameters: OperationParameter;
export declare const filter: OperationQueryParameter;
export declare const top: OperationQueryParameter;
export declare const parameters1: OperationParameter;
export declare const parameters2: OperationParameter;
export declare const groupId: OperationURLParameter;
export declare const subscriptionId: OperationURLParameter;
export declare const parameters3: OperationParameter;
export declare const resourceGroupName: OperationURLParameter;
export declare const template: OperationParameter;
export declare const resourceProviderNamespace: OperationURLParameter;
export declare const properties: OperationParameter;
export declare const expand: OperationQueryParameter;
export declare const parameters4: OperationParameter;
export declare const sourceResourceGroupName: OperationURLParameter;
export declare const parentResourcePath: OperationURLParameter;
export declare const resourceType: OperationURLParameter;
export declare const resourceName: OperationURLParameter;
export declare const apiVersion1: OperationQueryParameter;
export declare const parameters5: OperationParameter;
export declare const resourceId: OperationURLParameter;
export declare const parameters6: OperationParameter;
export declare const forceDeletionTypes: OperationQueryParameter;
export declare const parameters7: OperationParameter;
export declare const parameters8: OperationParameter;
export declare const resourceGroupName1: OperationURLParameter;
export declare const tagName: OperationURLParameter;
export declare const tagValue: OperationURLParameter;
export declare const parameters9: OperationParameter;
export declare const parameters10: OperationParameter;
export declare const operationId: OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAgB5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAc5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,uBAQpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,uBAQjB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,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ed 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.
*/
import { Deployment as DeploymentMapper, ScopedDeployment as ScopedDeploymentMapper, ScopedDeploymentWhatIf as ScopedDeploymentWhatIfMapper, DeploymentWhatIf as DeploymentWhatIfMapper, ProviderRegistrationRequest as ProviderRegistrationRequestMapper, ResourcesMoveInfo as ResourcesMoveInfoMapper, GenericResource as GenericResourceMapper, ResourceGroup as ResourceGroupMapper, ResourceGroupPatchable as ResourceGroupPatchableMapper, ExportTemplateRequest as ExportTemplateRequestMapper, TagsResource as TagsResourceMapper, TagsPatchResource as TagsPatchResourceMapper } from "../models/mappers";
export const accept = {
parameterPath: "accept",
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Accept",
type: {
name: "String"
}
}
};
export const $host = {
parameterPath: "$host",
mapper: {
serializedName: "$host",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const apiVersion = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2021-04-01",
isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
export const nextLink = {
parameterPath: "nextLink",
mapper: {
serializedName: "nextLink",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const scope = {
parameterPath: "scope",
mapper: {
serializedName: "scope",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const deploymentName = {
parameterPath: "deploymentName",
mapper: {
constraints: {
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
MaxLength: 64,
MinLength: 1
},
serializedName: "deploymentName",
required: true,
type: {
name: "String"
}
}
};
export const contentType = {
parameterPath: ["options", "contentType"],
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Content-Type",
type: {
name: "String"
}
}
};
export const parameters = {
parameterPath: "parameters",
mapper: DeploymentMapper
};
export const filter = {
parameterPath: ["options", "filter"],
mapper: {
serializedName: "$filter",
type: {
name: "String"
}
}
};
export const top = {
parameterPath: ["options", "top"],
mapper: {
serializedName: "$top",
type: {
name: "Number"
}
}
};
export const parameters1 = {
parameterPath: "parameters",
mapper: ScopedDeploymentMapper
};
export const parameters2 = {
parameterPath: "parameters",
mapper: ScopedDeploymentWhatIfMapper
};
export const groupId = {
parameterPath: "groupId",
mapper: {
constraints: {
MaxLength: 90,
MinLength: 1
},
serializedName: "groupId",
required: true,
type: {
name: "String"
}
}
};
export const subscriptionId = {
parameterPath: "subscriptionId",
mapper: {
serializedName: "subscriptionId",
required: true,
type: {
name: "String"
}
}
};
export const parameters3 = {
parameterPath: "parameters",
mapper: DeploymentWhatIfMapper
};
export const resourceGroupName = {
parameterPath: "resourceGroupName",
mapper: {
constraints: {
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
MaxLength: 90,
MinLength: 1
},
serializedName: "resourceGroupName",
required: true,
type: {
name: "String"
}
}
};
export const template = {
parameterPath: "template",
mapper: {
serializedName: "template",
required: true,
type: {
name: "Dictionary",
value: { type: { name: "any" } }
}
}
};
export const resourceProviderNamespace = {
parameterPath: "resourceProviderNamespace",
mapper: {
serializedName: "resourceProviderNamespace",
required: true,
type: {
name: "String"
}
}
};
export const properties = {
parameterPath: ["options", "properties"],
mapper: ProviderRegistrationRequestMapper
};
export const expand = {
parameterPath: ["options", "expand"],
mapper: {
serializedName: "$expand",
type: {
name: "String"
}
}
};
export const parameters4 = {
parameterPath: "parameters",
mapper: ResourcesMoveInfoMapper
};
export const sourceResourceGroupName = {
parameterPath: "sourceResourceGroupName",
mapper: {
constraints: {
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
MaxLength: 90,
MinLength: 1
},
serializedName: "sourceResourceGroupName",
required: true,
type: {
name: "String"
}
}
};
export const parentResourcePath = {
parameterPath: "parentResourcePath",
mapper: {
serializedName: "parentResourcePath",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const resourceType = {
parameterPath: "resourceType",
mapper: {
serializedName: "resourceType",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const resourceName = {
parameterPath: "resourceName",
mapper: {
serializedName: "resourceName",
required: true,
type: {
name: "String"
}
}
};
export const apiVersion1 = {
parameterPath: "apiVersion",
mapper: {
serializedName: "api-version",
required: true,
type: {
name: "String"
}
}
};
export const parameters5 = {
parameterPath: "parameters",
mapper: GenericResourceMapper
};
export const resourceId = {
parameterPath: "resourceId",
mapper: {
serializedName: "resourceId",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const parameters6 = {
parameterPath: "parameters",
mapper: ResourceGroupMapper
};
export const forceDeletionTypes = {
parameterPath: ["options", "forceDeletionTypes"],
mapper: {
serializedName: "forceDeletionTypes",
type: {
name: "String"
}
}
};
export const parameters7 = {
parameterPath: "parameters",
mapper: ResourceGroupPatchableMapper
};
export const parameters8 = {
parameterPath: "parameters",
mapper: ExportTemplateRequestMapper
};
export const resourceGroupName1 = {
parameterPath: "resourceGroupName",
mapper: {
constraints: {
MaxLength: 90,
MinLength: 1
},
serializedName: "resourceGroupName",
required: true,
type: {
name: "String"
}
}
};
export const tagName = {
parameterPath: "tagName",
mapper: {
serializedName: "tagName",
required: true,
type: {
name: "String"
}
}
};
export const tagValue = {
parameterPath: "tagValue",
mapper: {
serializedName: "tagValue",
required: true,
type: {
name: "String"
}
}
};
export const parameters9 = {
parameterPath: "parameters",
mapper: TagsResourceMapper
};
export const parameters10 = {
parameterPath: "parameters",
mapper: TagsPatchResourceMapper
};
export const operationId = {
parameterPath: "operationId",
mapper: {
serializedName: "operationId",
required: true,
type: {
name: "String"
}
}
};
//# sourceMappingURL=parameters.js.map
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More