@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,343 @@
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 * as coreClient from "@azure/core-client";
10
+
11
+ export type OrchestratorSpecificConnectionDetailsUnion =
12
+ | OrchestratorSpecificConnectionDetails
13
+ | KubernetesConnectionDetails;
14
+
15
+ /** Container host mapping object specifying the Container host resource ID and its associated Controller resource. */
16
+ export interface ContainerHostMapping {
17
+ /** ARM ID of the Container Host resource */
18
+ containerHostResourceId?: string;
19
+ /**
20
+ * ARM ID of the mapped Controller resource
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
22
+ */
23
+ readonly mappedControllerResourceId?: string;
24
+ }
25
+
26
+ /** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */
27
+ export interface DevSpacesErrorResponse {
28
+ /** The details of the error. */
29
+ error?: ErrorDetails;
30
+ }
31
+
32
+ export interface ErrorDetails {
33
+ /**
34
+ * Status code for the error.
35
+ * NOTE: This property will not be serialized. It can only be populated by the server.
36
+ */
37
+ readonly code?: string;
38
+ /**
39
+ * Error message describing the error in detail.
40
+ * NOTE: This property will not be serialized. It can only be populated by the server.
41
+ */
42
+ readonly message?: string;
43
+ /**
44
+ * The target of the particular error.
45
+ * NOTE: This property will not be serialized. It can only be populated by the server.
46
+ */
47
+ readonly target?: string;
48
+ }
49
+
50
+ export interface ResourceProviderOperationList {
51
+ /** Resource provider operations list. */
52
+ value?: ResourceProviderOperationDefinition[];
53
+ /**
54
+ * The URI that can be used to request the next page for list of Azure operations.
55
+ * NOTE: This property will not be serialized. It can only be populated by the server.
56
+ */
57
+ readonly nextLink?: string;
58
+ }
59
+
60
+ export interface ResourceProviderOperationDefinition {
61
+ /** Resource provider operation name. */
62
+ name?: string;
63
+ display?: ResourceProviderOperationDisplay;
64
+ }
65
+
66
+ export interface ResourceProviderOperationDisplay {
67
+ /** Name of the resource provider. */
68
+ provider?: string;
69
+ /** Name of the resource type. */
70
+ resource?: string;
71
+ /** Name of the resource provider operation. */
72
+ operation?: string;
73
+ /** Description of the resource provider operation. */
74
+ description?: string;
75
+ }
76
+
77
+ /** Model representing SKU for Azure Dev Spaces Controller. */
78
+ export interface Sku {
79
+ /** The name of the SKU for Azure Dev Spaces Controller. */
80
+ name: SkuName;
81
+ /** The tier of the SKU for Azure Dev Spaces Controller. */
82
+ tier?: SkuTier;
83
+ }
84
+
85
+ /** An Azure resource. */
86
+ export interface Resource {
87
+ /**
88
+ * Fully qualified resource Id for the resource.
89
+ * NOTE: This property will not be serialized. It can only be populated by the server.
90
+ */
91
+ readonly id?: string;
92
+ /**
93
+ * The name of the resource.
94
+ * NOTE: This property will not be serialized. It can only be populated by the server.
95
+ */
96
+ readonly name?: string;
97
+ /**
98
+ * The type of the resource.
99
+ * NOTE: This property will not be serialized. It can only be populated by the server.
100
+ */
101
+ readonly type?: string;
102
+ }
103
+
104
+ /** Parameters for updating an Azure Dev Spaces Controller. */
105
+ export interface ControllerUpdateParameters {
106
+ /** Tags for the Azure Dev Spaces Controller. */
107
+ tags?: { [propertyName: string]: string };
108
+ /** Credentials of the target container host (base64). */
109
+ targetContainerHostCredentialsBase64?: string;
110
+ }
111
+
112
+ export interface ControllerList {
113
+ /** List of Azure Dev Spaces Controllers. */
114
+ value?: Controller[];
115
+ /**
116
+ * The URI that can be used to request the next page for list of Azure Dev Spaces Controllers.
117
+ * NOTE: This property will not be serialized. It can only be populated by the server.
118
+ */
119
+ readonly nextLink?: string;
120
+ }
121
+
122
+ /** Parameters for listing connection details of an Azure Dev Spaces Controller. */
123
+ export interface ListConnectionDetailsParameters {
124
+ /** Resource ID of the target container host mapped to the Azure Dev Spaces Controller. */
125
+ targetContainerHostResourceId: string;
126
+ }
127
+
128
+ export interface ControllerConnectionDetailsList {
129
+ /** List of Azure Dev Spaces Controller connection details. */
130
+ connectionDetailsList?: ControllerConnectionDetails[];
131
+ }
132
+
133
+ export interface ControllerConnectionDetails {
134
+ /** Base class for types that supply values used to connect to container orchestrators */
135
+ orchestratorSpecificConnectionDetails?: OrchestratorSpecificConnectionDetailsUnion;
136
+ }
137
+
138
+ /** Base class for types that supply values used to connect to container orchestrators */
139
+ export interface OrchestratorSpecificConnectionDetails {
140
+ /** Polymorphic discriminator, which specifies the different types this object can be */
141
+ instanceType: "Kubernetes";
142
+ }
143
+
144
+ /** The resource model definition for a ARM tracked top level resource. */
145
+ export type TrackedResource = Resource & {
146
+ /** Tags for the Azure resource. */
147
+ tags?: { [propertyName: string]: string };
148
+ /** Region where the Azure resource is located. */
149
+ location?: string;
150
+ };
151
+
152
+ /** Contains information used to connect to a Kubernetes cluster */
153
+ export type KubernetesConnectionDetails = OrchestratorSpecificConnectionDetails & {
154
+ /** Polymorphic discriminator, which specifies the different types this object can be */
155
+ instanceType: "Kubernetes";
156
+ /** Gets the kubeconfig for the cluster. */
157
+ kubeConfig?: string;
158
+ };
159
+
160
+ export type Controller = TrackedResource & {
161
+ /** Model representing SKU for Azure Dev Spaces Controller. */
162
+ sku: Sku;
163
+ /**
164
+ * Provisioning state of the Azure Dev Spaces Controller.
165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
166
+ */
167
+ readonly provisioningState?: ProvisioningState;
168
+ /**
169
+ * DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
+ */
172
+ readonly hostSuffix?: string;
173
+ /**
174
+ * DNS name for accessing DataPlane services
175
+ * NOTE: This property will not be serialized. It can only be populated by the server.
176
+ */
177
+ readonly dataPlaneFqdn?: string;
178
+ /**
179
+ * DNS of the target container host's API server
180
+ * NOTE: This property will not be serialized. It can only be populated by the server.
181
+ */
182
+ readonly targetContainerHostApiServerFqdn?: string;
183
+ /** Resource ID of the target container host */
184
+ targetContainerHostResourceId: string;
185
+ /** Credentials of the target container host (base64). */
186
+ targetContainerHostCredentialsBase64: string;
187
+ };
188
+
189
+ /** Known values of {@link ProvisioningState} that the service accepts. */
190
+ export enum KnownProvisioningState {
191
+ Succeeded = "Succeeded",
192
+ Failed = "Failed",
193
+ Canceled = "Canceled",
194
+ Updating = "Updating",
195
+ Creating = "Creating",
196
+ Deleting = "Deleting",
197
+ Deleted = "Deleted"
198
+ }
199
+
200
+ /**
201
+ * Defines values for ProvisioningState. \
202
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
203
+ * this enum contains the known values that the service supports.
204
+ * ### Known values supported by the service
205
+ * **Succeeded** \
206
+ * **Failed** \
207
+ * **Canceled** \
208
+ * **Updating** \
209
+ * **Creating** \
210
+ * **Deleting** \
211
+ * **Deleted**
212
+ */
213
+ export type ProvisioningState = string;
214
+
215
+ /** Known values of {@link SkuName} that the service accepts. */
216
+ export enum KnownSkuName {
217
+ S1 = "S1"
218
+ }
219
+
220
+ /**
221
+ * Defines values for SkuName. \
222
+ * {@link KnownSkuName} can be used interchangeably with SkuName,
223
+ * this enum contains the known values that the service supports.
224
+ * ### Known values supported by the service
225
+ * **S1**
226
+ */
227
+ export type SkuName = string;
228
+
229
+ /** Known values of {@link SkuTier} that the service accepts. */
230
+ export enum KnownSkuTier {
231
+ Standard = "Standard"
232
+ }
233
+
234
+ /**
235
+ * Defines values for SkuTier. \
236
+ * {@link KnownSkuTier} can be used interchangeably with SkuTier,
237
+ * this enum contains the known values that the service supports.
238
+ * ### Known values supported by the service
239
+ * **Standard**
240
+ */
241
+ export type SkuTier = string;
242
+
243
+ /** Optional parameters. */
244
+ export interface ContainerHostMappingsGetContainerHostMappingOptionalParams
245
+ extends coreClient.OperationOptions {}
246
+
247
+ /** Contains response data for the getContainerHostMapping operation. */
248
+ export type ContainerHostMappingsGetContainerHostMappingResponse = ContainerHostMapping;
249
+
250
+ /** Optional parameters. */
251
+ export interface OperationsListOptionalParams
252
+ extends coreClient.OperationOptions {}
253
+
254
+ /** Contains response data for the list operation. */
255
+ export type OperationsListResponse = ResourceProviderOperationList;
256
+
257
+ /** Optional parameters. */
258
+ export interface OperationsListNextOptionalParams
259
+ extends coreClient.OperationOptions {}
260
+
261
+ /** Contains response data for the listNext operation. */
262
+ export type OperationsListNextResponse = ResourceProviderOperationList;
263
+
264
+ /** Optional parameters. */
265
+ export interface ControllersGetOptionalParams
266
+ extends coreClient.OperationOptions {}
267
+
268
+ /** Contains response data for the get operation. */
269
+ export type ControllersGetResponse = Controller;
270
+
271
+ /** Optional parameters. */
272
+ export interface ControllersCreateOptionalParams
273
+ extends coreClient.OperationOptions {
274
+ /** Delay to wait until next poll, in milliseconds. */
275
+ updateIntervalInMs?: number;
276
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
277
+ resumeFrom?: string;
278
+ }
279
+
280
+ /** Contains response data for the create operation. */
281
+ export type ControllersCreateResponse = Controller;
282
+
283
+ /** Optional parameters. */
284
+ export interface ControllersDeleteOptionalParams
285
+ extends coreClient.OperationOptions {
286
+ /** Delay to wait until next poll, in milliseconds. */
287
+ updateIntervalInMs?: number;
288
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
289
+ resumeFrom?: string;
290
+ }
291
+
292
+ /** Optional parameters. */
293
+ export interface ControllersUpdateOptionalParams
294
+ extends coreClient.OperationOptions {}
295
+
296
+ /** Contains response data for the update operation. */
297
+ export type ControllersUpdateResponse = Controller;
298
+
299
+ /** Optional parameters. */
300
+ export interface ControllersListByResourceGroupOptionalParams
301
+ extends coreClient.OperationOptions {}
302
+
303
+ /** Contains response data for the listByResourceGroup operation. */
304
+ export type ControllersListByResourceGroupResponse = ControllerList;
305
+
306
+ /** Optional parameters. */
307
+ export interface ControllersListOptionalParams
308
+ extends coreClient.OperationOptions {}
309
+
310
+ /** Contains response data for the list operation. */
311
+ export type ControllersListResponse = ControllerList;
312
+
313
+ /** Optional parameters. */
314
+ export interface ControllersListConnectionDetailsOptionalParams
315
+ extends coreClient.OperationOptions {}
316
+
317
+ /** Contains response data for the listConnectionDetails operation. */
318
+ export type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList;
319
+
320
+ /** Optional parameters. */
321
+ export interface ControllersListByResourceGroupNextOptionalParams
322
+ extends coreClient.OperationOptions {}
323
+
324
+ /** Contains response data for the listByResourceGroupNext operation. */
325
+ export type ControllersListByResourceGroupNextResponse = ControllerList;
326
+
327
+ /** Optional parameters. */
328
+ export interface ControllersListNextOptionalParams
329
+ extends coreClient.OperationOptions {}
330
+
331
+ /** Contains response data for the listNext operation. */
332
+ export type ControllersListNextResponse = ControllerList;
333
+
334
+ /** Optional parameters. */
335
+ export interface DevSpacesManagementClientOptionalParams
336
+ extends coreClient.ServiceClientOptions {
337
+ /** server parameter */
338
+ $host?: string;
339
+ /** Api Version */
340
+ apiVersion?: string;
341
+ /** Overrides client endpoint. */
342
+ endpoint?: string;
343
+ }