@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,1332 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
const OperationListResult = {
|
|
17
|
+
type: {
|
|
18
|
+
name: "Composite",
|
|
19
|
+
className: "OperationListResult",
|
|
20
|
+
modelProperties: {
|
|
21
|
+
value: {
|
|
22
|
+
serializedName: "value",
|
|
23
|
+
type: {
|
|
24
|
+
name: "Sequence",
|
|
25
|
+
element: {
|
|
26
|
+
type: {
|
|
27
|
+
name: "Composite",
|
|
28
|
+
className: "Operation"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const Operation = {
|
|
37
|
+
type: {
|
|
38
|
+
name: "Composite",
|
|
39
|
+
className: "Operation",
|
|
40
|
+
modelProperties: {
|
|
41
|
+
display: {
|
|
42
|
+
serializedName: "display",
|
|
43
|
+
type: {
|
|
44
|
+
name: "Composite",
|
|
45
|
+
className: "OperationProperties"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
name: {
|
|
49
|
+
serializedName: "name",
|
|
50
|
+
type: {
|
|
51
|
+
name: "String"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const OperationProperties = {
|
|
58
|
+
type: {
|
|
59
|
+
name: "Composite",
|
|
60
|
+
className: "OperationProperties",
|
|
61
|
+
modelProperties: {
|
|
62
|
+
description: {
|
|
63
|
+
serializedName: "description",
|
|
64
|
+
type: {
|
|
65
|
+
name: "String"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
operation: {
|
|
69
|
+
serializedName: "operation",
|
|
70
|
+
type: {
|
|
71
|
+
name: "String"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
provider: {
|
|
75
|
+
serializedName: "provider",
|
|
76
|
+
type: {
|
|
77
|
+
name: "String"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
resource: {
|
|
81
|
+
serializedName: "resource",
|
|
82
|
+
type: {
|
|
83
|
+
name: "String"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const CheckNameAvailabilityParameter = {
|
|
90
|
+
type: {
|
|
91
|
+
name: "Composite",
|
|
92
|
+
className: "CheckNameAvailabilityParameter",
|
|
93
|
+
modelProperties: {
|
|
94
|
+
resourceName: {
|
|
95
|
+
serializedName: "resourceName",
|
|
96
|
+
type: {
|
|
97
|
+
name: "String"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
resourceType: {
|
|
101
|
+
serializedName: "resourceType",
|
|
102
|
+
type: {
|
|
103
|
+
name: "String"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const CheckNameAvailabilityResult = {
|
|
110
|
+
type: {
|
|
111
|
+
name: "Composite",
|
|
112
|
+
className: "CheckNameAvailabilityResult",
|
|
113
|
+
modelProperties: {
|
|
114
|
+
message: {
|
|
115
|
+
serializedName: "message",
|
|
116
|
+
type: {
|
|
117
|
+
name: "String"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
nameAvailable: {
|
|
121
|
+
serializedName: "nameAvailable",
|
|
122
|
+
type: {
|
|
123
|
+
name: "Boolean"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const AccountResourceListResult = {
|
|
130
|
+
type: {
|
|
131
|
+
name: "Composite",
|
|
132
|
+
className: "AccountResourceListResult",
|
|
133
|
+
modelProperties: {
|
|
134
|
+
value: {
|
|
135
|
+
serializedName: "value",
|
|
136
|
+
type: {
|
|
137
|
+
name: "Sequence",
|
|
138
|
+
element: {
|
|
139
|
+
type: {
|
|
140
|
+
name: "Composite",
|
|
141
|
+
className: "AccountResource"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const Resource = {
|
|
150
|
+
type: {
|
|
151
|
+
name: "Composite",
|
|
152
|
+
className: "Resource",
|
|
153
|
+
modelProperties: {
|
|
154
|
+
id: {
|
|
155
|
+
serializedName: "id",
|
|
156
|
+
readOnly: true,
|
|
157
|
+
type: {
|
|
158
|
+
name: "String"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
location: {
|
|
162
|
+
serializedName: "location",
|
|
163
|
+
type: {
|
|
164
|
+
name: "String"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
name: {
|
|
168
|
+
serializedName: "name",
|
|
169
|
+
readOnly: true,
|
|
170
|
+
type: {
|
|
171
|
+
name: "String"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
tags: {
|
|
175
|
+
serializedName: "tags",
|
|
176
|
+
type: {
|
|
177
|
+
name: "Dictionary",
|
|
178
|
+
value: { type: { name: "String" } }
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
type: {
|
|
182
|
+
serializedName: "type",
|
|
183
|
+
readOnly: true,
|
|
184
|
+
type: {
|
|
185
|
+
name: "String"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
const ExtensionResourceListResult = {
|
|
192
|
+
type: {
|
|
193
|
+
name: "Composite",
|
|
194
|
+
className: "ExtensionResourceListResult",
|
|
195
|
+
modelProperties: {
|
|
196
|
+
value: {
|
|
197
|
+
serializedName: "value",
|
|
198
|
+
type: {
|
|
199
|
+
name: "Sequence",
|
|
200
|
+
element: {
|
|
201
|
+
type: {
|
|
202
|
+
name: "Composite",
|
|
203
|
+
className: "ExtensionResource"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
const ExtensionResourcePlan = {
|
|
212
|
+
type: {
|
|
213
|
+
name: "Composite",
|
|
214
|
+
className: "ExtensionResourcePlan",
|
|
215
|
+
modelProperties: {
|
|
216
|
+
name: {
|
|
217
|
+
serializedName: "name",
|
|
218
|
+
type: {
|
|
219
|
+
name: "String"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
product: {
|
|
223
|
+
serializedName: "product",
|
|
224
|
+
type: {
|
|
225
|
+
name: "String"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
promotionCode: {
|
|
229
|
+
serializedName: "promotionCode",
|
|
230
|
+
type: {
|
|
231
|
+
name: "String"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
publisher: {
|
|
235
|
+
serializedName: "publisher",
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
version: {
|
|
241
|
+
serializedName: "version",
|
|
242
|
+
type: {
|
|
243
|
+
name: "String"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
const ExtensionResourceRequest = {
|
|
250
|
+
type: {
|
|
251
|
+
name: "Composite",
|
|
252
|
+
className: "ExtensionResourceRequest",
|
|
253
|
+
modelProperties: {
|
|
254
|
+
location: {
|
|
255
|
+
serializedName: "location",
|
|
256
|
+
type: {
|
|
257
|
+
name: "String"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
plan: {
|
|
261
|
+
serializedName: "plan",
|
|
262
|
+
type: {
|
|
263
|
+
name: "Composite",
|
|
264
|
+
className: "ExtensionResourcePlan"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
properties: {
|
|
268
|
+
serializedName: "properties",
|
|
269
|
+
type: {
|
|
270
|
+
name: "Dictionary",
|
|
271
|
+
value: { type: { name: "String" } }
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
tags: {
|
|
275
|
+
serializedName: "tags",
|
|
276
|
+
type: {
|
|
277
|
+
name: "Dictionary",
|
|
278
|
+
value: { type: { name: "String" } }
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const AccountResourceRequest = {
|
|
285
|
+
type: {
|
|
286
|
+
name: "Composite",
|
|
287
|
+
className: "AccountResourceRequest",
|
|
288
|
+
modelProperties: {
|
|
289
|
+
accountName: {
|
|
290
|
+
serializedName: "accountName",
|
|
291
|
+
type: {
|
|
292
|
+
name: "String"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
location: {
|
|
296
|
+
serializedName: "location",
|
|
297
|
+
type: {
|
|
298
|
+
name: "String"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
operationType: {
|
|
302
|
+
serializedName: "operationType",
|
|
303
|
+
type: {
|
|
304
|
+
name: "Enum",
|
|
305
|
+
allowedValues: ["unknown", "create", "update", "link"]
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
properties: {
|
|
309
|
+
serializedName: "properties",
|
|
310
|
+
type: {
|
|
311
|
+
name: "Dictionary",
|
|
312
|
+
value: { type: { name: "String" } }
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
tags: {
|
|
316
|
+
serializedName: "tags",
|
|
317
|
+
type: {
|
|
318
|
+
name: "Dictionary",
|
|
319
|
+
value: { type: { name: "String" } }
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
const AccountTagRequest = {
|
|
326
|
+
type: {
|
|
327
|
+
name: "Composite",
|
|
328
|
+
className: "AccountTagRequest",
|
|
329
|
+
modelProperties: {
|
|
330
|
+
tags: {
|
|
331
|
+
serializedName: "tags",
|
|
332
|
+
type: {
|
|
333
|
+
name: "Dictionary",
|
|
334
|
+
value: { type: { name: "String" } }
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
const ProjectResourceListResult = {
|
|
341
|
+
type: {
|
|
342
|
+
name: "Composite",
|
|
343
|
+
className: "ProjectResourceListResult",
|
|
344
|
+
modelProperties: {
|
|
345
|
+
value: {
|
|
346
|
+
serializedName: "value",
|
|
347
|
+
type: {
|
|
348
|
+
name: "Sequence",
|
|
349
|
+
element: {
|
|
350
|
+
type: {
|
|
351
|
+
name: "Composite",
|
|
352
|
+
className: "ProjectResource"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
const AccountResource = {
|
|
361
|
+
type: {
|
|
362
|
+
name: "Composite",
|
|
363
|
+
className: "AccountResource",
|
|
364
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
365
|
+
serializedName: "properties",
|
|
366
|
+
type: {
|
|
367
|
+
name: "Dictionary",
|
|
368
|
+
value: { type: { name: "String" } }
|
|
369
|
+
}
|
|
370
|
+
} })
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
const ExtensionResource = {
|
|
374
|
+
type: {
|
|
375
|
+
name: "Composite",
|
|
376
|
+
className: "ExtensionResource",
|
|
377
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { plan: {
|
|
378
|
+
serializedName: "plan",
|
|
379
|
+
type: {
|
|
380
|
+
name: "Composite",
|
|
381
|
+
className: "ExtensionResourcePlan"
|
|
382
|
+
}
|
|
383
|
+
}, properties: {
|
|
384
|
+
serializedName: "properties",
|
|
385
|
+
type: {
|
|
386
|
+
name: "Dictionary",
|
|
387
|
+
value: { type: { name: "String" } }
|
|
388
|
+
}
|
|
389
|
+
} })
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
const ProjectResource = {
|
|
393
|
+
type: {
|
|
394
|
+
name: "Composite",
|
|
395
|
+
className: "ProjectResource",
|
|
396
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
397
|
+
serializedName: "properties",
|
|
398
|
+
type: {
|
|
399
|
+
name: "Dictionary",
|
|
400
|
+
value: { type: { name: "String" } }
|
|
401
|
+
}
|
|
402
|
+
} })
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
407
|
+
__proto__: null,
|
|
408
|
+
OperationListResult: OperationListResult,
|
|
409
|
+
Operation: Operation,
|
|
410
|
+
OperationProperties: OperationProperties,
|
|
411
|
+
CheckNameAvailabilityParameter: CheckNameAvailabilityParameter,
|
|
412
|
+
CheckNameAvailabilityResult: CheckNameAvailabilityResult,
|
|
413
|
+
AccountResourceListResult: AccountResourceListResult,
|
|
414
|
+
Resource: Resource,
|
|
415
|
+
ExtensionResourceListResult: ExtensionResourceListResult,
|
|
416
|
+
ExtensionResourcePlan: ExtensionResourcePlan,
|
|
417
|
+
ExtensionResourceRequest: ExtensionResourceRequest,
|
|
418
|
+
AccountResourceRequest: AccountResourceRequest,
|
|
419
|
+
AccountTagRequest: AccountTagRequest,
|
|
420
|
+
ProjectResourceListResult: ProjectResourceListResult,
|
|
421
|
+
AccountResource: AccountResource,
|
|
422
|
+
ExtensionResource: ExtensionResource,
|
|
423
|
+
ProjectResource: ProjectResource
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
/*
|
|
427
|
+
* Copyright (c) Microsoft Corporation.
|
|
428
|
+
* Licensed under the MIT License.
|
|
429
|
+
*
|
|
430
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
431
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
432
|
+
*/
|
|
433
|
+
const accept = {
|
|
434
|
+
parameterPath: "accept",
|
|
435
|
+
mapper: {
|
|
436
|
+
defaultValue: "application/json",
|
|
437
|
+
isConstant: true,
|
|
438
|
+
serializedName: "Accept",
|
|
439
|
+
type: {
|
|
440
|
+
name: "String"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
const $host = {
|
|
445
|
+
parameterPath: "$host",
|
|
446
|
+
mapper: {
|
|
447
|
+
serializedName: "$host",
|
|
448
|
+
required: true,
|
|
449
|
+
type: {
|
|
450
|
+
name: "String"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
skipEncoding: true
|
|
454
|
+
};
|
|
455
|
+
const contentType = {
|
|
456
|
+
parameterPath: ["options", "contentType"],
|
|
457
|
+
mapper: {
|
|
458
|
+
defaultValue: "application/json",
|
|
459
|
+
isConstant: true,
|
|
460
|
+
serializedName: "Content-Type",
|
|
461
|
+
type: {
|
|
462
|
+
name: "String"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
const body = {
|
|
467
|
+
parameterPath: "body",
|
|
468
|
+
mapper: CheckNameAvailabilityParameter
|
|
469
|
+
};
|
|
470
|
+
const subscriptionId = {
|
|
471
|
+
parameterPath: "subscriptionId",
|
|
472
|
+
mapper: {
|
|
473
|
+
serializedName: "subscriptionId",
|
|
474
|
+
required: true,
|
|
475
|
+
type: {
|
|
476
|
+
name: "String"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
const apiVersion = {
|
|
481
|
+
parameterPath: "apiVersion",
|
|
482
|
+
mapper: {
|
|
483
|
+
defaultValue: "2014-04-01-preview",
|
|
484
|
+
isConstant: true,
|
|
485
|
+
serializedName: "api-version",
|
|
486
|
+
type: {
|
|
487
|
+
name: "String"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
const resourceGroupName = {
|
|
492
|
+
parameterPath: "resourceGroupName",
|
|
493
|
+
mapper: {
|
|
494
|
+
serializedName: "resourceGroupName",
|
|
495
|
+
required: true,
|
|
496
|
+
type: {
|
|
497
|
+
name: "String"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
const body1 = {
|
|
502
|
+
parameterPath: "body",
|
|
503
|
+
mapper: AccountResourceRequest
|
|
504
|
+
};
|
|
505
|
+
const resourceName = {
|
|
506
|
+
parameterPath: "resourceName",
|
|
507
|
+
mapper: {
|
|
508
|
+
serializedName: "resourceName",
|
|
509
|
+
required: true,
|
|
510
|
+
type: {
|
|
511
|
+
name: "String"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
const body2 = {
|
|
516
|
+
parameterPath: "body",
|
|
517
|
+
mapper: AccountTagRequest
|
|
518
|
+
};
|
|
519
|
+
const accountResourceName = {
|
|
520
|
+
parameterPath: "accountResourceName",
|
|
521
|
+
mapper: {
|
|
522
|
+
serializedName: "accountResourceName",
|
|
523
|
+
required: true,
|
|
524
|
+
type: {
|
|
525
|
+
name: "String"
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
const body3 = {
|
|
530
|
+
parameterPath: "body",
|
|
531
|
+
mapper: ExtensionResourceRequest
|
|
532
|
+
};
|
|
533
|
+
const extensionResourceName = {
|
|
534
|
+
parameterPath: "extensionResourceName",
|
|
535
|
+
mapper: {
|
|
536
|
+
serializedName: "extensionResourceName",
|
|
537
|
+
required: true,
|
|
538
|
+
type: {
|
|
539
|
+
name: "String"
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
const rootResourceName = {
|
|
544
|
+
parameterPath: "rootResourceName",
|
|
545
|
+
mapper: {
|
|
546
|
+
serializedName: "rootResourceName",
|
|
547
|
+
required: true,
|
|
548
|
+
type: {
|
|
549
|
+
name: "String"
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
const body4 = {
|
|
554
|
+
parameterPath: "body",
|
|
555
|
+
mapper: ProjectResource
|
|
556
|
+
};
|
|
557
|
+
const validating = {
|
|
558
|
+
parameterPath: ["options", "validating"],
|
|
559
|
+
mapper: {
|
|
560
|
+
serializedName: "validating",
|
|
561
|
+
type: {
|
|
562
|
+
name: "String"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
const subContainerName = {
|
|
567
|
+
parameterPath: "subContainerName",
|
|
568
|
+
mapper: {
|
|
569
|
+
serializedName: "subContainerName",
|
|
570
|
+
required: true,
|
|
571
|
+
type: {
|
|
572
|
+
name: "String"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
const operation = {
|
|
577
|
+
parameterPath: "operation",
|
|
578
|
+
mapper: {
|
|
579
|
+
serializedName: "operation",
|
|
580
|
+
required: true,
|
|
581
|
+
type: {
|
|
582
|
+
name: "String"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
const jobId = {
|
|
587
|
+
parameterPath: ["options", "jobId"],
|
|
588
|
+
mapper: {
|
|
589
|
+
serializedName: "jobId",
|
|
590
|
+
type: {
|
|
591
|
+
name: "Uuid"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
/*
|
|
597
|
+
* Copyright (c) Microsoft Corporation.
|
|
598
|
+
* Licensed under the MIT License.
|
|
599
|
+
*
|
|
600
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
601
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
602
|
+
*/
|
|
603
|
+
/** Class containing Operations operations. */
|
|
604
|
+
class OperationsImpl {
|
|
605
|
+
/**
|
|
606
|
+
* Initialize a new instance of the class Operations class.
|
|
607
|
+
* @param client Reference to the service client
|
|
608
|
+
*/
|
|
609
|
+
constructor(client) {
|
|
610
|
+
this.client = client;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
|
|
614
|
+
* @param options The options parameters.
|
|
615
|
+
*/
|
|
616
|
+
list(options) {
|
|
617
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
// Operation Specifications
|
|
621
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
622
|
+
const listOperationSpec = {
|
|
623
|
+
path: "/providers/microsoft.visualstudio/operations",
|
|
624
|
+
httpMethod: "GET",
|
|
625
|
+
responses: {
|
|
626
|
+
200: {
|
|
627
|
+
bodyMapper: OperationListResult
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
urlParameters: [$host],
|
|
631
|
+
headerParameters: [accept],
|
|
632
|
+
serializer
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
/*
|
|
636
|
+
* Copyright (c) Microsoft Corporation.
|
|
637
|
+
* Licensed under the MIT License.
|
|
638
|
+
*
|
|
639
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
640
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
641
|
+
*/
|
|
642
|
+
/** Class containing Accounts operations. */
|
|
643
|
+
class AccountsImpl {
|
|
644
|
+
/**
|
|
645
|
+
* Initialize a new instance of the class Accounts class.
|
|
646
|
+
* @param client Reference to the service client
|
|
647
|
+
*/
|
|
648
|
+
constructor(client) {
|
|
649
|
+
this.client = client;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Checks if the specified Visual Studio Team Services account name is available. Resource name can be
|
|
653
|
+
* either an account name or an account name and PUID.
|
|
654
|
+
* @param body Parameters describing the name to check availability for.
|
|
655
|
+
* @param options The options parameters.
|
|
656
|
+
*/
|
|
657
|
+
checkNameAvailability(body, options) {
|
|
658
|
+
return this.client.sendOperationRequest({ body, options }, checkNameAvailabilityOperationSpec);
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Gets all Visual Studio Team Services account resources under the resource group linked to the
|
|
662
|
+
* specified Azure subscription.
|
|
663
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
664
|
+
* @param options The options parameters.
|
|
665
|
+
*/
|
|
666
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
667
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Creates or updates a Visual Studio Team Services account resource.
|
|
671
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
672
|
+
* @param resourceName Name of the resource.
|
|
673
|
+
* @param body The request data.
|
|
674
|
+
* @param options The options parameters.
|
|
675
|
+
*/
|
|
676
|
+
createOrUpdate(resourceGroupName, resourceName, body, options) {
|
|
677
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, body, options }, createOrUpdateOperationSpec);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Deletes a Visual Studio Team Services account resource.
|
|
681
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
682
|
+
* @param resourceName Name of the resource.
|
|
683
|
+
* @param options The options parameters.
|
|
684
|
+
*/
|
|
685
|
+
delete(resourceGroupName, resourceName, options) {
|
|
686
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec);
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Gets the Visual Studio Team Services account resource details.
|
|
690
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
691
|
+
* @param resourceName Name of the resource.
|
|
692
|
+
* @param options The options parameters.
|
|
693
|
+
*/
|
|
694
|
+
get(resourceGroupName, resourceName, options) {
|
|
695
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Updates tags for Visual Studio Team Services account resource.
|
|
699
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
700
|
+
* @param resourceName Name of the resource.
|
|
701
|
+
* @param body The request data.
|
|
702
|
+
* @param options The options parameters.
|
|
703
|
+
*/
|
|
704
|
+
update(resourceGroupName, resourceName, body, options) {
|
|
705
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, body, options }, updateOperationSpec);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
// Operation Specifications
|
|
709
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
710
|
+
const checkNameAvailabilityOperationSpec = {
|
|
711
|
+
path: "/subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability",
|
|
712
|
+
httpMethod: "POST",
|
|
713
|
+
responses: {
|
|
714
|
+
200: {
|
|
715
|
+
bodyMapper: CheckNameAvailabilityResult
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
requestBody: body,
|
|
719
|
+
queryParameters: [apiVersion],
|
|
720
|
+
urlParameters: [$host, subscriptionId],
|
|
721
|
+
headerParameters: [accept, contentType],
|
|
722
|
+
mediaType: "json",
|
|
723
|
+
serializer: serializer$1
|
|
724
|
+
};
|
|
725
|
+
const listByResourceGroupOperationSpec = {
|
|
726
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account",
|
|
727
|
+
httpMethod: "GET",
|
|
728
|
+
responses: {
|
|
729
|
+
200: {
|
|
730
|
+
bodyMapper: AccountResourceListResult
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
queryParameters: [apiVersion],
|
|
734
|
+
urlParameters: [
|
|
735
|
+
$host,
|
|
736
|
+
subscriptionId,
|
|
737
|
+
resourceGroupName
|
|
738
|
+
],
|
|
739
|
+
headerParameters: [accept],
|
|
740
|
+
serializer: serializer$1
|
|
741
|
+
};
|
|
742
|
+
const createOrUpdateOperationSpec = {
|
|
743
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
744
|
+
httpMethod: "PUT",
|
|
745
|
+
responses: {
|
|
746
|
+
200: {
|
|
747
|
+
bodyMapper: AccountResource
|
|
748
|
+
},
|
|
749
|
+
404: {}
|
|
750
|
+
},
|
|
751
|
+
requestBody: body1,
|
|
752
|
+
queryParameters: [apiVersion],
|
|
753
|
+
urlParameters: [
|
|
754
|
+
$host,
|
|
755
|
+
subscriptionId,
|
|
756
|
+
resourceGroupName,
|
|
757
|
+
resourceName
|
|
758
|
+
],
|
|
759
|
+
headerParameters: [accept, contentType],
|
|
760
|
+
mediaType: "json",
|
|
761
|
+
serializer: serializer$1
|
|
762
|
+
};
|
|
763
|
+
const deleteOperationSpec = {
|
|
764
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
765
|
+
httpMethod: "DELETE",
|
|
766
|
+
responses: { 200: {} },
|
|
767
|
+
queryParameters: [apiVersion],
|
|
768
|
+
urlParameters: [
|
|
769
|
+
$host,
|
|
770
|
+
subscriptionId,
|
|
771
|
+
resourceGroupName,
|
|
772
|
+
resourceName
|
|
773
|
+
],
|
|
774
|
+
serializer: serializer$1
|
|
775
|
+
};
|
|
776
|
+
const getOperationSpec = {
|
|
777
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
778
|
+
httpMethod: "GET",
|
|
779
|
+
responses: {
|
|
780
|
+
200: {
|
|
781
|
+
bodyMapper: AccountResource
|
|
782
|
+
},
|
|
783
|
+
404: {}
|
|
784
|
+
},
|
|
785
|
+
queryParameters: [apiVersion],
|
|
786
|
+
urlParameters: [
|
|
787
|
+
$host,
|
|
788
|
+
subscriptionId,
|
|
789
|
+
resourceGroupName,
|
|
790
|
+
resourceName
|
|
791
|
+
],
|
|
792
|
+
headerParameters: [accept],
|
|
793
|
+
serializer: serializer$1
|
|
794
|
+
};
|
|
795
|
+
const updateOperationSpec = {
|
|
796
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
797
|
+
httpMethod: "PATCH",
|
|
798
|
+
responses: {
|
|
799
|
+
200: {
|
|
800
|
+
bodyMapper: AccountResource
|
|
801
|
+
},
|
|
802
|
+
404: {}
|
|
803
|
+
},
|
|
804
|
+
requestBody: body2,
|
|
805
|
+
queryParameters: [apiVersion],
|
|
806
|
+
urlParameters: [
|
|
807
|
+
$host,
|
|
808
|
+
subscriptionId,
|
|
809
|
+
resourceGroupName,
|
|
810
|
+
resourceName
|
|
811
|
+
],
|
|
812
|
+
headerParameters: [accept, contentType],
|
|
813
|
+
mediaType: "json",
|
|
814
|
+
serializer: serializer$1
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
/*
|
|
818
|
+
* Copyright (c) Microsoft Corporation.
|
|
819
|
+
* Licensed under the MIT License.
|
|
820
|
+
*
|
|
821
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
822
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
823
|
+
*/
|
|
824
|
+
/** Class containing Extensions operations. */
|
|
825
|
+
class ExtensionsImpl {
|
|
826
|
+
/**
|
|
827
|
+
* Initialize a new instance of the class Extensions class.
|
|
828
|
+
* @param client Reference to the service client
|
|
829
|
+
*/
|
|
830
|
+
constructor(client) {
|
|
831
|
+
this.client = client;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Gets the details of the extension resources created within the resource group.
|
|
835
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
836
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
837
|
+
* @param options The options parameters.
|
|
838
|
+
*/
|
|
839
|
+
listByAccount(resourceGroupName, accountResourceName, options) {
|
|
840
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountResourceName, options }, listByAccountOperationSpec);
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* Registers the extension with a Visual Studio Team Services account.
|
|
844
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
845
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
846
|
+
* @param extensionResourceName The name of the extension.
|
|
847
|
+
* @param body An object containing additional information related to the extension request.
|
|
848
|
+
* @param options The options parameters.
|
|
849
|
+
*/
|
|
850
|
+
create(resourceGroupName, accountResourceName, extensionResourceName, body, options) {
|
|
851
|
+
return this.client.sendOperationRequest({
|
|
852
|
+
resourceGroupName,
|
|
853
|
+
accountResourceName,
|
|
854
|
+
extensionResourceName,
|
|
855
|
+
body,
|
|
856
|
+
options
|
|
857
|
+
}, createOperationSpec);
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Removes an extension resource registration for a Visual Studio Team Services account.
|
|
861
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
862
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
863
|
+
* @param extensionResourceName The name of the extension.
|
|
864
|
+
* @param options The options parameters.
|
|
865
|
+
*/
|
|
866
|
+
delete(resourceGroupName, accountResourceName, extensionResourceName, options) {
|
|
867
|
+
return this.client.sendOperationRequest({
|
|
868
|
+
resourceGroupName,
|
|
869
|
+
accountResourceName,
|
|
870
|
+
extensionResourceName,
|
|
871
|
+
options
|
|
872
|
+
}, deleteOperationSpec$1);
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* Gets the details of an extension associated with a Visual Studio Team Services account resource.
|
|
876
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
877
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
878
|
+
* @param extensionResourceName The name of the extension.
|
|
879
|
+
* @param options The options parameters.
|
|
880
|
+
*/
|
|
881
|
+
get(resourceGroupName, accountResourceName, extensionResourceName, options) {
|
|
882
|
+
return this.client.sendOperationRequest({
|
|
883
|
+
resourceGroupName,
|
|
884
|
+
accountResourceName,
|
|
885
|
+
extensionResourceName,
|
|
886
|
+
options
|
|
887
|
+
}, getOperationSpec$1);
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Updates an existing extension registration for the Visual Studio Team Services account.
|
|
891
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
892
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
893
|
+
* @param extensionResourceName The name of the extension.
|
|
894
|
+
* @param body An object containing additional information related to the extension request.
|
|
895
|
+
* @param options The options parameters.
|
|
896
|
+
*/
|
|
897
|
+
update(resourceGroupName, accountResourceName, extensionResourceName, body, options) {
|
|
898
|
+
return this.client.sendOperationRequest({
|
|
899
|
+
resourceGroupName,
|
|
900
|
+
accountResourceName,
|
|
901
|
+
extensionResourceName,
|
|
902
|
+
body,
|
|
903
|
+
options
|
|
904
|
+
}, updateOperationSpec$1);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
// Operation Specifications
|
|
908
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
909
|
+
const listByAccountOperationSpec = {
|
|
910
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension",
|
|
911
|
+
httpMethod: "GET",
|
|
912
|
+
responses: {
|
|
913
|
+
200: {
|
|
914
|
+
bodyMapper: ExtensionResourceListResult
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
queryParameters: [apiVersion],
|
|
918
|
+
urlParameters: [
|
|
919
|
+
$host,
|
|
920
|
+
subscriptionId,
|
|
921
|
+
resourceGroupName,
|
|
922
|
+
accountResourceName
|
|
923
|
+
],
|
|
924
|
+
headerParameters: [accept],
|
|
925
|
+
serializer: serializer$2
|
|
926
|
+
};
|
|
927
|
+
const createOperationSpec = {
|
|
928
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
929
|
+
httpMethod: "PUT",
|
|
930
|
+
responses: {
|
|
931
|
+
200: {
|
|
932
|
+
bodyMapper: ExtensionResource
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
requestBody: body3,
|
|
936
|
+
queryParameters: [apiVersion],
|
|
937
|
+
urlParameters: [
|
|
938
|
+
$host,
|
|
939
|
+
subscriptionId,
|
|
940
|
+
resourceGroupName,
|
|
941
|
+
accountResourceName,
|
|
942
|
+
extensionResourceName
|
|
943
|
+
],
|
|
944
|
+
headerParameters: [accept, contentType],
|
|
945
|
+
mediaType: "json",
|
|
946
|
+
serializer: serializer$2
|
|
947
|
+
};
|
|
948
|
+
const deleteOperationSpec$1 = {
|
|
949
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
950
|
+
httpMethod: "DELETE",
|
|
951
|
+
responses: { 200: {} },
|
|
952
|
+
queryParameters: [apiVersion],
|
|
953
|
+
urlParameters: [
|
|
954
|
+
$host,
|
|
955
|
+
subscriptionId,
|
|
956
|
+
resourceGroupName,
|
|
957
|
+
accountResourceName,
|
|
958
|
+
extensionResourceName
|
|
959
|
+
],
|
|
960
|
+
serializer: serializer$2
|
|
961
|
+
};
|
|
962
|
+
const getOperationSpec$1 = {
|
|
963
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
964
|
+
httpMethod: "GET",
|
|
965
|
+
responses: {
|
|
966
|
+
200: {
|
|
967
|
+
bodyMapper: ExtensionResource
|
|
968
|
+
},
|
|
969
|
+
404: {}
|
|
970
|
+
},
|
|
971
|
+
queryParameters: [apiVersion],
|
|
972
|
+
urlParameters: [
|
|
973
|
+
$host,
|
|
974
|
+
subscriptionId,
|
|
975
|
+
resourceGroupName,
|
|
976
|
+
accountResourceName,
|
|
977
|
+
extensionResourceName
|
|
978
|
+
],
|
|
979
|
+
headerParameters: [accept],
|
|
980
|
+
serializer: serializer$2
|
|
981
|
+
};
|
|
982
|
+
const updateOperationSpec$1 = {
|
|
983
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
984
|
+
httpMethod: "PATCH",
|
|
985
|
+
responses: {
|
|
986
|
+
200: {
|
|
987
|
+
bodyMapper: ExtensionResource
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
requestBody: body3,
|
|
991
|
+
queryParameters: [apiVersion],
|
|
992
|
+
urlParameters: [
|
|
993
|
+
$host,
|
|
994
|
+
subscriptionId,
|
|
995
|
+
resourceGroupName,
|
|
996
|
+
accountResourceName,
|
|
997
|
+
extensionResourceName
|
|
998
|
+
],
|
|
999
|
+
headerParameters: [accept, contentType],
|
|
1000
|
+
mediaType: "json",
|
|
1001
|
+
serializer: serializer$2
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
/*
|
|
1005
|
+
* Copyright (c) Microsoft Corporation.
|
|
1006
|
+
* Licensed under the MIT License.
|
|
1007
|
+
*
|
|
1008
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1009
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1010
|
+
*/
|
|
1011
|
+
class LroImpl {
|
|
1012
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1013
|
+
this.sendOperationFn = sendOperationFn;
|
|
1014
|
+
this.args = args;
|
|
1015
|
+
this.spec = spec;
|
|
1016
|
+
this.requestPath = requestPath;
|
|
1017
|
+
this.requestMethod = requestMethod;
|
|
1018
|
+
}
|
|
1019
|
+
sendInitialRequest() {
|
|
1020
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
sendPollRequest(path) {
|
|
1025
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1026
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1027
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/*
|
|
1033
|
+
* Copyright (c) Microsoft Corporation.
|
|
1034
|
+
* Licensed under the MIT License.
|
|
1035
|
+
*
|
|
1036
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1037
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1038
|
+
*/
|
|
1039
|
+
/** Class containing Projects operations. */
|
|
1040
|
+
class ProjectsImpl {
|
|
1041
|
+
/**
|
|
1042
|
+
* Initialize a new instance of the class Projects class.
|
|
1043
|
+
* @param client Reference to the service client
|
|
1044
|
+
*/
|
|
1045
|
+
constructor(client) {
|
|
1046
|
+
this.client = client;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Gets all Visual Studio Team Services project resources created in the specified Team Services
|
|
1050
|
+
* account.
|
|
1051
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1052
|
+
* @param rootResourceName Name of the Team Services account.
|
|
1053
|
+
* @param options The options parameters.
|
|
1054
|
+
*/
|
|
1055
|
+
listByResourceGroup(resourceGroupName, rootResourceName, options) {
|
|
1056
|
+
return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, options }, listByResourceGroupOperationSpec$1);
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
|
|
1060
|
+
* and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
|
|
1061
|
+
* VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
1062
|
+
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
1063
|
+
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
1064
|
+
* templates).
|
|
1065
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1066
|
+
* @param rootResourceName Name of the Team Services account.
|
|
1067
|
+
* @param resourceName Name of the Team Services project.
|
|
1068
|
+
* @param body The request data.
|
|
1069
|
+
* @param options The options parameters.
|
|
1070
|
+
*/
|
|
1071
|
+
beginCreate(resourceGroupName, rootResourceName, resourceName, body, options) {
|
|
1072
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1073
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1074
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1075
|
+
});
|
|
1076
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1077
|
+
var _a;
|
|
1078
|
+
let currentRawResponse = undefined;
|
|
1079
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1080
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1081
|
+
currentRawResponse = rawResponse;
|
|
1082
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1083
|
+
};
|
|
1084
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1085
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1086
|
+
return {
|
|
1087
|
+
flatResponse,
|
|
1088
|
+
rawResponse: {
|
|
1089
|
+
statusCode: currentRawResponse.status,
|
|
1090
|
+
body: currentRawResponse.parsedBody,
|
|
1091
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
});
|
|
1095
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, rootResourceName, resourceName, body, options }, createOperationSpec$1);
|
|
1096
|
+
return new coreLro.LroEngine(lro, {
|
|
1097
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1098
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1099
|
+
});
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
|
|
1104
|
+
* and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
|
|
1105
|
+
* VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
1106
|
+
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
1107
|
+
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
1108
|
+
* templates).
|
|
1109
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1110
|
+
* @param rootResourceName Name of the Team Services account.
|
|
1111
|
+
* @param resourceName Name of the Team Services project.
|
|
1112
|
+
* @param body The request data.
|
|
1113
|
+
* @param options The options parameters.
|
|
1114
|
+
*/
|
|
1115
|
+
beginCreateAndWait(resourceGroupName, rootResourceName, resourceName, body, options) {
|
|
1116
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1117
|
+
const poller = yield this.beginCreate(resourceGroupName, rootResourceName, resourceName, body, options);
|
|
1118
|
+
return poller.pollUntilDone();
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Gets the details of a Team Services project resource.
|
|
1123
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1124
|
+
* @param rootResourceName Name of the Team Services account.
|
|
1125
|
+
* @param resourceName Name of the Team Services project.
|
|
1126
|
+
* @param options The options parameters.
|
|
1127
|
+
*/
|
|
1128
|
+
get(resourceGroupName, rootResourceName, resourceName, options) {
|
|
1129
|
+
return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, resourceName, options }, getOperationSpec$2);
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Updates the tags of the specified Team Services project.
|
|
1133
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1134
|
+
* @param rootResourceName Name of the Team Services account.
|
|
1135
|
+
* @param resourceName Name of the Team Services project.
|
|
1136
|
+
* @param body The request data.
|
|
1137
|
+
* @param options The options parameters.
|
|
1138
|
+
*/
|
|
1139
|
+
update(resourceGroupName, rootResourceName, resourceName, body, options) {
|
|
1140
|
+
return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, resourceName, body, options }, updateOperationSpec$2);
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Gets the status of the project resource creation job.
|
|
1144
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1145
|
+
* @param rootResourceName Name of the Team Services account.
|
|
1146
|
+
* @param resourceName Name of the Team Services project.
|
|
1147
|
+
* @param subContainerName This parameter should be set to the resourceName.
|
|
1148
|
+
* @param operation The operation type. The only supported value is 'put'.
|
|
1149
|
+
* @param options The options parameters.
|
|
1150
|
+
*/
|
|
1151
|
+
getJobStatus(resourceGroupName, rootResourceName, resourceName, subContainerName, operation, options) {
|
|
1152
|
+
return this.client.sendOperationRequest({
|
|
1153
|
+
resourceGroupName,
|
|
1154
|
+
rootResourceName,
|
|
1155
|
+
resourceName,
|
|
1156
|
+
subContainerName,
|
|
1157
|
+
operation,
|
|
1158
|
+
options
|
|
1159
|
+
}, getJobStatusOperationSpec);
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
// Operation Specifications
|
|
1163
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1164
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
1165
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project",
|
|
1166
|
+
httpMethod: "GET",
|
|
1167
|
+
responses: {
|
|
1168
|
+
200: {
|
|
1169
|
+
bodyMapper: ProjectResourceListResult
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
queryParameters: [apiVersion],
|
|
1173
|
+
urlParameters: [
|
|
1174
|
+
$host,
|
|
1175
|
+
subscriptionId,
|
|
1176
|
+
resourceGroupName,
|
|
1177
|
+
rootResourceName
|
|
1178
|
+
],
|
|
1179
|
+
headerParameters: [accept],
|
|
1180
|
+
serializer: serializer$3
|
|
1181
|
+
};
|
|
1182
|
+
const createOperationSpec$1 = {
|
|
1183
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
1184
|
+
httpMethod: "PUT",
|
|
1185
|
+
responses: {
|
|
1186
|
+
200: {
|
|
1187
|
+
bodyMapper: ProjectResource
|
|
1188
|
+
},
|
|
1189
|
+
201: {
|
|
1190
|
+
bodyMapper: ProjectResource
|
|
1191
|
+
},
|
|
1192
|
+
202: {
|
|
1193
|
+
bodyMapper: ProjectResource
|
|
1194
|
+
},
|
|
1195
|
+
204: {
|
|
1196
|
+
bodyMapper: ProjectResource
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
requestBody: body4,
|
|
1200
|
+
queryParameters: [apiVersion, validating],
|
|
1201
|
+
urlParameters: [
|
|
1202
|
+
$host,
|
|
1203
|
+
subscriptionId,
|
|
1204
|
+
resourceGroupName,
|
|
1205
|
+
resourceName,
|
|
1206
|
+
rootResourceName
|
|
1207
|
+
],
|
|
1208
|
+
headerParameters: [accept, contentType],
|
|
1209
|
+
mediaType: "json",
|
|
1210
|
+
serializer: serializer$3
|
|
1211
|
+
};
|
|
1212
|
+
const getOperationSpec$2 = {
|
|
1213
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
1214
|
+
httpMethod: "GET",
|
|
1215
|
+
responses: {
|
|
1216
|
+
200: {
|
|
1217
|
+
bodyMapper: ProjectResource
|
|
1218
|
+
},
|
|
1219
|
+
404: {}
|
|
1220
|
+
},
|
|
1221
|
+
queryParameters: [apiVersion],
|
|
1222
|
+
urlParameters: [
|
|
1223
|
+
$host,
|
|
1224
|
+
subscriptionId,
|
|
1225
|
+
resourceGroupName,
|
|
1226
|
+
resourceName,
|
|
1227
|
+
rootResourceName
|
|
1228
|
+
],
|
|
1229
|
+
headerParameters: [accept],
|
|
1230
|
+
serializer: serializer$3
|
|
1231
|
+
};
|
|
1232
|
+
const updateOperationSpec$2 = {
|
|
1233
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
1234
|
+
httpMethod: "PATCH",
|
|
1235
|
+
responses: {
|
|
1236
|
+
200: {
|
|
1237
|
+
bodyMapper: ProjectResource
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
requestBody: body4,
|
|
1241
|
+
queryParameters: [apiVersion],
|
|
1242
|
+
urlParameters: [
|
|
1243
|
+
$host,
|
|
1244
|
+
subscriptionId,
|
|
1245
|
+
resourceGroupName,
|
|
1246
|
+
resourceName,
|
|
1247
|
+
rootResourceName
|
|
1248
|
+
],
|
|
1249
|
+
headerParameters: [accept, contentType],
|
|
1250
|
+
mediaType: "json",
|
|
1251
|
+
serializer: serializer$3
|
|
1252
|
+
};
|
|
1253
|
+
const getJobStatusOperationSpec = {
|
|
1254
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status",
|
|
1255
|
+
httpMethod: "GET",
|
|
1256
|
+
responses: {
|
|
1257
|
+
200: {
|
|
1258
|
+
bodyMapper: ProjectResource
|
|
1259
|
+
},
|
|
1260
|
+
202: {}
|
|
1261
|
+
},
|
|
1262
|
+
queryParameters: [
|
|
1263
|
+
apiVersion,
|
|
1264
|
+
operation,
|
|
1265
|
+
jobId
|
|
1266
|
+
],
|
|
1267
|
+
urlParameters: [
|
|
1268
|
+
$host,
|
|
1269
|
+
subscriptionId,
|
|
1270
|
+
resourceGroupName,
|
|
1271
|
+
resourceName,
|
|
1272
|
+
rootResourceName,
|
|
1273
|
+
subContainerName
|
|
1274
|
+
],
|
|
1275
|
+
headerParameters: [accept],
|
|
1276
|
+
serializer: serializer$3
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
/*
|
|
1280
|
+
* Copyright (c) Microsoft Corporation.
|
|
1281
|
+
* Licensed under the MIT License.
|
|
1282
|
+
*
|
|
1283
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1284
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1285
|
+
*/
|
|
1286
|
+
class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
|
|
1287
|
+
/**
|
|
1288
|
+
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
1289
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1290
|
+
* @param subscriptionId The Azure subscription identifier.
|
|
1291
|
+
* @param options The parameter options
|
|
1292
|
+
*/
|
|
1293
|
+
constructor(credentials, subscriptionId, options) {
|
|
1294
|
+
if (credentials === undefined) {
|
|
1295
|
+
throw new Error("'credentials' cannot be null");
|
|
1296
|
+
}
|
|
1297
|
+
if (subscriptionId === undefined) {
|
|
1298
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1299
|
+
}
|
|
1300
|
+
// Initializing default values for options
|
|
1301
|
+
if (!options) {
|
|
1302
|
+
options = {};
|
|
1303
|
+
}
|
|
1304
|
+
const defaults = {
|
|
1305
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1306
|
+
credential: credentials
|
|
1307
|
+
};
|
|
1308
|
+
const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.1`;
|
|
1309
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1310
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1311
|
+
: `${packageDetails}`;
|
|
1312
|
+
if (!options.credentialScopes) {
|
|
1313
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1314
|
+
}
|
|
1315
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1316
|
+
userAgentPrefix
|
|
1317
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1318
|
+
super(optionsWithDefaults);
|
|
1319
|
+
// Parameter assignments
|
|
1320
|
+
this.subscriptionId = subscriptionId;
|
|
1321
|
+
// Assigning values to Constant parameters
|
|
1322
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1323
|
+
this.apiVersion = options.apiVersion || "2014-04-01-preview";
|
|
1324
|
+
this.operations = new OperationsImpl(this);
|
|
1325
|
+
this.accounts = new AccountsImpl(this);
|
|
1326
|
+
this.extensions = new ExtensionsImpl(this);
|
|
1327
|
+
this.projects = new ProjectsImpl(this);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
exports.VisualStudioResourceProviderClient = VisualStudioResourceProviderClient;
|
|
1332
|
+
//# sourceMappingURL=index.js.map
|