@azure/arm-visualstudio 2.2.0 → 4.0.0-beta.1
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 +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +21 -21
- package/README.md +98 -96
- package/dist/index.js +1332 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts +2 -0
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js +33 -0
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js.map +1 -0
- package/dist-esm/samples-dev/createAProjectResource.d.ts +2 -0
- package/dist-esm/samples-dev/createAProjectResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/createAProjectResource.js +43 -0
- package/dist-esm/samples-dev/createAProjectResource.js.map +1 -0
- package/dist-esm/samples-dev/createAnAccountResource.d.ts +2 -0
- package/dist-esm/samples-dev/createAnAccountResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/createAnAccountResource.js +32 -0
- package/dist-esm/samples-dev/createAnAccountResource.js.map +1 -0
- package/dist-esm/samples-dev/createAnExtensionResource.d.ts +2 -0
- package/dist-esm/samples-dev/createAnExtensionResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/createAnExtensionResource.js +44 -0
- package/dist-esm/samples-dev/createAnExtensionResource.js.map +1 -0
- package/dist-esm/samples-dev/deleteAnAccountResource.d.ts +2 -0
- package/dist-esm/samples-dev/deleteAnAccountResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteAnAccountResource.js +31 -0
- package/dist-esm/samples-dev/deleteAnAccountResource.js.map +1 -0
- package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts +2 -0
- package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteAnExtensionResource.js +32 -0
- package/dist-esm/samples-dev/deleteAnExtensionResource.js.map +1 -0
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js +30 -0
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js +31 -0
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts +2 -0
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js +29 -0
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js.map +1 -0
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts +2 -0
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js +31 -0
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js.map +1 -0
- package/dist-esm/samples-dev/getAProjectResource.d.ts +2 -0
- package/dist-esm/samples-dev/getAProjectResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAProjectResource.js +32 -0
- package/dist-esm/samples-dev/getAProjectResource.js.map +1 -0
- package/dist-esm/samples-dev/getAnAccountResource.d.ts +2 -0
- package/dist-esm/samples-dev/getAnAccountResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAnAccountResource.js +31 -0
- package/dist-esm/samples-dev/getAnAccountResource.js.map +1 -0
- package/dist-esm/samples-dev/getAnExtensionResource.d.ts +2 -0
- package/dist-esm/samples-dev/getAnExtensionResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAnExtensionResource.js +32 -0
- package/dist-esm/samples-dev/getAnExtensionResource.js.map +1 -0
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts +2 -0
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts.map +1 -0
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js +36 -0
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js.map +1 -0
- package/dist-esm/samples-dev/updateAProjectResource.d.ts +2 -0
- package/dist-esm/samples-dev/updateAProjectResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateAProjectResource.js +40 -0
- package/dist-esm/samples-dev/updateAProjectResource.js.map +1 -0
- package/dist-esm/samples-dev/updateAnExtensionResource.d.ts +2 -0
- package/dist-esm/samples-dev/updateAnExtensionResource.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateAnExtensionResource.js +44 -0
- package/dist-esm/samples-dev/updateAnExtensionResource.js.map +1 -0
- package/dist-esm/src/index.d.ts +4 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +11 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +253 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +18 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +171 -228
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +21 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +86 -49
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +57 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +185 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +54 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +190 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +42 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/projects.d.ts +77 -0
- package/dist-esm/src/operations/projects.d.ts.map +1 -0
- package/dist-esm/src/operations/projects.js +253 -0
- package/dist-esm/src/operations/projects.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +49 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts +69 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.js +9 -0
- package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
- package/dist-esm/src/visualStudioResourceProviderClient.d.ts +21 -0
- package/dist-esm/src/visualStudioResourceProviderClient.d.ts.map +1 -0
- package/dist-esm/src/visualStudioResourceProviderClient.js +54 -0
- package/dist-esm/src/visualStudioResourceProviderClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +83 -34
- package/review/arm-visualstudio.api.md +314 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +11 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +298 -0
- package/{lib → src}/models/mappers.ts +175 -232
- package/src/models/parameters.ts +201 -0
- package/src/operations/accounts.ts +261 -0
- package/src/operations/extensions.ts +259 -0
- package/{lib → src}/operations/index.ts +3 -5
- package/src/operations/operations.ts +55 -0
- package/src/operations/projects.ts +356 -0
- package/src/operationsInterfaces/accounts.ts +96 -0
- package/src/operationsInterfaces/extensions.ts +91 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/projects.ts +128 -0
- package/src/visualStudioResourceProviderClient.ts +91 -0
- package/tsconfig.json +6 -5
- package/types/arm-visualstudio.d.ts +493 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-visualstudio.js +0 -1562
- package/dist/arm-visualstudio.js.map +0 -1
- package/dist/arm-visualstudio.min.js +0 -1
- package/dist/arm-visualstudio.min.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -11
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/extensionsMappers.d.ts +0 -2
- package/esm/models/extensionsMappers.d.ts.map +0 -1
- package/esm/models/extensionsMappers.js +0 -11
- package/esm/models/extensionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -671
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -20
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -14
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/projectsMappers.d.ts +0 -2
- package/esm/models/projectsMappers.d.ts.map +0 -1
- package/esm/models/projectsMappers.js +0 -11
- package/esm/models/projectsMappers.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -147
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -224
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/extensions.d.ts +0 -141
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -200
- package/esm/operations/extensions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -29
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -48
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/projects.d.ts +0 -153
- package/esm/operations/projects.d.ts.map +0 -1
- package/esm/operations/projects.js +0 -244
- package/esm/operations/projects.js.map +0 -1
- package/esm/visualStudioResourceProviderClient.d.ts +0 -21
- package/esm/visualStudioResourceProviderClient.d.ts.map +0 -1
- package/esm/visualStudioResourceProviderClient.js +0 -36
- package/esm/visualStudioResourceProviderClient.js.map +0 -1
- package/esm/visualStudioResourceProviderClientContext.d.ts +0 -16
- package/esm/visualStudioResourceProviderClientContext.d.ts.map +0 -1
- package/esm/visualStudioResourceProviderClientContext.js +0 -56
- package/esm/visualStudioResourceProviderClientContext.js.map +0 -1
- package/lib/models/accountsMappers.ts +0 -25
- package/lib/models/extensionsMappers.ts +0 -22
- package/lib/models/index.ts +0 -701
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -136
- package/lib/models/projectsMappers.ts +0 -21
- package/lib/operations/accounts.ts +0 -399
- package/lib/operations/extensions.ts +0 -361
- package/lib/operations/operations.ts +0 -72
- package/lib/operations/projects.ts +0 -386
- package/lib/visualStudioResourceProviderClient.ts +0 -48
- package/lib/visualStudioResourceProviderClientContext.ts +0 -62
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
13
|
-
import * as Models from "../models";
|
|
14
|
-
import * as Mappers from "../models/projectsMappers";
|
|
15
|
-
import * as Parameters from "../models/parameters";
|
|
16
|
-
import { VisualStudioResourceProviderClientContext } from "../visualStudioResourceProviderClientContext";
|
|
17
|
-
|
|
18
|
-
/** Class representing a Projects. */
|
|
19
|
-
export class Projects {
|
|
20
|
-
private readonly client: VisualStudioResourceProviderClientContext;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Create a Projects.
|
|
24
|
-
* @param {VisualStudioResourceProviderClientContext} client Reference to the service client.
|
|
25
|
-
*/
|
|
26
|
-
constructor(client: VisualStudioResourceProviderClientContext) {
|
|
27
|
-
this.client = client;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Gets all Visual Studio Team Services project resources created in the specified Team Services
|
|
32
|
-
* account.
|
|
33
|
-
* @summary Projects_ListByResourceGroup
|
|
34
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
35
|
-
* @param rootResourceName Name of the Team Services account.
|
|
36
|
-
* @param [options] The optional parameters
|
|
37
|
-
* @returns Promise<Models.ProjectsListByResourceGroupResponse>
|
|
38
|
-
*/
|
|
39
|
-
listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsListByResourceGroupResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
42
|
-
* @param rootResourceName Name of the Team Services account.
|
|
43
|
-
* @param callback The callback
|
|
44
|
-
*/
|
|
45
|
-
listByResourceGroup(resourceGroupName: string, rootResourceName: string, callback: msRest.ServiceCallback<Models.ProjectResourceListResult>): void;
|
|
46
|
-
/**
|
|
47
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
48
|
-
* @param rootResourceName Name of the Team Services account.
|
|
49
|
-
* @param options The optional parameters
|
|
50
|
-
* @param callback The callback
|
|
51
|
-
*/
|
|
52
|
-
listByResourceGroup(resourceGroupName: string, rootResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectResourceListResult>): void;
|
|
53
|
-
listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectResourceListResult>, callback?: msRest.ServiceCallback<Models.ProjectResourceListResult>): Promise<Models.ProjectsListByResourceGroupResponse> {
|
|
54
|
-
return this.client.sendOperationRequest(
|
|
55
|
-
{
|
|
56
|
-
resourceGroupName,
|
|
57
|
-
rootResourceName,
|
|
58
|
-
options
|
|
59
|
-
},
|
|
60
|
-
listByResourceGroupOperationSpec,
|
|
61
|
-
callback) as Promise<Models.ProjectsListByResourceGroupResponse>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Creates a Team Services project in the collection with the specified name.
|
|
66
|
-
* 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties.
|
|
67
|
-
* Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
68
|
-
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
69
|
-
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
70
|
-
* templates).
|
|
71
|
-
* @summary Projects_Create
|
|
72
|
-
* @param body The request data.
|
|
73
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
74
|
-
* @param rootResourceName Name of the Team Services account.
|
|
75
|
-
* @param resourceName Name of the Team Services project.
|
|
76
|
-
* @param [options] The optional parameters
|
|
77
|
-
* @returns Promise<Models.ProjectsCreateResponse>
|
|
78
|
-
*/
|
|
79
|
-
create(body: Models.ProjectResource, resourceGroupName: string, rootResourceName: string, resourceName: string, options?: Models.ProjectsCreateOptionalParams): Promise<Models.ProjectsCreateResponse> {
|
|
80
|
-
return this.beginCreate(body,resourceGroupName,rootResourceName,resourceName,options)
|
|
81
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ProjectsCreateResponse>;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Gets the details of a Team Services project resource.
|
|
86
|
-
* @summary Projects_Get
|
|
87
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
88
|
-
* @param rootResourceName Name of the Team Services account.
|
|
89
|
-
* @param resourceName Name of the Team Services project.
|
|
90
|
-
* @param [options] The optional parameters
|
|
91
|
-
* @returns Promise<Models.ProjectsGetResponse>
|
|
92
|
-
*/
|
|
93
|
-
get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsGetResponse>;
|
|
94
|
-
/**
|
|
95
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
96
|
-
* @param rootResourceName Name of the Team Services account.
|
|
97
|
-
* @param resourceName Name of the Team Services project.
|
|
98
|
-
* @param callback The callback
|
|
99
|
-
*/
|
|
100
|
-
get(resourceGroupName: string, rootResourceName: string, resourceName: string, callback: msRest.ServiceCallback<Models.ProjectResource>): void;
|
|
101
|
-
/**
|
|
102
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
103
|
-
* @param rootResourceName Name of the Team Services account.
|
|
104
|
-
* @param resourceName Name of the Team Services project.
|
|
105
|
-
* @param options The optional parameters
|
|
106
|
-
* @param callback The callback
|
|
107
|
-
*/
|
|
108
|
-
get(resourceGroupName: string, rootResourceName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectResource>): void;
|
|
109
|
-
get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectResource>, callback?: msRest.ServiceCallback<Models.ProjectResource>): Promise<Models.ProjectsGetResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{
|
|
112
|
-
resourceGroupName,
|
|
113
|
-
rootResourceName,
|
|
114
|
-
resourceName,
|
|
115
|
-
options
|
|
116
|
-
},
|
|
117
|
-
getOperationSpec,
|
|
118
|
-
callback) as Promise<Models.ProjectsGetResponse>;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Updates the tags of the specified Team Services project.
|
|
123
|
-
* @summary Projects_Update
|
|
124
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
125
|
-
* @param body The request data.
|
|
126
|
-
* @param rootResourceName Name of the Team Services account.
|
|
127
|
-
* @param resourceName Name of the Team Services project.
|
|
128
|
-
* @param [options] The optional parameters
|
|
129
|
-
* @returns Promise<Models.ProjectsUpdateResponse>
|
|
130
|
-
*/
|
|
131
|
-
update(resourceGroupName: string, body: Models.ProjectResource, rootResourceName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsUpdateResponse>;
|
|
132
|
-
/**
|
|
133
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
134
|
-
* @param body The request data.
|
|
135
|
-
* @param rootResourceName Name of the Team Services account.
|
|
136
|
-
* @param resourceName Name of the Team Services project.
|
|
137
|
-
* @param callback The callback
|
|
138
|
-
*/
|
|
139
|
-
update(resourceGroupName: string, body: Models.ProjectResource, rootResourceName: string, resourceName: string, callback: msRest.ServiceCallback<Models.ProjectResource>): void;
|
|
140
|
-
/**
|
|
141
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
142
|
-
* @param body The request data.
|
|
143
|
-
* @param rootResourceName Name of the Team Services account.
|
|
144
|
-
* @param resourceName Name of the Team Services project.
|
|
145
|
-
* @param options The optional parameters
|
|
146
|
-
* @param callback The callback
|
|
147
|
-
*/
|
|
148
|
-
update(resourceGroupName: string, body: Models.ProjectResource, rootResourceName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectResource>): void;
|
|
149
|
-
update(resourceGroupName: string, body: Models.ProjectResource, rootResourceName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectResource>, callback?: msRest.ServiceCallback<Models.ProjectResource>): Promise<Models.ProjectsUpdateResponse> {
|
|
150
|
-
return this.client.sendOperationRequest(
|
|
151
|
-
{
|
|
152
|
-
resourceGroupName,
|
|
153
|
-
body,
|
|
154
|
-
rootResourceName,
|
|
155
|
-
resourceName,
|
|
156
|
-
options
|
|
157
|
-
},
|
|
158
|
-
updateOperationSpec,
|
|
159
|
-
callback) as Promise<Models.ProjectsUpdateResponse>;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Gets the status of the project resource creation job.
|
|
164
|
-
* @summary Projects_GetJobStatus
|
|
165
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
166
|
-
* @param rootResourceName Name of the Team Services account.
|
|
167
|
-
* @param resourceName Name of the Team Services project.
|
|
168
|
-
* @param subContainerName This parameter should be set to the resourceName.
|
|
169
|
-
* @param operation The operation type. The only supported value is 'put'.
|
|
170
|
-
* @param [options] The optional parameters
|
|
171
|
-
* @returns Promise<Models.ProjectsGetJobStatusResponse>
|
|
172
|
-
*/
|
|
173
|
-
getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: Models.ProjectsGetJobStatusOptionalParams): Promise<Models.ProjectsGetJobStatusResponse>;
|
|
174
|
-
/**
|
|
175
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
176
|
-
* @param rootResourceName Name of the Team Services account.
|
|
177
|
-
* @param resourceName Name of the Team Services project.
|
|
178
|
-
* @param subContainerName This parameter should be set to the resourceName.
|
|
179
|
-
* @param operation The operation type. The only supported value is 'put'.
|
|
180
|
-
* @param callback The callback
|
|
181
|
-
*/
|
|
182
|
-
getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, callback: msRest.ServiceCallback<Models.ProjectResource>): void;
|
|
183
|
-
/**
|
|
184
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
185
|
-
* @param rootResourceName Name of the Team Services account.
|
|
186
|
-
* @param resourceName Name of the Team Services project.
|
|
187
|
-
* @param subContainerName This parameter should be set to the resourceName.
|
|
188
|
-
* @param operation The operation type. The only supported value is 'put'.
|
|
189
|
-
* @param options The optional parameters
|
|
190
|
-
* @param callback The callback
|
|
191
|
-
*/
|
|
192
|
-
getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options: Models.ProjectsGetJobStatusOptionalParams, callback: msRest.ServiceCallback<Models.ProjectResource>): void;
|
|
193
|
-
getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: Models.ProjectsGetJobStatusOptionalParams | msRest.ServiceCallback<Models.ProjectResource>, callback?: msRest.ServiceCallback<Models.ProjectResource>): Promise<Models.ProjectsGetJobStatusResponse> {
|
|
194
|
-
return this.client.sendOperationRequest(
|
|
195
|
-
{
|
|
196
|
-
resourceGroupName,
|
|
197
|
-
rootResourceName,
|
|
198
|
-
resourceName,
|
|
199
|
-
subContainerName,
|
|
200
|
-
operation,
|
|
201
|
-
options
|
|
202
|
-
},
|
|
203
|
-
getJobStatusOperationSpec,
|
|
204
|
-
callback) as Promise<Models.ProjectsGetJobStatusResponse>;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Creates a Team Services project in the collection with the specified name.
|
|
209
|
-
* 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties.
|
|
210
|
-
* Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
211
|
-
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
212
|
-
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
213
|
-
* templates).
|
|
214
|
-
* @summary Projects_Create
|
|
215
|
-
* @param body The request data.
|
|
216
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
217
|
-
* @param rootResourceName Name of the Team Services account.
|
|
218
|
-
* @param resourceName Name of the Team Services project.
|
|
219
|
-
* @param [options] The optional parameters
|
|
220
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
221
|
-
*/
|
|
222
|
-
beginCreate(body: Models.ProjectResource, resourceGroupName: string, rootResourceName: string, resourceName: string, options?: Models.ProjectsBeginCreateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
223
|
-
return this.client.sendLRORequest(
|
|
224
|
-
{
|
|
225
|
-
body,
|
|
226
|
-
resourceGroupName,
|
|
227
|
-
rootResourceName,
|
|
228
|
-
resourceName,
|
|
229
|
-
options
|
|
230
|
-
},
|
|
231
|
-
beginCreateOperationSpec,
|
|
232
|
-
options);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// Operation Specifications
|
|
237
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
238
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
239
|
-
httpMethod: "GET",
|
|
240
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project",
|
|
241
|
-
urlParameters: [
|
|
242
|
-
Parameters.resourceGroupName,
|
|
243
|
-
Parameters.subscriptionId,
|
|
244
|
-
Parameters.rootResourceName
|
|
245
|
-
],
|
|
246
|
-
queryParameters: [
|
|
247
|
-
Parameters.apiVersion
|
|
248
|
-
],
|
|
249
|
-
headerParameters: [
|
|
250
|
-
Parameters.acceptLanguage
|
|
251
|
-
],
|
|
252
|
-
responses: {
|
|
253
|
-
200: {
|
|
254
|
-
bodyMapper: Mappers.ProjectResourceListResult
|
|
255
|
-
},
|
|
256
|
-
default: {
|
|
257
|
-
bodyMapper: Mappers.CloudError
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
serializer
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
264
|
-
httpMethod: "GET",
|
|
265
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
266
|
-
urlParameters: [
|
|
267
|
-
Parameters.resourceGroupName,
|
|
268
|
-
Parameters.subscriptionId,
|
|
269
|
-
Parameters.rootResourceName,
|
|
270
|
-
Parameters.resourceName
|
|
271
|
-
],
|
|
272
|
-
queryParameters: [
|
|
273
|
-
Parameters.apiVersion
|
|
274
|
-
],
|
|
275
|
-
headerParameters: [
|
|
276
|
-
Parameters.acceptLanguage
|
|
277
|
-
],
|
|
278
|
-
responses: {
|
|
279
|
-
200: {
|
|
280
|
-
bodyMapper: Mappers.ProjectResource
|
|
281
|
-
},
|
|
282
|
-
404: {},
|
|
283
|
-
default: {
|
|
284
|
-
bodyMapper: Mappers.CloudError
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
serializer
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
291
|
-
httpMethod: "PATCH",
|
|
292
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
293
|
-
urlParameters: [
|
|
294
|
-
Parameters.resourceGroupName,
|
|
295
|
-
Parameters.subscriptionId,
|
|
296
|
-
Parameters.rootResourceName,
|
|
297
|
-
Parameters.resourceName
|
|
298
|
-
],
|
|
299
|
-
queryParameters: [
|
|
300
|
-
Parameters.apiVersion
|
|
301
|
-
],
|
|
302
|
-
headerParameters: [
|
|
303
|
-
Parameters.acceptLanguage
|
|
304
|
-
],
|
|
305
|
-
requestBody: {
|
|
306
|
-
parameterPath: "body",
|
|
307
|
-
mapper: {
|
|
308
|
-
...Mappers.ProjectResource,
|
|
309
|
-
required: true
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
responses: {
|
|
313
|
-
200: {
|
|
314
|
-
bodyMapper: Mappers.ProjectResource
|
|
315
|
-
},
|
|
316
|
-
default: {
|
|
317
|
-
bodyMapper: Mappers.CloudError
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
serializer
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
const getJobStatusOperationSpec: msRest.OperationSpec = {
|
|
324
|
-
httpMethod: "GET",
|
|
325
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status",
|
|
326
|
-
urlParameters: [
|
|
327
|
-
Parameters.resourceGroupName,
|
|
328
|
-
Parameters.subscriptionId,
|
|
329
|
-
Parameters.rootResourceName,
|
|
330
|
-
Parameters.resourceName,
|
|
331
|
-
Parameters.subContainerName
|
|
332
|
-
],
|
|
333
|
-
queryParameters: [
|
|
334
|
-
Parameters.apiVersion,
|
|
335
|
-
Parameters.operation,
|
|
336
|
-
Parameters.jobId
|
|
337
|
-
],
|
|
338
|
-
headerParameters: [
|
|
339
|
-
Parameters.acceptLanguage
|
|
340
|
-
],
|
|
341
|
-
responses: {
|
|
342
|
-
200: {
|
|
343
|
-
bodyMapper: Mappers.ProjectResource
|
|
344
|
-
},
|
|
345
|
-
202: {},
|
|
346
|
-
default: {
|
|
347
|
-
bodyMapper: Mappers.CloudError
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
serializer
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
354
|
-
httpMethod: "PUT",
|
|
355
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
356
|
-
urlParameters: [
|
|
357
|
-
Parameters.resourceGroupName,
|
|
358
|
-
Parameters.subscriptionId,
|
|
359
|
-
Parameters.rootResourceName,
|
|
360
|
-
Parameters.resourceName
|
|
361
|
-
],
|
|
362
|
-
queryParameters: [
|
|
363
|
-
Parameters.apiVersion,
|
|
364
|
-
Parameters.validating
|
|
365
|
-
],
|
|
366
|
-
headerParameters: [
|
|
367
|
-
Parameters.acceptLanguage
|
|
368
|
-
],
|
|
369
|
-
requestBody: {
|
|
370
|
-
parameterPath: "body",
|
|
371
|
-
mapper: {
|
|
372
|
-
...Mappers.ProjectResource,
|
|
373
|
-
required: true
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
responses: {
|
|
377
|
-
200: {
|
|
378
|
-
bodyMapper: Mappers.ProjectResource
|
|
379
|
-
},
|
|
380
|
-
202: {},
|
|
381
|
-
default: {
|
|
382
|
-
bodyMapper: Mappers.CloudError
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
serializer
|
|
386
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "./models";
|
|
13
|
-
import * as Mappers from "./models/mappers";
|
|
14
|
-
import * as operations from "./operations";
|
|
15
|
-
import { VisualStudioResourceProviderClientContext } from "./visualStudioResourceProviderClientContext";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class VisualStudioResourceProviderClient extends VisualStudioResourceProviderClientContext {
|
|
19
|
-
// Operation groups
|
|
20
|
-
operations: operations.Operations;
|
|
21
|
-
accounts: operations.Accounts;
|
|
22
|
-
extensions: operations.Extensions;
|
|
23
|
-
projects: operations.Projects;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
27
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
28
|
-
* @param subscriptionId The Azure subscription identifier.
|
|
29
|
-
* @param [options] The parameter options
|
|
30
|
-
*/
|
|
31
|
-
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) {
|
|
32
|
-
super(credentials, subscriptionId, options);
|
|
33
|
-
this.operations = new operations.Operations(this);
|
|
34
|
-
this.accounts = new operations.Accounts(this);
|
|
35
|
-
this.extensions = new operations.Extensions(this);
|
|
36
|
-
this.projects = new operations.Projects(this);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Operation Specifications
|
|
41
|
-
|
|
42
|
-
export {
|
|
43
|
-
VisualStudioResourceProviderClient,
|
|
44
|
-
VisualStudioResourceProviderClientContext,
|
|
45
|
-
Models as VisualStudioResourceProviderModels,
|
|
46
|
-
Mappers as VisualStudioResourceProviderMappers
|
|
47
|
-
};
|
|
48
|
-
export * from "./operations";
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as Models from "./models";
|
|
12
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
13
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
14
|
-
|
|
15
|
-
const packageName = "@azure/arm-visualstudio";
|
|
16
|
-
const packageVersion = "0.1.0";
|
|
17
|
-
|
|
18
|
-
export class VisualStudioResourceProviderClientContext extends msRestAzure.AzureServiceClient {
|
|
19
|
-
credentials: msRest.ServiceClientCredentials;
|
|
20
|
-
subscriptionId: string;
|
|
21
|
-
apiVersion?: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
25
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
26
|
-
* @param subscriptionId The Azure subscription identifier.
|
|
27
|
-
* @param [options] The parameter options
|
|
28
|
-
*/
|
|
29
|
-
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) {
|
|
30
|
-
if (credentials == undefined) {
|
|
31
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
32
|
-
}
|
|
33
|
-
if (subscriptionId == undefined) {
|
|
34
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (!options) {
|
|
38
|
-
options = {};
|
|
39
|
-
}
|
|
40
|
-
if(!options.userAgent) {
|
|
41
|
-
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
42
|
-
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
super(credentials, options);
|
|
46
|
-
|
|
47
|
-
this.apiVersion = '2014-04-01-preview';
|
|
48
|
-
this.acceptLanguage = 'en-US';
|
|
49
|
-
this.longRunningOperationRetryTimeout = 30;
|
|
50
|
-
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
|
|
51
|
-
this.requestContentType = "application/json; charset=utf-8";
|
|
52
|
-
this.credentials = credentials;
|
|
53
|
-
this.subscriptionId = subscriptionId;
|
|
54
|
-
|
|
55
|
-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
56
|
-
this.acceptLanguage = options.acceptLanguage;
|
|
57
|
-
}
|
|
58
|
-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
59
|
-
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|