@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
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
11
16
|
import * as coreAuth from "@azure/core-auth";
|
|
12
17
|
import {
|
|
13
18
|
OperationsImpl,
|
|
@@ -61,41 +66,47 @@ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient
|
|
|
61
66
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
62
67
|
: `${packageDetails}`;
|
|
63
68
|
|
|
64
|
-
if (!options.credentialScopes) {
|
|
65
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
66
|
-
}
|
|
67
69
|
const optionsWithDefaults = {
|
|
68
70
|
...defaults,
|
|
69
71
|
...options,
|
|
70
72
|
userAgentOptions: {
|
|
71
73
|
userAgentPrefix
|
|
72
74
|
},
|
|
73
|
-
|
|
75
|
+
endpoint:
|
|
74
76
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
75
77
|
};
|
|
76
78
|
super(optionsWithDefaults);
|
|
77
79
|
|
|
80
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
78
81
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
79
82
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
80
|
-
|
|
83
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
81
84
|
(pipelinePolicy) =>
|
|
82
85
|
pipelinePolicy.name ===
|
|
83
86
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
84
87
|
);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
}
|
|
89
|
+
if (
|
|
90
|
+
!options ||
|
|
91
|
+
!options.pipeline ||
|
|
92
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
93
|
+
!bearerTokenAuthenticationPolicyFound
|
|
94
|
+
) {
|
|
95
|
+
this.pipeline.removePolicy({
|
|
96
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
97
|
+
});
|
|
98
|
+
this.pipeline.addPolicy(
|
|
99
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
100
|
+
credential: credentials,
|
|
101
|
+
scopes:
|
|
102
|
+
optionsWithDefaults.credentialScopes ??
|
|
103
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
104
|
+
challengeCallbacks: {
|
|
105
|
+
authorizeRequestOnChallenge:
|
|
106
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
107
|
+
}
|
|
108
|
+
})
|
|
109
|
+
);
|
|
99
110
|
}
|
|
100
111
|
// Parameter assignments
|
|
101
112
|
this.subscriptionId = subscriptionId;
|
|
@@ -107,6 +118,35 @@ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient
|
|
|
107
118
|
this.accounts = new AccountsImpl(this);
|
|
108
119
|
this.extensions = new ExtensionsImpl(this);
|
|
109
120
|
this.projects = new ProjectsImpl(this);
|
|
121
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
125
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
126
|
+
if (!apiVersion) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const apiVersionPolicy = {
|
|
130
|
+
name: "CustomApiVersionPolicy",
|
|
131
|
+
async sendRequest(
|
|
132
|
+
request: PipelineRequest,
|
|
133
|
+
next: SendRequest
|
|
134
|
+
): Promise<PipelineResponse> {
|
|
135
|
+
const param = request.url.split("?");
|
|
136
|
+
if (param.length > 1) {
|
|
137
|
+
const newParams = param[1].split("&").map((item) => {
|
|
138
|
+
if (item.indexOf("api-version") > -1) {
|
|
139
|
+
return "api-version=" + apiVersion;
|
|
140
|
+
} else {
|
|
141
|
+
return item;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
145
|
+
}
|
|
146
|
+
return next(request);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
110
150
|
}
|
|
111
151
|
|
|
112
152
|
operations: Operations;
|
|
@@ -4,12 +4,12 @@ import { PollerLike } from '@azure/core-lro';
|
|
|
4
4
|
import { PollOperationState } from '@azure/core-lro';
|
|
5
5
|
|
|
6
6
|
/** The response to an account resource GET request. */
|
|
7
|
-
export declare
|
|
7
|
+
export declare interface AccountResource extends Resource {
|
|
8
8
|
/** Resource properties. */
|
|
9
9
|
properties?: {
|
|
10
10
|
[propertyName: string]: string;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
|
|
14
14
|
/** The response to an account resource list GET request. */
|
|
15
15
|
export declare interface AccountResourceListResult {
|
|
@@ -150,14 +150,14 @@ export declare interface CheckNameAvailabilityResult {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
/** The response to an extension resource GET request. */
|
|
153
|
-
export declare
|
|
153
|
+
export declare interface ExtensionResource extends Resource {
|
|
154
154
|
/** The extension plan that was purchased. */
|
|
155
155
|
plan?: ExtensionResourcePlan;
|
|
156
156
|
/** Resource properties. */
|
|
157
157
|
properties?: {
|
|
158
158
|
[propertyName: string]: string;
|
|
159
159
|
};
|
|
160
|
-
}
|
|
160
|
+
}
|
|
161
161
|
|
|
162
162
|
/** The response to an extension resource list GET request. */
|
|
163
163
|
export declare interface ExtensionResourceListResult {
|
|
@@ -315,12 +315,12 @@ export declare interface OperationsListOptionalParams extends coreClient.Operati
|
|
|
315
315
|
export declare type OperationsListResponse = OperationListResult;
|
|
316
316
|
|
|
317
317
|
/** A Visual Studio Team Services project resource. */
|
|
318
|
-
export declare
|
|
318
|
+
export declare interface ProjectResource extends Resource {
|
|
319
319
|
/** Key/value pair of resource properties. */
|
|
320
320
|
properties?: {
|
|
321
321
|
[propertyName: string]: string;
|
|
322
322
|
};
|
|
323
|
-
}
|
|
323
|
+
}
|
|
324
324
|
|
|
325
325
|
/** The response to a request to list Team Services project resources in a resource group/account. */
|
|
326
326
|
export declare interface ProjectResourceListResult {
|
|
@@ -474,6 +474,8 @@ export declare class VisualStudioResourceProviderClient extends coreClient.Servi
|
|
|
474
474
|
* @param options The parameter options
|
|
475
475
|
*/
|
|
476
476
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: VisualStudioResourceProviderClientOptionalParams);
|
|
477
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
478
|
+
private addCustomApiVersionPolicy;
|
|
477
479
|
operations: Operations;
|
|
478
480
|
accounts: Accounts;
|
|
479
481
|
extensions: Extensions;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkAvailabilityOfAnAccountName.d.ts","sourceRoot":"","sources":["../../samples-dev/checkAvailabilityOfAnAccountName.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +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 Checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.
|
|
13
|
-
*
|
|
14
|
-
* @summary Checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/CheckNameAvailability.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function checkAvailabilityOfAnAccountName() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
|
|
22
|
-
const body = {
|
|
23
|
-
resourceName: "ExampleName",
|
|
24
|
-
resourceType: "Account"
|
|
25
|
-
};
|
|
26
|
-
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
28
|
-
const result = yield client.accounts.checkNameAvailability(body);
|
|
29
|
-
console.log(result);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
checkAvailabilityOfAnAccountName().catch(console.error);
|
|
33
|
-
//# sourceMappingURL=checkAvailabilityOfAnAccountName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkAvailabilityOfAnAccountName.js","sourceRoot":"","sources":["../../samples-dev/checkAvailabilityOfAnAccountName.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,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,IAAI,GAAmC;YAC3C,YAAY,EAAE,aAAa;YAC3B,YAAY,EAAE,SAAS;SACxB,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,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACjE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAProjectResource.d.ts","sourceRoot":"","sources":["../../samples-dev/createAProjectResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +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 Creates a Team Services project in the collection with the specified name. 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties. Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId: 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process templates).
|
|
13
|
-
*
|
|
14
|
-
* @summary Creates a Team Services project in the collection with the specified name. 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties. Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId: 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process templates).
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/CreateProjectResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createAProjectResource() {
|
|
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: "ExampleProject",
|
|
27
|
-
type: "Microsoft.VisualStudio/account/project",
|
|
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
|
-
processTemplateId: "6B724908-EF14-45CF-84F8-768B5384DA45",
|
|
32
|
-
versionControlOption: "Git"
|
|
33
|
-
},
|
|
34
|
-
tags: {}
|
|
35
|
-
};
|
|
36
|
-
const credential = new DefaultAzureCredential();
|
|
37
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
38
|
-
const result = yield client.projects.beginCreateAndWait(resourceGroupName, rootResourceName, resourceName, body);
|
|
39
|
-
console.log(result);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
createAProjectResource().catch(console.error);
|
|
43
|
-
//# sourceMappingURL=createAProjectResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAProjectResource.js","sourceRoot":"","sources":["../../samples-dev/createAProjectResource.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,gBAAgB;YACtB,IAAI,EAAE,wCAAwC;YAC9C,EAAE,EACA,oKAAoK;YACtK,QAAQ,EAAE,YAAY;YACtB,UAAU,EAAE;gBACV,iBAAiB,EAAE,sCAAsC;gBACzD,oBAAoB,EAAE,KAAK;aAC5B;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,kBAAkB,CACrD,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":"createAnAccountResource.d.ts","sourceRoot":"","sources":["../../samples-dev/createAnAccountResource.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 Updates tags for Visual Studio Team Services account resource.
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates tags for Visual Studio Team Services account resource.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateTags.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createAnAccountResource() {
|
|
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 body = { tags: { tag1: "value1" } };
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
27
|
-
const result = yield client.accounts.update(resourceGroupName, resourceName, body);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
createAnAccountResource().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=createAnAccountResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnAccountResource.js","sourceRoot":"","sources":["../../samples-dev/createAnAccountResource.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,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,IAAI,GAAsB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC;QAC7D,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,YAAY,EACZ,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnExtensionResource.d.ts","sourceRoot":"","sources":["../../samples-dev/createAnExtensionResource.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 Registers the extension with a Visual Studio Team Services account.
|
|
13
|
-
*
|
|
14
|
-
* @summary Registers the extension with a Visual Studio Team Services account.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/CreateExtensionResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createAnExtensionResource() {
|
|
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 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.create(resourceGroupName, accountResourceName, extensionResourceName, body);
|
|
40
|
-
console.log(result);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
createAnExtensionResource().catch(console.error);
|
|
44
|
-
//# sourceMappingURL=createAnExtensionResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnExtensionResource.js","sourceRoot":"","sources":["../../samples-dev/createAnExtensionResource.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,YAAY,CAAC;QAC3C,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteAnAccountResource.d.ts","sourceRoot":"","sources":["../../samples-dev/deleteAnAccountResource.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 Deletes a Visual Studio Team Services account resource.
|
|
13
|
-
*
|
|
14
|
-
* @summary Deletes a Visual Studio Team Services account resource.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/DeleteResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function deleteAnAccountResource() {
|
|
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.delete(resourceGroupName, resourceName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
deleteAnAccountResource().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=deleteAnAccountResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteAnAccountResource.js","sourceRoot":"","sources":["../../samples-dev/deleteAnAccountResource.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,uBAAuB;;QACpC,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,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QAC7E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteAnExtensionResource.d.ts","sourceRoot":"","sources":["../../samples-dev/deleteAnExtensionResource.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 Removes an extension resource registration for a Visual Studio Team Services account.
|
|
13
|
-
*
|
|
14
|
-
* @summary Removes an extension resource registration for a Visual Studio Team Services account.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/DeleteExtensionResource.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function deleteAnExtensionResource() {
|
|
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 = "Example";
|
|
24
|
-
const extensionResourceName = "ms.example";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
27
|
-
const result = yield client.extensions.delete(resourceGroupName, accountResourceName, extensionResourceName);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
deleteAnExtensionResource().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=deleteAnExtensionResource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteAnExtensionResource.js","sourceRoot":"","sources":["../../samples-dev/deleteAnExtensionResource.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,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,mBAAmB,GAAG,SAAS,CAAC;QACtC,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,MAAM,CAC3C,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfAccountResourcesInTheResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfAccountResourcesInTheResourceGroup.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +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 account resources under the resource group linked to the specified Azure subscription.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetResources_List.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAListOfAccountResourcesInTheResourceGroup() {
|
|
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 credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
25
|
-
const result = yield client.accounts.listByResourceGroup(resourceGroupName);
|
|
26
|
-
console.log(result);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
getAListOfAccountResourcesInTheResourceGroup().catch(console.error);
|
|
30
|
-
//# sourceMappingURL=getAListOfAccountResourcesInTheResourceGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfAccountResourcesInTheResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/getAListOfAccountResourcesInTheResourceGroup.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,4CAA4C;;QACzD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,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,CAAC,iBAAiB,CAAC,CAAC;QAC5E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfExtensionResourcesWithinTheResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.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 details of the extension resources created within the resource group.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the details of the extension resources created within the resource group.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetExtensionResources_List.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAListOfExtensionResourcesWithinTheResourceGroup() {
|
|
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 credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.extensions.listByAccount(resourceGroupName, accountResourceName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
getAListOfExtensionResourcesWithinTheResourceGroup().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=getAListOfExtensionResourcesWithinTheResourceGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfExtensionResourcesWithinTheResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.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,mBAAmB,GAAG,gBAAgB,CAAC;QAC7C,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,aAAa,CAClD,iBAAiB,EACjB,mBAAmB,CACpB,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":"getAListOfOperationsForThisResourceProvider.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfOperationsForThisResourceProvider.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +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 all operations possible on the Microsoft.VisualStudio resource provider.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
|
|
15
|
-
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetOperations.json
|
|
16
|
-
*/
|
|
17
|
-
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function getAListOfOperationsForThisResourceProvider() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const credential = new DefaultAzureCredential();
|
|
23
|
-
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
|
|
24
|
-
const result = yield client.operations.list();
|
|
25
|
-
console.log(result);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
getAListOfOperationsForThisResourceProvider().catch(console.error);
|
|
29
|
-
//# sourceMappingURL=getAListOfOperationsForThisResourceProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfOperationsForThisResourceProvider.js","sourceRoot":"","sources":["../../samples-dev/getAListOfOperationsForThisResourceProvider.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,2CAA2C;;QACxD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,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,IAAI,EAAE,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAListOfProjectResourcesInTheTeamServicesAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.ts"],"names":[],"mappings":""}
|