@azure/arm-devspaces 1.2.1 → 2.0.0
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/README.md +69 -83
- package/dist/index.js +1321 -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/src/devSpacesManagementClient.d.ts +20 -0
- package/dist-esm/src/devSpacesManagementClient.d.ts.map +1 -0
- package/dist-esm/src/devSpacesManagementClient.js +53 -0
- package/dist-esm/src/devSpacesManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -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 +287 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +29 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +204 -231
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +129 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/containerHostMappings.d.ts +23 -0
- package/dist-esm/src/operations/containerHostMappings.d.ts.map +1 -0
- package/dist-esm/src/operations/containerHostMappings.js +59 -0
- package/dist-esm/src/operations/containerHostMappings.js.map +1 -0
- package/dist-esm/src/operations/controllers.d.ts +111 -0
- package/dist-esm/src/operations/controllers.d.ts.map +1 -0
- package/dist-esm/src/operations/controllers.js +490 -0
- package/dist-esm/src/operations/controllers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -6
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +34 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +116 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/controllers.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/controllers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/controllers.js +9 -0
- package/dist-esm/src/operationsInterfaces/controllers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +12 -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/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 +68 -33
- package/review/arm-devspaces.api.md +300 -0
- package/rollup.config.js +184 -27
- package/src/devSpacesManagementClient.ts +74 -39
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +251 -512
- package/src/models/mappers.ts +202 -226
- package/src/models/parameters.ts +98 -38
- package/src/operations/containerHostMappings.ts +51 -69
- package/src/operations/controllers.ts +469 -377
- package/src/operations/index.ts +4 -6
- package/src/operations/operations.ts +87 -81
- package/src/operationsInterfaces/containerHostMappings.ts +32 -0
- package/src/operationsInterfaces/controllers.ts +140 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +26 -0
- package/tsconfig.json +4 -4
- package/types/arm-devspaces.d.ts +451 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-devspaces.js +0 -1261
- package/dist/arm-devspaces.js.map +0 -1
- package/dist/arm-devspaces.min.js +0 -1
- package/dist/arm-devspaces.min.js.map +0 -1
- package/esm/devSpacesManagementClient.d.ts +0 -26
- package/esm/devSpacesManagementClient.d.ts.map +0 -1
- package/esm/devSpacesManagementClient.js +0 -40
- package/esm/devSpacesManagementClient.js.map +0 -1
- package/esm/devSpacesManagementClientContext.d.ts +0 -22
- package/esm/devSpacesManagementClientContext.d.ts.map +0 -1
- package/esm/devSpacesManagementClientContext.js +0 -61
- package/esm/devSpacesManagementClientContext.js.map +0 -1
- package/esm/models/containerHostMappingsMappers.d.ts +0 -2
- package/esm/models/containerHostMappingsMappers.d.ts.map +0 -1
- package/esm/models/containerHostMappingsMappers.js +0 -11
- package/esm/models/containerHostMappingsMappers.js.map +0 -1
- package/esm/models/controllersMappers.d.ts +0 -2
- package/esm/models/controllersMappers.d.ts.map +0 -1
- package/esm/models/controllersMappers.js +0 -11
- package/esm/models/controllersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -564
- 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 -24
- 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 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -90
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/containerHostMappings.d.ts +0 -35
- package/esm/operations/containerHostMappings.d.ts.map +0 -1
- package/esm/operations/containerHostMappings.js +0 -66
- package/esm/operations/containerHostMappings.js.map +0 -1
- package/esm/operations/controllers.d.ts +0 -198
- package/esm/operations/controllers.d.ts.map +0 -1
- package/esm/operations/controllers.js +0 -346
- package/esm/operations/controllers.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 -50
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/src/devSpacesManagementClientContext.ts +0 -68
- package/src/models/containerHostMappingsMappers.ts +0 -16
- package/src/models/controllersMappers.ts +0 -27
- package/src/models/operationsMappers.ts +0 -18
package/dist/arm-devspaces.js
DELETED
|
@@ -1,1261 +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.ArmDevspaces = {}),global.msRestAzure,global.msRest));
|
|
14
|
-
}(this, (function (exports,msRestAzure,msRest) { 'use strict';
|
|
15
|
-
|
|
16
|
-
/*! *****************************************************************************
|
|
17
|
-
Copyright (c) Microsoft Corporation.
|
|
18
|
-
|
|
19
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
20
|
-
purpose with or without fee is hereby granted.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
23
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
24
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
25
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
26
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
27
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
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 ContainerHostMapping = {
|
|
82
|
-
serializedName: "ContainerHostMapping",
|
|
83
|
-
type: {
|
|
84
|
-
name: "Composite",
|
|
85
|
-
className: "ContainerHostMapping",
|
|
86
|
-
modelProperties: {
|
|
87
|
-
containerHostResourceId: {
|
|
88
|
-
serializedName: "containerHostResourceId",
|
|
89
|
-
type: {
|
|
90
|
-
name: "String"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
mappedControllerResourceId: {
|
|
94
|
-
readOnly: true,
|
|
95
|
-
serializedName: "mappedControllerResourceId",
|
|
96
|
-
type: {
|
|
97
|
-
name: "String"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
var Sku = {
|
|
104
|
-
serializedName: "Sku",
|
|
105
|
-
type: {
|
|
106
|
-
name: "Composite",
|
|
107
|
-
className: "Sku",
|
|
108
|
-
modelProperties: {
|
|
109
|
-
name: {
|
|
110
|
-
required: true,
|
|
111
|
-
isConstant: true,
|
|
112
|
-
serializedName: "name",
|
|
113
|
-
defaultValue: 'S1',
|
|
114
|
-
type: {
|
|
115
|
-
name: "String"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
tier: {
|
|
119
|
-
serializedName: "tier",
|
|
120
|
-
type: {
|
|
121
|
-
name: "String"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
var Resource = {
|
|
128
|
-
serializedName: "Resource",
|
|
129
|
-
type: {
|
|
130
|
-
name: "Composite",
|
|
131
|
-
className: "Resource",
|
|
132
|
-
modelProperties: {
|
|
133
|
-
id: {
|
|
134
|
-
readOnly: true,
|
|
135
|
-
serializedName: "id",
|
|
136
|
-
type: {
|
|
137
|
-
name: "String"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
name: {
|
|
141
|
-
readOnly: true,
|
|
142
|
-
serializedName: "name",
|
|
143
|
-
type: {
|
|
144
|
-
name: "String"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
type: {
|
|
148
|
-
readOnly: true,
|
|
149
|
-
serializedName: "type",
|
|
150
|
-
type: {
|
|
151
|
-
name: "String"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
var TrackedResource = {
|
|
158
|
-
serializedName: "TrackedResource",
|
|
159
|
-
type: {
|
|
160
|
-
name: "Composite",
|
|
161
|
-
className: "TrackedResource",
|
|
162
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
|
|
163
|
-
serializedName: "tags",
|
|
164
|
-
type: {
|
|
165
|
-
name: "Dictionary",
|
|
166
|
-
value: {
|
|
167
|
-
type: {
|
|
168
|
-
name: "String"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, location: {
|
|
173
|
-
serializedName: "location",
|
|
174
|
-
type: {
|
|
175
|
-
name: "String"
|
|
176
|
-
}
|
|
177
|
-
} })
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
var Controller = {
|
|
181
|
-
serializedName: "Controller",
|
|
182
|
-
type: {
|
|
183
|
-
name: "Composite",
|
|
184
|
-
className: "Controller",
|
|
185
|
-
modelProperties: __assign(__assign({}, TrackedResource.type.modelProperties), { provisioningState: {
|
|
186
|
-
readOnly: true,
|
|
187
|
-
serializedName: "properties.provisioningState",
|
|
188
|
-
type: {
|
|
189
|
-
name: "String"
|
|
190
|
-
}
|
|
191
|
-
}, hostSuffix: {
|
|
192
|
-
required: true,
|
|
193
|
-
serializedName: "properties.hostSuffix",
|
|
194
|
-
type: {
|
|
195
|
-
name: "String"
|
|
196
|
-
}
|
|
197
|
-
}, dataPlaneFqdn: {
|
|
198
|
-
readOnly: true,
|
|
199
|
-
serializedName: "properties.dataPlaneFqdn",
|
|
200
|
-
type: {
|
|
201
|
-
name: "String"
|
|
202
|
-
}
|
|
203
|
-
}, targetContainerHostResourceId: {
|
|
204
|
-
required: true,
|
|
205
|
-
serializedName: "properties.targetContainerHostResourceId",
|
|
206
|
-
type: {
|
|
207
|
-
name: "String"
|
|
208
|
-
}
|
|
209
|
-
}, targetContainerHostCredentialsBase64: {
|
|
210
|
-
required: true,
|
|
211
|
-
serializedName: "properties.targetContainerHostCredentialsBase64",
|
|
212
|
-
type: {
|
|
213
|
-
name: "String"
|
|
214
|
-
}
|
|
215
|
-
}, sku: {
|
|
216
|
-
required: true,
|
|
217
|
-
serializedName: "sku",
|
|
218
|
-
defaultValue: {},
|
|
219
|
-
type: {
|
|
220
|
-
name: "Composite",
|
|
221
|
-
className: "Sku"
|
|
222
|
-
}
|
|
223
|
-
} })
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
var ControllerUpdateParameters = {
|
|
227
|
-
serializedName: "ControllerUpdateParameters",
|
|
228
|
-
type: {
|
|
229
|
-
name: "Composite",
|
|
230
|
-
className: "ControllerUpdateParameters",
|
|
231
|
-
modelProperties: {
|
|
232
|
-
tags: {
|
|
233
|
-
serializedName: "tags",
|
|
234
|
-
type: {
|
|
235
|
-
name: "Dictionary",
|
|
236
|
-
value: {
|
|
237
|
-
type: {
|
|
238
|
-
name: "String"
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
var OrchestratorSpecificConnectionDetails = {
|
|
247
|
-
serializedName: "OrchestratorSpecificConnectionDetails",
|
|
248
|
-
type: {
|
|
249
|
-
name: "Composite",
|
|
250
|
-
polymorphicDiscriminator: {
|
|
251
|
-
serializedName: "instanceType",
|
|
252
|
-
clientName: "instanceType"
|
|
253
|
-
},
|
|
254
|
-
uberParent: "OrchestratorSpecificConnectionDetails",
|
|
255
|
-
className: "OrchestratorSpecificConnectionDetails",
|
|
256
|
-
modelProperties: {
|
|
257
|
-
instanceType: {
|
|
258
|
-
required: true,
|
|
259
|
-
serializedName: "instanceType",
|
|
260
|
-
type: {
|
|
261
|
-
name: "String"
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
var ControllerConnectionDetails = {
|
|
268
|
-
serializedName: "ControllerConnectionDetails",
|
|
269
|
-
type: {
|
|
270
|
-
name: "Composite",
|
|
271
|
-
className: "ControllerConnectionDetails",
|
|
272
|
-
modelProperties: {
|
|
273
|
-
authKey: {
|
|
274
|
-
readOnly: true,
|
|
275
|
-
serializedName: "authKey",
|
|
276
|
-
type: {
|
|
277
|
-
name: "String"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
workspaceStorageAccountName: {
|
|
281
|
-
readOnly: true,
|
|
282
|
-
serializedName: "workspaceStorageAccountName",
|
|
283
|
-
type: {
|
|
284
|
-
name: "String"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
workspaceStorageSasToken: {
|
|
288
|
-
readOnly: true,
|
|
289
|
-
serializedName: "workspaceStorageSasToken",
|
|
290
|
-
type: {
|
|
291
|
-
name: "String"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
orchestratorSpecificConnectionDetails: {
|
|
295
|
-
serializedName: "orchestratorSpecificConnectionDetails",
|
|
296
|
-
type: {
|
|
297
|
-
name: "Composite",
|
|
298
|
-
className: "OrchestratorSpecificConnectionDetails"
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
var ControllerConnectionDetailsList = {
|
|
305
|
-
serializedName: "ControllerConnectionDetailsList",
|
|
306
|
-
type: {
|
|
307
|
-
name: "Composite",
|
|
308
|
-
className: "ControllerConnectionDetailsList",
|
|
309
|
-
modelProperties: {
|
|
310
|
-
connectionDetailsList: {
|
|
311
|
-
serializedName: "connectionDetailsList",
|
|
312
|
-
type: {
|
|
313
|
-
name: "Sequence",
|
|
314
|
-
element: {
|
|
315
|
-
type: {
|
|
316
|
-
name: "Composite",
|
|
317
|
-
className: "ControllerConnectionDetails"
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
var ResourceProviderOperationDisplay = {
|
|
326
|
-
serializedName: "ResourceProviderOperationDisplay",
|
|
327
|
-
type: {
|
|
328
|
-
name: "Composite",
|
|
329
|
-
className: "ResourceProviderOperationDisplay",
|
|
330
|
-
modelProperties: {
|
|
331
|
-
provider: {
|
|
332
|
-
serializedName: "provider",
|
|
333
|
-
type: {
|
|
334
|
-
name: "String"
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
resource: {
|
|
338
|
-
serializedName: "resource",
|
|
339
|
-
type: {
|
|
340
|
-
name: "String"
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
operation: {
|
|
344
|
-
serializedName: "operation",
|
|
345
|
-
type: {
|
|
346
|
-
name: "String"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
description: {
|
|
350
|
-
serializedName: "description",
|
|
351
|
-
type: {
|
|
352
|
-
name: "String"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
var ResourceProviderOperationDefinition = {
|
|
359
|
-
serializedName: "ResourceProviderOperationDefinition",
|
|
360
|
-
type: {
|
|
361
|
-
name: "Composite",
|
|
362
|
-
className: "ResourceProviderOperationDefinition",
|
|
363
|
-
modelProperties: {
|
|
364
|
-
name: {
|
|
365
|
-
serializedName: "name",
|
|
366
|
-
type: {
|
|
367
|
-
name: "String"
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
display: {
|
|
371
|
-
serializedName: "display",
|
|
372
|
-
type: {
|
|
373
|
-
name: "Composite",
|
|
374
|
-
className: "ResourceProviderOperationDisplay"
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
var KubernetesConnectionDetails = {
|
|
381
|
-
serializedName: "Kubernetes",
|
|
382
|
-
type: {
|
|
383
|
-
name: "Composite",
|
|
384
|
-
polymorphicDiscriminator: OrchestratorSpecificConnectionDetails.type.polymorphicDiscriminator,
|
|
385
|
-
uberParent: "OrchestratorSpecificConnectionDetails",
|
|
386
|
-
className: "KubernetesConnectionDetails",
|
|
387
|
-
modelProperties: __assign(__assign({}, OrchestratorSpecificConnectionDetails.type.modelProperties), { kubeConfig: {
|
|
388
|
-
serializedName: "kubeConfig",
|
|
389
|
-
type: {
|
|
390
|
-
name: "String"
|
|
391
|
-
}
|
|
392
|
-
} })
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
var ErrorDetails = {
|
|
396
|
-
serializedName: "ErrorDetails",
|
|
397
|
-
type: {
|
|
398
|
-
name: "Composite",
|
|
399
|
-
className: "ErrorDetails",
|
|
400
|
-
modelProperties: {
|
|
401
|
-
code: {
|
|
402
|
-
readOnly: true,
|
|
403
|
-
serializedName: "code",
|
|
404
|
-
type: {
|
|
405
|
-
name: "String"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
message: {
|
|
409
|
-
readOnly: true,
|
|
410
|
-
serializedName: "message",
|
|
411
|
-
type: {
|
|
412
|
-
name: "String"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
target: {
|
|
416
|
-
readOnly: true,
|
|
417
|
-
serializedName: "target",
|
|
418
|
-
type: {
|
|
419
|
-
name: "String"
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
var ErrorResponse = {
|
|
426
|
-
serializedName: "ErrorResponse",
|
|
427
|
-
type: {
|
|
428
|
-
name: "Composite",
|
|
429
|
-
className: "ErrorResponse",
|
|
430
|
-
modelProperties: {
|
|
431
|
-
error: {
|
|
432
|
-
serializedName: "error",
|
|
433
|
-
type: {
|
|
434
|
-
name: "Composite",
|
|
435
|
-
className: "ErrorDetails"
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
var ControllerList = {
|
|
442
|
-
serializedName: "ControllerList",
|
|
443
|
-
type: {
|
|
444
|
-
name: "Composite",
|
|
445
|
-
className: "ControllerList",
|
|
446
|
-
modelProperties: {
|
|
447
|
-
value: {
|
|
448
|
-
serializedName: "",
|
|
449
|
-
type: {
|
|
450
|
-
name: "Sequence",
|
|
451
|
-
element: {
|
|
452
|
-
type: {
|
|
453
|
-
name: "Composite",
|
|
454
|
-
className: "Controller"
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
nextLink: {
|
|
460
|
-
readOnly: true,
|
|
461
|
-
serializedName: "nextLink",
|
|
462
|
-
type: {
|
|
463
|
-
name: "String"
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
var ResourceProviderOperationList = {
|
|
470
|
-
serializedName: "ResourceProviderOperationList",
|
|
471
|
-
type: {
|
|
472
|
-
name: "Composite",
|
|
473
|
-
className: "ResourceProviderOperationList",
|
|
474
|
-
modelProperties: {
|
|
475
|
-
value: {
|
|
476
|
-
serializedName: "",
|
|
477
|
-
type: {
|
|
478
|
-
name: "Sequence",
|
|
479
|
-
element: {
|
|
480
|
-
type: {
|
|
481
|
-
name: "Composite",
|
|
482
|
-
className: "ResourceProviderOperationDefinition"
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
nextLink: {
|
|
488
|
-
readOnly: true,
|
|
489
|
-
serializedName: "nextLink",
|
|
490
|
-
type: {
|
|
491
|
-
name: "String"
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
var discriminators = {
|
|
498
|
-
'OrchestratorSpecificConnectionDetails': OrchestratorSpecificConnectionDetails,
|
|
499
|
-
'OrchestratorSpecificConnectionDetails.Kubernetes': KubernetesConnectionDetails
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
503
|
-
CloudError: CloudError,
|
|
504
|
-
BaseResource: BaseResource,
|
|
505
|
-
ContainerHostMapping: ContainerHostMapping,
|
|
506
|
-
Sku: Sku,
|
|
507
|
-
Resource: Resource,
|
|
508
|
-
TrackedResource: TrackedResource,
|
|
509
|
-
Controller: Controller,
|
|
510
|
-
ControllerUpdateParameters: ControllerUpdateParameters,
|
|
511
|
-
OrchestratorSpecificConnectionDetails: OrchestratorSpecificConnectionDetails,
|
|
512
|
-
ControllerConnectionDetails: ControllerConnectionDetails,
|
|
513
|
-
ControllerConnectionDetailsList: ControllerConnectionDetailsList,
|
|
514
|
-
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
|
515
|
-
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
|
516
|
-
KubernetesConnectionDetails: KubernetesConnectionDetails,
|
|
517
|
-
ErrorDetails: ErrorDetails,
|
|
518
|
-
ErrorResponse: ErrorResponse,
|
|
519
|
-
ControllerList: ControllerList,
|
|
520
|
-
ResourceProviderOperationList: ResourceProviderOperationList,
|
|
521
|
-
discriminators: discriminators
|
|
522
|
-
});
|
|
523
|
-
|
|
524
|
-
/*
|
|
525
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
526
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
527
|
-
* license information.
|
|
528
|
-
*
|
|
529
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
530
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
531
|
-
* regenerated.
|
|
532
|
-
*/
|
|
533
|
-
|
|
534
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
535
|
-
discriminators: discriminators,
|
|
536
|
-
ContainerHostMapping: ContainerHostMapping,
|
|
537
|
-
CloudError: CloudError
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
/*
|
|
541
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
542
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
543
|
-
* license information.
|
|
544
|
-
*
|
|
545
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
546
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
547
|
-
* regenerated.
|
|
548
|
-
*/
|
|
549
|
-
var acceptLanguage = {
|
|
550
|
-
parameterPath: "acceptLanguage",
|
|
551
|
-
mapper: {
|
|
552
|
-
serializedName: "accept-language",
|
|
553
|
-
defaultValue: 'en-US',
|
|
554
|
-
type: {
|
|
555
|
-
name: "String"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
var apiVersion = {
|
|
560
|
-
parameterPath: "apiVersion",
|
|
561
|
-
mapper: {
|
|
562
|
-
required: true,
|
|
563
|
-
serializedName: "api-version",
|
|
564
|
-
type: {
|
|
565
|
-
name: "String"
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
var location = {
|
|
570
|
-
parameterPath: "location",
|
|
571
|
-
mapper: {
|
|
572
|
-
required: true,
|
|
573
|
-
serializedName: "location",
|
|
574
|
-
type: {
|
|
575
|
-
name: "String"
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
var name = {
|
|
580
|
-
parameterPath: "name",
|
|
581
|
-
mapper: {
|
|
582
|
-
required: true,
|
|
583
|
-
serializedName: "name",
|
|
584
|
-
constraints: {
|
|
585
|
-
MaxLength: 31,
|
|
586
|
-
MinLength: 3,
|
|
587
|
-
Pattern: /^[a-zA-Z0-9](-?[a-zA-Z0-9])*$/
|
|
588
|
-
},
|
|
589
|
-
type: {
|
|
590
|
-
name: "String"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
var nextPageLink = {
|
|
595
|
-
parameterPath: "nextPageLink",
|
|
596
|
-
mapper: {
|
|
597
|
-
required: true,
|
|
598
|
-
serializedName: "nextLink",
|
|
599
|
-
type: {
|
|
600
|
-
name: "String"
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
skipEncoding: true
|
|
604
|
-
};
|
|
605
|
-
var resourceGroupName = {
|
|
606
|
-
parameterPath: "resourceGroupName",
|
|
607
|
-
mapper: {
|
|
608
|
-
required: true,
|
|
609
|
-
serializedName: "resourceGroupName",
|
|
610
|
-
constraints: {
|
|
611
|
-
MaxLength: 90,
|
|
612
|
-
MinLength: 1
|
|
613
|
-
},
|
|
614
|
-
type: {
|
|
615
|
-
name: "String"
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
var subscriptionId = {
|
|
620
|
-
parameterPath: "subscriptionId",
|
|
621
|
-
mapper: {
|
|
622
|
-
required: true,
|
|
623
|
-
serializedName: "subscriptionId",
|
|
624
|
-
type: {
|
|
625
|
-
name: "String"
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/*
|
|
631
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
632
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
633
|
-
* license information.
|
|
634
|
-
*
|
|
635
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
636
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
637
|
-
* regenerated.
|
|
638
|
-
*/
|
|
639
|
-
/** Class representing a ContainerHostMappings. */
|
|
640
|
-
var ContainerHostMappings = /** @class */ (function () {
|
|
641
|
-
/**
|
|
642
|
-
* Create a ContainerHostMappings.
|
|
643
|
-
* @param {DevSpacesManagementClientContext} client Reference to the service client.
|
|
644
|
-
*/
|
|
645
|
-
function ContainerHostMappings(client) {
|
|
646
|
-
this.client = client;
|
|
647
|
-
}
|
|
648
|
-
ContainerHostMappings.prototype.getContainerHostMapping = function (containerHostMapping, location$$1, options, callback) {
|
|
649
|
-
return this.client.sendOperationRequest({
|
|
650
|
-
containerHostMapping: containerHostMapping,
|
|
651
|
-
location: location$$1,
|
|
652
|
-
options: options
|
|
653
|
-
}, getContainerHostMappingOperationSpec, callback);
|
|
654
|
-
};
|
|
655
|
-
return ContainerHostMappings;
|
|
656
|
-
}());
|
|
657
|
-
// Operation Specifications
|
|
658
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
659
|
-
var getContainerHostMappingOperationSpec = {
|
|
660
|
-
httpMethod: "POST",
|
|
661
|
-
path: "providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping",
|
|
662
|
-
urlParameters: [
|
|
663
|
-
location
|
|
664
|
-
],
|
|
665
|
-
queryParameters: [
|
|
666
|
-
apiVersion
|
|
667
|
-
],
|
|
668
|
-
headerParameters: [
|
|
669
|
-
acceptLanguage
|
|
670
|
-
],
|
|
671
|
-
requestBody: {
|
|
672
|
-
parameterPath: "containerHostMapping",
|
|
673
|
-
mapper: __assign(__assign({}, ContainerHostMapping), { required: true })
|
|
674
|
-
},
|
|
675
|
-
responses: {
|
|
676
|
-
200: {
|
|
677
|
-
bodyMapper: {
|
|
678
|
-
serializedName: "parsedResponse",
|
|
679
|
-
type: {
|
|
680
|
-
name: "Object"
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
},
|
|
684
|
-
default: {
|
|
685
|
-
bodyMapper: CloudError
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
serializer: serializer
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
/*
|
|
692
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
693
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
694
|
-
* license information.
|
|
695
|
-
*
|
|
696
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
697
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
698
|
-
* regenerated.
|
|
699
|
-
*/
|
|
700
|
-
|
|
701
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
702
|
-
discriminators: discriminators,
|
|
703
|
-
Controller: Controller,
|
|
704
|
-
TrackedResource: TrackedResource,
|
|
705
|
-
Resource: Resource,
|
|
706
|
-
BaseResource: BaseResource,
|
|
707
|
-
Sku: Sku,
|
|
708
|
-
ErrorResponse: ErrorResponse,
|
|
709
|
-
ErrorDetails: ErrorDetails,
|
|
710
|
-
ControllerUpdateParameters: ControllerUpdateParameters,
|
|
711
|
-
ControllerList: ControllerList,
|
|
712
|
-
ControllerConnectionDetailsList: ControllerConnectionDetailsList,
|
|
713
|
-
ControllerConnectionDetails: ControllerConnectionDetails,
|
|
714
|
-
OrchestratorSpecificConnectionDetails: OrchestratorSpecificConnectionDetails,
|
|
715
|
-
KubernetesConnectionDetails: KubernetesConnectionDetails
|
|
716
|
-
});
|
|
717
|
-
|
|
718
|
-
/*
|
|
719
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
720
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
721
|
-
* license information.
|
|
722
|
-
*
|
|
723
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
724
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
725
|
-
* regenerated.
|
|
726
|
-
*/
|
|
727
|
-
/** Class representing a Controllers. */
|
|
728
|
-
var Controllers = /** @class */ (function () {
|
|
729
|
-
/**
|
|
730
|
-
* Create a Controllers.
|
|
731
|
-
* @param {DevSpacesManagementClientContext} client Reference to the service client.
|
|
732
|
-
*/
|
|
733
|
-
function Controllers(client) {
|
|
734
|
-
this.client = client;
|
|
735
|
-
}
|
|
736
|
-
Controllers.prototype.get = function (resourceGroupName$$1, name$$1, options, callback) {
|
|
737
|
-
return this.client.sendOperationRequest({
|
|
738
|
-
resourceGroupName: resourceGroupName$$1,
|
|
739
|
-
name: name$$1,
|
|
740
|
-
options: options
|
|
741
|
-
}, getOperationSpec, callback);
|
|
742
|
-
};
|
|
743
|
-
/**
|
|
744
|
-
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
745
|
-
* @summary Creates an Azure Dev Spaces Controller.
|
|
746
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
747
|
-
* @param name Name of the resource.
|
|
748
|
-
* @param controller Controller create parameters.
|
|
749
|
-
* @param [options] The optional parameters
|
|
750
|
-
* @returns Promise<Models.ControllersCreateResponse>
|
|
751
|
-
*/
|
|
752
|
-
Controllers.prototype.create = function (resourceGroupName$$1, name$$1, controller, options) {
|
|
753
|
-
return this.beginCreate(resourceGroupName$$1, name$$1, controller, options)
|
|
754
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
755
|
-
};
|
|
756
|
-
/**
|
|
757
|
-
* Deletes an existing Azure Dev Spaces Controller.
|
|
758
|
-
* @summary Deletes an Azure Dev Spaces Controller.
|
|
759
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
760
|
-
* @param name Name of the resource.
|
|
761
|
-
* @param [options] The optional parameters
|
|
762
|
-
* @returns Promise<msRest.RestResponse>
|
|
763
|
-
*/
|
|
764
|
-
Controllers.prototype.deleteMethod = function (resourceGroupName$$1, name$$1, options) {
|
|
765
|
-
return this.beginDeleteMethod(resourceGroupName$$1, name$$1, options)
|
|
766
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
767
|
-
};
|
|
768
|
-
Controllers.prototype.update = function (resourceGroupName$$1, name$$1, controllerUpdateParameters, options, callback) {
|
|
769
|
-
return this.client.sendOperationRequest({
|
|
770
|
-
resourceGroupName: resourceGroupName$$1,
|
|
771
|
-
name: name$$1,
|
|
772
|
-
controllerUpdateParameters: controllerUpdateParameters,
|
|
773
|
-
options: options
|
|
774
|
-
}, updateOperationSpec, callback);
|
|
775
|
-
};
|
|
776
|
-
Controllers.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
|
|
777
|
-
return this.client.sendOperationRequest({
|
|
778
|
-
resourceGroupName: resourceGroupName$$1,
|
|
779
|
-
options: options
|
|
780
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
781
|
-
};
|
|
782
|
-
Controllers.prototype.list = function (options, callback) {
|
|
783
|
-
return this.client.sendOperationRequest({
|
|
784
|
-
options: options
|
|
785
|
-
}, listOperationSpec, callback);
|
|
786
|
-
};
|
|
787
|
-
Controllers.prototype.listConnectionDetails = function (resourceGroupName$$1, name$$1, options, callback) {
|
|
788
|
-
return this.client.sendOperationRequest({
|
|
789
|
-
resourceGroupName: resourceGroupName$$1,
|
|
790
|
-
name: name$$1,
|
|
791
|
-
options: options
|
|
792
|
-
}, listConnectionDetailsOperationSpec, callback);
|
|
793
|
-
};
|
|
794
|
-
/**
|
|
795
|
-
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
796
|
-
* @summary Creates an Azure Dev Spaces Controller.
|
|
797
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
798
|
-
* @param name Name of the resource.
|
|
799
|
-
* @param controller Controller create parameters.
|
|
800
|
-
* @param [options] The optional parameters
|
|
801
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
802
|
-
*/
|
|
803
|
-
Controllers.prototype.beginCreate = function (resourceGroupName$$1, name$$1, controller, options) {
|
|
804
|
-
return this.client.sendLRORequest({
|
|
805
|
-
resourceGroupName: resourceGroupName$$1,
|
|
806
|
-
name: name$$1,
|
|
807
|
-
controller: controller,
|
|
808
|
-
options: options
|
|
809
|
-
}, beginCreateOperationSpec, options);
|
|
810
|
-
};
|
|
811
|
-
/**
|
|
812
|
-
* Deletes an existing Azure Dev Spaces Controller.
|
|
813
|
-
* @summary Deletes an Azure Dev Spaces Controller.
|
|
814
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
815
|
-
* @param name Name of the resource.
|
|
816
|
-
* @param [options] The optional parameters
|
|
817
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
818
|
-
*/
|
|
819
|
-
Controllers.prototype.beginDeleteMethod = function (resourceGroupName$$1, name$$1, options) {
|
|
820
|
-
return this.client.sendLRORequest({
|
|
821
|
-
resourceGroupName: resourceGroupName$$1,
|
|
822
|
-
name: name$$1,
|
|
823
|
-
options: options
|
|
824
|
-
}, beginDeleteMethodOperationSpec, options);
|
|
825
|
-
};
|
|
826
|
-
Controllers.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
|
|
827
|
-
return this.client.sendOperationRequest({
|
|
828
|
-
nextPageLink: nextPageLink$$1,
|
|
829
|
-
options: options
|
|
830
|
-
}, listByResourceGroupNextOperationSpec, callback);
|
|
831
|
-
};
|
|
832
|
-
Controllers.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
|
833
|
-
return this.client.sendOperationRequest({
|
|
834
|
-
nextPageLink: nextPageLink$$1,
|
|
835
|
-
options: options
|
|
836
|
-
}, listNextOperationSpec, callback);
|
|
837
|
-
};
|
|
838
|
-
return Controllers;
|
|
839
|
-
}());
|
|
840
|
-
// Operation Specifications
|
|
841
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
842
|
-
var getOperationSpec = {
|
|
843
|
-
httpMethod: "GET",
|
|
844
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
845
|
-
urlParameters: [
|
|
846
|
-
subscriptionId,
|
|
847
|
-
resourceGroupName,
|
|
848
|
-
name
|
|
849
|
-
],
|
|
850
|
-
queryParameters: [
|
|
851
|
-
apiVersion
|
|
852
|
-
],
|
|
853
|
-
headerParameters: [
|
|
854
|
-
acceptLanguage
|
|
855
|
-
],
|
|
856
|
-
responses: {
|
|
857
|
-
200: {
|
|
858
|
-
bodyMapper: Controller
|
|
859
|
-
},
|
|
860
|
-
default: {
|
|
861
|
-
bodyMapper: ErrorResponse
|
|
862
|
-
}
|
|
863
|
-
},
|
|
864
|
-
serializer: serializer$1
|
|
865
|
-
};
|
|
866
|
-
var updateOperationSpec = {
|
|
867
|
-
httpMethod: "PATCH",
|
|
868
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
869
|
-
urlParameters: [
|
|
870
|
-
subscriptionId,
|
|
871
|
-
resourceGroupName,
|
|
872
|
-
name
|
|
873
|
-
],
|
|
874
|
-
queryParameters: [
|
|
875
|
-
apiVersion
|
|
876
|
-
],
|
|
877
|
-
headerParameters: [
|
|
878
|
-
acceptLanguage
|
|
879
|
-
],
|
|
880
|
-
requestBody: {
|
|
881
|
-
parameterPath: "controllerUpdateParameters",
|
|
882
|
-
mapper: __assign(__assign({}, ControllerUpdateParameters), { required: true })
|
|
883
|
-
},
|
|
884
|
-
responses: {
|
|
885
|
-
200: {
|
|
886
|
-
bodyMapper: Controller
|
|
887
|
-
},
|
|
888
|
-
default: {
|
|
889
|
-
bodyMapper: ErrorResponse
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
serializer: serializer$1
|
|
893
|
-
};
|
|
894
|
-
var listByResourceGroupOperationSpec = {
|
|
895
|
-
httpMethod: "GET",
|
|
896
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers",
|
|
897
|
-
urlParameters: [
|
|
898
|
-
subscriptionId,
|
|
899
|
-
resourceGroupName
|
|
900
|
-
],
|
|
901
|
-
queryParameters: [
|
|
902
|
-
apiVersion
|
|
903
|
-
],
|
|
904
|
-
headerParameters: [
|
|
905
|
-
acceptLanguage
|
|
906
|
-
],
|
|
907
|
-
responses: {
|
|
908
|
-
200: {
|
|
909
|
-
bodyMapper: ControllerList
|
|
910
|
-
},
|
|
911
|
-
default: {
|
|
912
|
-
bodyMapper: ErrorResponse
|
|
913
|
-
}
|
|
914
|
-
},
|
|
915
|
-
serializer: serializer$1
|
|
916
|
-
};
|
|
917
|
-
var listOperationSpec = {
|
|
918
|
-
httpMethod: "GET",
|
|
919
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers",
|
|
920
|
-
urlParameters: [
|
|
921
|
-
subscriptionId
|
|
922
|
-
],
|
|
923
|
-
queryParameters: [
|
|
924
|
-
apiVersion
|
|
925
|
-
],
|
|
926
|
-
headerParameters: [
|
|
927
|
-
acceptLanguage
|
|
928
|
-
],
|
|
929
|
-
responses: {
|
|
930
|
-
200: {
|
|
931
|
-
bodyMapper: ControllerList
|
|
932
|
-
},
|
|
933
|
-
default: {
|
|
934
|
-
bodyMapper: ErrorResponse
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
serializer: serializer$1
|
|
938
|
-
};
|
|
939
|
-
var listConnectionDetailsOperationSpec = {
|
|
940
|
-
httpMethod: "POST",
|
|
941
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails",
|
|
942
|
-
urlParameters: [
|
|
943
|
-
subscriptionId,
|
|
944
|
-
resourceGroupName,
|
|
945
|
-
name
|
|
946
|
-
],
|
|
947
|
-
queryParameters: [
|
|
948
|
-
apiVersion
|
|
949
|
-
],
|
|
950
|
-
headerParameters: [
|
|
951
|
-
acceptLanguage
|
|
952
|
-
],
|
|
953
|
-
responses: {
|
|
954
|
-
200: {
|
|
955
|
-
bodyMapper: ControllerConnectionDetailsList
|
|
956
|
-
},
|
|
957
|
-
default: {
|
|
958
|
-
bodyMapper: ErrorResponse
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
serializer: serializer$1
|
|
962
|
-
};
|
|
963
|
-
var beginCreateOperationSpec = {
|
|
964
|
-
httpMethod: "PUT",
|
|
965
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
966
|
-
urlParameters: [
|
|
967
|
-
subscriptionId,
|
|
968
|
-
resourceGroupName,
|
|
969
|
-
name
|
|
970
|
-
],
|
|
971
|
-
queryParameters: [
|
|
972
|
-
apiVersion
|
|
973
|
-
],
|
|
974
|
-
headerParameters: [
|
|
975
|
-
acceptLanguage
|
|
976
|
-
],
|
|
977
|
-
requestBody: {
|
|
978
|
-
parameterPath: "controller",
|
|
979
|
-
mapper: __assign(__assign({}, Controller), { required: true })
|
|
980
|
-
},
|
|
981
|
-
responses: {
|
|
982
|
-
200: {
|
|
983
|
-
bodyMapper: Controller
|
|
984
|
-
},
|
|
985
|
-
201: {
|
|
986
|
-
bodyMapper: Controller
|
|
987
|
-
},
|
|
988
|
-
default: {
|
|
989
|
-
bodyMapper: ErrorResponse
|
|
990
|
-
}
|
|
991
|
-
},
|
|
992
|
-
serializer: serializer$1
|
|
993
|
-
};
|
|
994
|
-
var beginDeleteMethodOperationSpec = {
|
|
995
|
-
httpMethod: "DELETE",
|
|
996
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
997
|
-
urlParameters: [
|
|
998
|
-
subscriptionId,
|
|
999
|
-
resourceGroupName,
|
|
1000
|
-
name
|
|
1001
|
-
],
|
|
1002
|
-
queryParameters: [
|
|
1003
|
-
apiVersion
|
|
1004
|
-
],
|
|
1005
|
-
headerParameters: [
|
|
1006
|
-
acceptLanguage
|
|
1007
|
-
],
|
|
1008
|
-
responses: {
|
|
1009
|
-
200: {},
|
|
1010
|
-
202: {},
|
|
1011
|
-
204: {},
|
|
1012
|
-
default: {
|
|
1013
|
-
bodyMapper: ErrorResponse
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
serializer: serializer$1
|
|
1017
|
-
};
|
|
1018
|
-
var listByResourceGroupNextOperationSpec = {
|
|
1019
|
-
httpMethod: "GET",
|
|
1020
|
-
baseUrl: "https://management.azure.com",
|
|
1021
|
-
path: "{nextLink}",
|
|
1022
|
-
urlParameters: [
|
|
1023
|
-
nextPageLink
|
|
1024
|
-
],
|
|
1025
|
-
headerParameters: [
|
|
1026
|
-
acceptLanguage
|
|
1027
|
-
],
|
|
1028
|
-
responses: {
|
|
1029
|
-
200: {
|
|
1030
|
-
bodyMapper: ControllerList
|
|
1031
|
-
},
|
|
1032
|
-
default: {
|
|
1033
|
-
bodyMapper: ErrorResponse
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
serializer: serializer$1
|
|
1037
|
-
};
|
|
1038
|
-
var listNextOperationSpec = {
|
|
1039
|
-
httpMethod: "GET",
|
|
1040
|
-
baseUrl: "https://management.azure.com",
|
|
1041
|
-
path: "{nextLink}",
|
|
1042
|
-
urlParameters: [
|
|
1043
|
-
nextPageLink
|
|
1044
|
-
],
|
|
1045
|
-
headerParameters: [
|
|
1046
|
-
acceptLanguage
|
|
1047
|
-
],
|
|
1048
|
-
responses: {
|
|
1049
|
-
200: {
|
|
1050
|
-
bodyMapper: ControllerList
|
|
1051
|
-
},
|
|
1052
|
-
default: {
|
|
1053
|
-
bodyMapper: ErrorResponse
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
serializer: serializer$1
|
|
1057
|
-
};
|
|
1058
|
-
|
|
1059
|
-
/*
|
|
1060
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1061
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1062
|
-
* license information.
|
|
1063
|
-
*
|
|
1064
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1065
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1066
|
-
* regenerated.
|
|
1067
|
-
*/
|
|
1068
|
-
|
|
1069
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
1070
|
-
discriminators: discriminators,
|
|
1071
|
-
ResourceProviderOperationList: ResourceProviderOperationList,
|
|
1072
|
-
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
|
1073
|
-
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
|
1074
|
-
CloudError: CloudError
|
|
1075
|
-
});
|
|
1076
|
-
|
|
1077
|
-
/*
|
|
1078
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1079
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1080
|
-
* license information.
|
|
1081
|
-
*
|
|
1082
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1083
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1084
|
-
* regenerated.
|
|
1085
|
-
*/
|
|
1086
|
-
/** Class representing a Operations. */
|
|
1087
|
-
var Operations = /** @class */ (function () {
|
|
1088
|
-
/**
|
|
1089
|
-
* Create a Operations.
|
|
1090
|
-
* @param {DevSpacesManagementClientContext} client Reference to the service client.
|
|
1091
|
-
*/
|
|
1092
|
-
function Operations(client) {
|
|
1093
|
-
this.client = client;
|
|
1094
|
-
}
|
|
1095
|
-
Operations.prototype.list = function (options, callback) {
|
|
1096
|
-
return this.client.sendOperationRequest({
|
|
1097
|
-
options: options
|
|
1098
|
-
}, listOperationSpec$1, callback);
|
|
1099
|
-
};
|
|
1100
|
-
Operations.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
|
1101
|
-
return this.client.sendOperationRequest({
|
|
1102
|
-
nextPageLink: nextPageLink$$1,
|
|
1103
|
-
options: options
|
|
1104
|
-
}, listNextOperationSpec$1, callback);
|
|
1105
|
-
};
|
|
1106
|
-
return Operations;
|
|
1107
|
-
}());
|
|
1108
|
-
// Operation Specifications
|
|
1109
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
1110
|
-
var listOperationSpec$1 = {
|
|
1111
|
-
httpMethod: "GET",
|
|
1112
|
-
path: "providers/Microsoft.DevSpaces/operations",
|
|
1113
|
-
queryParameters: [
|
|
1114
|
-
apiVersion
|
|
1115
|
-
],
|
|
1116
|
-
headerParameters: [
|
|
1117
|
-
acceptLanguage
|
|
1118
|
-
],
|
|
1119
|
-
responses: {
|
|
1120
|
-
200: {
|
|
1121
|
-
bodyMapper: ResourceProviderOperationList
|
|
1122
|
-
},
|
|
1123
|
-
default: {
|
|
1124
|
-
bodyMapper: CloudError
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
serializer: serializer$2
|
|
1128
|
-
};
|
|
1129
|
-
var listNextOperationSpec$1 = {
|
|
1130
|
-
httpMethod: "GET",
|
|
1131
|
-
baseUrl: "https://management.azure.com",
|
|
1132
|
-
path: "{nextLink}",
|
|
1133
|
-
urlParameters: [
|
|
1134
|
-
nextPageLink
|
|
1135
|
-
],
|
|
1136
|
-
headerParameters: [
|
|
1137
|
-
acceptLanguage
|
|
1138
|
-
],
|
|
1139
|
-
responses: {
|
|
1140
|
-
200: {
|
|
1141
|
-
bodyMapper: ResourceProviderOperationList
|
|
1142
|
-
},
|
|
1143
|
-
default: {
|
|
1144
|
-
bodyMapper: CloudError
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
serializer: serializer$2
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
|
-
/*
|
|
1151
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1152
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1153
|
-
* license information.
|
|
1154
|
-
*
|
|
1155
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1156
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1157
|
-
* regenerated.
|
|
1158
|
-
*/
|
|
1159
|
-
|
|
1160
|
-
/*
|
|
1161
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1162
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1163
|
-
* license information.
|
|
1164
|
-
*
|
|
1165
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1166
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1167
|
-
* regenerated.
|
|
1168
|
-
*/
|
|
1169
|
-
var packageName = "@azure/arm-devspaces";
|
|
1170
|
-
var packageVersion = "1.2.1";
|
|
1171
|
-
var DevSpacesManagementClientContext = /** @class */ (function (_super) {
|
|
1172
|
-
__extends(DevSpacesManagementClientContext, _super);
|
|
1173
|
-
/**
|
|
1174
|
-
* Initializes a new instance of the DevSpacesManagementClient class.
|
|
1175
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1176
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1177
|
-
* more information about these credentials, see
|
|
1178
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1179
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1180
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1181
|
-
* @param subscriptionId Azure subscription ID.
|
|
1182
|
-
* @param [options] The parameter options
|
|
1183
|
-
*/
|
|
1184
|
-
function DevSpacesManagementClientContext(credentials, subscriptionId, options) {
|
|
1185
|
-
var _this = this;
|
|
1186
|
-
if (credentials == undefined) {
|
|
1187
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1188
|
-
}
|
|
1189
|
-
if (subscriptionId == undefined) {
|
|
1190
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1191
|
-
}
|
|
1192
|
-
if (!options) {
|
|
1193
|
-
options = {};
|
|
1194
|
-
}
|
|
1195
|
-
if (!options.userAgent) {
|
|
1196
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1197
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1198
|
-
}
|
|
1199
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1200
|
-
_this.apiVersion = '2018-06-01-preview';
|
|
1201
|
-
_this.acceptLanguage = 'en-US';
|
|
1202
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1203
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1204
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1205
|
-
_this.credentials = credentials;
|
|
1206
|
-
_this.subscriptionId = subscriptionId;
|
|
1207
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1208
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1209
|
-
}
|
|
1210
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1211
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1212
|
-
}
|
|
1213
|
-
return _this;
|
|
1214
|
-
}
|
|
1215
|
-
return DevSpacesManagementClientContext;
|
|
1216
|
-
}(msRestAzure.AzureServiceClient));
|
|
1217
|
-
|
|
1218
|
-
/*
|
|
1219
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1220
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1221
|
-
* license information.
|
|
1222
|
-
*
|
|
1223
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1224
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1225
|
-
* regenerated.
|
|
1226
|
-
*/
|
|
1227
|
-
var DevSpacesManagementClient = /** @class */ (function (_super) {
|
|
1228
|
-
__extends(DevSpacesManagementClient, _super);
|
|
1229
|
-
/**
|
|
1230
|
-
* Initializes a new instance of the DevSpacesManagementClient class.
|
|
1231
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1232
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1233
|
-
* more information about these credentials, see
|
|
1234
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1235
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1236
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1237
|
-
* @param subscriptionId Azure subscription ID.
|
|
1238
|
-
* @param [options] The parameter options
|
|
1239
|
-
*/
|
|
1240
|
-
function DevSpacesManagementClient(credentials, subscriptionId, options) {
|
|
1241
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
1242
|
-
_this.containerHostMappings = new ContainerHostMappings(_this);
|
|
1243
|
-
_this.controllers = new Controllers(_this);
|
|
1244
|
-
_this.operations = new Operations(_this);
|
|
1245
|
-
return _this;
|
|
1246
|
-
}
|
|
1247
|
-
return DevSpacesManagementClient;
|
|
1248
|
-
}(DevSpacesManagementClientContext));
|
|
1249
|
-
|
|
1250
|
-
exports.DevSpacesManagementClient = DevSpacesManagementClient;
|
|
1251
|
-
exports.DevSpacesManagementClientContext = DevSpacesManagementClientContext;
|
|
1252
|
-
exports.DevSpacesManagementModels = index;
|
|
1253
|
-
exports.DevSpacesManagementMappers = mappers;
|
|
1254
|
-
exports.ContainerHostMappings = ContainerHostMappings;
|
|
1255
|
-
exports.Controllers = Controllers;
|
|
1256
|
-
exports.Operations = Operations;
|
|
1257
|
-
|
|
1258
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1259
|
-
|
|
1260
|
-
})));
|
|
1261
|
-
//# sourceMappingURL=arm-devspaces.js.map
|