@azure/arm-devspaces 1.2.1 → 2.0.1-alpha.20220201.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 +21 -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 +69 -24
- 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
|
@@ -1,548 +1,640 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Controllers } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { DevSpacesManagementClient } from "../devSpacesManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Controller,
|
|
19
|
+
ControllersListByResourceGroupNextOptionalParams,
|
|
20
|
+
ControllersListByResourceGroupOptionalParams,
|
|
21
|
+
ControllersListNextOptionalParams,
|
|
22
|
+
ControllersListOptionalParams,
|
|
23
|
+
ControllersGetOptionalParams,
|
|
24
|
+
ControllersGetResponse,
|
|
25
|
+
ControllersCreateOptionalParams,
|
|
26
|
+
ControllersCreateResponse,
|
|
27
|
+
ControllersDeleteOptionalParams,
|
|
28
|
+
ControllerUpdateParameters,
|
|
29
|
+
ControllersUpdateOptionalParams,
|
|
30
|
+
ControllersUpdateResponse,
|
|
31
|
+
ControllersListByResourceGroupResponse,
|
|
32
|
+
ControllersListResponse,
|
|
33
|
+
ListConnectionDetailsParameters,
|
|
34
|
+
ControllersListConnectionDetailsOptionalParams,
|
|
35
|
+
ControllersListConnectionDetailsResponse,
|
|
36
|
+
ControllersListByResourceGroupNextResponse,
|
|
37
|
+
ControllersListNextResponse
|
|
38
|
+
} from "../models";
|
|
17
39
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
40
|
+
/// <reference lib="esnext.asynciterable" />
|
|
41
|
+
/** Class containing Controllers operations. */
|
|
42
|
+
export class ControllersImpl implements Controllers {
|
|
43
|
+
private readonly client: DevSpacesManagementClient;
|
|
21
44
|
|
|
22
45
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
46
|
+
* Initialize a new instance of the class Controllers class.
|
|
47
|
+
* @param client Reference to the service client
|
|
25
48
|
*/
|
|
26
|
-
constructor(client:
|
|
49
|
+
constructor(client: DevSpacesManagementClient) {
|
|
27
50
|
this.client = client;
|
|
28
51
|
}
|
|
29
52
|
|
|
30
53
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
54
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
|
|
55
|
+
* subscription.
|
|
33
56
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
34
|
-
* @param
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.ControllersGetResponse>
|
|
57
|
+
* @param options The options parameters.
|
|
37
58
|
*/
|
|
38
|
-
|
|
59
|
+
public listByResourceGroup(
|
|
60
|
+
resourceGroupName: string,
|
|
61
|
+
options?: ControllersListByResourceGroupOptionalParams
|
|
62
|
+
): PagedAsyncIterableIterator<Controller> {
|
|
63
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: () => {
|
|
72
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private async *listByResourceGroupPagingPage(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
options?: ControllersListByResourceGroupOptionalParams
|
|
80
|
+
): AsyncIterableIterator<Controller[]> {
|
|
81
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
82
|
+
yield result.value || [];
|
|
83
|
+
let continuationToken = result.nextLink;
|
|
84
|
+
while (continuationToken) {
|
|
85
|
+
result = await this._listByResourceGroupNext(
|
|
86
|
+
resourceGroupName,
|
|
87
|
+
continuationToken,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
yield result.value || [];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private async *listByResourceGroupPagingAll(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
options?: ControllersListByResourceGroupOptionalParams
|
|
98
|
+
): AsyncIterableIterator<Controller> {
|
|
99
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
100
|
+
resourceGroupName,
|
|
101
|
+
options
|
|
102
|
+
)) {
|
|
103
|
+
yield* page;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
39
107
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @param
|
|
42
|
-
* @param callback The callback
|
|
108
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
|
|
109
|
+
* @param options The options parameters.
|
|
43
110
|
*/
|
|
44
|
-
|
|
111
|
+
public list(
|
|
112
|
+
options?: ControllersListOptionalParams
|
|
113
|
+
): PagedAsyncIterableIterator<Controller> {
|
|
114
|
+
const iter = this.listPagingAll(options);
|
|
115
|
+
return {
|
|
116
|
+
next() {
|
|
117
|
+
return iter.next();
|
|
118
|
+
},
|
|
119
|
+
[Symbol.asyncIterator]() {
|
|
120
|
+
return this;
|
|
121
|
+
},
|
|
122
|
+
byPage: () => {
|
|
123
|
+
return this.listPagingPage(options);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
private async *listPagingPage(
|
|
129
|
+
options?: ControllersListOptionalParams
|
|
130
|
+
): AsyncIterableIterator<Controller[]> {
|
|
131
|
+
let result = await this._list(options);
|
|
132
|
+
yield result.value || [];
|
|
133
|
+
let continuationToken = result.nextLink;
|
|
134
|
+
while (continuationToken) {
|
|
135
|
+
result = await this._listNext(continuationToken, options);
|
|
136
|
+
continuationToken = result.nextLink;
|
|
137
|
+
yield result.value || [];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
private async *listPagingAll(
|
|
142
|
+
options?: ControllersListOptionalParams
|
|
143
|
+
): AsyncIterableIterator<Controller> {
|
|
144
|
+
for await (const page of this.listPagingPage(options)) {
|
|
145
|
+
yield* page;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
45
149
|
/**
|
|
150
|
+
* Gets the properties for an Azure Dev Spaces Controller.
|
|
46
151
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
47
152
|
* @param name Name of the resource.
|
|
48
|
-
* @param options The
|
|
49
|
-
* @param callback The callback
|
|
153
|
+
* @param options The options parameters.
|
|
50
154
|
*/
|
|
51
|
-
get(
|
|
52
|
-
|
|
155
|
+
get(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
name: string,
|
|
158
|
+
options?: ControllersGetOptionalParams
|
|
159
|
+
): Promise<ControllersGetResponse> {
|
|
53
160
|
return this.client.sendOperationRequest(
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
options
|
|
58
|
-
},
|
|
59
|
-
getOperationSpec,
|
|
60
|
-
callback) as Promise<Models.ControllersGetResponse>;
|
|
161
|
+
{ resourceGroupName, name, options },
|
|
162
|
+
getOperationSpec
|
|
163
|
+
);
|
|
61
164
|
}
|
|
62
165
|
|
|
63
166
|
/**
|
|
64
167
|
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
65
|
-
* @summary Creates an Azure Dev Spaces Controller.
|
|
66
168
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
67
169
|
* @param name Name of the resource.
|
|
68
170
|
* @param controller Controller create parameters.
|
|
69
|
-
* @param
|
|
70
|
-
* @returns Promise<Models.ControllersCreateResponse>
|
|
171
|
+
* @param options The options parameters.
|
|
71
172
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
173
|
+
async beginCreate(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
name: string,
|
|
176
|
+
controller: Controller,
|
|
177
|
+
options?: ControllersCreateOptionalParams
|
|
178
|
+
): Promise<
|
|
179
|
+
PollerLike<
|
|
180
|
+
PollOperationState<ControllersCreateResponse>,
|
|
181
|
+
ControllersCreateResponse
|
|
182
|
+
>
|
|
183
|
+
> {
|
|
184
|
+
const directSendOperation = async (
|
|
185
|
+
args: coreClient.OperationArguments,
|
|
186
|
+
spec: coreClient.OperationSpec
|
|
187
|
+
): Promise<ControllersCreateResponse> => {
|
|
188
|
+
return this.client.sendOperationRequest(args, spec);
|
|
189
|
+
};
|
|
190
|
+
const sendOperation = async (
|
|
191
|
+
args: coreClient.OperationArguments,
|
|
192
|
+
spec: coreClient.OperationSpec
|
|
193
|
+
) => {
|
|
194
|
+
let currentRawResponse:
|
|
195
|
+
| coreClient.FullOperationResponse
|
|
196
|
+
| undefined = undefined;
|
|
197
|
+
const providedCallback = args.options?.onResponse;
|
|
198
|
+
const callback: coreClient.RawResponseCallback = (
|
|
199
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
200
|
+
flatResponse: unknown
|
|
201
|
+
) => {
|
|
202
|
+
currentRawResponse = rawResponse;
|
|
203
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
204
|
+
};
|
|
205
|
+
const updatedArgs = {
|
|
206
|
+
...args,
|
|
207
|
+
options: {
|
|
208
|
+
...args.options,
|
|
209
|
+
onResponse: callback
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
213
|
+
return {
|
|
214
|
+
flatResponse,
|
|
215
|
+
rawResponse: {
|
|
216
|
+
statusCode: currentRawResponse!.status,
|
|
217
|
+
body: currentRawResponse!.parsedBody,
|
|
218
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const lro = new LroImpl(
|
|
224
|
+
sendOperation,
|
|
225
|
+
{ resourceGroupName, name, controller, options },
|
|
226
|
+
createOperationSpec
|
|
227
|
+
);
|
|
228
|
+
return new LroEngine(lro, {
|
|
229
|
+
resumeFrom: options?.resumeFrom,
|
|
230
|
+
intervalInMs: options?.updateIntervalInMs
|
|
231
|
+
});
|
|
75
232
|
}
|
|
76
233
|
|
|
77
234
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @summary Deletes an Azure Dev Spaces Controller.
|
|
235
|
+
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
80
236
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
81
237
|
* @param name Name of the resource.
|
|
82
|
-
* @param
|
|
83
|
-
* @
|
|
238
|
+
* @param controller Controller create parameters.
|
|
239
|
+
* @param options The options parameters.
|
|
84
240
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
241
|
+
async beginCreateAndWait(
|
|
242
|
+
resourceGroupName: string,
|
|
243
|
+
name: string,
|
|
244
|
+
controller: Controller,
|
|
245
|
+
options?: ControllersCreateOptionalParams
|
|
246
|
+
): Promise<ControllersCreateResponse> {
|
|
247
|
+
const poller = await this.beginCreate(
|
|
248
|
+
resourceGroupName,
|
|
249
|
+
name,
|
|
250
|
+
controller,
|
|
251
|
+
options
|
|
252
|
+
);
|
|
253
|
+
return poller.pollUntilDone();
|
|
88
254
|
}
|
|
89
255
|
|
|
90
256
|
/**
|
|
91
|
-
*
|
|
92
|
-
* parameters.
|
|
93
|
-
* @summary Updates an Azure Dev Spaces Controller.
|
|
257
|
+
* Deletes an existing Azure Dev Spaces Controller.
|
|
94
258
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
95
259
|
* @param name Name of the resource.
|
|
96
|
-
* @param
|
|
97
|
-
* @param [options] The optional parameters
|
|
98
|
-
* @returns Promise<Models.ControllersUpdateResponse>
|
|
260
|
+
* @param options The options parameters.
|
|
99
261
|
*/
|
|
100
|
-
|
|
262
|
+
async beginDelete(
|
|
263
|
+
resourceGroupName: string,
|
|
264
|
+
name: string,
|
|
265
|
+
options?: ControllersDeleteOptionalParams
|
|
266
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
267
|
+
const directSendOperation = async (
|
|
268
|
+
args: coreClient.OperationArguments,
|
|
269
|
+
spec: coreClient.OperationSpec
|
|
270
|
+
): Promise<void> => {
|
|
271
|
+
return this.client.sendOperationRequest(args, spec);
|
|
272
|
+
};
|
|
273
|
+
const sendOperation = async (
|
|
274
|
+
args: coreClient.OperationArguments,
|
|
275
|
+
spec: coreClient.OperationSpec
|
|
276
|
+
) => {
|
|
277
|
+
let currentRawResponse:
|
|
278
|
+
| coreClient.FullOperationResponse
|
|
279
|
+
| undefined = undefined;
|
|
280
|
+
const providedCallback = args.options?.onResponse;
|
|
281
|
+
const callback: coreClient.RawResponseCallback = (
|
|
282
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
283
|
+
flatResponse: unknown
|
|
284
|
+
) => {
|
|
285
|
+
currentRawResponse = rawResponse;
|
|
286
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
287
|
+
};
|
|
288
|
+
const updatedArgs = {
|
|
289
|
+
...args,
|
|
290
|
+
options: {
|
|
291
|
+
...args.options,
|
|
292
|
+
onResponse: callback
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
296
|
+
return {
|
|
297
|
+
flatResponse,
|
|
298
|
+
rawResponse: {
|
|
299
|
+
statusCode: currentRawResponse!.status,
|
|
300
|
+
body: currentRawResponse!.parsedBody,
|
|
301
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
const lro = new LroImpl(
|
|
307
|
+
sendOperation,
|
|
308
|
+
{ resourceGroupName, name, options },
|
|
309
|
+
deleteOperationSpec
|
|
310
|
+
);
|
|
311
|
+
return new LroEngine(lro, {
|
|
312
|
+
resumeFrom: options?.resumeFrom,
|
|
313
|
+
intervalInMs: options?.updateIntervalInMs
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
|
|
101
317
|
/**
|
|
318
|
+
* Deletes an existing Azure Dev Spaces Controller.
|
|
102
319
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
103
320
|
* @param name Name of the resource.
|
|
104
|
-
* @param
|
|
105
|
-
* @param callback The callback
|
|
321
|
+
* @param options The options parameters.
|
|
106
322
|
*/
|
|
107
|
-
|
|
323
|
+
async beginDeleteAndWait(
|
|
324
|
+
resourceGroupName: string,
|
|
325
|
+
name: string,
|
|
326
|
+
options?: ControllersDeleteOptionalParams
|
|
327
|
+
): Promise<void> {
|
|
328
|
+
const poller = await this.beginDelete(resourceGroupName, name, options);
|
|
329
|
+
return poller.pollUntilDone();
|
|
330
|
+
}
|
|
331
|
+
|
|
108
332
|
/**
|
|
333
|
+
* Updates the properties of an existing Azure Dev Spaces Controller with the specified update
|
|
334
|
+
* parameters.
|
|
109
335
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
110
336
|
* @param name Name of the resource.
|
|
111
337
|
* @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller.
|
|
112
|
-
* @param options The
|
|
113
|
-
* @param callback The callback
|
|
338
|
+
* @param options The options parameters.
|
|
114
339
|
*/
|
|
115
|
-
update(
|
|
116
|
-
|
|
340
|
+
update(
|
|
341
|
+
resourceGroupName: string,
|
|
342
|
+
name: string,
|
|
343
|
+
controllerUpdateParameters: ControllerUpdateParameters,
|
|
344
|
+
options?: ControllersUpdateOptionalParams
|
|
345
|
+
): Promise<ControllersUpdateResponse> {
|
|
117
346
|
return this.client.sendOperationRequest(
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
controllerUpdateParameters,
|
|
122
|
-
options
|
|
123
|
-
},
|
|
124
|
-
updateOperationSpec,
|
|
125
|
-
callback) as Promise<Models.ControllersUpdateResponse>;
|
|
347
|
+
{ resourceGroupName, name, controllerUpdateParameters, options },
|
|
348
|
+
updateOperationSpec
|
|
349
|
+
);
|
|
126
350
|
}
|
|
127
351
|
|
|
128
352
|
/**
|
|
129
|
-
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group
|
|
130
|
-
*
|
|
131
|
-
* @summary Lists the Azure Dev Spaces Controllers in a resource group.
|
|
353
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
|
|
354
|
+
* subscription.
|
|
132
355
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
133
|
-
* @param
|
|
134
|
-
* @returns Promise<Models.ControllersListByResourceGroupResponse>
|
|
356
|
+
* @param options The options parameters.
|
|
135
357
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
*/
|
|
141
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
142
|
-
/**
|
|
143
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
144
|
-
* @param options The optional parameters
|
|
145
|
-
* @param callback The callback
|
|
146
|
-
*/
|
|
147
|
-
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
148
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ControllerList>, callback?: msRest.ServiceCallback<Models.ControllerList>): Promise<Models.ControllersListByResourceGroupResponse> {
|
|
358
|
+
private _listByResourceGroup(
|
|
359
|
+
resourceGroupName: string,
|
|
360
|
+
options?: ControllersListByResourceGroupOptionalParams
|
|
361
|
+
): Promise<ControllersListByResourceGroupResponse> {
|
|
149
362
|
return this.client.sendOperationRequest(
|
|
150
|
-
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
listByResourceGroupOperationSpec,
|
|
155
|
-
callback) as Promise<Models.ControllersListByResourceGroupResponse>;
|
|
363
|
+
{ resourceGroupName, options },
|
|
364
|
+
listByResourceGroupOperationSpec
|
|
365
|
+
);
|
|
156
366
|
}
|
|
157
367
|
|
|
158
368
|
/**
|
|
159
369
|
* Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
|
|
160
|
-
* @
|
|
161
|
-
* @param [options] The optional parameters
|
|
162
|
-
* @returns Promise<Models.ControllersListResponse>
|
|
370
|
+
* @param options The options parameters.
|
|
163
371
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
list(callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
169
|
-
/**
|
|
170
|
-
* @param options The optional parameters
|
|
171
|
-
* @param callback The callback
|
|
172
|
-
*/
|
|
173
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
174
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ControllerList>, callback?: msRest.ServiceCallback<Models.ControllerList>): Promise<Models.ControllersListResponse> {
|
|
175
|
-
return this.client.sendOperationRequest(
|
|
176
|
-
{
|
|
177
|
-
options
|
|
178
|
-
},
|
|
179
|
-
listOperationSpec,
|
|
180
|
-
callback) as Promise<Models.ControllersListResponse>;
|
|
372
|
+
private _list(
|
|
373
|
+
options?: ControllersListOptionalParams
|
|
374
|
+
): Promise<ControllersListResponse> {
|
|
375
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
181
376
|
}
|
|
182
377
|
|
|
183
378
|
/**
|
|
184
|
-
* Lists connection details for the underlying container resources of an Azure Dev Spaces
|
|
185
|
-
* Controller.
|
|
186
|
-
* @summary Lists connection details for an Azure Dev Spaces Controller.
|
|
187
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
188
|
-
* @param name Name of the resource.
|
|
189
|
-
* @param [options] The optional parameters
|
|
190
|
-
* @returns Promise<Models.ControllersListConnectionDetailsResponse>
|
|
191
|
-
*/
|
|
192
|
-
listConnectionDetails(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise<Models.ControllersListConnectionDetailsResponse>;
|
|
193
|
-
/**
|
|
194
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
195
|
-
* @param name Name of the resource.
|
|
196
|
-
* @param callback The callback
|
|
197
|
-
*/
|
|
198
|
-
listConnectionDetails(resourceGroupName: string, name: string, callback: msRest.ServiceCallback<Models.ControllerConnectionDetailsList>): void;
|
|
199
|
-
/**
|
|
379
|
+
* Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.
|
|
200
380
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
201
381
|
* @param name Name of the resource.
|
|
202
|
-
* @param
|
|
203
|
-
*
|
|
382
|
+
* @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev Spaces
|
|
383
|
+
* Controller.
|
|
384
|
+
* @param options The options parameters.
|
|
204
385
|
*/
|
|
205
|
-
listConnectionDetails(
|
|
206
|
-
|
|
386
|
+
listConnectionDetails(
|
|
387
|
+
resourceGroupName: string,
|
|
388
|
+
name: string,
|
|
389
|
+
listConnectionDetailsParameters: ListConnectionDetailsParameters,
|
|
390
|
+
options?: ControllersListConnectionDetailsOptionalParams
|
|
391
|
+
): Promise<ControllersListConnectionDetailsResponse> {
|
|
207
392
|
return this.client.sendOperationRequest(
|
|
208
|
-
{
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
options
|
|
212
|
-
},
|
|
213
|
-
listConnectionDetailsOperationSpec,
|
|
214
|
-
callback) as Promise<Models.ControllersListConnectionDetailsResponse>;
|
|
393
|
+
{ resourceGroupName, name, listConnectionDetailsParameters, options },
|
|
394
|
+
listConnectionDetailsOperationSpec
|
|
395
|
+
);
|
|
215
396
|
}
|
|
216
397
|
|
|
217
398
|
/**
|
|
218
|
-
*
|
|
219
|
-
* @summary Creates an Azure Dev Spaces Controller.
|
|
399
|
+
* ListByResourceGroupNext
|
|
220
400
|
* @param resourceGroupName Resource group to which the resource belongs.
|
|
221
|
-
* @param
|
|
222
|
-
* @param
|
|
223
|
-
* @param [options] The optional parameters
|
|
224
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
401
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
402
|
+
* @param options The options parameters.
|
|
225
403
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
controller,
|
|
232
|
-
options
|
|
233
|
-
},
|
|
234
|
-
beginCreateOperationSpec,
|
|
235
|
-
options);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Deletes an existing Azure Dev Spaces Controller.
|
|
240
|
-
* @summary Deletes an Azure Dev Spaces Controller.
|
|
241
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
242
|
-
* @param name Name of the resource.
|
|
243
|
-
* @param [options] The optional parameters
|
|
244
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
245
|
-
*/
|
|
246
|
-
beginDeleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
247
|
-
return this.client.sendLRORequest(
|
|
248
|
-
{
|
|
249
|
-
resourceGroupName,
|
|
250
|
-
name,
|
|
251
|
-
options
|
|
252
|
-
},
|
|
253
|
-
beginDeleteMethodOperationSpec,
|
|
254
|
-
options);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group
|
|
259
|
-
* and subscription.
|
|
260
|
-
* @summary Lists the Azure Dev Spaces Controllers in a resource group.
|
|
261
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
262
|
-
* @param [options] The optional parameters
|
|
263
|
-
* @returns Promise<Models.ControllersListByResourceGroupNextResponse>
|
|
264
|
-
*/
|
|
265
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ControllersListByResourceGroupNextResponse>;
|
|
266
|
-
/**
|
|
267
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
268
|
-
* @param callback The callback
|
|
269
|
-
*/
|
|
270
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
271
|
-
/**
|
|
272
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
273
|
-
* @param options The optional parameters
|
|
274
|
-
* @param callback The callback
|
|
275
|
-
*/
|
|
276
|
-
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
277
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ControllerList>, callback?: msRest.ServiceCallback<Models.ControllerList>): Promise<Models.ControllersListByResourceGroupNextResponse> {
|
|
404
|
+
private _listByResourceGroupNext(
|
|
405
|
+
resourceGroupName: string,
|
|
406
|
+
nextLink: string,
|
|
407
|
+
options?: ControllersListByResourceGroupNextOptionalParams
|
|
408
|
+
): Promise<ControllersListByResourceGroupNextResponse> {
|
|
278
409
|
return this.client.sendOperationRequest(
|
|
279
|
-
{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
-
listByResourceGroupNextOperationSpec,
|
|
284
|
-
callback) as Promise<Models.ControllersListByResourceGroupNextResponse>;
|
|
410
|
+
{ resourceGroupName, nextLink, options },
|
|
411
|
+
listByResourceGroupNextOperationSpec
|
|
412
|
+
);
|
|
285
413
|
}
|
|
286
414
|
|
|
287
415
|
/**
|
|
288
|
-
*
|
|
289
|
-
* @
|
|
290
|
-
* @param
|
|
291
|
-
* @param [options] The optional parameters
|
|
292
|
-
* @returns Promise<Models.ControllersListNextResponse>
|
|
416
|
+
* ListNext
|
|
417
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
418
|
+
* @param options The options parameters.
|
|
293
419
|
*/
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
*/
|
|
299
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
300
|
-
/**
|
|
301
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
302
|
-
* @param options The optional parameters
|
|
303
|
-
* @param callback The callback
|
|
304
|
-
*/
|
|
305
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ControllerList>): void;
|
|
306
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ControllerList>, callback?: msRest.ServiceCallback<Models.ControllerList>): Promise<Models.ControllersListNextResponse> {
|
|
420
|
+
private _listNext(
|
|
421
|
+
nextLink: string,
|
|
422
|
+
options?: ControllersListNextOptionalParams
|
|
423
|
+
): Promise<ControllersListNextResponse> {
|
|
307
424
|
return this.client.sendOperationRequest(
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
listNextOperationSpec,
|
|
313
|
-
callback) as Promise<Models.ControllersListNextResponse>;
|
|
425
|
+
{ nextLink, options },
|
|
426
|
+
listNextOperationSpec
|
|
427
|
+
);
|
|
314
428
|
}
|
|
315
429
|
}
|
|
316
|
-
|
|
317
430
|
// Operation Specifications
|
|
318
|
-
const serializer =
|
|
319
|
-
|
|
431
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
432
|
+
|
|
433
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
434
|
+
path:
|
|
435
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
320
436
|
httpMethod: "GET",
|
|
321
|
-
|
|
437
|
+
responses: {
|
|
438
|
+
200: {
|
|
439
|
+
bodyMapper: Mappers.Controller
|
|
440
|
+
},
|
|
441
|
+
default: {
|
|
442
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
queryParameters: [Parameters.apiVersion],
|
|
322
446
|
urlParameters: [
|
|
447
|
+
Parameters.$host,
|
|
323
448
|
Parameters.subscriptionId,
|
|
324
449
|
Parameters.resourceGroupName,
|
|
325
450
|
Parameters.name
|
|
326
451
|
],
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
452
|
+
headerParameters: [Parameters.accept],
|
|
453
|
+
serializer
|
|
454
|
+
};
|
|
455
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
456
|
+
path:
|
|
457
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
458
|
+
httpMethod: "PUT",
|
|
333
459
|
responses: {
|
|
334
460
|
200: {
|
|
335
461
|
bodyMapper: Mappers.Controller
|
|
336
462
|
},
|
|
463
|
+
201: {
|
|
464
|
+
bodyMapper: Mappers.Controller
|
|
465
|
+
},
|
|
466
|
+
202: {
|
|
467
|
+
bodyMapper: Mappers.Controller
|
|
468
|
+
},
|
|
469
|
+
204: {
|
|
470
|
+
bodyMapper: Mappers.Controller
|
|
471
|
+
},
|
|
337
472
|
default: {
|
|
338
|
-
bodyMapper: Mappers.
|
|
473
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
339
474
|
}
|
|
340
475
|
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
345
|
-
httpMethod: "PATCH",
|
|
346
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
476
|
+
requestBody: Parameters.controller,
|
|
477
|
+
queryParameters: [Parameters.apiVersion],
|
|
347
478
|
urlParameters: [
|
|
479
|
+
Parameters.$host,
|
|
348
480
|
Parameters.subscriptionId,
|
|
349
481
|
Parameters.resourceGroupName,
|
|
350
482
|
Parameters.name
|
|
351
483
|
],
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
484
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
485
|
+
mediaType: "json",
|
|
486
|
+
serializer
|
|
487
|
+
};
|
|
488
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
489
|
+
path:
|
|
490
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
491
|
+
httpMethod: "DELETE",
|
|
492
|
+
responses: {
|
|
493
|
+
200: {},
|
|
494
|
+
201: {},
|
|
495
|
+
202: {},
|
|
496
|
+
204: {},
|
|
497
|
+
default: {
|
|
498
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
363
499
|
}
|
|
364
500
|
},
|
|
501
|
+
queryParameters: [Parameters.apiVersion],
|
|
502
|
+
urlParameters: [
|
|
503
|
+
Parameters.$host,
|
|
504
|
+
Parameters.subscriptionId,
|
|
505
|
+
Parameters.resourceGroupName,
|
|
506
|
+
Parameters.name
|
|
507
|
+
],
|
|
508
|
+
headerParameters: [Parameters.accept],
|
|
509
|
+
serializer
|
|
510
|
+
};
|
|
511
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
512
|
+
path:
|
|
513
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
514
|
+
httpMethod: "PATCH",
|
|
365
515
|
responses: {
|
|
366
516
|
200: {
|
|
367
517
|
bodyMapper: Mappers.Controller
|
|
368
518
|
},
|
|
519
|
+
201: {
|
|
520
|
+
bodyMapper: Mappers.Controller
|
|
521
|
+
},
|
|
369
522
|
default: {
|
|
370
|
-
bodyMapper: Mappers.
|
|
523
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
371
524
|
}
|
|
372
525
|
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
377
|
-
httpMethod: "GET",
|
|
378
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers",
|
|
526
|
+
requestBody: Parameters.controllerUpdateParameters,
|
|
527
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
528
|
urlParameters: [
|
|
529
|
+
Parameters.$host,
|
|
380
530
|
Parameters.subscriptionId,
|
|
381
|
-
Parameters.resourceGroupName
|
|
382
|
-
|
|
383
|
-
queryParameters: [
|
|
384
|
-
Parameters.apiVersion
|
|
385
|
-
],
|
|
386
|
-
headerParameters: [
|
|
387
|
-
Parameters.acceptLanguage
|
|
531
|
+
Parameters.resourceGroupName,
|
|
532
|
+
Parameters.name
|
|
388
533
|
],
|
|
534
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
535
|
+
mediaType: "json",
|
|
536
|
+
serializer
|
|
537
|
+
};
|
|
538
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
539
|
+
path:
|
|
540
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers",
|
|
541
|
+
httpMethod: "GET",
|
|
389
542
|
responses: {
|
|
390
543
|
200: {
|
|
391
544
|
bodyMapper: Mappers.ControllerList
|
|
392
545
|
},
|
|
393
546
|
default: {
|
|
394
|
-
bodyMapper: Mappers.
|
|
547
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
395
548
|
}
|
|
396
549
|
},
|
|
550
|
+
queryParameters: [Parameters.apiVersion],
|
|
551
|
+
urlParameters: [
|
|
552
|
+
Parameters.$host,
|
|
553
|
+
Parameters.subscriptionId,
|
|
554
|
+
Parameters.resourceGroupName
|
|
555
|
+
],
|
|
556
|
+
headerParameters: [Parameters.accept],
|
|
397
557
|
serializer
|
|
398
558
|
};
|
|
399
|
-
|
|
400
|
-
|
|
559
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
560
|
+
path:
|
|
561
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers",
|
|
401
562
|
httpMethod: "GET",
|
|
402
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers",
|
|
403
|
-
urlParameters: [
|
|
404
|
-
Parameters.subscriptionId
|
|
405
|
-
],
|
|
406
|
-
queryParameters: [
|
|
407
|
-
Parameters.apiVersion
|
|
408
|
-
],
|
|
409
|
-
headerParameters: [
|
|
410
|
-
Parameters.acceptLanguage
|
|
411
|
-
],
|
|
412
563
|
responses: {
|
|
413
564
|
200: {
|
|
414
565
|
bodyMapper: Mappers.ControllerList
|
|
415
566
|
},
|
|
416
567
|
default: {
|
|
417
|
-
bodyMapper: Mappers.
|
|
568
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
418
569
|
}
|
|
419
570
|
},
|
|
571
|
+
queryParameters: [Parameters.apiVersion],
|
|
572
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
573
|
+
headerParameters: [Parameters.accept],
|
|
420
574
|
serializer
|
|
421
575
|
};
|
|
422
|
-
|
|
423
|
-
|
|
576
|
+
const listConnectionDetailsOperationSpec: coreClient.OperationSpec = {
|
|
577
|
+
path:
|
|
578
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails",
|
|
424
579
|
httpMethod: "POST",
|
|
425
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails",
|
|
426
|
-
urlParameters: [
|
|
427
|
-
Parameters.subscriptionId,
|
|
428
|
-
Parameters.resourceGroupName,
|
|
429
|
-
Parameters.name
|
|
430
|
-
],
|
|
431
|
-
queryParameters: [
|
|
432
|
-
Parameters.apiVersion
|
|
433
|
-
],
|
|
434
|
-
headerParameters: [
|
|
435
|
-
Parameters.acceptLanguage
|
|
436
|
-
],
|
|
437
580
|
responses: {
|
|
438
581
|
200: {
|
|
439
582
|
bodyMapper: Mappers.ControllerConnectionDetailsList
|
|
440
583
|
},
|
|
441
584
|
default: {
|
|
442
|
-
bodyMapper: Mappers.
|
|
585
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
443
586
|
}
|
|
444
587
|
},
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
449
|
-
httpMethod: "PUT",
|
|
450
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
588
|
+
requestBody: Parameters.listConnectionDetailsParameters,
|
|
589
|
+
queryParameters: [Parameters.apiVersion],
|
|
451
590
|
urlParameters: [
|
|
591
|
+
Parameters.$host,
|
|
452
592
|
Parameters.subscriptionId,
|
|
453
593
|
Parameters.resourceGroupName,
|
|
454
594
|
Parameters.name
|
|
455
595
|
],
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
parameterPath: "controller",
|
|
464
|
-
mapper: {
|
|
465
|
-
...Mappers.Controller,
|
|
466
|
-
required: true
|
|
467
|
-
}
|
|
468
|
-
},
|
|
596
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
597
|
+
mediaType: "json",
|
|
598
|
+
serializer
|
|
599
|
+
};
|
|
600
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
601
|
+
path: "{nextLink}",
|
|
602
|
+
httpMethod: "GET",
|
|
469
603
|
responses: {
|
|
470
604
|
200: {
|
|
471
|
-
bodyMapper: Mappers.
|
|
472
|
-
},
|
|
473
|
-
201: {
|
|
474
|
-
bodyMapper: Mappers.Controller
|
|
605
|
+
bodyMapper: Mappers.ControllerList
|
|
475
606
|
},
|
|
476
607
|
default: {
|
|
477
|
-
bodyMapper: Mappers.
|
|
608
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
478
609
|
}
|
|
479
610
|
},
|
|
480
|
-
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
484
|
-
httpMethod: "DELETE",
|
|
485
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
611
|
+
queryParameters: [Parameters.apiVersion],
|
|
486
612
|
urlParameters: [
|
|
613
|
+
Parameters.$host,
|
|
487
614
|
Parameters.subscriptionId,
|
|
488
615
|
Parameters.resourceGroupName,
|
|
489
|
-
Parameters.
|
|
616
|
+
Parameters.nextLink
|
|
490
617
|
],
|
|
491
|
-
|
|
492
|
-
Parameters.apiVersion
|
|
493
|
-
],
|
|
494
|
-
headerParameters: [
|
|
495
|
-
Parameters.acceptLanguage
|
|
496
|
-
],
|
|
497
|
-
responses: {
|
|
498
|
-
200: {},
|
|
499
|
-
202: {},
|
|
500
|
-
204: {},
|
|
501
|
-
default: {
|
|
502
|
-
bodyMapper: Mappers.ErrorResponse
|
|
503
|
-
}
|
|
504
|
-
},
|
|
618
|
+
headerParameters: [Parameters.accept],
|
|
505
619
|
serializer
|
|
506
620
|
};
|
|
507
|
-
|
|
508
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
509
|
-
httpMethod: "GET",
|
|
510
|
-
baseUrl: "https://management.azure.com",
|
|
621
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
511
622
|
path: "{nextLink}",
|
|
512
|
-
|
|
513
|
-
Parameters.nextPageLink
|
|
514
|
-
],
|
|
515
|
-
headerParameters: [
|
|
516
|
-
Parameters.acceptLanguage
|
|
517
|
-
],
|
|
623
|
+
httpMethod: "GET",
|
|
518
624
|
responses: {
|
|
519
625
|
200: {
|
|
520
626
|
bodyMapper: Mappers.ControllerList
|
|
521
627
|
},
|
|
522
628
|
default: {
|
|
523
|
-
bodyMapper: Mappers.
|
|
629
|
+
bodyMapper: Mappers.DevSpacesErrorResponse
|
|
524
630
|
}
|
|
525
631
|
},
|
|
526
|
-
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
530
|
-
httpMethod: "GET",
|
|
531
|
-
baseUrl: "https://management.azure.com",
|
|
532
|
-
path: "{nextLink}",
|
|
632
|
+
queryParameters: [Parameters.apiVersion],
|
|
533
633
|
urlParameters: [
|
|
534
|
-
Parameters
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
Parameters.acceptLanguage
|
|
634
|
+
Parameters.$host,
|
|
635
|
+
Parameters.subscriptionId,
|
|
636
|
+
Parameters.nextLink
|
|
538
637
|
],
|
|
539
|
-
|
|
540
|
-
200: {
|
|
541
|
-
bodyMapper: Mappers.ControllerList
|
|
542
|
-
},
|
|
543
|
-
default: {
|
|
544
|
-
bodyMapper: Mappers.ErrorResponse
|
|
545
|
-
}
|
|
546
|
-
},
|
|
638
|
+
headerParameters: [Parameters.accept],
|
|
547
639
|
serializer
|
|
548
640
|
};
|