@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,604 +1,343 @@
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 { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
12
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
13
10
 
14
- export { BaseResource, CloudError };
11
+ export type OrchestratorSpecificConnectionDetailsUnion =
12
+ | OrchestratorSpecificConnectionDetails
13
+ | KubernetesConnectionDetails;
15
14
 
16
-
17
- /**
18
- * @interface
19
- * An interface representing ContainerHostMapping.
20
- * Container host mapping object specifying the Container host resource ID and
21
- * its associated Controller resource.
22
- *
23
- */
15
+ /** Container host mapping object specifying the Container host resource ID and its associated Controller resource. */
24
16
  export interface ContainerHostMapping {
25
- /**
26
- * @member {string} [containerHostResourceId] ARM ID of the Container Host
27
- * resource
28
- */
17
+ /** ARM ID of the Container Host resource */
29
18
  containerHostResourceId?: string;
30
19
  /**
31
- * @member {string} [mappedControllerResourceId] ARM ID of the mapped
32
- * Controller resource
33
- * **NOTE: This property will not be serialized. It can only be populated by
34
- * the server.**
20
+ * ARM ID of the mapped Controller resource
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
35
22
  */
36
23
  readonly mappedControllerResourceId?: string;
37
24
  }
38
25
 
39
- /**
40
- * @interface
41
- * An interface representing Sku.
42
- * Model representing SKU for Azure Dev Spaces Controller.
43
- *
44
- */
45
- export interface Sku {
46
- /**
47
- * @member {SkuTier} [tier] The tier of the SKU for Azure Dev Spaces
48
- * Controller. Possible values include: 'Standard'
49
- */
50
- tier?: SkuTier;
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;
51
30
  }
52
31
 
53
- /**
54
- * @interface
55
- * An interface representing Resource.
56
- * An Azure resource.
57
- *
58
- * @extends BaseResource
59
- */
60
- export interface Resource extends BaseResource {
32
+ export interface ErrorDetails {
61
33
  /**
62
- * @member {string} [id] Fully qualified resource Id for the resource.
63
- * **NOTE: This property will not be serialized. It can only be populated by
64
- * the server.**
34
+ * Status code for the error.
35
+ * NOTE: This property will not be serialized. It can only be populated by the server.
65
36
  */
66
- readonly id?: string;
37
+ readonly code?: string;
67
38
  /**
68
- * @member {string} [name] The name of the resource.
69
- * **NOTE: This property will not be serialized. It can only be populated by
70
- * the server.**
39
+ * Error message describing the error in detail.
40
+ * NOTE: This property will not be serialized. It can only be populated by the server.
71
41
  */
72
- readonly name?: string;
42
+ readonly message?: string;
73
43
  /**
74
- * @member {string} [type] The type of the resource.
75
- * **NOTE: This property will not be serialized. It can only be populated by
76
- * the server.**
44
+ * The target of the particular error.
45
+ * NOTE: This property will not be serialized. It can only be populated by the server.
77
46
  */
78
- readonly type?: string;
47
+ readonly target?: string;
79
48
  }
80
49
 
81
- /**
82
- * @interface
83
- * An interface representing TrackedResource.
84
- * The resource model definition for a ARM tracked top level resource.
85
- *
86
- * @extends Resource
87
- */
88
- export interface TrackedResource extends Resource {
50
+ export interface ResourceProviderOperationList {
51
+ /** Resource provider operations list. */
52
+ value?: ResourceProviderOperationDefinition[];
89
53
  /**
90
- * @member {{ [propertyName: string]: string }} [tags] Tags for the Azure
91
- * resource.
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.
92
56
  */
93
- tags?: { [propertyName: string]: string };
94
- /**
95
- * @member {string} [location] Region where the Azure resource is located.
96
- */
97
- location?: string;
57
+ readonly nextLink?: string;
98
58
  }
99
59
 
100
- /**
101
- * @interface
102
- * An interface representing Controller.
103
- * @extends TrackedResource
104
- */
105
- export interface Controller extends TrackedResource {
106
- /**
107
- * @member {ProvisioningState} [provisioningState] Provisioning state of the
108
- * Azure Dev Spaces Controller. Possible values include: 'Succeeded',
109
- * 'Failed', 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted'
110
- * **NOTE: This property will not be serialized. It can only be populated by
111
- * the server.**
112
- */
113
- readonly provisioningState?: ProvisioningState;
114
- /**
115
- * @member {string} hostSuffix DNS suffix for public endpoints running in the
116
- * Azure Dev Spaces Controller.
117
- */
118
- hostSuffix: string;
119
- /**
120
- * @member {string} [dataPlaneFqdn] DNS name for accessing DataPlane services
121
- * **NOTE: This property will not be serialized. It can only be populated by
122
- * the server.**
123
- */
124
- readonly dataPlaneFqdn?: string;
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 {
125
87
  /**
126
- * @member {string} targetContainerHostResourceId Resource ID of the target
127
- * container host
88
+ * Fully qualified resource Id for the resource.
89
+ * NOTE: This property will not be serialized. It can only be populated by the server.
128
90
  */
129
- targetContainerHostResourceId: string;
91
+ readonly id?: string;
130
92
  /**
131
- * @member {string} targetContainerHostCredentialsBase64 Credentials of the
132
- * target container host (base64).
93
+ * The name of the resource.
94
+ * NOTE: This property will not be serialized. It can only be populated by the server.
133
95
  */
134
- targetContainerHostCredentialsBase64: string;
96
+ readonly name?: string;
135
97
  /**
136
- * @member {Sku} sku
98
+ * The type of the resource.
99
+ * NOTE: This property will not be serialized. It can only be populated by the server.
137
100
  */
138
- sku: Sku;
101
+ readonly type?: string;
139
102
  }
140
103
 
141
- /**
142
- * @interface
143
- * An interface representing ControllerUpdateParameters.
144
- * Parameters for updating an Azure Dev Spaces Controller.
145
- *
146
- */
104
+ /** Parameters for updating an Azure Dev Spaces Controller. */
147
105
  export interface ControllerUpdateParameters {
148
- /**
149
- * @member {{ [propertyName: string]: string }} [tags] Tags for the Azure Dev
150
- * Spaces Controller.
151
- */
106
+ /** Tags for the Azure Dev Spaces Controller. */
152
107
  tags?: { [propertyName: string]: string };
108
+ /** Credentials of the target container host (base64). */
109
+ targetContainerHostCredentialsBase64?: string;
153
110
  }
154
111
 
155
- /**
156
- * Contains the possible cases for OrchestratorSpecificConnectionDetails.
157
- */
158
- export type OrchestratorSpecificConnectionDetailsUnion = OrchestratorSpecificConnectionDetails | KubernetesConnectionDetails;
159
-
160
- /**
161
- * @interface
162
- * An interface representing OrchestratorSpecificConnectionDetails.
163
- * Base class for types that supply values used to connect to container
164
- * orchestrators
165
- *
166
- */
167
- export interface OrchestratorSpecificConnectionDetails {
112
+ export interface ControllerList {
113
+ /** List of Azure Dev Spaces Controllers. */
114
+ value?: Controller[];
168
115
  /**
169
- * @member {string} instanceType Polymorphic Discriminator
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.
170
118
  */
171
- instanceType: "OrchestratorSpecificConnectionDetails";
119
+ readonly nextLink?: string;
172
120
  }
173
121
 
174
- /**
175
- * @interface
176
- * An interface representing ControllerConnectionDetails.
177
- */
178
- export interface ControllerConnectionDetails {
179
- /**
180
- * @member {string} [authKey] Authentication key for communicating with
181
- * services.
182
- * **NOTE: This property will not be serialized. It can only be populated by
183
- * the server.**
184
- */
185
- readonly authKey?: string;
186
- /**
187
- * @member {string} [workspaceStorageAccountName] Workspace storage account
188
- * name.
189
- * **NOTE: This property will not be serialized. It can only be populated by
190
- * the server.**
191
- */
192
- readonly workspaceStorageAccountName?: string;
193
- /**
194
- * @member {string} [workspaceStorageSasToken] Workspace storage account SAS
195
- * token.
196
- * **NOTE: This property will not be serialized. It can only be populated by
197
- * the server.**
198
- */
199
- readonly workspaceStorageSasToken?: string;
200
- /**
201
- * @member {OrchestratorSpecificConnectionDetailsUnion}
202
- * [orchestratorSpecificConnectionDetails]
203
- */
204
- orchestratorSpecificConnectionDetails?: OrchestratorSpecificConnectionDetailsUnion;
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;
205
126
  }
206
127
 
207
- /**
208
- * @interface
209
- * An interface representing ControllerConnectionDetailsList.
210
- */
211
128
  export interface ControllerConnectionDetailsList {
212
- /**
213
- * @member {ControllerConnectionDetails[]} [connectionDetailsList] List of
214
- * Azure Dev Spaces Controller connection details.
215
- */
129
+ /** List of Azure Dev Spaces Controller connection details. */
216
130
  connectionDetailsList?: ControllerConnectionDetails[];
217
131
  }
218
132
 
219
- /**
220
- * @interface
221
- * An interface representing ResourceProviderOperationDisplay.
222
- */
223
- export interface ResourceProviderOperationDisplay {
224
- /**
225
- * @member {string} [provider] Name of the resource provider.
226
- */
227
- provider?: string;
228
- /**
229
- * @member {string} [resource] Name of the resource type.
230
- */
231
- resource?: string;
232
- /**
233
- * @member {string} [operation] Name of the resource provider operation.
234
- */
235
- operation?: string;
236
- /**
237
- * @member {string} [description] Description of the resource provider
238
- * operation.
239
- */
240
- description?: string;
133
+ export interface ControllerConnectionDetails {
134
+ /** Base class for types that supply values used to connect to container orchestrators */
135
+ orchestratorSpecificConnectionDetails?: OrchestratorSpecificConnectionDetailsUnion;
241
136
  }
242
137
 
243
- /**
244
- * @interface
245
- * An interface representing ResourceProviderOperationDefinition.
246
- */
247
- export interface ResourceProviderOperationDefinition {
248
- /**
249
- * @member {string} [name] Resource provider operation name.
250
- */
251
- name?: string;
252
- /**
253
- * @member {ResourceProviderOperationDisplay} [display]
254
- */
255
- display?: ResourceProviderOperationDisplay;
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";
256
142
  }
257
143
 
258
- /**
259
- * @interface
260
- * An interface representing KubernetesConnectionDetails.
261
- * Contains information used to connect to a Kubernetes cluster
262
- *
263
- */
264
- export interface KubernetesConnectionDetails {
265
- /**
266
- * @member {string} instanceType Polymorphic Discriminator
267
- */
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 */
268
155
  instanceType: "Kubernetes";
269
- /**
270
- * @member {string} [kubeConfig] Gets the kubeconfig for the cluster.
271
- */
156
+ /** Gets the kubeconfig for the cluster. */
272
157
  kubeConfig?: string;
273
- }
158
+ };
274
159
 
275
- /**
276
- * @interface
277
- * An interface representing ErrorDetails.
278
- */
279
- export interface ErrorDetails {
160
+ export type Controller = TrackedResource & {
161
+ /** Model representing SKU for Azure Dev Spaces Controller. */
162
+ sku: Sku;
280
163
  /**
281
- * @member {string} [code] Status code for the error.
282
- * **NOTE: This property will not be serialized. It can only be populated by
283
- * the server.**
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.
284
166
  */
285
- readonly code?: string;
167
+ readonly provisioningState?: ProvisioningState;
286
168
  /**
287
- * @member {string} [message] Error message describing the error in detail.
288
- * **NOTE: This property will not be serialized. It can only be populated by
289
- * the server.**
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.
290
171
  */
291
- readonly message?: string;
172
+ readonly hostSuffix?: string;
292
173
  /**
293
- * @member {string} [target] The target of the particular error.
294
- * **NOTE: This property will not be serialized. It can only be populated by
295
- * the server.**
174
+ * DNS name for accessing DataPlane services
175
+ * NOTE: This property will not be serialized. It can only be populated by the server.
296
176
  */
297
- readonly target?: string;
298
- }
299
-
300
- /**
301
- * @interface
302
- * An interface representing ErrorResponse.
303
- * Error response indicates that the service is not able to process the
304
- * incoming request. The reason is provided in the error message.
305
- *
306
- */
307
- export interface ErrorResponse {
177
+ readonly dataPlaneFqdn?: string;
308
178
  /**
309
- * @member {ErrorDetails} [error] The details of the error.
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.
310
181
  */
311
- error?: ErrorDetails;
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"
312
198
  }
313
199
 
314
200
  /**
315
- * @interface
316
- * An interface representing DevSpacesManagementClientOptions.
317
- * @extends AzureServiceClientOptions
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**
318
212
  */
319
- export interface DevSpacesManagementClientOptions extends AzureServiceClientOptions {
320
- /**
321
- * @member {string} [baseUri]
322
- */
323
- baseUri?: string;
324
- }
213
+ export type ProvisioningState = string;
325
214
 
215
+ /** Known values of {@link SkuName} that the service accepts. */
216
+ export enum KnownSkuName {
217
+ S1 = "S1"
218
+ }
326
219
 
327
220
  /**
328
- * @interface
329
- * An interface representing the ControllerList.
330
- * @extends Array<Controller>
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**
331
226
  */
332
- export interface ControllerList extends Array<Controller> {
333
- /**
334
- * @member {string} [nextLink] The URI that can be used to request the next
335
- * page for list of Azure Dev Spaces Controllers.
336
- * **NOTE: This property will not be serialized. It can only be populated by
337
- * the server.**
338
- */
339
- readonly nextLink?: string;
227
+ export type SkuName = string;
228
+
229
+ /** Known values of {@link SkuTier} that the service accepts. */
230
+ export enum KnownSkuTier {
231
+ Standard = "Standard"
340
232
  }
341
233
 
342
234
  /**
343
- * @interface
344
- * An interface representing the ResourceProviderOperationList.
345
- * @extends Array<ResourceProviderOperationDefinition>
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**
346
240
  */
347
- export interface ResourceProviderOperationList extends Array<ResourceProviderOperationDefinition> {
348
- /**
349
- * @member {string} [nextLink] The URI that can be used to request the next
350
- * page for list of Azure operations.
351
- * **NOTE: This property will not be serialized. It can only be populated by
352
- * the server.**
353
- */
354
- readonly nextLink?: string;
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;
355
278
  }
356
279
 
357
- /**
358
- * Defines values for ProvisioningState.
359
- * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating', 'Creating', 'Deleting',
360
- * 'Deleted'
361
- * @readonly
362
- * @enum {string}
363
- */
364
- export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'Updating' | 'Creating' | 'Deleting' | 'Deleted';
280
+ /** Contains response data for the create operation. */
281
+ export type ControllersCreateResponse = Controller;
365
282
 
366
- /**
367
- * Defines values for SkuTier.
368
- * Possible values include: 'Standard'
369
- * @readonly
370
- * @enum {string}
371
- */
372
- export type SkuTier = 'Standard';
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
+ }
373
291
 
374
- /**
375
- * Contains response data for the getContainerHostMapping operation.
376
- */
377
- export type ContainerHostMappingsGetContainerHostMappingResponse = {
378
- /**
379
- * The parsed response body.
380
- */
381
- body: any;
382
- /**
383
- * The underlying HTTP response.
384
- */
385
- _response: msRest.HttpResponse & {
386
- /**
387
- * The response body as text (string format)
388
- */
389
- bodyAsText: string;
390
- /**
391
- * The response body as parsed JSON or XML
392
- */
393
- parsedBody: any;
394
- };
395
- };
292
+ /** Optional parameters. */
293
+ export interface ControllersUpdateOptionalParams
294
+ extends coreClient.OperationOptions {}
396
295
 
397
- /**
398
- * Contains response data for the get operation.
399
- */
400
- export type ControllersGetResponse = Controller & {
401
- /**
402
- * The underlying HTTP response.
403
- */
404
- _response: msRest.HttpResponse & {
405
- /**
406
- * The response body as text (string format)
407
- */
408
- bodyAsText: string;
409
- /**
410
- * The response body as parsed JSON or XML
411
- */
412
- parsedBody: Controller;
413
- };
414
- };
296
+ /** Contains response data for the update operation. */
297
+ export type ControllersUpdateResponse = Controller;
415
298
 
416
- /**
417
- * Contains response data for the create operation.
418
- */
419
- export type ControllersCreateResponse = Controller & {
420
- /**
421
- * The underlying HTTP response.
422
- */
423
- _response: msRest.HttpResponse & {
424
- /**
425
- * The response body as text (string format)
426
- */
427
- bodyAsText: string;
428
- /**
429
- * The response body as parsed JSON or XML
430
- */
431
- parsedBody: Controller;
432
- };
433
- };
299
+ /** Optional parameters. */
300
+ export interface ControllersListByResourceGroupOptionalParams
301
+ extends coreClient.OperationOptions {}
434
302
 
435
- /**
436
- * Contains response data for the update operation.
437
- */
438
- export type ControllersUpdateResponse = Controller & {
439
- /**
440
- * The underlying HTTP response.
441
- */
442
- _response: msRest.HttpResponse & {
443
- /**
444
- * The response body as text (string format)
445
- */
446
- bodyAsText: string;
447
- /**
448
- * The response body as parsed JSON or XML
449
- */
450
- parsedBody: Controller;
451
- };
452
- };
303
+ /** Contains response data for the listByResourceGroup operation. */
304
+ export type ControllersListByResourceGroupResponse = ControllerList;
453
305
 
454
- /**
455
- * Contains response data for the listByResourceGroup operation.
456
- */
457
- export type ControllersListByResourceGroupResponse = ControllerList & {
458
- /**
459
- * The underlying HTTP response.
460
- */
461
- _response: msRest.HttpResponse & {
462
- /**
463
- * The response body as text (string format)
464
- */
465
- bodyAsText: string;
466
- /**
467
- * The response body as parsed JSON or XML
468
- */
469
- parsedBody: ControllerList;
470
- };
471
- };
306
+ /** Optional parameters. */
307
+ export interface ControllersListOptionalParams
308
+ extends coreClient.OperationOptions {}
472
309
 
473
- /**
474
- * Contains response data for the list operation.
475
- */
476
- export type ControllersListResponse = ControllerList & {
477
- /**
478
- * The underlying HTTP response.
479
- */
480
- _response: msRest.HttpResponse & {
481
- /**
482
- * The response body as text (string format)
483
- */
484
- bodyAsText: string;
485
- /**
486
- * The response body as parsed JSON or XML
487
- */
488
- parsedBody: ControllerList;
489
- };
490
- };
310
+ /** Contains response data for the list operation. */
311
+ export type ControllersListResponse = ControllerList;
491
312
 
492
- /**
493
- * Contains response data for the listConnectionDetails operation.
494
- */
495
- export type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList & {
496
- /**
497
- * The underlying HTTP response.
498
- */
499
- _response: msRest.HttpResponse & {
500
- /**
501
- * The response body as text (string format)
502
- */
503
- bodyAsText: string;
504
- /**
505
- * The response body as parsed JSON or XML
506
- */
507
- parsedBody: ControllerConnectionDetailsList;
508
- };
509
- };
313
+ /** Optional parameters. */
314
+ export interface ControllersListConnectionDetailsOptionalParams
315
+ extends coreClient.OperationOptions {}
510
316
 
511
- /**
512
- * Contains response data for the beginCreate operation.
513
- */
514
- export type ControllersBeginCreateResponse = Controller & {
515
- /**
516
- * The underlying HTTP response.
517
- */
518
- _response: msRest.HttpResponse & {
519
- /**
520
- * The response body as text (string format)
521
- */
522
- bodyAsText: string;
523
- /**
524
- * The response body as parsed JSON or XML
525
- */
526
- parsedBody: Controller;
527
- };
528
- };
317
+ /** Contains response data for the listConnectionDetails operation. */
318
+ export type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList;
529
319
 
530
- /**
531
- * Contains response data for the listByResourceGroupNext operation.
532
- */
533
- export type ControllersListByResourceGroupNextResponse = ControllerList & {
534
- /**
535
- * The underlying HTTP response.
536
- */
537
- _response: msRest.HttpResponse & {
538
- /**
539
- * The response body as text (string format)
540
- */
541
- bodyAsText: string;
542
- /**
543
- * The response body as parsed JSON or XML
544
- */
545
- parsedBody: ControllerList;
546
- };
547
- };
320
+ /** Optional parameters. */
321
+ export interface ControllersListByResourceGroupNextOptionalParams
322
+ extends coreClient.OperationOptions {}
548
323
 
549
- /**
550
- * Contains response data for the listNext operation.
551
- */
552
- export type ControllersListNextResponse = ControllerList & {
553
- /**
554
- * The underlying HTTP response.
555
- */
556
- _response: msRest.HttpResponse & {
557
- /**
558
- * The response body as text (string format)
559
- */
560
- bodyAsText: string;
561
- /**
562
- * The response body as parsed JSON or XML
563
- */
564
- parsedBody: ControllerList;
565
- };
566
- };
324
+ /** Contains response data for the listByResourceGroupNext operation. */
325
+ export type ControllersListByResourceGroupNextResponse = ControllerList;
567
326
 
568
- /**
569
- * Contains response data for the list operation.
570
- */
571
- export type OperationsListResponse = ResourceProviderOperationList & {
572
- /**
573
- * The underlying HTTP response.
574
- */
575
- _response: msRest.HttpResponse & {
576
- /**
577
- * The response body as text (string format)
578
- */
579
- bodyAsText: string;
580
- /**
581
- * The response body as parsed JSON or XML
582
- */
583
- parsedBody: ResourceProviderOperationList;
584
- };
585
- };
327
+ /** Optional parameters. */
328
+ export interface ControllersListNextOptionalParams
329
+ extends coreClient.OperationOptions {}
586
330
 
587
- /**
588
- * Contains response data for the listNext operation.
589
- */
590
- export type OperationsListNextResponse = ResourceProviderOperationList & {
591
- /**
592
- * The underlying HTTP response.
593
- */
594
- _response: msRest.HttpResponse & {
595
- /**
596
- * The response body as text (string format)
597
- */
598
- bodyAsText: string;
599
- /**
600
- * The response body as parsed JSON or XML
601
- */
602
- parsedBody: ResourceProviderOperationList;
603
- };
604
- };
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
+ }