@azure/arm-visualstudio 4.0.0-alpha.20221215.1 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/index.js +48 -18
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +6 -6
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/visualStudioResourceProviderClient.d.ts +2 -0
- package/dist-esm/src/visualStudioResourceProviderClient.d.ts.map +1 -1
- package/dist-esm/src/visualStudioResourceProviderClient.js +48 -17
- package/dist-esm/src/visualStudioResourceProviderClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +13 -9
- package/review/arm-visualstudio.api.md +6 -6
- package/src/models/index.ts +7 -6
- package/src/visualStudioResourceProviderClient.ts +59 -19
- package/types/arm-visualstudio.d.ts +8 -6
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts +0 -2
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts.map +0 -1
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js +0 -33
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js.map +0 -1
- package/dist-esm/samples-dev/createAProjectResource.d.ts +0 -2
- package/dist-esm/samples-dev/createAProjectResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createAProjectResource.js +0 -43
- package/dist-esm/samples-dev/createAProjectResource.js.map +0 -1
- package/dist-esm/samples-dev/createAnAccountResource.d.ts +0 -2
- package/dist-esm/samples-dev/createAnAccountResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createAnAccountResource.js +0 -32
- package/dist-esm/samples-dev/createAnAccountResource.js.map +0 -1
- package/dist-esm/samples-dev/createAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/createAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createAnExtensionResource.js +0 -44
- package/dist-esm/samples-dev/createAnExtensionResource.js.map +0 -1
- package/dist-esm/samples-dev/deleteAnAccountResource.d.ts +0 -2
- package/dist-esm/samples-dev/deleteAnAccountResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteAnAccountResource.js +0 -31
- package/dist-esm/samples-dev/deleteAnAccountResource.js.map +0 -1
- package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteAnExtensionResource.js +0 -32
- package/dist-esm/samples-dev/deleteAnExtensionResource.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js +0 -30
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js +0 -31
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js +0 -29
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js +0 -31
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js.map +0 -1
- package/dist-esm/samples-dev/getAProjectResource.d.ts +0 -2
- package/dist-esm/samples-dev/getAProjectResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAProjectResource.js +0 -32
- package/dist-esm/samples-dev/getAProjectResource.js.map +0 -1
- package/dist-esm/samples-dev/getAnAccountResource.d.ts +0 -2
- package/dist-esm/samples-dev/getAnAccountResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAnAccountResource.js +0 -31
- package/dist-esm/samples-dev/getAnAccountResource.js.map +0 -1
- package/dist-esm/samples-dev/getAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/getAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAnExtensionResource.js +0 -32
- package/dist-esm/samples-dev/getAnExtensionResource.js.map +0 -1
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts +0 -2
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts.map +0 -1
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js +0 -36
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js.map +0 -1
- package/dist-esm/samples-dev/updateAProjectResource.d.ts +0 -2
- package/dist-esm/samples-dev/updateAProjectResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateAProjectResource.js +0 -40
- package/dist-esm/samples-dev/updateAProjectResource.js.map +0 -1
- package/dist-esm/samples-dev/updateAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/updateAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateAnExtensionResource.js +0 -44
- package/dist-esm/samples-dev/updateAnExtensionResource.js.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets all Visual Studio Team Services project resources created in the specified Team Services account.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets all Visual Studio Team Services project resources created in the specified Team Services account.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetProjectResources_List.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAListOfProjectResourcesInTheTeamServicesAccount() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const rootResourceName = "ExampleAccount";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.projects.listByResourceGroup(resourceGroupName, rootResourceName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
getAListOfProjectResourcesInTheTeamServicesAccount().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=getAListOfProjectResourcesInTheTeamServicesAccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfProjectResourcesInTheTeamServicesAccount.js","sourceRoot":"","sources":["../../samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kDAAkD;;QAC/D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CACtD,iBAAiB,EACjB,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kDAAkD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAProjectResource.d.ts","sourceRoot":"","sources":["../../samples-dev/getAProjectResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets the details of a Team Services project resource.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the details of a Team Services project resource.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetProjectResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAProjectResource() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const rootResourceName = "ExampleAccount";
|
|
24
|
-
const resourceName = "ExampleProject";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
27
|
-
const result = yield client.projects.get(resourceGroupName, rootResourceName, resourceName);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
getAProjectResource().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=getAProjectResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAProjectResource.js","sourceRoot":"","sources":["../../samples-dev/getAProjectResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CACtC,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAnAccountResource.d.ts","sourceRoot":"","sources":["../../samples-dev/getAnAccountResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets the Visual Studio Team Services account resource details.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the Visual Studio Team Services account resource details.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAnAccountResource() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const resourceName = "Example";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.accounts.get(resourceGroupName, resourceName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
getAnAccountResource().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=getAnAccountResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAnAccountResource.js","sourceRoot":"","sources":["../../samples-dev/getAnAccountResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAnExtensionResource.d.ts","sourceRoot":"","sources":["../../samples-dev/getAnExtensionResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets the details of an extension associated with a Visual Studio Team Services account resource.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the details of an extension associated with a Visual Studio Team Services account resource.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetExtensionResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAnExtensionResource() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const accountResourceName = "ExampleAccount";
|
|
24
|
-
const extensionResourceName = "ms.example";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
27
|
-
const result = yield client.extensions.get(resourceGroupName, accountResourceName, extensionResourceName);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
getAnExtensionResource().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=getAnExtensionResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAnExtensionResource.js","sourceRoot":"","sources":["../../samples-dev/getAnExtensionResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;QAC7C,MAAM,qBAAqB,GAAG,YAAY,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTheStatusOfTheProjectCreationJob.d.ts","sourceRoot":"","sources":["../../samples-dev/getTheStatusOfTheProjectCreationJob.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets the status of the project resource creation job.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the status of the project resource creation job.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetProjectJobStatus.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getTheStatusOfTheProjectCreationJob() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const rootResourceName = "ExampleAccount";
|
|
24
|
-
const resourceName = "ExampleProject";
|
|
25
|
-
const subContainerName = "ExampleProject";
|
|
26
|
-
const operation = "put";
|
|
27
|
-
const jobId = "126167d2-d710-4b5d-80a8-a1d58717142d";
|
|
28
|
-
const options = { jobId: jobId };
|
|
29
|
-
const credential = new DefaultAzureCredential();
|
|
30
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
31
|
-
const result = yield client.projects.getJobStatus(resourceGroupName, rootResourceName, resourceName, subContainerName, operation, options);
|
|
32
|
-
console.log(result);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
getTheStatusOfTheProjectCreationJob().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=getTheStatusOfTheProjectCreationJob.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTheStatusOfTheProjectCreationJob.js","sourceRoot":"","sources":["../../samples-dev/getTheStatusOfTheProjectCreationJob.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,KAAK,GAAG,sCAAsC,CAAC;QACrD,MAAM,OAAO,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,YAAY,CAC/C,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateAProjectResource.d.ts","sourceRoot":"","sources":["../../samples-dev/updateAProjectResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Updates the tags of the specified Team Services project.
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates the tags of the specified Team Services project.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateProjectResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function updateAProjectResource() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const rootResourceName = "ExampleAccount";
|
|
24
|
-
const resourceName = "ExampleProject";
|
|
25
|
-
const body = {
|
|
26
|
-
name: "ms.example",
|
|
27
|
-
type: "Microsoft.VisualStudio/account/extension",
|
|
28
|
-
id: "/subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/microsoft.visualstudio/account/ExampleAccount/project/ExampleProject",
|
|
29
|
-
location: "Central US",
|
|
30
|
-
properties: {},
|
|
31
|
-
tags: {}
|
|
32
|
-
};
|
|
33
|
-
const credential = new DefaultAzureCredential();
|
|
34
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
35
|
-
const result = yield client.projects.update(resourceGroupName, rootResourceName, resourceName, body);
|
|
36
|
-
console.log(result);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
updateAProjectResource().catch(console.error);
|
|
40
|
-
//# sourceMappingURL=updateAProjectResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateAProjectResource.js","sourceRoot":"","sources":["../../samples-dev/updateAProjectResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,IAAI,GAAoB;YAC5B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,0CAA0C;YAChD,EAAE,EACA,oKAAoK;YACtK,QAAQ,EAAE,YAAY;YACtB,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateAnExtensionResource.d.ts","sourceRoot":"","sources":["../../samples-dev/updateAnExtensionResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Updates an existing extension registration for the Visual Studio Team Services account.
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates an existing extension registration for the Visual Studio Team Services account.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateExtensionResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function updateAnExtensionResource() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const resourceGroupName = "VS-Example-Group";
|
|
23
|
-
const accountResourceName = "ExampleAccount";
|
|
24
|
-
const extensionResourceName = "Example";
|
|
25
|
-
const body = {
|
|
26
|
-
location: "Central US",
|
|
27
|
-
plan: {
|
|
28
|
-
name: "ExamplePlan",
|
|
29
|
-
product: "ExampleExtensionName",
|
|
30
|
-
promotionCode: "",
|
|
31
|
-
publisher: "ExampleExtensionPublisher",
|
|
32
|
-
version: "1.0"
|
|
33
|
-
},
|
|
34
|
-
properties: {},
|
|
35
|
-
tags: {}
|
|
36
|
-
};
|
|
37
|
-
const credential = new DefaultAzureCredential();
|
|
38
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
39
|
-
const result = yield client.extensions.update(resourceGroupName, accountResourceName, extensionResourceName, body);
|
|
40
|
-
console.log(result);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
updateAnExtensionResource().catch(console.error);
|
|
44
|
-
//# sourceMappingURL=updateAnExtensionResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateAnExtensionResource.js","sourceRoot":"","sources":["../../samples-dev/updateAnExtensionResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;QAC7C,MAAM,qBAAqB,GAAG,SAAS,CAAC;QACxC,MAAM,IAAI,GAA6B;YACrC,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,sBAAsB;gBAC/B,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,2BAA2B;gBACtC,OAAO,EAAE,KAAK;aACf;YACD,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3C,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|