@azure/arm-visualstudio 3.0.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 +1 -1
- package/README.md +70 -78
- 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/{esm → dist-esm/src}/models/index.js +1 -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 +168 -223
- 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 +84 -46
- 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 +1 -2
- 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/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/accounts.js} +2 -7
- 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/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
- 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 +79 -33
- package/review/arm-visualstudio.api.md +314 -0
- package/rollup.config.js +181 -30
- package/src/{models/projectsMappers.ts → index.ts} +3 -10
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +224 -547
- package/src/models/mappers.ts +172 -227
- package/src/models/parameters.ts +113 -47
- package/src/operations/accounts.ts +149 -286
- package/src/operations/extensions.ts +130 -231
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +26 -42
- package/src/operations/projects.ts +237 -278
- 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 +76 -38
- package/tsconfig.json +5 -4
- package/types/arm-visualstudio.d.ts +493 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-visualstudio.js +0 -1546
- 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 -9
- 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 -9
- package/esm/models/extensionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -579
- package/esm/models/index.d.ts.map +0 -1
- 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.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 -9
- 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 -223
- 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 -199
- 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 -47
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/projects.d.ts +0 -165
- package/esm/operations/projects.d.ts.map +0 -1
- package/esm/operations/projects.js +0 -243
- package/esm/operations/projects.js.map +0 -1
- package/esm/visualStudioResourceProviderClient.d.ts +0 -27
- package/esm/visualStudioResourceProviderClient.d.ts.map +0 -1
- package/esm/visualStudioResourceProviderClient.js +0 -40
- package/esm/visualStudioResourceProviderClient.js.map +0 -1
- package/esm/visualStudioResourceProviderClientContext.d.ts +0 -22
- package/esm/visualStudioResourceProviderClientContext.d.ts.map +0 -1
- package/esm/visualStudioResourceProviderClientContext.js +0 -60
- package/esm/visualStudioResourceProviderClientContext.js.map +0 -1
- package/src/models/accountsMappers.ts +0 -22
- package/src/models/extensionsMappers.ts +0 -19
- package/src/visualStudioResourceProviderClientContext.ts +0 -67
package/dist/arm-visualstudio.js
DELETED
|
@@ -1,1546 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
(function (global, factory) {
|
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
10
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
11
|
-
(global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmVisualstudio = {}), global.msRestAzure, global.msRest));
|
|
12
|
-
}(this, (function (exports, msRestAzure, msRest) { 'use strict';
|
|
13
|
-
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
/* global Reflect, Promise */
|
|
29
|
-
|
|
30
|
-
var extendStatics = function(d, b) {
|
|
31
|
-
extendStatics = Object.setPrototypeOf ||
|
|
32
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34
|
-
return extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function __extends(d, b) {
|
|
38
|
-
extendStatics(d, b);
|
|
39
|
-
function __() { this.constructor = d; }
|
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var __assign = function() {
|
|
44
|
-
__assign = Object.assign || function __assign(t) {
|
|
45
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
-
s = arguments[i];
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
return __assign.apply(this, arguments);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
* Copyright (c) Microsoft Corporation.
|
|
56
|
-
* Licensed under the MIT License.
|
|
57
|
-
*
|
|
58
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
59
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
63
|
-
__proto__: null
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/*
|
|
67
|
-
* Copyright (c) Microsoft Corporation.
|
|
68
|
-
* Licensed under the MIT License.
|
|
69
|
-
*
|
|
70
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
71
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
72
|
-
*/
|
|
73
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
74
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
75
|
-
var Resource = {
|
|
76
|
-
serializedName: "Resource",
|
|
77
|
-
type: {
|
|
78
|
-
name: "Composite",
|
|
79
|
-
className: "Resource",
|
|
80
|
-
modelProperties: {
|
|
81
|
-
id: {
|
|
82
|
-
readOnly: true,
|
|
83
|
-
serializedName: "id",
|
|
84
|
-
type: {
|
|
85
|
-
name: "String"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
location: {
|
|
89
|
-
serializedName: "location",
|
|
90
|
-
type: {
|
|
91
|
-
name: "String"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
name: {
|
|
95
|
-
readOnly: true,
|
|
96
|
-
serializedName: "name",
|
|
97
|
-
type: {
|
|
98
|
-
name: "String"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
tags: {
|
|
102
|
-
serializedName: "tags",
|
|
103
|
-
type: {
|
|
104
|
-
name: "Dictionary",
|
|
105
|
-
value: {
|
|
106
|
-
type: {
|
|
107
|
-
name: "String"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
type: {
|
|
113
|
-
readOnly: true,
|
|
114
|
-
serializedName: "type",
|
|
115
|
-
type: {
|
|
116
|
-
name: "String"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
var AccountResource = {
|
|
123
|
-
serializedName: "AccountResource",
|
|
124
|
-
type: {
|
|
125
|
-
name: "Composite",
|
|
126
|
-
className: "AccountResource",
|
|
127
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { properties: {
|
|
128
|
-
serializedName: "properties",
|
|
129
|
-
type: {
|
|
130
|
-
name: "Dictionary",
|
|
131
|
-
value: {
|
|
132
|
-
type: {
|
|
133
|
-
name: "String"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
} })
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
var AccountResourceListResult = {
|
|
141
|
-
serializedName: "AccountResourceListResult",
|
|
142
|
-
type: {
|
|
143
|
-
name: "Composite",
|
|
144
|
-
className: "AccountResourceListResult",
|
|
145
|
-
modelProperties: {
|
|
146
|
-
value: {
|
|
147
|
-
serializedName: "value",
|
|
148
|
-
type: {
|
|
149
|
-
name: "Sequence",
|
|
150
|
-
element: {
|
|
151
|
-
type: {
|
|
152
|
-
name: "Composite",
|
|
153
|
-
className: "AccountResource"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
var AccountTagRequest = {
|
|
162
|
-
serializedName: "AccountTagRequest",
|
|
163
|
-
type: {
|
|
164
|
-
name: "Composite",
|
|
165
|
-
className: "AccountTagRequest",
|
|
166
|
-
modelProperties: {
|
|
167
|
-
tags: {
|
|
168
|
-
serializedName: "tags",
|
|
169
|
-
type: {
|
|
170
|
-
name: "Dictionary",
|
|
171
|
-
value: {
|
|
172
|
-
type: {
|
|
173
|
-
name: "String"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
var AccountResourceRequest = {
|
|
182
|
-
serializedName: "AccountResourceRequest",
|
|
183
|
-
type: {
|
|
184
|
-
name: "Composite",
|
|
185
|
-
className: "AccountResourceRequest",
|
|
186
|
-
modelProperties: {
|
|
187
|
-
accountName: {
|
|
188
|
-
serializedName: "accountName",
|
|
189
|
-
type: {
|
|
190
|
-
name: "String"
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
location: {
|
|
194
|
-
serializedName: "location",
|
|
195
|
-
type: {
|
|
196
|
-
name: "String"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
operationType: {
|
|
200
|
-
serializedName: "operationType",
|
|
201
|
-
type: {
|
|
202
|
-
name: "Object"
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
properties: {
|
|
206
|
-
serializedName: "properties",
|
|
207
|
-
type: {
|
|
208
|
-
name: "Dictionary",
|
|
209
|
-
value: {
|
|
210
|
-
type: {
|
|
211
|
-
name: "String"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
tags: {
|
|
217
|
-
serializedName: "tags",
|
|
218
|
-
type: {
|
|
219
|
-
name: "Dictionary",
|
|
220
|
-
value: {
|
|
221
|
-
type: {
|
|
222
|
-
name: "String"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
var CheckNameAvailabilityParameter = {
|
|
231
|
-
serializedName: "CheckNameAvailabilityParameter",
|
|
232
|
-
type: {
|
|
233
|
-
name: "Composite",
|
|
234
|
-
className: "CheckNameAvailabilityParameter",
|
|
235
|
-
modelProperties: {
|
|
236
|
-
resourceName: {
|
|
237
|
-
serializedName: "resourceName",
|
|
238
|
-
type: {
|
|
239
|
-
name: "String"
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
resourceType: {
|
|
243
|
-
serializedName: "resourceType",
|
|
244
|
-
type: {
|
|
245
|
-
name: "String"
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
var CheckNameAvailabilityResult = {
|
|
252
|
-
serializedName: "CheckNameAvailabilityResult",
|
|
253
|
-
type: {
|
|
254
|
-
name: "Composite",
|
|
255
|
-
className: "CheckNameAvailabilityResult",
|
|
256
|
-
modelProperties: {
|
|
257
|
-
message: {
|
|
258
|
-
serializedName: "message",
|
|
259
|
-
type: {
|
|
260
|
-
name: "String"
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
nameAvailable: {
|
|
264
|
-
serializedName: "nameAvailable",
|
|
265
|
-
type: {
|
|
266
|
-
name: "Boolean"
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
var ExtensionResourcePlan = {
|
|
273
|
-
serializedName: "ExtensionResourcePlan",
|
|
274
|
-
type: {
|
|
275
|
-
name: "Composite",
|
|
276
|
-
className: "ExtensionResourcePlan",
|
|
277
|
-
modelProperties: {
|
|
278
|
-
name: {
|
|
279
|
-
serializedName: "name",
|
|
280
|
-
type: {
|
|
281
|
-
name: "String"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
product: {
|
|
285
|
-
serializedName: "product",
|
|
286
|
-
type: {
|
|
287
|
-
name: "String"
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
promotionCode: {
|
|
291
|
-
serializedName: "promotionCode",
|
|
292
|
-
type: {
|
|
293
|
-
name: "String"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
publisher: {
|
|
297
|
-
serializedName: "publisher",
|
|
298
|
-
type: {
|
|
299
|
-
name: "String"
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
version: {
|
|
303
|
-
serializedName: "version",
|
|
304
|
-
type: {
|
|
305
|
-
name: "String"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
var ExtensionResource = {
|
|
312
|
-
serializedName: "ExtensionResource",
|
|
313
|
-
type: {
|
|
314
|
-
name: "Composite",
|
|
315
|
-
className: "ExtensionResource",
|
|
316
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { plan: {
|
|
317
|
-
serializedName: "plan",
|
|
318
|
-
type: {
|
|
319
|
-
name: "Composite",
|
|
320
|
-
className: "ExtensionResourcePlan"
|
|
321
|
-
}
|
|
322
|
-
}, properties: {
|
|
323
|
-
serializedName: "properties",
|
|
324
|
-
type: {
|
|
325
|
-
name: "Dictionary",
|
|
326
|
-
value: {
|
|
327
|
-
type: {
|
|
328
|
-
name: "String"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
} })
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
var ExtensionResourceListResult = {
|
|
336
|
-
serializedName: "ExtensionResourceListResult",
|
|
337
|
-
type: {
|
|
338
|
-
name: "Composite",
|
|
339
|
-
className: "ExtensionResourceListResult",
|
|
340
|
-
modelProperties: {
|
|
341
|
-
value: {
|
|
342
|
-
serializedName: "value",
|
|
343
|
-
type: {
|
|
344
|
-
name: "Sequence",
|
|
345
|
-
element: {
|
|
346
|
-
type: {
|
|
347
|
-
name: "Composite",
|
|
348
|
-
className: "ExtensionResource"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
var ExtensionResourceRequest = {
|
|
357
|
-
serializedName: "ExtensionResourceRequest",
|
|
358
|
-
type: {
|
|
359
|
-
name: "Composite",
|
|
360
|
-
className: "ExtensionResourceRequest",
|
|
361
|
-
modelProperties: {
|
|
362
|
-
location: {
|
|
363
|
-
serializedName: "location",
|
|
364
|
-
type: {
|
|
365
|
-
name: "String"
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
plan: {
|
|
369
|
-
serializedName: "plan",
|
|
370
|
-
type: {
|
|
371
|
-
name: "Composite",
|
|
372
|
-
className: "ExtensionResourcePlan"
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
properties: {
|
|
376
|
-
serializedName: "properties",
|
|
377
|
-
type: {
|
|
378
|
-
name: "Dictionary",
|
|
379
|
-
value: {
|
|
380
|
-
type: {
|
|
381
|
-
name: "String"
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
tags: {
|
|
387
|
-
serializedName: "tags",
|
|
388
|
-
type: {
|
|
389
|
-
name: "Dictionary",
|
|
390
|
-
value: {
|
|
391
|
-
type: {
|
|
392
|
-
name: "String"
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
var OperationProperties = {
|
|
401
|
-
serializedName: "OperationProperties",
|
|
402
|
-
type: {
|
|
403
|
-
name: "Composite",
|
|
404
|
-
className: "OperationProperties",
|
|
405
|
-
modelProperties: {
|
|
406
|
-
description: {
|
|
407
|
-
serializedName: "description",
|
|
408
|
-
type: {
|
|
409
|
-
name: "String"
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
operation: {
|
|
413
|
-
serializedName: "operation",
|
|
414
|
-
type: {
|
|
415
|
-
name: "String"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
provider: {
|
|
419
|
-
serializedName: "provider",
|
|
420
|
-
type: {
|
|
421
|
-
name: "String"
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
resource: {
|
|
425
|
-
serializedName: "resource",
|
|
426
|
-
type: {
|
|
427
|
-
name: "String"
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
var Operation = {
|
|
434
|
-
serializedName: "Operation",
|
|
435
|
-
type: {
|
|
436
|
-
name: "Composite",
|
|
437
|
-
className: "Operation",
|
|
438
|
-
modelProperties: {
|
|
439
|
-
display: {
|
|
440
|
-
serializedName: "display",
|
|
441
|
-
type: {
|
|
442
|
-
name: "Composite",
|
|
443
|
-
className: "OperationProperties"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
name: {
|
|
447
|
-
serializedName: "name",
|
|
448
|
-
type: {
|
|
449
|
-
name: "String"
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
var OperationListResult = {
|
|
456
|
-
serializedName: "OperationListResult",
|
|
457
|
-
type: {
|
|
458
|
-
name: "Composite",
|
|
459
|
-
className: "OperationListResult",
|
|
460
|
-
modelProperties: {
|
|
461
|
-
value: {
|
|
462
|
-
serializedName: "value",
|
|
463
|
-
type: {
|
|
464
|
-
name: "Sequence",
|
|
465
|
-
element: {
|
|
466
|
-
type: {
|
|
467
|
-
name: "Composite",
|
|
468
|
-
className: "Operation"
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
var ProjectResource = {
|
|
477
|
-
serializedName: "ProjectResource",
|
|
478
|
-
type: {
|
|
479
|
-
name: "Composite",
|
|
480
|
-
className: "ProjectResource",
|
|
481
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { properties: {
|
|
482
|
-
serializedName: "properties",
|
|
483
|
-
type: {
|
|
484
|
-
name: "Dictionary",
|
|
485
|
-
value: {
|
|
486
|
-
type: {
|
|
487
|
-
name: "String"
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
} })
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
var ProjectResourceListResult = {
|
|
495
|
-
serializedName: "ProjectResourceListResult",
|
|
496
|
-
type: {
|
|
497
|
-
name: "Composite",
|
|
498
|
-
className: "ProjectResourceListResult",
|
|
499
|
-
modelProperties: {
|
|
500
|
-
value: {
|
|
501
|
-
serializedName: "value",
|
|
502
|
-
type: {
|
|
503
|
-
name: "Sequence",
|
|
504
|
-
element: {
|
|
505
|
-
type: {
|
|
506
|
-
name: "Composite",
|
|
507
|
-
className: "ProjectResource"
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
517
|
-
__proto__: null,
|
|
518
|
-
CloudError: CloudError,
|
|
519
|
-
BaseResource: BaseResource,
|
|
520
|
-
Resource: Resource,
|
|
521
|
-
AccountResource: AccountResource,
|
|
522
|
-
AccountResourceListResult: AccountResourceListResult,
|
|
523
|
-
AccountTagRequest: AccountTagRequest,
|
|
524
|
-
AccountResourceRequest: AccountResourceRequest,
|
|
525
|
-
CheckNameAvailabilityParameter: CheckNameAvailabilityParameter,
|
|
526
|
-
CheckNameAvailabilityResult: CheckNameAvailabilityResult,
|
|
527
|
-
ExtensionResourcePlan: ExtensionResourcePlan,
|
|
528
|
-
ExtensionResource: ExtensionResource,
|
|
529
|
-
ExtensionResourceListResult: ExtensionResourceListResult,
|
|
530
|
-
ExtensionResourceRequest: ExtensionResourceRequest,
|
|
531
|
-
OperationProperties: OperationProperties,
|
|
532
|
-
Operation: Operation,
|
|
533
|
-
OperationListResult: OperationListResult,
|
|
534
|
-
ProjectResource: ProjectResource,
|
|
535
|
-
ProjectResourceListResult: ProjectResourceListResult
|
|
536
|
-
});
|
|
537
|
-
|
|
538
|
-
/*
|
|
539
|
-
* Copyright (c) Microsoft Corporation.
|
|
540
|
-
* Licensed under the MIT License.
|
|
541
|
-
*
|
|
542
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
543
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
544
|
-
*/
|
|
545
|
-
|
|
546
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
547
|
-
__proto__: null,
|
|
548
|
-
CloudError: CloudError,
|
|
549
|
-
Operation: Operation,
|
|
550
|
-
OperationListResult: OperationListResult,
|
|
551
|
-
OperationProperties: OperationProperties
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
/*
|
|
555
|
-
* Copyright (c) Microsoft Corporation.
|
|
556
|
-
* Licensed under the MIT License.
|
|
557
|
-
*
|
|
558
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
559
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
560
|
-
* regenerated.
|
|
561
|
-
*/
|
|
562
|
-
var acceptLanguage = {
|
|
563
|
-
parameterPath: "acceptLanguage",
|
|
564
|
-
mapper: {
|
|
565
|
-
serializedName: "accept-language",
|
|
566
|
-
defaultValue: 'en-US',
|
|
567
|
-
type: {
|
|
568
|
-
name: "String"
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
var accountResourceName = {
|
|
573
|
-
parameterPath: "accountResourceName",
|
|
574
|
-
mapper: {
|
|
575
|
-
required: true,
|
|
576
|
-
serializedName: "accountResourceName",
|
|
577
|
-
type: {
|
|
578
|
-
name: "String"
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
var apiVersion = {
|
|
583
|
-
parameterPath: "apiVersion",
|
|
584
|
-
mapper: {
|
|
585
|
-
required: true,
|
|
586
|
-
serializedName: "api-version",
|
|
587
|
-
type: {
|
|
588
|
-
name: "String"
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
var extensionResourceName = {
|
|
593
|
-
parameterPath: "extensionResourceName",
|
|
594
|
-
mapper: {
|
|
595
|
-
required: true,
|
|
596
|
-
serializedName: "extensionResourceName",
|
|
597
|
-
type: {
|
|
598
|
-
name: "String"
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
var jobId = {
|
|
603
|
-
parameterPath: [
|
|
604
|
-
"options",
|
|
605
|
-
"jobId"
|
|
606
|
-
],
|
|
607
|
-
mapper: {
|
|
608
|
-
serializedName: "jobId",
|
|
609
|
-
type: {
|
|
610
|
-
name: "Uuid"
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
var operation = {
|
|
615
|
-
parameterPath: "operation",
|
|
616
|
-
mapper: {
|
|
617
|
-
required: true,
|
|
618
|
-
serializedName: "operation",
|
|
619
|
-
type: {
|
|
620
|
-
name: "String"
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
var resourceGroupName = {
|
|
625
|
-
parameterPath: "resourceGroupName",
|
|
626
|
-
mapper: {
|
|
627
|
-
required: true,
|
|
628
|
-
serializedName: "resourceGroupName",
|
|
629
|
-
type: {
|
|
630
|
-
name: "String"
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
var resourceName = {
|
|
635
|
-
parameterPath: "resourceName",
|
|
636
|
-
mapper: {
|
|
637
|
-
required: true,
|
|
638
|
-
serializedName: "resourceName",
|
|
639
|
-
type: {
|
|
640
|
-
name: "String"
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
var rootResourceName = {
|
|
645
|
-
parameterPath: "rootResourceName",
|
|
646
|
-
mapper: {
|
|
647
|
-
required: true,
|
|
648
|
-
serializedName: "rootResourceName",
|
|
649
|
-
type: {
|
|
650
|
-
name: "String"
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
var subContainerName = {
|
|
655
|
-
parameterPath: "subContainerName",
|
|
656
|
-
mapper: {
|
|
657
|
-
required: true,
|
|
658
|
-
serializedName: "subContainerName",
|
|
659
|
-
type: {
|
|
660
|
-
name: "String"
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
var subscriptionId = {
|
|
665
|
-
parameterPath: "subscriptionId",
|
|
666
|
-
mapper: {
|
|
667
|
-
required: true,
|
|
668
|
-
serializedName: "subscriptionId",
|
|
669
|
-
type: {
|
|
670
|
-
name: "String"
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
var validating = {
|
|
675
|
-
parameterPath: [
|
|
676
|
-
"options",
|
|
677
|
-
"validating"
|
|
678
|
-
],
|
|
679
|
-
mapper: {
|
|
680
|
-
serializedName: "validating",
|
|
681
|
-
type: {
|
|
682
|
-
name: "String"
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
|
|
687
|
-
/*
|
|
688
|
-
* Copyright (c) Microsoft Corporation.
|
|
689
|
-
* Licensed under the MIT License.
|
|
690
|
-
*
|
|
691
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
692
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
693
|
-
* regenerated.
|
|
694
|
-
*/
|
|
695
|
-
/** Class representing a Operations. */
|
|
696
|
-
var Operations = /** @class */ (function () {
|
|
697
|
-
/**
|
|
698
|
-
* Create a Operations.
|
|
699
|
-
* @param {VisualStudioResourceProviderClientContext} client Reference to the service client.
|
|
700
|
-
*/
|
|
701
|
-
function Operations(client) {
|
|
702
|
-
this.client = client;
|
|
703
|
-
}
|
|
704
|
-
Operations.prototype.list = function (options, callback) {
|
|
705
|
-
return this.client.sendOperationRequest({
|
|
706
|
-
options: options
|
|
707
|
-
}, listOperationSpec, callback);
|
|
708
|
-
};
|
|
709
|
-
return Operations;
|
|
710
|
-
}());
|
|
711
|
-
// Operation Specifications
|
|
712
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
713
|
-
var listOperationSpec = {
|
|
714
|
-
httpMethod: "GET",
|
|
715
|
-
path: "providers/microsoft.visualstudio/operations",
|
|
716
|
-
headerParameters: [
|
|
717
|
-
acceptLanguage
|
|
718
|
-
],
|
|
719
|
-
responses: {
|
|
720
|
-
200: {
|
|
721
|
-
bodyMapper: OperationListResult
|
|
722
|
-
},
|
|
723
|
-
default: {
|
|
724
|
-
bodyMapper: CloudError
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
serializer: serializer
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
/*
|
|
731
|
-
* Copyright (c) Microsoft Corporation.
|
|
732
|
-
* Licensed under the MIT License.
|
|
733
|
-
*
|
|
734
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
735
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
736
|
-
*/
|
|
737
|
-
|
|
738
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
739
|
-
__proto__: null,
|
|
740
|
-
AccountResource: AccountResource,
|
|
741
|
-
AccountResourceListResult: AccountResourceListResult,
|
|
742
|
-
AccountResourceRequest: AccountResourceRequest,
|
|
743
|
-
AccountTagRequest: AccountTagRequest,
|
|
744
|
-
BaseResource: BaseResource,
|
|
745
|
-
CheckNameAvailabilityParameter: CheckNameAvailabilityParameter,
|
|
746
|
-
CheckNameAvailabilityResult: CheckNameAvailabilityResult,
|
|
747
|
-
CloudError: CloudError,
|
|
748
|
-
ExtensionResource: ExtensionResource,
|
|
749
|
-
ExtensionResourcePlan: ExtensionResourcePlan,
|
|
750
|
-
ProjectResource: ProjectResource,
|
|
751
|
-
Resource: Resource
|
|
752
|
-
});
|
|
753
|
-
|
|
754
|
-
/*
|
|
755
|
-
* Copyright (c) Microsoft Corporation.
|
|
756
|
-
* Licensed under the MIT License.
|
|
757
|
-
*
|
|
758
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
759
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
760
|
-
* regenerated.
|
|
761
|
-
*/
|
|
762
|
-
/** Class representing a Accounts. */
|
|
763
|
-
var Accounts = /** @class */ (function () {
|
|
764
|
-
/**
|
|
765
|
-
* Create a Accounts.
|
|
766
|
-
* @param {VisualStudioResourceProviderClientContext} client Reference to the service client.
|
|
767
|
-
*/
|
|
768
|
-
function Accounts(client) {
|
|
769
|
-
this.client = client;
|
|
770
|
-
}
|
|
771
|
-
Accounts.prototype.checkNameAvailability = function (body, options, callback) {
|
|
772
|
-
return this.client.sendOperationRequest({
|
|
773
|
-
body: body,
|
|
774
|
-
options: options
|
|
775
|
-
}, checkNameAvailabilityOperationSpec, callback);
|
|
776
|
-
};
|
|
777
|
-
Accounts.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
|
|
778
|
-
return this.client.sendOperationRequest({
|
|
779
|
-
resourceGroupName: resourceGroupName,
|
|
780
|
-
options: options
|
|
781
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
782
|
-
};
|
|
783
|
-
Accounts.prototype.createOrUpdate = function (resourceGroupName, body, resourceName, options, callback) {
|
|
784
|
-
return this.client.sendOperationRequest({
|
|
785
|
-
resourceGroupName: resourceGroupName,
|
|
786
|
-
body: body,
|
|
787
|
-
resourceName: resourceName,
|
|
788
|
-
options: options
|
|
789
|
-
}, createOrUpdateOperationSpec, callback);
|
|
790
|
-
};
|
|
791
|
-
Accounts.prototype.deleteMethod = function (resourceGroupName, resourceName, options, callback) {
|
|
792
|
-
return this.client.sendOperationRequest({
|
|
793
|
-
resourceGroupName: resourceGroupName,
|
|
794
|
-
resourceName: resourceName,
|
|
795
|
-
options: options
|
|
796
|
-
}, deleteMethodOperationSpec, callback);
|
|
797
|
-
};
|
|
798
|
-
Accounts.prototype.get = function (resourceGroupName, resourceName, options, callback) {
|
|
799
|
-
return this.client.sendOperationRequest({
|
|
800
|
-
resourceGroupName: resourceGroupName,
|
|
801
|
-
resourceName: resourceName,
|
|
802
|
-
options: options
|
|
803
|
-
}, getOperationSpec, callback);
|
|
804
|
-
};
|
|
805
|
-
Accounts.prototype.update = function (resourceGroupName, body, resourceName, options, callback) {
|
|
806
|
-
return this.client.sendOperationRequest({
|
|
807
|
-
resourceGroupName: resourceGroupName,
|
|
808
|
-
body: body,
|
|
809
|
-
resourceName: resourceName,
|
|
810
|
-
options: options
|
|
811
|
-
}, updateOperationSpec, callback);
|
|
812
|
-
};
|
|
813
|
-
return Accounts;
|
|
814
|
-
}());
|
|
815
|
-
// Operation Specifications
|
|
816
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
817
|
-
var checkNameAvailabilityOperationSpec = {
|
|
818
|
-
httpMethod: "POST",
|
|
819
|
-
path: "subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability",
|
|
820
|
-
urlParameters: [
|
|
821
|
-
subscriptionId
|
|
822
|
-
],
|
|
823
|
-
queryParameters: [
|
|
824
|
-
apiVersion
|
|
825
|
-
],
|
|
826
|
-
headerParameters: [
|
|
827
|
-
acceptLanguage
|
|
828
|
-
],
|
|
829
|
-
requestBody: {
|
|
830
|
-
parameterPath: "body",
|
|
831
|
-
mapper: __assign(__assign({}, CheckNameAvailabilityParameter), { required: true })
|
|
832
|
-
},
|
|
833
|
-
responses: {
|
|
834
|
-
200: {
|
|
835
|
-
bodyMapper: CheckNameAvailabilityResult
|
|
836
|
-
},
|
|
837
|
-
default: {
|
|
838
|
-
bodyMapper: CloudError
|
|
839
|
-
}
|
|
840
|
-
},
|
|
841
|
-
serializer: serializer$1
|
|
842
|
-
};
|
|
843
|
-
var listByResourceGroupOperationSpec = {
|
|
844
|
-
httpMethod: "GET",
|
|
845
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account",
|
|
846
|
-
urlParameters: [
|
|
847
|
-
resourceGroupName,
|
|
848
|
-
subscriptionId
|
|
849
|
-
],
|
|
850
|
-
queryParameters: [
|
|
851
|
-
apiVersion
|
|
852
|
-
],
|
|
853
|
-
headerParameters: [
|
|
854
|
-
acceptLanguage
|
|
855
|
-
],
|
|
856
|
-
responses: {
|
|
857
|
-
200: {
|
|
858
|
-
bodyMapper: AccountResourceListResult
|
|
859
|
-
},
|
|
860
|
-
default: {
|
|
861
|
-
bodyMapper: CloudError
|
|
862
|
-
}
|
|
863
|
-
},
|
|
864
|
-
serializer: serializer$1
|
|
865
|
-
};
|
|
866
|
-
var createOrUpdateOperationSpec = {
|
|
867
|
-
httpMethod: "PUT",
|
|
868
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
869
|
-
urlParameters: [
|
|
870
|
-
resourceGroupName,
|
|
871
|
-
subscriptionId,
|
|
872
|
-
resourceName
|
|
873
|
-
],
|
|
874
|
-
queryParameters: [
|
|
875
|
-
apiVersion
|
|
876
|
-
],
|
|
877
|
-
headerParameters: [
|
|
878
|
-
acceptLanguage
|
|
879
|
-
],
|
|
880
|
-
requestBody: {
|
|
881
|
-
parameterPath: "body",
|
|
882
|
-
mapper: __assign(__assign({}, AccountResourceRequest), { required: true })
|
|
883
|
-
},
|
|
884
|
-
responses: {
|
|
885
|
-
200: {
|
|
886
|
-
bodyMapper: AccountResource
|
|
887
|
-
},
|
|
888
|
-
404: {},
|
|
889
|
-
default: {
|
|
890
|
-
bodyMapper: CloudError
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
serializer: serializer$1
|
|
894
|
-
};
|
|
895
|
-
var deleteMethodOperationSpec = {
|
|
896
|
-
httpMethod: "DELETE",
|
|
897
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
898
|
-
urlParameters: [
|
|
899
|
-
resourceGroupName,
|
|
900
|
-
subscriptionId,
|
|
901
|
-
resourceName
|
|
902
|
-
],
|
|
903
|
-
queryParameters: [
|
|
904
|
-
apiVersion
|
|
905
|
-
],
|
|
906
|
-
headerParameters: [
|
|
907
|
-
acceptLanguage
|
|
908
|
-
],
|
|
909
|
-
responses: {
|
|
910
|
-
200: {},
|
|
911
|
-
default: {
|
|
912
|
-
bodyMapper: CloudError
|
|
913
|
-
}
|
|
914
|
-
},
|
|
915
|
-
serializer: serializer$1
|
|
916
|
-
};
|
|
917
|
-
var getOperationSpec = {
|
|
918
|
-
httpMethod: "GET",
|
|
919
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
920
|
-
urlParameters: [
|
|
921
|
-
resourceGroupName,
|
|
922
|
-
subscriptionId,
|
|
923
|
-
resourceName
|
|
924
|
-
],
|
|
925
|
-
queryParameters: [
|
|
926
|
-
apiVersion
|
|
927
|
-
],
|
|
928
|
-
headerParameters: [
|
|
929
|
-
acceptLanguage
|
|
930
|
-
],
|
|
931
|
-
responses: {
|
|
932
|
-
200: {
|
|
933
|
-
bodyMapper: AccountResource
|
|
934
|
-
},
|
|
935
|
-
404: {},
|
|
936
|
-
default: {
|
|
937
|
-
bodyMapper: CloudError
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
serializer: serializer$1
|
|
941
|
-
};
|
|
942
|
-
var updateOperationSpec = {
|
|
943
|
-
httpMethod: "PATCH",
|
|
944
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
|
|
945
|
-
urlParameters: [
|
|
946
|
-
resourceGroupName,
|
|
947
|
-
subscriptionId,
|
|
948
|
-
resourceName
|
|
949
|
-
],
|
|
950
|
-
queryParameters: [
|
|
951
|
-
apiVersion
|
|
952
|
-
],
|
|
953
|
-
headerParameters: [
|
|
954
|
-
acceptLanguage
|
|
955
|
-
],
|
|
956
|
-
requestBody: {
|
|
957
|
-
parameterPath: "body",
|
|
958
|
-
mapper: __assign(__assign({}, AccountTagRequest), { required: true })
|
|
959
|
-
},
|
|
960
|
-
responses: {
|
|
961
|
-
200: {
|
|
962
|
-
bodyMapper: AccountResource
|
|
963
|
-
},
|
|
964
|
-
404: {},
|
|
965
|
-
default: {
|
|
966
|
-
bodyMapper: CloudError
|
|
967
|
-
}
|
|
968
|
-
},
|
|
969
|
-
serializer: serializer$1
|
|
970
|
-
};
|
|
971
|
-
|
|
972
|
-
/*
|
|
973
|
-
* Copyright (c) Microsoft Corporation.
|
|
974
|
-
* Licensed under the MIT License.
|
|
975
|
-
*
|
|
976
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
977
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
978
|
-
*/
|
|
979
|
-
|
|
980
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
981
|
-
__proto__: null,
|
|
982
|
-
AccountResource: AccountResource,
|
|
983
|
-
BaseResource: BaseResource,
|
|
984
|
-
CloudError: CloudError,
|
|
985
|
-
ExtensionResource: ExtensionResource,
|
|
986
|
-
ExtensionResourceListResult: ExtensionResourceListResult,
|
|
987
|
-
ExtensionResourcePlan: ExtensionResourcePlan,
|
|
988
|
-
ExtensionResourceRequest: ExtensionResourceRequest,
|
|
989
|
-
ProjectResource: ProjectResource,
|
|
990
|
-
Resource: Resource
|
|
991
|
-
});
|
|
992
|
-
|
|
993
|
-
/*
|
|
994
|
-
* Copyright (c) Microsoft Corporation.
|
|
995
|
-
* Licensed under the MIT License.
|
|
996
|
-
*
|
|
997
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
998
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
999
|
-
* regenerated.
|
|
1000
|
-
*/
|
|
1001
|
-
/** Class representing a Extensions. */
|
|
1002
|
-
var Extensions = /** @class */ (function () {
|
|
1003
|
-
/**
|
|
1004
|
-
* Create a Extensions.
|
|
1005
|
-
* @param {VisualStudioResourceProviderClientContext} client Reference to the service client.
|
|
1006
|
-
*/
|
|
1007
|
-
function Extensions(client) {
|
|
1008
|
-
this.client = client;
|
|
1009
|
-
}
|
|
1010
|
-
Extensions.prototype.listByAccount = function (resourceGroupName, accountResourceName, options, callback) {
|
|
1011
|
-
return this.client.sendOperationRequest({
|
|
1012
|
-
resourceGroupName: resourceGroupName,
|
|
1013
|
-
accountResourceName: accountResourceName,
|
|
1014
|
-
options: options
|
|
1015
|
-
}, listByAccountOperationSpec, callback);
|
|
1016
|
-
};
|
|
1017
|
-
Extensions.prototype.create = function (resourceGroupName, body, accountResourceName, extensionResourceName, options, callback) {
|
|
1018
|
-
return this.client.sendOperationRequest({
|
|
1019
|
-
resourceGroupName: resourceGroupName,
|
|
1020
|
-
body: body,
|
|
1021
|
-
accountResourceName: accountResourceName,
|
|
1022
|
-
extensionResourceName: extensionResourceName,
|
|
1023
|
-
options: options
|
|
1024
|
-
}, createOperationSpec, callback);
|
|
1025
|
-
};
|
|
1026
|
-
Extensions.prototype.deleteMethod = function (resourceGroupName, accountResourceName, extensionResourceName, options, callback) {
|
|
1027
|
-
return this.client.sendOperationRequest({
|
|
1028
|
-
resourceGroupName: resourceGroupName,
|
|
1029
|
-
accountResourceName: accountResourceName,
|
|
1030
|
-
extensionResourceName: extensionResourceName,
|
|
1031
|
-
options: options
|
|
1032
|
-
}, deleteMethodOperationSpec$1, callback);
|
|
1033
|
-
};
|
|
1034
|
-
Extensions.prototype.get = function (resourceGroupName, accountResourceName, extensionResourceName, options, callback) {
|
|
1035
|
-
return this.client.sendOperationRequest({
|
|
1036
|
-
resourceGroupName: resourceGroupName,
|
|
1037
|
-
accountResourceName: accountResourceName,
|
|
1038
|
-
extensionResourceName: extensionResourceName,
|
|
1039
|
-
options: options
|
|
1040
|
-
}, getOperationSpec$1, callback);
|
|
1041
|
-
};
|
|
1042
|
-
Extensions.prototype.update = function (resourceGroupName, body, accountResourceName, extensionResourceName, options, callback) {
|
|
1043
|
-
return this.client.sendOperationRequest({
|
|
1044
|
-
resourceGroupName: resourceGroupName,
|
|
1045
|
-
body: body,
|
|
1046
|
-
accountResourceName: accountResourceName,
|
|
1047
|
-
extensionResourceName: extensionResourceName,
|
|
1048
|
-
options: options
|
|
1049
|
-
}, updateOperationSpec$1, callback);
|
|
1050
|
-
};
|
|
1051
|
-
return Extensions;
|
|
1052
|
-
}());
|
|
1053
|
-
// Operation Specifications
|
|
1054
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
1055
|
-
var listByAccountOperationSpec = {
|
|
1056
|
-
httpMethod: "GET",
|
|
1057
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension",
|
|
1058
|
-
urlParameters: [
|
|
1059
|
-
resourceGroupName,
|
|
1060
|
-
subscriptionId,
|
|
1061
|
-
accountResourceName
|
|
1062
|
-
],
|
|
1063
|
-
queryParameters: [
|
|
1064
|
-
apiVersion
|
|
1065
|
-
],
|
|
1066
|
-
headerParameters: [
|
|
1067
|
-
acceptLanguage
|
|
1068
|
-
],
|
|
1069
|
-
responses: {
|
|
1070
|
-
200: {
|
|
1071
|
-
bodyMapper: ExtensionResourceListResult
|
|
1072
|
-
},
|
|
1073
|
-
default: {
|
|
1074
|
-
bodyMapper: CloudError
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
serializer: serializer$2
|
|
1078
|
-
};
|
|
1079
|
-
var createOperationSpec = {
|
|
1080
|
-
httpMethod: "PUT",
|
|
1081
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
1082
|
-
urlParameters: [
|
|
1083
|
-
resourceGroupName,
|
|
1084
|
-
subscriptionId,
|
|
1085
|
-
accountResourceName,
|
|
1086
|
-
extensionResourceName
|
|
1087
|
-
],
|
|
1088
|
-
queryParameters: [
|
|
1089
|
-
apiVersion
|
|
1090
|
-
],
|
|
1091
|
-
headerParameters: [
|
|
1092
|
-
acceptLanguage
|
|
1093
|
-
],
|
|
1094
|
-
requestBody: {
|
|
1095
|
-
parameterPath: "body",
|
|
1096
|
-
mapper: __assign(__assign({}, ExtensionResourceRequest), { required: true })
|
|
1097
|
-
},
|
|
1098
|
-
responses: {
|
|
1099
|
-
200: {
|
|
1100
|
-
bodyMapper: ExtensionResource
|
|
1101
|
-
},
|
|
1102
|
-
default: {
|
|
1103
|
-
bodyMapper: CloudError
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
serializer: serializer$2
|
|
1107
|
-
};
|
|
1108
|
-
var deleteMethodOperationSpec$1 = {
|
|
1109
|
-
httpMethod: "DELETE",
|
|
1110
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
1111
|
-
urlParameters: [
|
|
1112
|
-
resourceGroupName,
|
|
1113
|
-
subscriptionId,
|
|
1114
|
-
accountResourceName,
|
|
1115
|
-
extensionResourceName
|
|
1116
|
-
],
|
|
1117
|
-
queryParameters: [
|
|
1118
|
-
apiVersion
|
|
1119
|
-
],
|
|
1120
|
-
headerParameters: [
|
|
1121
|
-
acceptLanguage
|
|
1122
|
-
],
|
|
1123
|
-
responses: {
|
|
1124
|
-
200: {},
|
|
1125
|
-
default: {
|
|
1126
|
-
bodyMapper: CloudError
|
|
1127
|
-
}
|
|
1128
|
-
},
|
|
1129
|
-
serializer: serializer$2
|
|
1130
|
-
};
|
|
1131
|
-
var getOperationSpec$1 = {
|
|
1132
|
-
httpMethod: "GET",
|
|
1133
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
1134
|
-
urlParameters: [
|
|
1135
|
-
resourceGroupName,
|
|
1136
|
-
subscriptionId,
|
|
1137
|
-
accountResourceName,
|
|
1138
|
-
extensionResourceName
|
|
1139
|
-
],
|
|
1140
|
-
queryParameters: [
|
|
1141
|
-
apiVersion
|
|
1142
|
-
],
|
|
1143
|
-
headerParameters: [
|
|
1144
|
-
acceptLanguage
|
|
1145
|
-
],
|
|
1146
|
-
responses: {
|
|
1147
|
-
200: {
|
|
1148
|
-
bodyMapper: ExtensionResource
|
|
1149
|
-
},
|
|
1150
|
-
404: {},
|
|
1151
|
-
default: {
|
|
1152
|
-
bodyMapper: CloudError
|
|
1153
|
-
}
|
|
1154
|
-
},
|
|
1155
|
-
serializer: serializer$2
|
|
1156
|
-
};
|
|
1157
|
-
var updateOperationSpec$1 = {
|
|
1158
|
-
httpMethod: "PATCH",
|
|
1159
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
|
|
1160
|
-
urlParameters: [
|
|
1161
|
-
resourceGroupName,
|
|
1162
|
-
subscriptionId,
|
|
1163
|
-
accountResourceName,
|
|
1164
|
-
extensionResourceName
|
|
1165
|
-
],
|
|
1166
|
-
queryParameters: [
|
|
1167
|
-
apiVersion
|
|
1168
|
-
],
|
|
1169
|
-
headerParameters: [
|
|
1170
|
-
acceptLanguage
|
|
1171
|
-
],
|
|
1172
|
-
requestBody: {
|
|
1173
|
-
parameterPath: "body",
|
|
1174
|
-
mapper: __assign(__assign({}, ExtensionResourceRequest), { required: true })
|
|
1175
|
-
},
|
|
1176
|
-
responses: {
|
|
1177
|
-
200: {
|
|
1178
|
-
bodyMapper: ExtensionResource
|
|
1179
|
-
},
|
|
1180
|
-
default: {
|
|
1181
|
-
bodyMapper: CloudError
|
|
1182
|
-
}
|
|
1183
|
-
},
|
|
1184
|
-
serializer: serializer$2
|
|
1185
|
-
};
|
|
1186
|
-
|
|
1187
|
-
/*
|
|
1188
|
-
* Copyright (c) Microsoft Corporation.
|
|
1189
|
-
* Licensed under the MIT License.
|
|
1190
|
-
*
|
|
1191
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1192
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1193
|
-
*/
|
|
1194
|
-
|
|
1195
|
-
var Mappers$3 = /*#__PURE__*/Object.freeze({
|
|
1196
|
-
__proto__: null,
|
|
1197
|
-
AccountResource: AccountResource,
|
|
1198
|
-
BaseResource: BaseResource,
|
|
1199
|
-
CloudError: CloudError,
|
|
1200
|
-
ExtensionResource: ExtensionResource,
|
|
1201
|
-
ExtensionResourcePlan: ExtensionResourcePlan,
|
|
1202
|
-
ProjectResource: ProjectResource,
|
|
1203
|
-
ProjectResourceListResult: ProjectResourceListResult,
|
|
1204
|
-
Resource: Resource
|
|
1205
|
-
});
|
|
1206
|
-
|
|
1207
|
-
/*
|
|
1208
|
-
* Copyright (c) Microsoft Corporation.
|
|
1209
|
-
* Licensed under the MIT License.
|
|
1210
|
-
*
|
|
1211
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1212
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1213
|
-
* regenerated.
|
|
1214
|
-
*/
|
|
1215
|
-
/** Class representing a Projects. */
|
|
1216
|
-
var Projects = /** @class */ (function () {
|
|
1217
|
-
/**
|
|
1218
|
-
* Create a Projects.
|
|
1219
|
-
* @param {VisualStudioResourceProviderClientContext} client Reference to the service client.
|
|
1220
|
-
*/
|
|
1221
|
-
function Projects(client) {
|
|
1222
|
-
this.client = client;
|
|
1223
|
-
}
|
|
1224
|
-
Projects.prototype.listByResourceGroup = function (resourceGroupName, rootResourceName, options, callback) {
|
|
1225
|
-
return this.client.sendOperationRequest({
|
|
1226
|
-
resourceGroupName: resourceGroupName,
|
|
1227
|
-
rootResourceName: rootResourceName,
|
|
1228
|
-
options: options
|
|
1229
|
-
}, listByResourceGroupOperationSpec$1, callback);
|
|
1230
|
-
};
|
|
1231
|
-
/**
|
|
1232
|
-
* Creates a Team Services project in the collection with the specified name.
|
|
1233
|
-
* 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties.
|
|
1234
|
-
* Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
1235
|
-
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
1236
|
-
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
1237
|
-
* templates).
|
|
1238
|
-
* @summary Projects_Create
|
|
1239
|
-
* @param body The request data.
|
|
1240
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1241
|
-
* @param rootResourceName Name of the Team Services account.
|
|
1242
|
-
* @param resourceName Name of the Team Services project.
|
|
1243
|
-
* @param [options] The optional parameters
|
|
1244
|
-
* @returns Promise<Models.ProjectsCreateResponse>
|
|
1245
|
-
*/
|
|
1246
|
-
Projects.prototype.create = function (body, resourceGroupName, rootResourceName, resourceName, options) {
|
|
1247
|
-
return this.beginCreate(body, resourceGroupName, rootResourceName, resourceName, options)
|
|
1248
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1249
|
-
};
|
|
1250
|
-
Projects.prototype.get = function (resourceGroupName, rootResourceName, resourceName, options, callback) {
|
|
1251
|
-
return this.client.sendOperationRequest({
|
|
1252
|
-
resourceGroupName: resourceGroupName,
|
|
1253
|
-
rootResourceName: rootResourceName,
|
|
1254
|
-
resourceName: resourceName,
|
|
1255
|
-
options: options
|
|
1256
|
-
}, getOperationSpec$2, callback);
|
|
1257
|
-
};
|
|
1258
|
-
Projects.prototype.update = function (resourceGroupName, body, rootResourceName, resourceName, options, callback) {
|
|
1259
|
-
return this.client.sendOperationRequest({
|
|
1260
|
-
resourceGroupName: resourceGroupName,
|
|
1261
|
-
body: body,
|
|
1262
|
-
rootResourceName: rootResourceName,
|
|
1263
|
-
resourceName: resourceName,
|
|
1264
|
-
options: options
|
|
1265
|
-
}, updateOperationSpec$2, callback);
|
|
1266
|
-
};
|
|
1267
|
-
Projects.prototype.getJobStatus = function (resourceGroupName, rootResourceName, resourceName, subContainerName, operation, options, callback) {
|
|
1268
|
-
return this.client.sendOperationRequest({
|
|
1269
|
-
resourceGroupName: resourceGroupName,
|
|
1270
|
-
rootResourceName: rootResourceName,
|
|
1271
|
-
resourceName: resourceName,
|
|
1272
|
-
subContainerName: subContainerName,
|
|
1273
|
-
operation: operation,
|
|
1274
|
-
options: options
|
|
1275
|
-
}, getJobStatusOperationSpec, callback);
|
|
1276
|
-
};
|
|
1277
|
-
/**
|
|
1278
|
-
* Creates a Team Services project in the collection with the specified name.
|
|
1279
|
-
* 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties.
|
|
1280
|
-
* Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
1281
|
-
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
1282
|
-
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
1283
|
-
* templates).
|
|
1284
|
-
* @summary Projects_Create
|
|
1285
|
-
* @param body The request data.
|
|
1286
|
-
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
1287
|
-
* @param rootResourceName Name of the Team Services account.
|
|
1288
|
-
* @param resourceName Name of the Team Services project.
|
|
1289
|
-
* @param [options] The optional parameters
|
|
1290
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1291
|
-
*/
|
|
1292
|
-
Projects.prototype.beginCreate = function (body, resourceGroupName, rootResourceName, resourceName, options) {
|
|
1293
|
-
return this.client.sendLRORequest({
|
|
1294
|
-
body: body,
|
|
1295
|
-
resourceGroupName: resourceGroupName,
|
|
1296
|
-
rootResourceName: rootResourceName,
|
|
1297
|
-
resourceName: resourceName,
|
|
1298
|
-
options: options
|
|
1299
|
-
}, beginCreateOperationSpec, options);
|
|
1300
|
-
};
|
|
1301
|
-
return Projects;
|
|
1302
|
-
}());
|
|
1303
|
-
// Operation Specifications
|
|
1304
|
-
var serializer$3 = new msRest.Serializer(Mappers$3);
|
|
1305
|
-
var listByResourceGroupOperationSpec$1 = {
|
|
1306
|
-
httpMethod: "GET",
|
|
1307
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project",
|
|
1308
|
-
urlParameters: [
|
|
1309
|
-
resourceGroupName,
|
|
1310
|
-
subscriptionId,
|
|
1311
|
-
rootResourceName
|
|
1312
|
-
],
|
|
1313
|
-
queryParameters: [
|
|
1314
|
-
apiVersion
|
|
1315
|
-
],
|
|
1316
|
-
headerParameters: [
|
|
1317
|
-
acceptLanguage
|
|
1318
|
-
],
|
|
1319
|
-
responses: {
|
|
1320
|
-
200: {
|
|
1321
|
-
bodyMapper: ProjectResourceListResult
|
|
1322
|
-
},
|
|
1323
|
-
default: {
|
|
1324
|
-
bodyMapper: CloudError
|
|
1325
|
-
}
|
|
1326
|
-
},
|
|
1327
|
-
serializer: serializer$3
|
|
1328
|
-
};
|
|
1329
|
-
var getOperationSpec$2 = {
|
|
1330
|
-
httpMethod: "GET",
|
|
1331
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
1332
|
-
urlParameters: [
|
|
1333
|
-
resourceGroupName,
|
|
1334
|
-
subscriptionId,
|
|
1335
|
-
rootResourceName,
|
|
1336
|
-
resourceName
|
|
1337
|
-
],
|
|
1338
|
-
queryParameters: [
|
|
1339
|
-
apiVersion
|
|
1340
|
-
],
|
|
1341
|
-
headerParameters: [
|
|
1342
|
-
acceptLanguage
|
|
1343
|
-
],
|
|
1344
|
-
responses: {
|
|
1345
|
-
200: {
|
|
1346
|
-
bodyMapper: ProjectResource
|
|
1347
|
-
},
|
|
1348
|
-
404: {},
|
|
1349
|
-
default: {
|
|
1350
|
-
bodyMapper: CloudError
|
|
1351
|
-
}
|
|
1352
|
-
},
|
|
1353
|
-
serializer: serializer$3
|
|
1354
|
-
};
|
|
1355
|
-
var updateOperationSpec$2 = {
|
|
1356
|
-
httpMethod: "PATCH",
|
|
1357
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
1358
|
-
urlParameters: [
|
|
1359
|
-
resourceGroupName,
|
|
1360
|
-
subscriptionId,
|
|
1361
|
-
rootResourceName,
|
|
1362
|
-
resourceName
|
|
1363
|
-
],
|
|
1364
|
-
queryParameters: [
|
|
1365
|
-
apiVersion
|
|
1366
|
-
],
|
|
1367
|
-
headerParameters: [
|
|
1368
|
-
acceptLanguage
|
|
1369
|
-
],
|
|
1370
|
-
requestBody: {
|
|
1371
|
-
parameterPath: "body",
|
|
1372
|
-
mapper: __assign(__assign({}, ProjectResource), { required: true })
|
|
1373
|
-
},
|
|
1374
|
-
responses: {
|
|
1375
|
-
200: {
|
|
1376
|
-
bodyMapper: ProjectResource
|
|
1377
|
-
},
|
|
1378
|
-
default: {
|
|
1379
|
-
bodyMapper: CloudError
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
serializer: serializer$3
|
|
1383
|
-
};
|
|
1384
|
-
var getJobStatusOperationSpec = {
|
|
1385
|
-
httpMethod: "GET",
|
|
1386
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status",
|
|
1387
|
-
urlParameters: [
|
|
1388
|
-
resourceGroupName,
|
|
1389
|
-
subscriptionId,
|
|
1390
|
-
rootResourceName,
|
|
1391
|
-
resourceName,
|
|
1392
|
-
subContainerName
|
|
1393
|
-
],
|
|
1394
|
-
queryParameters: [
|
|
1395
|
-
apiVersion,
|
|
1396
|
-
operation,
|
|
1397
|
-
jobId
|
|
1398
|
-
],
|
|
1399
|
-
headerParameters: [
|
|
1400
|
-
acceptLanguage
|
|
1401
|
-
],
|
|
1402
|
-
responses: {
|
|
1403
|
-
200: {
|
|
1404
|
-
bodyMapper: ProjectResource
|
|
1405
|
-
},
|
|
1406
|
-
202: {},
|
|
1407
|
-
default: {
|
|
1408
|
-
bodyMapper: CloudError
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
serializer: serializer$3
|
|
1412
|
-
};
|
|
1413
|
-
var beginCreateOperationSpec = {
|
|
1414
|
-
httpMethod: "PUT",
|
|
1415
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
|
|
1416
|
-
urlParameters: [
|
|
1417
|
-
resourceGroupName,
|
|
1418
|
-
subscriptionId,
|
|
1419
|
-
rootResourceName,
|
|
1420
|
-
resourceName
|
|
1421
|
-
],
|
|
1422
|
-
queryParameters: [
|
|
1423
|
-
apiVersion,
|
|
1424
|
-
validating
|
|
1425
|
-
],
|
|
1426
|
-
headerParameters: [
|
|
1427
|
-
acceptLanguage
|
|
1428
|
-
],
|
|
1429
|
-
requestBody: {
|
|
1430
|
-
parameterPath: "body",
|
|
1431
|
-
mapper: __assign(__assign({}, ProjectResource), { required: true })
|
|
1432
|
-
},
|
|
1433
|
-
responses: {
|
|
1434
|
-
200: {
|
|
1435
|
-
bodyMapper: ProjectResource
|
|
1436
|
-
},
|
|
1437
|
-
202: {},
|
|
1438
|
-
default: {
|
|
1439
|
-
bodyMapper: CloudError
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
serializer: serializer$3
|
|
1443
|
-
};
|
|
1444
|
-
|
|
1445
|
-
/*
|
|
1446
|
-
* Copyright (c) Microsoft Corporation.
|
|
1447
|
-
* Licensed under the MIT License.
|
|
1448
|
-
*
|
|
1449
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1450
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1451
|
-
* regenerated.
|
|
1452
|
-
*/
|
|
1453
|
-
var packageName = "@azure/arm-visualstudio";
|
|
1454
|
-
var packageVersion = "3.0.0";
|
|
1455
|
-
var VisualStudioResourceProviderClientContext = /** @class */ (function (_super) {
|
|
1456
|
-
__extends(VisualStudioResourceProviderClientContext, _super);
|
|
1457
|
-
/**
|
|
1458
|
-
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
1459
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1460
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1461
|
-
* more information about these credentials, see
|
|
1462
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1463
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1464
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1465
|
-
* @param subscriptionId The Azure subscription identifier.
|
|
1466
|
-
* @param [options] The parameter options
|
|
1467
|
-
*/
|
|
1468
|
-
function VisualStudioResourceProviderClientContext(credentials, subscriptionId, options) {
|
|
1469
|
-
var _this = this;
|
|
1470
|
-
if (credentials == undefined) {
|
|
1471
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1472
|
-
}
|
|
1473
|
-
if (subscriptionId == undefined) {
|
|
1474
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1475
|
-
}
|
|
1476
|
-
if (!options) {
|
|
1477
|
-
options = {};
|
|
1478
|
-
}
|
|
1479
|
-
if (!options.userAgent) {
|
|
1480
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1481
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1482
|
-
}
|
|
1483
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1484
|
-
_this.apiVersion = '2014-04-01-preview';
|
|
1485
|
-
_this.acceptLanguage = 'en-US';
|
|
1486
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1487
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1488
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1489
|
-
_this.credentials = credentials;
|
|
1490
|
-
_this.subscriptionId = subscriptionId;
|
|
1491
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1492
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1493
|
-
}
|
|
1494
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1495
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1496
|
-
}
|
|
1497
|
-
return _this;
|
|
1498
|
-
}
|
|
1499
|
-
return VisualStudioResourceProviderClientContext;
|
|
1500
|
-
}(msRestAzure.AzureServiceClient));
|
|
1501
|
-
|
|
1502
|
-
/*
|
|
1503
|
-
* Copyright (c) Microsoft Corporation.
|
|
1504
|
-
* Licensed under the MIT License.
|
|
1505
|
-
*
|
|
1506
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1507
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1508
|
-
* regenerated.
|
|
1509
|
-
*/
|
|
1510
|
-
var VisualStudioResourceProviderClient = /** @class */ (function (_super) {
|
|
1511
|
-
__extends(VisualStudioResourceProviderClient, _super);
|
|
1512
|
-
/**
|
|
1513
|
-
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
1514
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1515
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1516
|
-
* more information about these credentials, see
|
|
1517
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1518
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1519
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1520
|
-
* @param subscriptionId The Azure subscription identifier.
|
|
1521
|
-
* @param [options] The parameter options
|
|
1522
|
-
*/
|
|
1523
|
-
function VisualStudioResourceProviderClient(credentials, subscriptionId, options) {
|
|
1524
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
1525
|
-
_this.operations = new Operations(_this);
|
|
1526
|
-
_this.accounts = new Accounts(_this);
|
|
1527
|
-
_this.extensions = new Extensions(_this);
|
|
1528
|
-
_this.projects = new Projects(_this);
|
|
1529
|
-
return _this;
|
|
1530
|
-
}
|
|
1531
|
-
return VisualStudioResourceProviderClient;
|
|
1532
|
-
}(VisualStudioResourceProviderClientContext));
|
|
1533
|
-
|
|
1534
|
-
exports.Accounts = Accounts;
|
|
1535
|
-
exports.Extensions = Extensions;
|
|
1536
|
-
exports.Operations = Operations;
|
|
1537
|
-
exports.Projects = Projects;
|
|
1538
|
-
exports.VisualStudioResourceProviderClient = VisualStudioResourceProviderClient;
|
|
1539
|
-
exports.VisualStudioResourceProviderClientContext = VisualStudioResourceProviderClientContext;
|
|
1540
|
-
exports.VisualStudioResourceProviderMappers = mappers;
|
|
1541
|
-
exports.VisualStudioResourceProviderModels = index;
|
|
1542
|
-
|
|
1543
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1544
|
-
|
|
1545
|
-
})));
|
|
1546
|
-
//# sourceMappingURL=arm-visualstudio.js.map
|