@azure/arm-resourceconnector 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1754 -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/samples-dev/appliancesCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +36 -0
  11. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/appliancesDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/appliancesDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/appliancesDeleteSample.js +31 -0
  15. package/dist-esm/samples-dev/appliancesDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/appliancesGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/appliancesGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/appliancesGetSample.js +31 -0
  19. package/dist-esm/samples-dev/appliancesGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +32 -0
  23. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +1 -0
  24. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +44 -0
  27. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +43 -0
  31. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js +31 -0
  35. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js.map +1 -0
  36. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +31 -0
  39. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +1 -0
  40. package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/appliancesListOperationsSample.js +43 -0
  43. package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +1 -0
  44. package/dist-esm/samples-dev/appliancesUpdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/appliancesUpdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/appliancesUpdateSample.js +33 -0
  47. package/dist-esm/samples-dev/appliancesUpdateSample.js.map +1 -0
  48. package/dist-esm/src/index.d.ts +5 -0
  49. package/dist-esm/src/index.d.ts.map +1 -0
  50. package/dist-esm/src/index.js +12 -0
  51. package/dist-esm/src/index.js.map +1 -0
  52. package/dist-esm/src/lroImpl.d.ts +16 -0
  53. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  54. package/dist-esm/src/lroImpl.js +29 -0
  55. package/dist-esm/src/lroImpl.js.map +1 -0
  56. package/dist-esm/src/models/index.d.ts +617 -0
  57. package/dist-esm/src/models/index.d.ts.map +1 -0
  58. package/dist-esm/src/models/index.js +102 -0
  59. package/dist-esm/src/models/index.js.map +1 -0
  60. package/dist-esm/src/models/mappers.d.ts +26 -0
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  62. package/dist-esm/src/models/mappers.js +709 -0
  63. package/dist-esm/src/models/mappers.js.map +1 -0
  64. package/dist-esm/src/models/parameters.d.ts +13 -0
  65. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  66. package/dist-esm/src/models/parameters.js +124 -0
  67. package/dist-esm/src/models/parameters.js.map +1 -0
  68. package/dist-esm/src/operations/appliances.d.ts +144 -0
  69. package/dist-esm/src/operations/appliances.d.ts.map +1 -0
  70. package/dist-esm/src/operations/appliances.js +651 -0
  71. package/dist-esm/src/operations/appliances.js.map +1 -0
  72. package/dist-esm/src/operations/index.d.ts +2 -0
  73. package/dist-esm/src/operations/index.d.ts.map +1 -0
  74. package/dist-esm/src/operations/index.js +9 -0
  75. package/dist-esm/src/operations/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/appliances.d.ts +93 -0
  77. package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/appliances.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/appliances.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  81. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/index.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  84. package/dist-esm/src/resourceConnectorManagementClient.d.ts +20 -0
  85. package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +1 -0
  86. package/dist-esm/src/resourceConnectorManagementClient.js +95 -0
  87. package/dist-esm/src/resourceConnectorManagementClient.js.map +1 -0
  88. package/dist-esm/test/sampleTest.d.ts +2 -0
  89. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  90. package/dist-esm/test/sampleTest.js +38 -0
  91. package/dist-esm/test/sampleTest.js.map +1 -0
  92. package/package.json +121 -0
  93. package/review/arm-resourceconnector.api.md +400 -0
  94. package/rollup.config.js +122 -0
  95. package/src/index.ts +12 -0
  96. package/src/lroImpl.ts +34 -0
  97. package/src/models/index.ts +684 -0
  98. package/src/models/mappers.ts +748 -0
  99. package/src/models/parameters.ts +145 -0
  100. package/src/operations/appliances.ts +839 -0
  101. package/src/operations/index.ts +9 -0
  102. package/src/operationsInterfaces/appliances.ts +172 -0
  103. package/src/operationsInterfaces/index.ts +9 -0
  104. package/src/resourceConnectorManagementClient.ts +131 -0
  105. package/tsconfig.json +33 -0
  106. package/types/arm-resourceconnector.d.ts +792 -0
  107. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,792 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /**
8
+ * Defines values for AccessProfileType. \
9
+ * {@link KnownAccessProfileType} can be used interchangeably with AccessProfileType,
10
+ * this enum contains the known values that the service supports.
11
+ * ### Known values supported by the service
12
+ * **clusterUser** \
13
+ * **clusterCustomerUser**
14
+ */
15
+ export declare type AccessProfileType = string;
16
+
17
+ /** Appliances definition. */
18
+ export declare interface Appliance extends TrackedResource {
19
+ /** Identity for the resource. */
20
+ identity?: Identity;
21
+ /**
22
+ * Metadata pertaining to creation and last modification of the resource
23
+ * NOTE: This property will not be serialized. It can only be populated by the server.
24
+ */
25
+ readonly systemData?: SystemData;
26
+ /** Represents a supported Fabric/Infra. (AKSEdge etc...). */
27
+ distro?: Distro;
28
+ /** Contains infrastructure information about the Appliance */
29
+ infrastructureConfig?: AppliancePropertiesInfrastructureConfig;
30
+ /**
31
+ * The current deployment or provisioning state, which only appears in the response.
32
+ * NOTE: This property will not be serialized. It can only be populated by the server.
33
+ */
34
+ readonly provisioningState?: string;
35
+ /** Certificates pair used to download MSI certificate from HIS */
36
+ publicKey?: string;
37
+ /**
38
+ * Appliance’s health and state of connection to on-prem
39
+ * NOTE: This property will not be serialized. It can only be populated by the server.
40
+ */
41
+ readonly status?: Status;
42
+ /** Version of the Appliance */
43
+ version?: string;
44
+ }
45
+
46
+ /** Cluster User Credential appliance. */
47
+ export declare interface ApplianceCredentialKubeconfig {
48
+ /**
49
+ * Name which contains the role of the kubeconfig.
50
+ * NOTE: This property will not be serialized. It can only be populated by the server.
51
+ */
52
+ readonly name?: AccessProfileType;
53
+ /**
54
+ * Contains the kubeconfig value.
55
+ * NOTE: This property will not be serialized. It can only be populated by the server.
56
+ */
57
+ readonly value?: string;
58
+ }
59
+
60
+ /** The List Cluster Customer User Credential Results appliance. */
61
+ export declare interface ApplianceListClusterCustomerUserCredentialResults {
62
+ /**
63
+ * The list of appliance kubeconfigs.
64
+ * NOTE: This property will not be serialized. It can only be populated by the server.
65
+ */
66
+ readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
67
+ /**
68
+ * Map of Customer User Public and Private SSH Keys
69
+ * NOTE: This property will not be serialized. It can only be populated by the server.
70
+ */
71
+ readonly sshKeys?: {
72
+ [propertyName: string]: SSHKey;
73
+ };
74
+ }
75
+
76
+ /** The List Cluster User Credential appliance. */
77
+ export declare interface ApplianceListCredentialResults {
78
+ /**
79
+ * Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS).
80
+ * NOTE: This property will not be serialized. It can only be populated by the server.
81
+ */
82
+ readonly hybridConnectionConfig?: HybridConnectionConfig;
83
+ /**
84
+ * The list of appliance kubeconfigs.
85
+ * NOTE: This property will not be serialized. It can only be populated by the server.
86
+ */
87
+ readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
88
+ }
89
+
90
+ /** The List Appliances operation response. */
91
+ export declare interface ApplianceListResult {
92
+ /**
93
+ * The URL to use for getting the next set of results.
94
+ * NOTE: This property will not be serialized. It can only be populated by the server.
95
+ */
96
+ readonly nextLink?: string;
97
+ /**
98
+ * The list of Appliances.
99
+ * NOTE: This property will not be serialized. It can only be populated by the server.
100
+ */
101
+ readonly value?: Appliance[];
102
+ }
103
+
104
+ /** Appliances operation. */
105
+ export declare interface ApplianceOperation {
106
+ /**
107
+ * Is this Operation a data plane operation
108
+ * NOTE: This property will not be serialized. It can only be populated by the server.
109
+ */
110
+ readonly isDataAction?: boolean;
111
+ /**
112
+ * The name of the compute operation.
113
+ * NOTE: This property will not be serialized. It can only be populated by the server.
114
+ */
115
+ readonly name?: string;
116
+ /**
117
+ * The origin of the compute operation.
118
+ * NOTE: This property will not be serialized. It can only be populated by the server.
119
+ */
120
+ readonly origin?: string;
121
+ /**
122
+ * The description of the operation.
123
+ * NOTE: This property will not be serialized. It can only be populated by the server.
124
+ */
125
+ readonly description?: string;
126
+ /**
127
+ * The display name of the compute operation.
128
+ * NOTE: This property will not be serialized. It can only be populated by the server.
129
+ */
130
+ readonly operation?: string;
131
+ /**
132
+ * The resource provider for the operation.
133
+ * NOTE: This property will not be serialized. It can only be populated by the server.
134
+ */
135
+ readonly provider?: string;
136
+ /**
137
+ * The display name of the resource the operation applies to.
138
+ * NOTE: This property will not be serialized. It can only be populated by the server.
139
+ */
140
+ readonly resource?: string;
141
+ }
142
+
143
+ /** Lists of Appliances operations. */
144
+ export declare interface ApplianceOperationsList {
145
+ /** Next page of operations. */
146
+ nextLink?: string;
147
+ /** Array of applianceOperation */
148
+ value: ApplianceOperation[];
149
+ }
150
+
151
+ /** Contains infrastructure information about the Appliance */
152
+ export declare interface AppliancePropertiesInfrastructureConfig {
153
+ /** Information about the connected appliance. */
154
+ provider?: Provider;
155
+ }
156
+
157
+ /** Interface representing a Appliances. */
158
+ export declare interface Appliances {
159
+ /**
160
+ * Lists all available Appliances operations.
161
+ * @param options The options parameters.
162
+ */
163
+ listOperations(options?: AppliancesListOperationsOptionalParams): PagedAsyncIterableIterator<ApplianceOperation>;
164
+ /**
165
+ * Gets a list of Appliances in the specified subscription. The operation returns properties of each
166
+ * Appliance
167
+ * @param options The options parameters.
168
+ */
169
+ listBySubscription(options?: AppliancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Appliance>;
170
+ /**
171
+ * Gets a list of Appliances in the specified subscription and resource group. The operation returns
172
+ * properties of each Appliance.
173
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
174
+ * @param options The options parameters.
175
+ */
176
+ listByResourceGroup(resourceGroupName: string, options?: AppliancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Appliance>;
177
+ /**
178
+ * Gets the details of an Appliance with a specified resource group and name.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param resourceName Appliances name.
181
+ * @param options The options parameters.
182
+ */
183
+ get(resourceGroupName: string, resourceName: string, options?: AppliancesGetOptionalParams): Promise<AppliancesGetResponse>;
184
+ /**
185
+ * Creates or updates an Appliance in the specified Subscription and Resource Group.
186
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
187
+ * @param resourceName Appliances name.
188
+ * @param parameters Parameters supplied to create or update an Appliance.
189
+ * @param options The options parameters.
190
+ */
191
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
192
+ /**
193
+ * Creates or updates an Appliance in the specified Subscription and Resource Group.
194
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
195
+ * @param resourceName Appliances name.
196
+ * @param parameters Parameters supplied to create or update an Appliance.
197
+ * @param options The options parameters.
198
+ */
199
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<AppliancesCreateOrUpdateResponse>;
200
+ /**
201
+ * Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
202
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
203
+ * @param resourceName Appliances name.
204
+ * @param options The options parameters.
205
+ */
206
+ beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
207
+ /**
208
+ * Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
209
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
210
+ * @param resourceName Appliances name.
211
+ * @param options The options parameters.
212
+ */
213
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<void>;
214
+ /**
215
+ * Updates an Appliance with the specified Resource Name in the specified Resource Group and
216
+ * Subscription.
217
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
218
+ * @param resourceName Appliances name.
219
+ * @param options The options parameters.
220
+ */
221
+ update(resourceGroupName: string, resourceName: string, options?: AppliancesUpdateOptionalParams): Promise<AppliancesUpdateResponse>;
222
+ /**
223
+ * Returns the cluster customer user credentials for the dedicated appliance.
224
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
225
+ * @param resourceName Appliances name.
226
+ * @param options The options parameters.
227
+ */
228
+ listClusterCustomerUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterCustomerUserCredentialOptionalParams): Promise<AppliancesListClusterCustomerUserCredentialResponse>;
229
+ /**
230
+ * Returns the cluster user credentials for the dedicated appliance.
231
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
+ * @param resourceName Appliances name.
233
+ * @param options The options parameters.
234
+ */
235
+ listClusterUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterUserCredentialOptionalParams): Promise<AppliancesListClusterUserCredentialResponse>;
236
+ /**
237
+ * Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
238
+ * train.
239
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
240
+ * @param resourceName Appliances name.
241
+ * @param upgradeGraph Upgrade graph version, ex - stable
242
+ * @param options The options parameters.
243
+ */
244
+ getUpgradeGraph(resourceGroupName: string, resourceName: string, upgradeGraph: string, options?: AppliancesGetUpgradeGraphOptionalParams): Promise<AppliancesGetUpgradeGraphResponse>;
245
+ }
246
+
247
+ /** Optional parameters. */
248
+ export declare interface AppliancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
249
+ /** Delay to wait until next poll, in milliseconds. */
250
+ updateIntervalInMs?: number;
251
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
252
+ resumeFrom?: string;
253
+ }
254
+
255
+ /** Contains response data for the createOrUpdate operation. */
256
+ export declare type AppliancesCreateOrUpdateResponse = Appliance;
257
+
258
+ /** Optional parameters. */
259
+ export declare interface AppliancesDeleteOptionalParams extends coreClient.OperationOptions {
260
+ /** Delay to wait until next poll, in milliseconds. */
261
+ updateIntervalInMs?: number;
262
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
263
+ resumeFrom?: string;
264
+ }
265
+
266
+ /** Optional parameters. */
267
+ export declare interface AppliancesGetOptionalParams extends coreClient.OperationOptions {
268
+ }
269
+
270
+ /** Contains response data for the get operation. */
271
+ export declare type AppliancesGetResponse = Appliance;
272
+
273
+ /** Optional parameters. */
274
+ export declare interface AppliancesGetUpgradeGraphOptionalParams extends coreClient.OperationOptions {
275
+ }
276
+
277
+ /** Contains response data for the getUpgradeGraph operation. */
278
+ export declare type AppliancesGetUpgradeGraphResponse = UpgradeGraph;
279
+
280
+ /** Optional parameters. */
281
+ export declare interface AppliancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
282
+ }
283
+
284
+ /** Contains response data for the listByResourceGroupNext operation. */
285
+ export declare type AppliancesListByResourceGroupNextResponse = ApplianceListResult;
286
+
287
+ /** Optional parameters. */
288
+ export declare interface AppliancesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
289
+ }
290
+
291
+ /** Contains response data for the listByResourceGroup operation. */
292
+ export declare type AppliancesListByResourceGroupResponse = ApplianceListResult;
293
+
294
+ /** Optional parameters. */
295
+ export declare interface AppliancesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
296
+ }
297
+
298
+ /** Contains response data for the listBySubscriptionNext operation. */
299
+ export declare type AppliancesListBySubscriptionNextResponse = ApplianceListResult;
300
+
301
+ /** Optional parameters. */
302
+ export declare interface AppliancesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
303
+ }
304
+
305
+ /** Contains response data for the listBySubscription operation. */
306
+ export declare type AppliancesListBySubscriptionResponse = ApplianceListResult;
307
+
308
+ /** Optional parameters. */
309
+ export declare interface AppliancesListClusterCustomerUserCredentialOptionalParams extends coreClient.OperationOptions {
310
+ }
311
+
312
+ /** Contains response data for the listClusterCustomerUserCredential operation. */
313
+ export declare type AppliancesListClusterCustomerUserCredentialResponse = ApplianceListClusterCustomerUserCredentialResults;
314
+
315
+ /** Optional parameters. */
316
+ export declare interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
317
+ }
318
+
319
+ /** Contains response data for the listClusterUserCredential operation. */
320
+ export declare type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
321
+
322
+ /** Optional parameters. */
323
+ export declare interface AppliancesListOperationsNextOptionalParams extends coreClient.OperationOptions {
324
+ }
325
+
326
+ /** Contains response data for the listOperationsNext operation. */
327
+ export declare type AppliancesListOperationsNextResponse = ApplianceOperationsList;
328
+
329
+ /** Optional parameters. */
330
+ export declare interface AppliancesListOperationsOptionalParams extends coreClient.OperationOptions {
331
+ }
332
+
333
+ /** Contains response data for the listOperations operation. */
334
+ export declare type AppliancesListOperationsResponse = ApplianceOperationsList;
335
+
336
+ /** Optional parameters. */
337
+ export declare interface AppliancesUpdateOptionalParams extends coreClient.OperationOptions {
338
+ /** Resource tags */
339
+ tags?: {
340
+ [propertyName: string]: string;
341
+ };
342
+ }
343
+
344
+ /** Contains response data for the update operation. */
345
+ export declare type AppliancesUpdateResponse = Appliance;
346
+
347
+ /**
348
+ * Defines values for CreatedByType. \
349
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
350
+ * this enum contains the known values that the service supports.
351
+ * ### Known values supported by the service
352
+ * **User** \
353
+ * **Application** \
354
+ * **ManagedIdentity** \
355
+ * **Key**
356
+ */
357
+ export declare type CreatedByType = string;
358
+
359
+ /**
360
+ * Defines values for Distro. \
361
+ * {@link KnownDistro} can be used interchangeably with Distro,
362
+ * this enum contains the known values that the service supports.
363
+ * ### Known values supported by the service
364
+ * **AKSEdge**
365
+ */
366
+ export declare type Distro = string;
367
+
368
+ /** The resource management error additional info. */
369
+ export declare interface ErrorAdditionalInfo {
370
+ /**
371
+ * The additional info type.
372
+ * NOTE: This property will not be serialized. It can only be populated by the server.
373
+ */
374
+ readonly type?: string;
375
+ /**
376
+ * The additional info.
377
+ * NOTE: This property will not be serialized. It can only be populated by the server.
378
+ */
379
+ readonly info?: Record<string, unknown>;
380
+ }
381
+
382
+ /** The error detail. */
383
+ export declare interface ErrorDetail {
384
+ /**
385
+ * The error code.
386
+ * NOTE: This property will not be serialized. It can only be populated by the server.
387
+ */
388
+ readonly code?: string;
389
+ /**
390
+ * The error message.
391
+ * NOTE: This property will not be serialized. It can only be populated by the server.
392
+ */
393
+ readonly message?: string;
394
+ /**
395
+ * The error target.
396
+ * NOTE: This property will not be serialized. It can only be populated by the server.
397
+ */
398
+ readonly target?: string;
399
+ /**
400
+ * The error details.
401
+ * NOTE: This property will not be serialized. It can only be populated by the server.
402
+ */
403
+ readonly details?: ErrorDetail[];
404
+ /**
405
+ * The error additional info.
406
+ * NOTE: This property will not be serialized. It can only be populated by the server.
407
+ */
408
+ readonly additionalInfo?: ErrorAdditionalInfo[];
409
+ }
410
+
411
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
412
+ export declare interface ErrorResponse {
413
+ /** The error object. */
414
+ error?: ErrorDetail;
415
+ }
416
+
417
+ /** Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). */
418
+ export declare interface HybridConnectionConfig {
419
+ /**
420
+ * Timestamp when this token will be expired.
421
+ * NOTE: This property will not be serialized. It can only be populated by the server.
422
+ */
423
+ readonly expirationTime?: number;
424
+ /**
425
+ * Name of the connection
426
+ * NOTE: This property will not be serialized. It can only be populated by the server.
427
+ */
428
+ readonly hybridConnectionName?: string;
429
+ /**
430
+ * Name of the notification service.
431
+ * NOTE: This property will not be serialized. It can only be populated by the server.
432
+ */
433
+ readonly relay?: string;
434
+ /**
435
+ * Listener access token
436
+ * NOTE: This property will not be serialized. It can only be populated by the server.
437
+ */
438
+ readonly token?: string;
439
+ }
440
+
441
+ /** Identity for the resource. */
442
+ export declare interface Identity {
443
+ /**
444
+ * The principal ID of resource identity.
445
+ * NOTE: This property will not be serialized. It can only be populated by the server.
446
+ */
447
+ readonly principalId?: string;
448
+ /**
449
+ * The tenant ID of resource.
450
+ * NOTE: This property will not be serialized. It can only be populated by the server.
451
+ */
452
+ readonly tenantId?: string;
453
+ /** The identity type. */
454
+ type?: ResourceIdentityType;
455
+ }
456
+
457
+ /** Known values of {@link AccessProfileType} that the service accepts. */
458
+ export declare enum KnownAccessProfileType {
459
+ /** ClusterUser */
460
+ ClusterUser = "clusterUser",
461
+ /** ClusterCustomerUser */
462
+ ClusterCustomerUser = "clusterCustomerUser"
463
+ }
464
+
465
+ /** Known values of {@link CreatedByType} that the service accepts. */
466
+ export declare enum KnownCreatedByType {
467
+ /** User */
468
+ User = "User",
469
+ /** Application */
470
+ Application = "Application",
471
+ /** ManagedIdentity */
472
+ ManagedIdentity = "ManagedIdentity",
473
+ /** Key */
474
+ Key = "Key"
475
+ }
476
+
477
+ /** Known values of {@link Distro} that the service accepts. */
478
+ export declare enum KnownDistro {
479
+ /** AKSEdge */
480
+ AKSEdge = "AKSEdge"
481
+ }
482
+
483
+ /** Known values of {@link Provider} that the service accepts. */
484
+ export declare enum KnownProvider {
485
+ /** VMWare */
486
+ VMWare = "VMWare",
487
+ /** HCI */
488
+ HCI = "HCI",
489
+ /** Scvmm */
490
+ Scvmm = "SCVMM",
491
+ /** KubeVirt */
492
+ KubeVirt = "KubeVirt",
493
+ /** OpenStack */
494
+ OpenStack = "OpenStack"
495
+ }
496
+
497
+ /** Known values of {@link ResourceIdentityType} that the service accepts. */
498
+ export declare enum KnownResourceIdentityType {
499
+ /** SystemAssigned */
500
+ SystemAssigned = "SystemAssigned",
501
+ /** None */
502
+ None = "None"
503
+ }
504
+
505
+ /** Known values of {@link SSHKeyType} that the service accepts. */
506
+ export declare enum KnownSSHKeyType {
507
+ /** SSHCustomerUser */
508
+ SSHCustomerUser = "SSHCustomerUser"
509
+ }
510
+
511
+ /** Known values of {@link Status} that the service accepts. */
512
+ export declare enum KnownStatus {
513
+ /** WaitingForHeartbeat */
514
+ WaitingForHeartbeat = "WaitingForHeartbeat",
515
+ /** Validating */
516
+ Validating = "Validating",
517
+ /** Connecting */
518
+ Connecting = "Connecting",
519
+ /** Connected */
520
+ Connected = "Connected",
521
+ /** Running */
522
+ Running = "Running",
523
+ /** PreparingForUpgrade */
524
+ PreparingForUpgrade = "PreparingForUpgrade",
525
+ /** UpgradePrerequisitesCompleted */
526
+ UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted",
527
+ /** PreUpgrade */
528
+ PreUpgrade = "PreUpgrade",
529
+ /** UpdatingCloudOperator */
530
+ UpdatingCloudOperator = "UpdatingCloudOperator",
531
+ /** WaitingForCloudOperator */
532
+ WaitingForCloudOperator = "WaitingForCloudOperator",
533
+ /** UpdatingCapi */
534
+ UpdatingCapi = "UpdatingCAPI",
535
+ /** UpdatingCluster */
536
+ UpdatingCluster = "UpdatingCluster",
537
+ /** PostUpgrade */
538
+ PostUpgrade = "PostUpgrade",
539
+ /** UpgradeComplete */
540
+ UpgradeComplete = "UpgradeComplete",
541
+ /** UpgradeClusterExtensionFailedToDelete */
542
+ UpgradeClusterExtensionFailedToDelete = "UpgradeClusterExtensionFailedToDelete",
543
+ /** UpgradeFailed */
544
+ UpgradeFailed = "UpgradeFailed",
545
+ /** Offline */
546
+ Offline = "Offline",
547
+ /** None */
548
+ None = "None"
549
+ }
550
+
551
+ /** The Appliances patchable resource definition. */
552
+ export declare interface PatchableAppliance {
553
+ /** Resource tags */
554
+ tags?: {
555
+ [propertyName: string]: string;
556
+ };
557
+ }
558
+
559
+ /**
560
+ * Defines values for Provider. \
561
+ * {@link KnownProvider} can be used interchangeably with Provider,
562
+ * this enum contains the known values that the service supports.
563
+ * ### Known values supported by the service
564
+ * **VMWare** \
565
+ * **HCI** \
566
+ * **SCVMM** \
567
+ * **KubeVirt** \
568
+ * **OpenStack**
569
+ */
570
+ export declare type Provider = string;
571
+
572
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
573
+ export declare interface Resource {
574
+ /**
575
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
576
+ * NOTE: This property will not be serialized. It can only be populated by the server.
577
+ */
578
+ readonly id?: string;
579
+ /**
580
+ * The name of the resource
581
+ * NOTE: This property will not be serialized. It can only be populated by the server.
582
+ */
583
+ readonly name?: string;
584
+ /**
585
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
586
+ * NOTE: This property will not be serialized. It can only be populated by the server.
587
+ */
588
+ readonly type?: string;
589
+ }
590
+
591
+ export declare class ResourceConnectorManagementClient extends coreClient.ServiceClient {
592
+ $host: string;
593
+ apiVersion: string;
594
+ subscriptionId: string;
595
+ /**
596
+ * Initializes a new instance of the ResourceConnectorManagementClient class.
597
+ * @param credentials Subscription credentials which uniquely identify client subscription.
598
+ * @param subscriptionId The ID of the target subscription.
599
+ * @param options The parameter options
600
+ */
601
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ResourceConnectorManagementClientOptionalParams);
602
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
603
+ private addCustomApiVersionPolicy;
604
+ appliances: Appliances;
605
+ }
606
+
607
+ /** Optional parameters. */
608
+ export declare interface ResourceConnectorManagementClientOptionalParams extends coreClient.ServiceClientOptions {
609
+ /** server parameter */
610
+ $host?: string;
611
+ /** Api Version */
612
+ apiVersion?: string;
613
+ /** Overrides client endpoint. */
614
+ endpoint?: string;
615
+ }
616
+
617
+ /**
618
+ * Defines values for ResourceIdentityType. \
619
+ * {@link KnownResourceIdentityType} can be used interchangeably with ResourceIdentityType,
620
+ * this enum contains the known values that the service supports.
621
+ * ### Known values supported by the service
622
+ * **SystemAssigned** \
623
+ * **None**
624
+ */
625
+ export declare type ResourceIdentityType = string;
626
+
627
+ /** Appliance SSHKey definition. */
628
+ export declare interface SSHKey {
629
+ /** User Private Key. */
630
+ privateKey?: string;
631
+ /** User Public Key. */
632
+ publicKey?: string;
633
+ }
634
+
635
+ /**
636
+ * Defines values for SSHKeyType. \
637
+ * {@link KnownSSHKeyType} can be used interchangeably with SSHKeyType,
638
+ * this enum contains the known values that the service supports.
639
+ * ### Known values supported by the service
640
+ * **SSHCustomerUser**
641
+ */
642
+ export declare type SSHKeyType = string;
643
+
644
+ /**
645
+ * Defines values for Status. \
646
+ * {@link KnownStatus} can be used interchangeably with Status,
647
+ * this enum contains the known values that the service supports.
648
+ * ### Known values supported by the service
649
+ * **WaitingForHeartbeat** \
650
+ * **Validating** \
651
+ * **Connecting** \
652
+ * **Connected** \
653
+ * **Running** \
654
+ * **PreparingForUpgrade** \
655
+ * **UpgradePrerequisitesCompleted** \
656
+ * **PreUpgrade** \
657
+ * **UpdatingCloudOperator** \
658
+ * **WaitingForCloudOperator** \
659
+ * **UpdatingCAPI** \
660
+ * **UpdatingCluster** \
661
+ * **PostUpgrade** \
662
+ * **UpgradeComplete** \
663
+ * **UpgradeClusterExtensionFailedToDelete** \
664
+ * **UpgradeFailed** \
665
+ * **Offline** \
666
+ * **None**
667
+ */
668
+ export declare type Status = string;
669
+
670
+ /** The SupportedVersion object for appliance. */
671
+ export declare interface SupportedVersion {
672
+ /**
673
+ * This is the metadata of the supported newer version.
674
+ * NOTE: This property will not be serialized. It can only be populated by the server.
675
+ */
676
+ readonly metadata?: SupportedVersionMetadata;
677
+ /**
678
+ * The newer version available for upgrade.
679
+ * NOTE: This property will not be serialized. It can only be populated by the server.
680
+ */
681
+ readonly version?: string;
682
+ }
683
+
684
+ /** The SupportedVersionCatalogVersion object for appliance. */
685
+ export declare interface SupportedVersionCatalogVersion {
686
+ /**
687
+ * The newer supported version catalog version data.
688
+ * NOTE: This property will not be serialized. It can only be populated by the server.
689
+ */
690
+ readonly data?: SupportedVersionCatalogVersionData;
691
+ /**
692
+ * The catalog version name for the version available for upgrade.
693
+ * NOTE: This property will not be serialized. It can only be populated by the server.
694
+ */
695
+ readonly name?: string;
696
+ /**
697
+ * The catalog version namespace for the version available for upgrade.
698
+ * NOTE: This property will not be serialized. It can only be populated by the server.
699
+ */
700
+ readonly namespace?: string;
701
+ }
702
+
703
+ /** The SupportedVersionCatalogVersionData object for appliance. */
704
+ export declare interface SupportedVersionCatalogVersionData {
705
+ /**
706
+ * The image audience name for the version available for upgrade.
707
+ * NOTE: This property will not be serialized. It can only be populated by the server.
708
+ */
709
+ readonly audience?: string;
710
+ /**
711
+ * The image catalog name for the version available for upgrade.
712
+ * NOTE: This property will not be serialized. It can only be populated by the server.
713
+ */
714
+ readonly catalog?: string;
715
+ /**
716
+ * The image offer name for the version available for upgrade.
717
+ * NOTE: This property will not be serialized. It can only be populated by the server.
718
+ */
719
+ readonly offer?: string;
720
+ /**
721
+ * The image version for the version available for upgrade.
722
+ * NOTE: This property will not be serialized. It can only be populated by the server.
723
+ */
724
+ readonly version?: string;
725
+ }
726
+
727
+ /** The SupportedVersionMetadata object for appliance. */
728
+ export declare interface SupportedVersionMetadata {
729
+ /**
730
+ * The newer supported version catalog version.
731
+ * NOTE: This property will not be serialized. It can only be populated by the server.
732
+ */
733
+ readonly catalogVersion?: SupportedVersionCatalogVersion;
734
+ }
735
+
736
+ /** Metadata pertaining to creation and last modification of the resource. */
737
+ export declare interface SystemData {
738
+ /** The identity that created the resource. */
739
+ createdBy?: string;
740
+ /** The type of identity that created the resource. */
741
+ createdByType?: CreatedByType;
742
+ /** The timestamp of resource creation (UTC). */
743
+ createdAt?: Date;
744
+ /** The identity that last modified the resource. */
745
+ lastModifiedBy?: string;
746
+ /** The type of identity that last modified the resource. */
747
+ lastModifiedByType?: CreatedByType;
748
+ /** The timestamp of resource last modification (UTC) */
749
+ lastModifiedAt?: Date;
750
+ }
751
+
752
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
753
+ export declare interface TrackedResource extends Resource {
754
+ /** Resource tags. */
755
+ tags?: {
756
+ [propertyName: string]: string;
757
+ };
758
+ /** The geo-location where the resource lives */
759
+ location: string;
760
+ }
761
+
762
+ /** The Upgrade Graph for appliance. */
763
+ export declare interface UpgradeGraph {
764
+ /**
765
+ * The appliance resource path
766
+ * NOTE: This property will not be serialized. It can only be populated by the server.
767
+ */
768
+ readonly id?: string;
769
+ /**
770
+ * The release train name.
771
+ * NOTE: This property will not be serialized. It can only be populated by the server.
772
+ */
773
+ readonly name?: string;
774
+ /** The properties of supported version */
775
+ properties?: UpgradeGraphProperties;
776
+ }
777
+
778
+ /** The Upgrade Graph Properties for appliance. */
779
+ export declare interface UpgradeGraphProperties {
780
+ /**
781
+ * The current appliance version
782
+ * NOTE: This property will not be serialized. It can only be populated by the server.
783
+ */
784
+ readonly applianceVersion?: string;
785
+ /**
786
+ * This contains the current version and supported upgrade versions.
787
+ * NOTE: This property will not be serialized. It can only be populated by the server.
788
+ */
789
+ readonly supportedVersions?: SupportedVersion[];
790
+ }
791
+
792
+ export { }