@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.
Files changed (140) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +1321 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/devSpacesManagementClient.d.ts +20 -0
  9. package/dist-esm/src/devSpacesManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/devSpacesManagementClient.js +53 -0
  11. package/dist-esm/src/devSpacesManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +287 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +29 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +23 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +204 -231
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +15 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +129 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/containerHostMappings.d.ts +23 -0
  33. package/dist-esm/src/operations/containerHostMappings.d.ts.map +1 -0
  34. package/dist-esm/src/operations/containerHostMappings.js +59 -0
  35. package/dist-esm/src/operations/containerHostMappings.js.map +1 -0
  36. package/dist-esm/src/operations/controllers.d.ts +111 -0
  37. package/dist-esm/src/operations/controllers.d.ts.map +1 -0
  38. package/dist-esm/src/operations/controllers.js +490 -0
  39. package/dist-esm/src/operations/controllers.js.map +1 -0
  40. package/{esm → dist-esm/src}/operations/index.d.ts +1 -1
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/operations/index.js +4 -6
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +34 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +116 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts +15 -0
  49. package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/containerHostMappings.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/containerHostMappings.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/controllers.d.ts +74 -0
  53. package/dist-esm/src/operationsInterfaces/controllers.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/controllers.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/controllers.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  57. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  59. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts +12 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  64. package/dist-esm/test/sampleTest.d.ts +2 -0
  65. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  66. package/dist-esm/test/sampleTest.js +40 -0
  67. package/dist-esm/test/sampleTest.js.map +1 -0
  68. package/package.json +68 -33
  69. package/review/arm-devspaces.api.md +300 -0
  70. package/rollup.config.js +184 -27
  71. package/src/devSpacesManagementClient.ts +74 -39
  72. package/src/index.ts +12 -0
  73. package/src/lroImpl.ts +34 -0
  74. package/src/models/index.ts +251 -512
  75. package/src/models/mappers.ts +202 -226
  76. package/src/models/parameters.ts +98 -38
  77. package/src/operations/containerHostMappings.ts +51 -69
  78. package/src/operations/controllers.ts +469 -377
  79. package/src/operations/index.ts +4 -6
  80. package/src/operations/operations.ts +87 -81
  81. package/src/operationsInterfaces/containerHostMappings.ts +32 -0
  82. package/src/operationsInterfaces/controllers.ts +140 -0
  83. package/src/operationsInterfaces/index.ts +11 -0
  84. package/src/operationsInterfaces/operations.ts +26 -0
  85. package/tsconfig.json +4 -4
  86. package/types/arm-devspaces.d.ts +451 -0
  87. package/types/tsdoc-metadata.json +11 -0
  88. package/dist/arm-devspaces.js +0 -1261
  89. package/dist/arm-devspaces.js.map +0 -1
  90. package/dist/arm-devspaces.min.js +0 -1
  91. package/dist/arm-devspaces.min.js.map +0 -1
  92. package/esm/devSpacesManagementClient.d.ts +0 -26
  93. package/esm/devSpacesManagementClient.d.ts.map +0 -1
  94. package/esm/devSpacesManagementClient.js +0 -40
  95. package/esm/devSpacesManagementClient.js.map +0 -1
  96. package/esm/devSpacesManagementClientContext.d.ts +0 -22
  97. package/esm/devSpacesManagementClientContext.d.ts.map +0 -1
  98. package/esm/devSpacesManagementClientContext.js +0 -61
  99. package/esm/devSpacesManagementClientContext.js.map +0 -1
  100. package/esm/models/containerHostMappingsMappers.d.ts +0 -2
  101. package/esm/models/containerHostMappingsMappers.d.ts.map +0 -1
  102. package/esm/models/containerHostMappingsMappers.js +0 -11
  103. package/esm/models/containerHostMappingsMappers.js.map +0 -1
  104. package/esm/models/controllersMappers.d.ts +0 -2
  105. package/esm/models/controllersMappers.d.ts.map +0 -1
  106. package/esm/models/controllersMappers.js +0 -11
  107. package/esm/models/controllersMappers.js.map +0 -1
  108. package/esm/models/index.d.ts +0 -564
  109. package/esm/models/index.d.ts.map +0 -1
  110. package/esm/models/index.js +0 -10
  111. package/esm/models/index.js.map +0 -1
  112. package/esm/models/mappers.d.ts +0 -24
  113. package/esm/models/mappers.d.ts.map +0 -1
  114. package/esm/models/mappers.js.map +0 -1
  115. package/esm/models/operationsMappers.d.ts +0 -2
  116. package/esm/models/operationsMappers.d.ts.map +0 -1
  117. package/esm/models/operationsMappers.js +0 -11
  118. package/esm/models/operationsMappers.js.map +0 -1
  119. package/esm/models/parameters.d.ts +0 -9
  120. package/esm/models/parameters.d.ts.map +0 -1
  121. package/esm/models/parameters.js +0 -90
  122. package/esm/models/parameters.js.map +0 -1
  123. package/esm/operations/containerHostMappings.d.ts +0 -35
  124. package/esm/operations/containerHostMappings.d.ts.map +0 -1
  125. package/esm/operations/containerHostMappings.js +0 -66
  126. package/esm/operations/containerHostMappings.js.map +0 -1
  127. package/esm/operations/controllers.d.ts +0 -198
  128. package/esm/operations/controllers.d.ts.map +0 -1
  129. package/esm/operations/controllers.js +0 -346
  130. package/esm/operations/controllers.js.map +0 -1
  131. package/esm/operations/index.d.ts.map +0 -1
  132. package/esm/operations/index.js.map +0 -1
  133. package/esm/operations/operations.d.ts +0 -50
  134. package/esm/operations/operations.d.ts.map +0 -1
  135. package/esm/operations/operations.js +0 -77
  136. package/esm/operations/operations.js.map +0 -1
  137. package/src/devSpacesManagementClientContext.ts +0 -68
  138. package/src/models/containerHostMappingsMappers.ts +0 -16
  139. package/src/models/controllersMappers.ts +0 -27
  140. package/src/models/operationsMappers.ts +0 -18
@@ -1,13 +1,11 @@
1
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.
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. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
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 * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/operationsMappers";
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 { DevSpacesManagementClientContext } from "../devSpacesManagementClientContext";
14
+ import { DevSpacesManagementClient } from "../devSpacesManagementClient";
15
+ import {
16
+ ResourceProviderOperationDefinition,
17
+ OperationsListNextOptionalParams,
18
+ OperationsListOptionalParams,
19
+ OperationsListResponse,
20
+ OperationsListNextResponse
21
+ } from "../models";
16
22
 
17
- /** Class representing a Operations. */
18
- export class Operations {
19
- private readonly client: DevSpacesManagementClientContext;
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
- * Create a Operations.
23
- * @param {DevSpacesManagementClientContext} client Reference to the service client.
29
+ * Initialize a new instance of the class Operations class.
30
+ * @param client Reference to the service client
24
31
  */
25
- constructor(client: DevSpacesManagementClientContext) {
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
- * @summary Lists operations for the resource provider.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.OperationsListResponse>
39
+ * @param options The options parameters.
35
40
  */
36
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
37
- /**
38
- * @param callback The callback
39
- */
40
- list(callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
41
- /**
42
- * @param options The optional parameters
43
- * @param callback The callback
44
- */
45
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
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
- listOperationSpec,
52
- callback) as Promise<Models.OperationsListResponse>;
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
- * @summary Lists operations for the resource provider.
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
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
84
+ private _list(
85
+ options?: OperationsListOptionalParams
86
+ ): Promise<OperationsListResponse> {
87
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
88
+ }
89
+
69
90
  /**
70
- * @param nextPageLink The NextLink from the previous successful call to List operation.
71
- * @param options The optional parameters
72
- * @param callback The callback
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
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceProviderOperationList>): void;
75
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResourceProviderOperationList>, callback?: msRest.ServiceCallback<Models.ResourceProviderOperationList>): Promise<Models.OperationsListNextResponse> {
95
+ private _listNext(
96
+ nextLink: string,
97
+ options?: OperationsListNextOptionalParams
98
+ ): Promise<OperationsListNextResponse> {
76
99
  return this.client.sendOperationRequest(
77
- {
78
- nextPageLink,
79
- options
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 = new msRest.Serializer(Mappers);
88
- const listOperationSpec: msRest.OperationSpec = {
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
- urlParameters: [
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": "es5",
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
  }