@azure/arm-devspaces 1.1.0 → 2.0.1-alpha.20220113.2

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 (146) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -77
  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 +71 -25
  69. package/review/arm-devspaces.api.md +300 -0
  70. package/rollup.config.js +184 -27
  71. package/src/devSpacesManagementClient.ts +87 -0
  72. package/src/index.ts +12 -0
  73. package/src/lroImpl.ts +34 -0
  74. package/src/models/index.ts +343 -0
  75. package/{lib → src}/models/mappers.ts +202 -226
  76. package/src/models/parameters.ts +152 -0
  77. package/src/operations/containerHostMappings.ts +80 -0
  78. package/src/operations/controllers.ts +640 -0
  79. package/{lib → src}/operations/index.ts +4 -6
  80. package/src/operations/operations.ts +133 -0
  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 -1251
  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 -20
  93. package/esm/devSpacesManagementClient.d.ts.map +0 -1
  94. package/esm/devSpacesManagementClient.js +0 -35
  95. package/esm/devSpacesManagementClient.js.map +0 -1
  96. package/esm/devSpacesManagementClientContext.d.ts +0 -16
  97. package/esm/devSpacesManagementClientContext.d.ts.map +0 -1
  98. package/esm/devSpacesManagementClientContext.js +0 -56
  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/lib/devSpacesManagementClient.ts +0 -46
  138. package/lib/devSpacesManagementClientContext.ts +0 -62
  139. package/lib/models/containerHostMappingsMappers.ts +0 -16
  140. package/lib/models/controllersMappers.ts +0 -27
  141. package/lib/models/index.ts +0 -604
  142. package/lib/models/operationsMappers.ts +0 -18
  143. package/lib/models/parameters.ts +0 -92
  144. package/lib/operations/containerHostMappings.ts +0 -98
  145. package/lib/operations/controllers.ts +0 -548
  146. package/lib/operations/operations.ts +0 -127
@@ -0,0 +1,133 @@
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 { Operations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { DevSpacesManagementClient } from "../devSpacesManagementClient";
15
+ import {
16
+ ResourceProviderOperationDefinition,
17
+ OperationsListNextOptionalParams,
18
+ OperationsListOptionalParams,
19
+ OperationsListResponse,
20
+ OperationsListNextResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing Operations operations. */
25
+ export class OperationsImpl implements Operations {
26
+ private readonly client: DevSpacesManagementClient;
27
+
28
+ /**
29
+ * Initialize a new instance of the class Operations class.
30
+ * @param client Reference to the service client
31
+ */
32
+ constructor(client: DevSpacesManagementClient) {
33
+ this.client = client;
34
+ }
35
+
36
+ /**
37
+ * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
38
+ * description.
39
+ * @param options The options parameters.
40
+ */
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;
51
+ },
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
+ }
77
+ }
78
+
79
+ /**
80
+ * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
81
+ * description.
82
+ * @param options The options parameters.
83
+ */
84
+ private _list(
85
+ options?: OperationsListOptionalParams
86
+ ): Promise<OperationsListResponse> {
87
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
88
+ }
89
+
90
+ /**
91
+ * ListNext
92
+ * @param nextLink The nextLink from the previous successful call to the List method.
93
+ * @param options The options parameters.
94
+ */
95
+ private _listNext(
96
+ nextLink: string,
97
+ options?: OperationsListNextOptionalParams
98
+ ): Promise<OperationsListNextResponse> {
99
+ return this.client.sendOperationRequest(
100
+ { nextLink, options },
101
+ listNextOperationSpec
102
+ );
103
+ }
104
+ }
105
+ // Operation Specifications
106
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
107
+
108
+ const listOperationSpec: coreClient.OperationSpec = {
109
+ path: "/providers/Microsoft.DevSpaces/operations",
110
+ httpMethod: "GET",
111
+ responses: {
112
+ 200: {
113
+ bodyMapper: Mappers.ResourceProviderOperationList
114
+ }
115
+ },
116
+ queryParameters: [Parameters.apiVersion],
117
+ urlParameters: [Parameters.$host],
118
+ headerParameters: [Parameters.accept],
119
+ serializer
120
+ };
121
+ const listNextOperationSpec: coreClient.OperationSpec = {
122
+ path: "{nextLink}",
123
+ httpMethod: "GET",
124
+ responses: {
125
+ 200: {
126
+ bodyMapper: Mappers.ResourceProviderOperationList
127
+ }
128
+ },
129
+ queryParameters: [Parameters.apiVersion],
130
+ urlParameters: [Parameters.$host, Parameters.nextLink],
131
+ headerParameters: [Parameters.accept],
132
+ serializer
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": ["./lib/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }