@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
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
|
|
9
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
10
|
+
import {
|
|
11
|
+
ProjectsListByResourceGroupOptionalParams,
|
|
12
|
+
ProjectsListByResourceGroupResponse,
|
|
13
|
+
ProjectResource,
|
|
14
|
+
ProjectsCreateOptionalParams,
|
|
15
|
+
ProjectsCreateResponse,
|
|
16
|
+
ProjectsGetOptionalParams,
|
|
17
|
+
ProjectsGetResponse,
|
|
18
|
+
ProjectsUpdateOptionalParams,
|
|
19
|
+
ProjectsUpdateResponse,
|
|
20
|
+
ProjectsGetJobStatusOptionalParams,
|
|
21
|
+
ProjectsGetJobStatusResponse
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/** Interface representing a Projects. */
|
|
25
|
+
export interface Projects {
|
|
26
|
+
/**
|
|
27
|
+
* Gets all Visual Studio Team Services project resources created in the specified Team Services
|
|
28
|
+
* account.
|
|
29
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
30
|
+
* @param rootResourceName Name of the Team Services account.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
listByResourceGroup(
|
|
34
|
+
resourceGroupName: string,
|
|
35
|
+
rootResourceName: string,
|
|
36
|
+
options?: ProjectsListByResourceGroupOptionalParams
|
|
37
|
+
): Promise<ProjectsListByResourceGroupResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
|
|
40
|
+
* and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
|
|
41
|
+
* VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
42
|
+
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
43
|
+
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
44
|
+
* templates).
|
|
45
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
46
|
+
* @param rootResourceName Name of the Team Services account.
|
|
47
|
+
* @param resourceName Name of the Team Services project.
|
|
48
|
+
* @param body The request data.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
beginCreate(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
rootResourceName: string,
|
|
54
|
+
resourceName: string,
|
|
55
|
+
body: ProjectResource,
|
|
56
|
+
options?: ProjectsCreateOptionalParams
|
|
57
|
+
): Promise<
|
|
58
|
+
PollerLike<
|
|
59
|
+
PollOperationState<ProjectsCreateResponse>,
|
|
60
|
+
ProjectsCreateResponse
|
|
61
|
+
>
|
|
62
|
+
>;
|
|
63
|
+
/**
|
|
64
|
+
* Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
|
|
65
|
+
* and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
|
|
66
|
+
* VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
67
|
+
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
68
|
+
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
69
|
+
* templates).
|
|
70
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
71
|
+
* @param rootResourceName Name of the Team Services account.
|
|
72
|
+
* @param resourceName Name of the Team Services project.
|
|
73
|
+
* @param body The request data.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
beginCreateAndWait(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
rootResourceName: string,
|
|
79
|
+
resourceName: string,
|
|
80
|
+
body: ProjectResource,
|
|
81
|
+
options?: ProjectsCreateOptionalParams
|
|
82
|
+
): Promise<ProjectsCreateResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Gets the details of a Team Services project resource.
|
|
85
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
86
|
+
* @param rootResourceName Name of the Team Services account.
|
|
87
|
+
* @param resourceName Name of the Team Services project.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
get(
|
|
91
|
+
resourceGroupName: string,
|
|
92
|
+
rootResourceName: string,
|
|
93
|
+
resourceName: string,
|
|
94
|
+
options?: ProjectsGetOptionalParams
|
|
95
|
+
): Promise<ProjectsGetResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Updates the tags of the specified Team Services project.
|
|
98
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
99
|
+
* @param rootResourceName Name of the Team Services account.
|
|
100
|
+
* @param resourceName Name of the Team Services project.
|
|
101
|
+
* @param body The request data.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
update(
|
|
105
|
+
resourceGroupName: string,
|
|
106
|
+
rootResourceName: string,
|
|
107
|
+
resourceName: string,
|
|
108
|
+
body: ProjectResource,
|
|
109
|
+
options?: ProjectsUpdateOptionalParams
|
|
110
|
+
): Promise<ProjectsUpdateResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Gets the status of the project resource creation job.
|
|
113
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
114
|
+
* @param rootResourceName Name of the Team Services account.
|
|
115
|
+
* @param resourceName Name of the Team Services project.
|
|
116
|
+
* @param subContainerName This parameter should be set to the resourceName.
|
|
117
|
+
* @param operation The operation type. The only supported value is 'put'.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
getJobStatus(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
rootResourceName: string,
|
|
123
|
+
resourceName: string,
|
|
124
|
+
subContainerName: string,
|
|
125
|
+
operation: string,
|
|
126
|
+
options?: ProjectsGetJobStatusOptionalParams
|
|
127
|
+
): Promise<ProjectsGetJobStatusResponse>;
|
|
128
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreAuth from "@azure/core-auth";
|
|
11
|
+
import {
|
|
12
|
+
OperationsImpl,
|
|
13
|
+
AccountsImpl,
|
|
14
|
+
ExtensionsImpl,
|
|
15
|
+
ProjectsImpl
|
|
16
|
+
} from "./operations";
|
|
17
|
+
import {
|
|
18
|
+
Operations,
|
|
19
|
+
Accounts,
|
|
20
|
+
Extensions,
|
|
21
|
+
Projects
|
|
22
|
+
} from "./operationsInterfaces";
|
|
23
|
+
import { VisualStudioResourceProviderClientOptionalParams } from "./models";
|
|
24
|
+
|
|
25
|
+
export class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
|
|
26
|
+
$host: string;
|
|
27
|
+
subscriptionId: string;
|
|
28
|
+
apiVersion: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
32
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
33
|
+
* @param subscriptionId The Azure subscription identifier.
|
|
34
|
+
* @param options The parameter options
|
|
35
|
+
*/
|
|
36
|
+
constructor(
|
|
37
|
+
credentials: coreAuth.TokenCredential,
|
|
38
|
+
subscriptionId: string,
|
|
39
|
+
options?: VisualStudioResourceProviderClientOptionalParams
|
|
40
|
+
) {
|
|
41
|
+
if (credentials === undefined) {
|
|
42
|
+
throw new Error("'credentials' cannot be null");
|
|
43
|
+
}
|
|
44
|
+
if (subscriptionId === undefined) {
|
|
45
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Initializing default values for options
|
|
49
|
+
if (!options) {
|
|
50
|
+
options = {};
|
|
51
|
+
}
|
|
52
|
+
const defaults: VisualStudioResourceProviderClientOptionalParams = {
|
|
53
|
+
requestContentType: "application/json; charset=utf-8",
|
|
54
|
+
credential: credentials
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.1`;
|
|
58
|
+
const userAgentPrefix =
|
|
59
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
60
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
61
|
+
: `${packageDetails}`;
|
|
62
|
+
|
|
63
|
+
if (!options.credentialScopes) {
|
|
64
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
65
|
+
}
|
|
66
|
+
const optionsWithDefaults = {
|
|
67
|
+
...defaults,
|
|
68
|
+
...options,
|
|
69
|
+
userAgentOptions: {
|
|
70
|
+
userAgentPrefix
|
|
71
|
+
},
|
|
72
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
73
|
+
};
|
|
74
|
+
super(optionsWithDefaults);
|
|
75
|
+
// Parameter assignments
|
|
76
|
+
this.subscriptionId = subscriptionId;
|
|
77
|
+
|
|
78
|
+
// Assigning values to Constant parameters
|
|
79
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
80
|
+
this.apiVersion = options.apiVersion || "2014-04-01-preview";
|
|
81
|
+
this.operations = new OperationsImpl(this);
|
|
82
|
+
this.accounts = new AccountsImpl(this);
|
|
83
|
+
this.extensions = new ExtensionsImpl(this);
|
|
84
|
+
this.projects = new ProjectsImpl(this);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
operations: Operations;
|
|
88
|
+
accounts: Accounts;
|
|
89
|
+
extensions: Extensions;
|
|
90
|
+
projects: Projects;
|
|
91
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
"module": "es6",
|
|
4
4
|
"moduleResolution": "node",
|
|
5
5
|
"strict": true,
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "es6",
|
|
7
7
|
"sourceMap": true,
|
|
8
8
|
"declarationMap": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"allowSyntheticDefaultImports": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": ["es6"],
|
|
12
|
+
"lib": ["es6", "dom"],
|
|
13
13
|
"declaration": true,
|
|
14
|
-
"outDir": "./esm",
|
|
15
|
-
"importHelpers": true
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
|
+
"importHelpers": true,
|
|
16
|
+
"paths": { "@azure/arm-visualstudio": ["./src/index"] }
|
|
16
17
|
},
|
|
17
|
-
"include": ["./
|
|
18
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"],
|
|
18
19
|
"exclude": ["node_modules"]
|
|
19
20
|
}
|