@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
package/src/operations/index.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
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
9
|
export * from "./containerHostMappings";
|
|
12
|
-
export * from "./controllers";
|
|
13
10
|
export * from "./operations";
|
|
11
|
+
export * from "./controllers";
|
|
@@ -1,127 +1,133 @@
|
|
|
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
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { DevSpacesManagementClient } from "../devSpacesManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
ResourceProviderOperationDefinition,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: DevSpacesManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: DevSpacesManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
/**
|
|
30
37
|
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
31
38
|
* description.
|
|
32
|
-
* @
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
39
|
+
* @param options The options parameters.
|
|
35
40
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResourceProviderOperationList>, callback?: msRest.ServiceCallback<Models.ResourceProviderOperationList>): Promise<Models.OperationsListResponse> {
|
|
47
|
-
return this.client.sendOperationRequest(
|
|
48
|
-
{
|
|
49
|
-
options
|
|
41
|
+
public list(
|
|
42
|
+
options?: OperationsListOptionalParams
|
|
43
|
+
): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {
|
|
44
|
+
const iter = this.listPagingAll(options);
|
|
45
|
+
return {
|
|
46
|
+
next() {
|
|
47
|
+
return iter.next();
|
|
48
|
+
},
|
|
49
|
+
[Symbol.asyncIterator]() {
|
|
50
|
+
return this;
|
|
50
51
|
},
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
byPage: () => {
|
|
53
|
+
return this.listPagingPage(options);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
private async *listPagingPage(
|
|
59
|
+
options?: OperationsListOptionalParams
|
|
60
|
+
): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {
|
|
61
|
+
let result = await this._list(options);
|
|
62
|
+
yield result.value || [];
|
|
63
|
+
let continuationToken = result.nextLink;
|
|
64
|
+
while (continuationToken) {
|
|
65
|
+
result = await this._listNext(continuationToken, options);
|
|
66
|
+
continuationToken = result.nextLink;
|
|
67
|
+
yield result.value || [];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async *listPagingAll(
|
|
72
|
+
options?: OperationsListOptionalParams
|
|
73
|
+
): AsyncIterableIterator<ResourceProviderOperationDefinition> {
|
|
74
|
+
for await (const page of this.listPagingPage(options)) {
|
|
75
|
+
yield* page;
|
|
76
|
+
}
|
|
53
77
|
}
|
|
54
78
|
|
|
55
79
|
/**
|
|
56
80
|
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
57
81
|
* description.
|
|
58
|
-
* @
|
|
59
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
60
|
-
* @param [options] The optional parameters
|
|
61
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
62
|
-
*/
|
|
63
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
66
|
-
* @param callback The callback
|
|
82
|
+
* @param options The options parameters.
|
|
67
83
|
*/
|
|
68
|
-
|
|
84
|
+
private _list(
|
|
85
|
+
options?: OperationsListOptionalParams
|
|
86
|
+
): Promise<OperationsListResponse> {
|
|
87
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
88
|
+
}
|
|
89
|
+
|
|
69
90
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
91
|
+
* ListNext
|
|
92
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
93
|
+
* @param options The options parameters.
|
|
73
94
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
95
|
+
private _listNext(
|
|
96
|
+
nextLink: string,
|
|
97
|
+
options?: OperationsListNextOptionalParams
|
|
98
|
+
): Promise<OperationsListNextResponse> {
|
|
76
99
|
return this.client.sendOperationRequest(
|
|
77
|
-
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
listNextOperationSpec,
|
|
82
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
100
|
+
{ nextLink, options },
|
|
101
|
+
listNextOperationSpec
|
|
102
|
+
);
|
|
83
103
|
}
|
|
84
104
|
}
|
|
85
|
-
|
|
86
105
|
// Operation Specifications
|
|
87
|
-
const serializer =
|
|
88
|
-
|
|
106
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
107
|
+
|
|
108
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
109
|
+
path: "/providers/Microsoft.DevSpaces/operations",
|
|
89
110
|
httpMethod: "GET",
|
|
90
|
-
path: "providers/Microsoft.DevSpaces/operations",
|
|
91
|
-
queryParameters: [
|
|
92
|
-
Parameters.apiVersion
|
|
93
|
-
],
|
|
94
|
-
headerParameters: [
|
|
95
|
-
Parameters.acceptLanguage
|
|
96
|
-
],
|
|
97
111
|
responses: {
|
|
98
112
|
200: {
|
|
99
113
|
bodyMapper: Mappers.ResourceProviderOperationList
|
|
100
|
-
},
|
|
101
|
-
default: {
|
|
102
|
-
bodyMapper: Mappers.CloudError
|
|
103
114
|
}
|
|
104
115
|
},
|
|
116
|
+
queryParameters: [Parameters.apiVersion],
|
|
117
|
+
urlParameters: [Parameters.$host],
|
|
118
|
+
headerParameters: [Parameters.accept],
|
|
105
119
|
serializer
|
|
106
120
|
};
|
|
107
|
-
|
|
108
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
109
|
-
httpMethod: "GET",
|
|
110
|
-
baseUrl: "https://management.azure.com",
|
|
121
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
111
122
|
path: "{nextLink}",
|
|
112
|
-
|
|
113
|
-
Parameters.nextPageLink
|
|
114
|
-
],
|
|
115
|
-
headerParameters: [
|
|
116
|
-
Parameters.acceptLanguage
|
|
117
|
-
],
|
|
123
|
+
httpMethod: "GET",
|
|
118
124
|
responses: {
|
|
119
125
|
200: {
|
|
120
126
|
bodyMapper: Mappers.ResourceProviderOperationList
|
|
121
|
-
},
|
|
122
|
-
default: {
|
|
123
|
-
bodyMapper: Mappers.CloudError
|
|
124
127
|
}
|
|
125
128
|
},
|
|
129
|
+
queryParameters: [Parameters.apiVersion],
|
|
130
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
131
|
+
headerParameters: [Parameters.accept],
|
|
126
132
|
serializer
|
|
127
133
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
ContainerHostMapping,
|
|
11
|
+
ContainerHostMappingsGetContainerHostMappingOptionalParams,
|
|
12
|
+
ContainerHostMappingsGetContainerHostMappingResponse
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/** Interface representing a ContainerHostMappings. */
|
|
16
|
+
export interface ContainerHostMappings {
|
|
17
|
+
/**
|
|
18
|
+
* Returns container host mapping object for a container host resource ID if an associated controller
|
|
19
|
+
* exists.
|
|
20
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
21
|
+
* @param location Location of the container host.
|
|
22
|
+
* @param containerHostMapping Container host mapping object specifying the Container host resource ID
|
|
23
|
+
* and its associated Controller resource.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
getContainerHostMapping(
|
|
27
|
+
resourceGroupName: string,
|
|
28
|
+
location: string,
|
|
29
|
+
containerHostMapping: ContainerHostMapping,
|
|
30
|
+
options?: ContainerHostMappingsGetContainerHostMappingOptionalParams
|
|
31
|
+
): Promise<ContainerHostMappingsGetContainerHostMappingResponse>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
Controller,
|
|
13
|
+
ControllersListByResourceGroupOptionalParams,
|
|
14
|
+
ControllersListOptionalParams,
|
|
15
|
+
ControllersGetOptionalParams,
|
|
16
|
+
ControllersGetResponse,
|
|
17
|
+
ControllersCreateOptionalParams,
|
|
18
|
+
ControllersCreateResponse,
|
|
19
|
+
ControllersDeleteOptionalParams,
|
|
20
|
+
ControllerUpdateParameters,
|
|
21
|
+
ControllersUpdateOptionalParams,
|
|
22
|
+
ControllersUpdateResponse,
|
|
23
|
+
ListConnectionDetailsParameters,
|
|
24
|
+
ControllersListConnectionDetailsOptionalParams,
|
|
25
|
+
ControllersListConnectionDetailsResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Interface representing a Controllers. */
|
|
30
|
+
export interface Controllers {
|
|
31
|
+
/**
|
|
32
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
|
|
33
|
+
* subscription.
|
|
34
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
listByResourceGroup(
|
|
38
|
+
resourceGroupName: string,
|
|
39
|
+
options?: ControllersListByResourceGroupOptionalParams
|
|
40
|
+
): PagedAsyncIterableIterator<Controller>;
|
|
41
|
+
/**
|
|
42
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
list(
|
|
46
|
+
options?: ControllersListOptionalParams
|
|
47
|
+
): PagedAsyncIterableIterator<Controller>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the properties for an Azure Dev Spaces Controller.
|
|
50
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
51
|
+
* @param name Name of the resource.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
get(
|
|
55
|
+
resourceGroupName: string,
|
|
56
|
+
name: string,
|
|
57
|
+
options?: ControllersGetOptionalParams
|
|
58
|
+
): Promise<ControllersGetResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
61
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
62
|
+
* @param name Name of the resource.
|
|
63
|
+
* @param controller Controller create parameters.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
beginCreate(
|
|
67
|
+
resourceGroupName: string,
|
|
68
|
+
name: string,
|
|
69
|
+
controller: Controller,
|
|
70
|
+
options?: ControllersCreateOptionalParams
|
|
71
|
+
): Promise<
|
|
72
|
+
PollerLike<
|
|
73
|
+
PollOperationState<ControllersCreateResponse>,
|
|
74
|
+
ControllersCreateResponse
|
|
75
|
+
>
|
|
76
|
+
>;
|
|
77
|
+
/**
|
|
78
|
+
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
79
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
80
|
+
* @param name Name of the resource.
|
|
81
|
+
* @param controller Controller create parameters.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
beginCreateAndWait(
|
|
85
|
+
resourceGroupName: string,
|
|
86
|
+
name: string,
|
|
87
|
+
controller: Controller,
|
|
88
|
+
options?: ControllersCreateOptionalParams
|
|
89
|
+
): Promise<ControllersCreateResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* Deletes an existing Azure Dev Spaces Controller.
|
|
92
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
93
|
+
* @param name Name of the resource.
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
beginDelete(
|
|
97
|
+
resourceGroupName: string,
|
|
98
|
+
name: string,
|
|
99
|
+
options?: ControllersDeleteOptionalParams
|
|
100
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
101
|
+
/**
|
|
102
|
+
* Deletes an existing Azure Dev Spaces Controller.
|
|
103
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
104
|
+
* @param name Name of the resource.
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
beginDeleteAndWait(
|
|
108
|
+
resourceGroupName: string,
|
|
109
|
+
name: string,
|
|
110
|
+
options?: ControllersDeleteOptionalParams
|
|
111
|
+
): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Updates the properties of an existing Azure Dev Spaces Controller with the specified update
|
|
114
|
+
* parameters.
|
|
115
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
116
|
+
* @param name Name of the resource.
|
|
117
|
+
* @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
update(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
name: string,
|
|
123
|
+
controllerUpdateParameters: ControllerUpdateParameters,
|
|
124
|
+
options?: ControllersUpdateOptionalParams
|
|
125
|
+
): Promise<ControllersUpdateResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.
|
|
128
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
129
|
+
* @param name Name of the resource.
|
|
130
|
+
* @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev Spaces
|
|
131
|
+
* Controller.
|
|
132
|
+
* @param options The options parameters.
|
|
133
|
+
*/
|
|
134
|
+
listConnectionDetails(
|
|
135
|
+
resourceGroupName: string,
|
|
136
|
+
name: string,
|
|
137
|
+
listConnectionDetailsParameters: ListConnectionDetailsParameters,
|
|
138
|
+
options?: ControllersListConnectionDetailsOptionalParams
|
|
139
|
+
): Promise<ControllersListConnectionDetailsResponse>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./containerHostMappings";
|
|
10
|
+
export * from "./operations";
|
|
11
|
+
export * from "./controllers";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ResourceProviderOperationDefinition,
|
|
12
|
+
OperationsListOptionalParams
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a Operations. */
|
|
17
|
+
export interface Operations {
|
|
18
|
+
/**
|
|
19
|
+
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
20
|
+
* description.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
list(
|
|
24
|
+
options?: OperationsListOptionalParams
|
|
25
|
+
): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
|
|
26
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"module": "es6",
|
|
4
4
|
"moduleResolution": "node",
|
|
5
5
|
"strict": true,
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "es6",
|
|
7
7
|
"sourceMap": true,
|
|
8
8
|
"declarationMap": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"allowSyntheticDefaultImports": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": ["es6"],
|
|
12
|
+
"lib": ["es6", "dom"],
|
|
13
13
|
"declaration": true,
|
|
14
|
-
"outDir": "./esm",
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
15
|
"importHelpers": true
|
|
16
16
|
},
|
|
17
|
-
"include": ["./src/**/*.ts"],
|
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
|
18
18
|
"exclude": ["node_modules"]
|
|
19
19
|
}
|