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