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