@azure/arm-resourceconnector 1.0.0-beta.2 → 1.0.0-beta.3

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 (70) hide show
  1. package/CHANGELOG.md +2 -12
  2. package/README.md +1 -1
  3. package/dist/index.js +264 -126
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +1 -1
  8. package/dist-esm/samples-dev/appliancesDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/appliancesGetSample.js +1 -1
  10. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +37 -0
  13. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +1 -0
  14. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +1 -1
  15. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +13 -6
  16. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +1 -1
  17. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +13 -6
  18. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +1 -1
  19. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +1 -1
  20. package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/{appliancesListClusterCustomerUserCredentialSample.js → appliancesListKeysSample.js} +7 -7
  23. package/dist-esm/samples-dev/appliancesListKeysSample.js.map +1 -0
  24. package/dist-esm/samples-dev/appliancesListOperationsSample.js +13 -6
  25. package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +1 -1
  26. package/dist-esm/samples-dev/appliancesUpdateSample.js +1 -1
  27. package/dist-esm/src/lroImpl.d.ts +6 -11
  28. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  29. package/dist-esm/src/lroImpl.js +12 -20
  30. package/dist-esm/src/lroImpl.js.map +1 -1
  31. package/dist-esm/src/models/index.d.ts +170 -72
  32. package/dist-esm/src/models/index.d.ts.map +1 -1
  33. package/dist-esm/src/models/index.js +30 -0
  34. package/dist-esm/src/models/index.js.map +1 -1
  35. package/dist-esm/src/models/mappers.d.ts +6 -4
  36. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  37. package/dist-esm/src/models/mappers.js +125 -63
  38. package/dist-esm/src/models/mappers.js.map +1 -1
  39. package/dist-esm/src/models/parameters.js +1 -1
  40. package/dist-esm/src/models/parameters.js.map +1 -1
  41. package/dist-esm/src/operations/appliances.d.ts +13 -8
  42. package/dist-esm/src/operations/appliances.d.ts.map +1 -1
  43. package/dist-esm/src/operations/appliances.js +91 -39
  44. package/dist-esm/src/operations/appliances.js.map +1 -1
  45. package/dist-esm/src/operationsInterfaces/appliances.d.ts +13 -8
  46. package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +1 -1
  47. package/dist-esm/src/resourceConnectorManagementClient.js +2 -2
  48. package/dist-esm/src/resourceConnectorManagementClient.js.map +1 -1
  49. package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts +4 -0
  50. package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts.map +1 -0
  51. package/dist-esm/test/resourceconnnector__operations_test.spec.js +123 -0
  52. package/dist-esm/test/resourceconnnector__operations_test.spec.js.map +1 -0
  53. package/package.json +11 -11
  54. package/review/arm-resourceconnector.api.md +62 -18
  55. package/src/lroImpl.ts +31 -23
  56. package/src/models/index.ts +156 -54
  57. package/src/models/mappers.ts +127 -64
  58. package/src/models/parameters.ts +1 -1
  59. package/src/operations/appliances.ts +80 -41
  60. package/src/operationsInterfaces/appliances.ts +23 -14
  61. package/src/resourceConnectorManagementClient.ts +2 -2
  62. package/types/arm-resourceconnector.d.ts +146 -37
  63. package/types/tsdoc-metadata.json +1 -1
  64. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts +0 -2
  65. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts.map +0 -1
  66. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js.map +0 -1
  67. package/dist-esm/test/sampleTest.d.ts +0 -2
  68. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  69. package/dist-esm/test/sampleTest.js +0 -38
  70. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -6,9 +6,9 @@
6
6
 
7
7
  import * as coreAuth from '@azure/core-auth';
8
8
  import * as coreClient from '@azure/core-client';
9
+ import { OperationState } from '@azure/core-lro';
9
10
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
- import { PollerLike } from '@azure/core-lro';
11
- import { PollOperationState } from '@azure/core-lro';
11
+ import { SimplePollerLike } from '@azure/core-lro';
12
12
 
13
13
  // @public
14
14
  export type AccessProfileType = string;
@@ -21,7 +21,6 @@ export interface Appliance extends TrackedResource {
21
21
  readonly provisioningState?: string;
22
22
  publicKey?: string;
23
23
  readonly status?: Status;
24
- readonly systemData?: SystemData;
25
24
  version?: string;
26
25
  }
27
26
 
@@ -32,11 +31,8 @@ export interface ApplianceCredentialKubeconfig {
32
31
  }
33
32
 
34
33
  // @public
35
- export interface ApplianceListClusterCustomerUserCredentialResults {
36
- readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
37
- readonly sshKeys?: {
38
- [propertyName: string]: SSHKey;
39
- };
34
+ export interface ApplianceGetTelemetryConfigResult {
35
+ readonly telemetryInstrumentationKey?: string;
40
36
  }
41
37
 
42
38
  // @public
@@ -45,6 +41,17 @@ export interface ApplianceListCredentialResults {
45
41
  readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
46
42
  }
47
43
 
44
+ // @public
45
+ export interface ApplianceListKeysResults {
46
+ readonly artifactProfiles?: {
47
+ [propertyName: string]: ArtifactProfile;
48
+ };
49
+ readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
50
+ readonly sshKeys?: {
51
+ [propertyName: string]: SSHKey;
52
+ };
53
+ }
54
+
48
55
  // @public
49
56
  export interface ApplianceListResult {
50
57
  readonly nextLink?: string;
@@ -75,16 +82,17 @@ export interface AppliancePropertiesInfrastructureConfig {
75
82
 
76
83
  // @public
77
84
  export interface Appliances {
78
- beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
85
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
79
86
  beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<AppliancesCreateOrUpdateResponse>;
80
- beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
87
+ beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
81
88
  beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<void>;
82
89
  get(resourceGroupName: string, resourceName: string, options?: AppliancesGetOptionalParams): Promise<AppliancesGetResponse>;
90
+ getTelemetryConfig(options?: AppliancesGetTelemetryConfigOptionalParams): Promise<AppliancesGetTelemetryConfigResponse>;
83
91
  getUpgradeGraph(resourceGroupName: string, resourceName: string, upgradeGraph: string, options?: AppliancesGetUpgradeGraphOptionalParams): Promise<AppliancesGetUpgradeGraphResponse>;
84
92
  listByResourceGroup(resourceGroupName: string, options?: AppliancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Appliance>;
85
93
  listBySubscription(options?: AppliancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Appliance>;
86
- listClusterCustomerUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterCustomerUserCredentialOptionalParams): Promise<AppliancesListClusterCustomerUserCredentialResponse>;
87
94
  listClusterUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterUserCredentialOptionalParams): Promise<AppliancesListClusterUserCredentialResponse>;
95
+ listKeys(resourceGroupName: string, resourceName: string, options?: AppliancesListKeysOptionalParams): Promise<AppliancesListKeysResponse>;
88
96
  listOperations(options?: AppliancesListOperationsOptionalParams): PagedAsyncIterableIterator<ApplianceOperation>;
89
97
  update(resourceGroupName: string, resourceName: string, options?: AppliancesUpdateOptionalParams): Promise<AppliancesUpdateResponse>;
90
98
  }
@@ -111,6 +119,13 @@ export interface AppliancesGetOptionalParams extends coreClient.OperationOptions
111
119
  // @public
112
120
  export type AppliancesGetResponse = Appliance;
113
121
 
122
+ // @public
123
+ export interface AppliancesGetTelemetryConfigOptionalParams extends coreClient.OperationOptions {
124
+ }
125
+
126
+ // @public
127
+ export type AppliancesGetTelemetryConfigResponse = ApplianceGetTelemetryConfigResult;
128
+
114
129
  // @public
115
130
  export interface AppliancesGetUpgradeGraphOptionalParams extends coreClient.OperationOptions {
116
131
  }
@@ -147,18 +162,18 @@ export interface AppliancesListBySubscriptionOptionalParams extends coreClient.O
147
162
  export type AppliancesListBySubscriptionResponse = ApplianceListResult;
148
163
 
149
164
  // @public
150
- export interface AppliancesListClusterCustomerUserCredentialOptionalParams extends coreClient.OperationOptions {
165
+ export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
151
166
  }
152
167
 
153
168
  // @public
154
- export type AppliancesListClusterCustomerUserCredentialResponse = ApplianceListClusterCustomerUserCredentialResults;
169
+ export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
155
170
 
156
171
  // @public
157
- export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
172
+ export interface AppliancesListKeysOptionalParams extends coreClient.OperationOptions {
158
173
  }
159
174
 
160
175
  // @public
161
- export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
176
+ export type AppliancesListKeysResponse = ApplianceListKeysResults;
162
177
 
163
178
  // @public
164
179
  export interface AppliancesListOperationsNextOptionalParams extends coreClient.OperationOptions {
@@ -184,6 +199,14 @@ export interface AppliancesUpdateOptionalParams extends coreClient.OperationOpti
184
199
  // @public
185
200
  export type AppliancesUpdateResponse = Appliance;
186
201
 
202
+ // @public
203
+ export interface ArtifactProfile {
204
+ readonly endpoint?: string;
205
+ }
206
+
207
+ // @public
208
+ export type ArtifactType = string;
209
+
187
210
  // @public
188
211
  export type CreatedByType = string;
189
212
 
@@ -234,6 +257,11 @@ export enum KnownAccessProfileType {
234
257
  ClusterUser = "clusterUser"
235
258
  }
236
259
 
260
+ // @public
261
+ export enum KnownArtifactType {
262
+ LogsArtifactType = "LogsArtifactType"
263
+ }
264
+
237
265
  // @public
238
266
  export enum KnownCreatedByType {
239
267
  Application = "Application",
@@ -264,6 +292,9 @@ export enum KnownResourceIdentityType {
264
292
 
265
293
  // @public
266
294
  export enum KnownSSHKeyType {
295
+ LogsKey = "LogsKey",
296
+ ManagementCAKey = "ManagementCAKey",
297
+ ScopedAccessKey = "ScopedAccessKey",
267
298
  SSHCustomerUser = "SSHCustomerUser"
268
299
  }
269
300
 
@@ -271,6 +302,13 @@ export enum KnownSSHKeyType {
271
302
  export enum KnownStatus {
272
303
  Connected = "Connected",
273
304
  Connecting = "Connecting",
305
+ ImageDeprovisioning = "ImageDeprovisioning",
306
+ ImageDownloaded = "ImageDownloaded",
307
+ ImageDownloading = "ImageDownloading",
308
+ ImagePending = "ImagePending",
309
+ ImageProvisioned = "ImageProvisioned",
310
+ ImageProvisioning = "ImageProvisioning",
311
+ ImageUnknown = "ImageUnknown",
274
312
  None = "None",
275
313
  Offline = "Offline",
276
314
  PostUpgrade = "PostUpgrade",
@@ -284,9 +322,11 @@ export enum KnownStatus {
284
322
  UpgradeComplete = "UpgradeComplete",
285
323
  UpgradeFailed = "UpgradeFailed",
286
324
  UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted",
325
+ UpgradingKvaio = "UpgradingKVAIO",
287
326
  Validating = "Validating",
288
327
  WaitingForCloudOperator = "WaitingForCloudOperator",
289
- WaitingForHeartbeat = "WaitingForHeartbeat"
328
+ WaitingForHeartbeat = "WaitingForHeartbeat",
329
+ WaitingForKvaio = "WaitingForKVAIO"
290
330
  }
291
331
 
292
332
  // @public
@@ -303,6 +343,7 @@ export type Provider = string;
303
343
  export interface Resource {
304
344
  readonly id?: string;
305
345
  readonly name?: string;
346
+ readonly systemData?: SystemData;
306
347
  readonly type?: string;
307
348
  }
308
349
 
@@ -331,8 +372,11 @@ export type ResourceIdentityType = string;
331
372
 
332
373
  // @public
333
374
  export interface SSHKey {
334
- privateKey?: string;
335
- publicKey?: string;
375
+ readonly certificate?: string;
376
+ readonly creationTimeStamp?: number;
377
+ readonly expirationTimeStamp?: number;
378
+ readonly privateKey?: string;
379
+ readonly publicKey?: string;
336
380
  }
337
381
 
338
382
  // @public
package/src/lroImpl.ts CHANGED
@@ -6,29 +6,37 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT license.
11
+
12
+ import { AbortSignalLike } from "@azure/abort-controller";
9
13
  import { LongRunningOperation, LroResponse } from "@azure/core-lro";
10
14
 
11
- export class LroImpl<T> implements LongRunningOperation<T> {
12
- constructor(
13
- private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
14
- private args: Record<string, unknown>,
15
- private spec: {
16
- readonly requestBody?: unknown;
17
- readonly path?: string;
18
- readonly httpMethod: string;
19
- } & Record<string, any>,
20
- public requestPath: string = spec.path!,
21
- public requestMethod: string = spec.httpMethod
22
- ) {}
23
- public async sendInitialRequest(): Promise<LroResponse<T>> {
24
- return this.sendOperationFn(this.args, this.spec);
25
- }
26
- public async sendPollRequest(path: string): Promise<LroResponse<T>> {
27
- const { requestBody, ...restSpec } = this.spec;
28
- return this.sendOperationFn(this.args, {
29
- ...restSpec,
30
- path,
31
- httpMethod: "GET"
32
- });
33
- }
15
+ export function createLroSpec<T>(inputs: {
16
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
17
+ args: Record<string, unknown>;
18
+ spec: {
19
+ readonly requestBody?: unknown;
20
+ readonly path?: string;
21
+ readonly httpMethod: string;
22
+ } & Record<string, any>;
23
+ }): LongRunningOperation<T> {
24
+ const { args, spec, sendOperationFn } = inputs;
25
+ return {
26
+ requestMethod: spec.httpMethod,
27
+ requestPath: spec.path!,
28
+ sendInitialRequest: () => sendOperationFn(args, spec),
29
+ sendPollRequest: (
30
+ path: string,
31
+ options?: { abortSignal?: AbortSignalLike }
32
+ ) => {
33
+ const { requestBody, ...restSpec } = spec;
34
+ return sendOperationFn(args, {
35
+ ...restSpec,
36
+ httpMethod: "GET",
37
+ path,
38
+ abortSignal: options?.abortSignal
39
+ });
40
+ }
41
+ };
34
42
  }
@@ -140,6 +140,30 @@ export interface AppliancePropertiesInfrastructureConfig {
140
140
  provider?: Provider;
141
141
  }
142
142
 
143
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
144
+ export interface Resource {
145
+ /**
146
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
147
+ * NOTE: This property will not be serialized. It can only be populated by the server.
148
+ */
149
+ readonly id?: string;
150
+ /**
151
+ * The name of the resource
152
+ * NOTE: This property will not be serialized. It can only be populated by the server.
153
+ */
154
+ readonly name?: string;
155
+ /**
156
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
157
+ * NOTE: This property will not be serialized. It can only be populated by the server.
158
+ */
159
+ readonly type?: string;
160
+ /**
161
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
162
+ * NOTE: This property will not be serialized. It can only be populated by the server.
163
+ */
164
+ readonly systemData?: SystemData;
165
+ }
166
+
143
167
  /** Metadata pertaining to creation and last modification of the resource. */
144
168
  export interface SystemData {
145
169
  /** The identity that created the resource. */
@@ -156,23 +180,13 @@ export interface SystemData {
156
180
  lastModifiedAt?: Date;
157
181
  }
158
182
 
159
- /** Common fields that are returned in the response for all Azure Resource Manager resources */
160
- export interface Resource {
161
- /**
162
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
163
- * NOTE: This property will not be serialized. It can only be populated by the server.
164
- */
165
- readonly id?: string;
183
+ /** The Get Telemetry Config Result appliance. */
184
+ export interface ApplianceGetTelemetryConfigResult {
166
185
  /**
167
- * The name of the resource
168
- * NOTE: This property will not be serialized. It can only be populated by the server.
169
- */
170
- readonly name?: string;
171
- /**
172
- * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
186
+ * Telemetry instrumentation key.
173
187
  * NOTE: This property will not be serialized. It can only be populated by the server.
174
188
  */
175
- readonly type?: string;
189
+ readonly telemetryInstrumentationKey?: string;
176
190
  }
177
191
 
178
192
  /** The Appliances patchable resource definition. */
@@ -181,18 +195,42 @@ export interface PatchableAppliance {
181
195
  tags?: { [propertyName: string]: string };
182
196
  }
183
197
 
184
- /** The List Cluster Customer User Credential Results appliance. */
185
- export interface ApplianceListClusterCustomerUserCredentialResults {
198
+ /** The List Cluster User Credential appliance. */
199
+ export interface ApplianceListCredentialResults {
200
+ /**
201
+ * Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS).
202
+ * NOTE: This property will not be serialized. It can only be populated by the server.
203
+ */
204
+ readonly hybridConnectionConfig?: HybridConnectionConfig;
186
205
  /**
187
206
  * The list of appliance kubeconfigs.
188
207
  * NOTE: This property will not be serialized. It can only be populated by the server.
189
208
  */
190
209
  readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
210
+ }
211
+
212
+ /** Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). */
213
+ export interface HybridConnectionConfig {
191
214
  /**
192
- * Map of Customer User Public and Private SSH Keys
215
+ * Timestamp when this token will be expired.
193
216
  * NOTE: This property will not be serialized. It can only be populated by the server.
194
217
  */
195
- readonly sshKeys?: { [propertyName: string]: SSHKey };
218
+ readonly expirationTime?: number;
219
+ /**
220
+ * Name of the connection
221
+ * NOTE: This property will not be serialized. It can only be populated by the server.
222
+ */
223
+ readonly hybridConnectionName?: string;
224
+ /**
225
+ * Name of the notification service.
226
+ * NOTE: This property will not be serialized. It can only be populated by the server.
227
+ */
228
+ readonly relay?: string;
229
+ /**
230
+ * Listener access token
231
+ * NOTE: This property will not be serialized. It can only be populated by the server.
232
+ */
233
+ readonly token?: string;
196
234
  }
197
235
 
198
236
  /** Cluster User Credential appliance. */
@@ -209,50 +247,61 @@ export interface ApplianceCredentialKubeconfig {
209
247
  readonly value?: string;
210
248
  }
211
249
 
212
- /** Appliance SSHKey definition. */
213
- export interface SSHKey {
214
- /** User Private Key. */
215
- privateKey?: string;
216
- /** User Public Key. */
217
- publicKey?: string;
218
- }
219
-
220
- /** The List Cluster User Credential appliance. */
221
- export interface ApplianceListCredentialResults {
250
+ /** The List Cluster Keys Results appliance. */
251
+ export interface ApplianceListKeysResults {
222
252
  /**
223
- * Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS).
253
+ * Map of artifacts that contains a list of ArtifactProfile used to upload artifacts such as logs.
224
254
  * NOTE: This property will not be serialized. It can only be populated by the server.
225
255
  */
226
- readonly hybridConnectionConfig?: HybridConnectionConfig;
256
+ readonly artifactProfiles?: { [propertyName: string]: ArtifactProfile };
227
257
  /**
228
258
  * The list of appliance kubeconfigs.
229
259
  * NOTE: This property will not be serialized. It can only be populated by the server.
230
260
  */
231
261
  readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
262
+ /**
263
+ * Map of Customer User Public, Private SSH Keys and Certificate when available.
264
+ * NOTE: This property will not be serialized. It can only be populated by the server.
265
+ */
266
+ readonly sshKeys?: { [propertyName: string]: SSHKey };
232
267
  }
233
268
 
234
- /** Contains the REP (rendezvous endpoint) and “Listener” access token from notification service (NS). */
235
- export interface HybridConnectionConfig {
269
+ /** Appliance ArtifactProfile definition. */
270
+ export interface ArtifactProfile {
236
271
  /**
237
- * Timestamp when this token will be expired.
272
+ * Endpoint is the URL to upload artifacts to.
238
273
  * NOTE: This property will not be serialized. It can only be populated by the server.
239
274
  */
240
- readonly expirationTime?: number;
275
+ readonly endpoint?: string;
276
+ }
277
+
278
+ /** Appliance SSHKey definition. */
279
+ export interface SSHKey {
241
280
  /**
242
- * Name of the connection
281
+ * Certificate associated with the public key if the key is signed.
243
282
  * NOTE: This property will not be serialized. It can only be populated by the server.
244
283
  */
245
- readonly hybridConnectionName?: string;
284
+ readonly certificate?: string;
246
285
  /**
247
- * Name of the notification service.
286
+ * Certificate creation timestamp (Unix).
248
287
  * NOTE: This property will not be serialized. It can only be populated by the server.
249
288
  */
250
- readonly relay?: string;
289
+ readonly creationTimeStamp?: number;
251
290
  /**
252
- * Listener access token
291
+ * Certificate expiration timestamp (Unix).
253
292
  * NOTE: This property will not be serialized. It can only be populated by the server.
254
293
  */
255
- readonly token?: string;
294
+ readonly expirationTimeStamp?: number;
295
+ /**
296
+ * Private Key.
297
+ * NOTE: This property will not be serialized. It can only be populated by the server.
298
+ */
299
+ readonly privateKey?: string;
300
+ /**
301
+ * Public Key.
302
+ * NOTE: This property will not be serialized. It can only be populated by the server.
303
+ */
304
+ readonly publicKey?: string;
256
305
  }
257
306
 
258
307
  /** The Upgrade Graph for appliance. */
@@ -363,11 +412,6 @@ export interface TrackedResource extends Resource {
363
412
  export interface Appliance extends TrackedResource {
364
413
  /** Identity for the resource. */
365
414
  identity?: Identity;
366
- /**
367
- * Metadata pertaining to creation and last modification of the resource
368
- * NOTE: This property will not be serialized. It can only be populated by the server.
369
- */
370
- readonly systemData?: SystemData;
371
415
  /** Represents a supported Fabric/Infra. (AKSEdge etc...). */
372
416
  distro?: Distro;
373
417
  /** Contains infrastructure information about the Appliance */
@@ -377,7 +421,7 @@ export interface Appliance extends TrackedResource {
377
421
  * NOTE: This property will not be serialized. It can only be populated by the server.
378
422
  */
379
423
  readonly provisioningState?: string;
380
- /** Certificates pair used to download MSI certificate from HIS */
424
+ /** Certificates pair used to download MSI certificate from HIS. Can only be set once. */
381
425
  publicKey?: string;
382
426
  /**
383
427
  * Appliance’s health and state of connection to on-prem
@@ -466,6 +510,24 @@ export enum KnownStatus {
466
510
  UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted",
467
511
  /** PreUpgrade */
468
512
  PreUpgrade = "PreUpgrade",
513
+ /** UpgradingKvaio */
514
+ UpgradingKvaio = "UpgradingKVAIO",
515
+ /** WaitingForKvaio */
516
+ WaitingForKvaio = "WaitingForKVAIO",
517
+ /** ImagePending */
518
+ ImagePending = "ImagePending",
519
+ /** ImageProvisioning */
520
+ ImageProvisioning = "ImageProvisioning",
521
+ /** ImageProvisioned */
522
+ ImageProvisioned = "ImageProvisioned",
523
+ /** ImageDownloading */
524
+ ImageDownloading = "ImageDownloading",
525
+ /** ImageDownloaded */
526
+ ImageDownloaded = "ImageDownloaded",
527
+ /** ImageDeprovisioning */
528
+ ImageDeprovisioning = "ImageDeprovisioning",
529
+ /** ImageUnknown */
530
+ ImageUnknown = "ImageUnknown",
469
531
  /** UpdatingCloudOperator */
470
532
  UpdatingCloudOperator = "UpdatingCloudOperator",
471
533
  /** WaitingForCloudOperator */
@@ -501,6 +563,15 @@ export enum KnownStatus {
501
563
  * **PreparingForUpgrade** \
502
564
  * **UpgradePrerequisitesCompleted** \
503
565
  * **PreUpgrade** \
566
+ * **UpgradingKVAIO** \
567
+ * **WaitingForKVAIO** \
568
+ * **ImagePending** \
569
+ * **ImageProvisioning** \
570
+ * **ImageProvisioned** \
571
+ * **ImageDownloading** \
572
+ * **ImageDownloaded** \
573
+ * **ImageDeprovisioning** \
574
+ * **ImageUnknown** \
504
575
  * **UpdatingCloudOperator** \
505
576
  * **WaitingForCloudOperator** \
506
577
  * **UpdatingCAPI** \
@@ -556,10 +627,31 @@ export enum KnownAccessProfileType {
556
627
  */
557
628
  export type AccessProfileType = string;
558
629
 
630
+ /** Known values of {@link ArtifactType} that the service accepts. */
631
+ export enum KnownArtifactType {
632
+ /** LogsArtifactType */
633
+ LogsArtifactType = "LogsArtifactType"
634
+ }
635
+
636
+ /**
637
+ * Defines values for ArtifactType. \
638
+ * {@link KnownArtifactType} can be used interchangeably with ArtifactType,
639
+ * this enum contains the known values that the service supports.
640
+ * ### Known values supported by the service
641
+ * **LogsArtifactType**
642
+ */
643
+ export type ArtifactType = string;
644
+
559
645
  /** Known values of {@link SSHKeyType} that the service accepts. */
560
646
  export enum KnownSSHKeyType {
561
647
  /** SSHCustomerUser */
562
- SSHCustomerUser = "SSHCustomerUser"
648
+ SSHCustomerUser = "SSHCustomerUser",
649
+ /** ManagementCAKey */
650
+ ManagementCAKey = "ManagementCAKey",
651
+ /** LogsKey */
652
+ LogsKey = "LogsKey",
653
+ /** ScopedAccessKey */
654
+ ScopedAccessKey = "ScopedAccessKey"
563
655
  }
564
656
 
565
657
  /**
@@ -567,7 +659,10 @@ export enum KnownSSHKeyType {
567
659
  * {@link KnownSSHKeyType} can be used interchangeably with SSHKeyType,
568
660
  * this enum contains the known values that the service supports.
569
661
  * ### Known values supported by the service
570
- * **SSHCustomerUser**
662
+ * **SSHCustomerUser** \
663
+ * **ManagementCAKey** \
664
+ * **LogsKey** \
665
+ * **ScopedAccessKey**
571
666
  */
572
667
  export type SSHKeyType = string;
573
668
 
@@ -585,6 +680,13 @@ export interface AppliancesListBySubscriptionOptionalParams
585
680
  /** Contains response data for the listBySubscription operation. */
586
681
  export type AppliancesListBySubscriptionResponse = ApplianceListResult;
587
682
 
683
+ /** Optional parameters. */
684
+ export interface AppliancesGetTelemetryConfigOptionalParams
685
+ extends coreClient.OperationOptions {}
686
+
687
+ /** Contains response data for the getTelemetryConfig operation. */
688
+ export type AppliancesGetTelemetryConfigResponse = ApplianceGetTelemetryConfigResult;
689
+
588
690
  /** Optional parameters. */
589
691
  export interface AppliancesListByResourceGroupOptionalParams
590
692
  extends coreClient.OperationOptions {}
@@ -631,18 +733,18 @@ export interface AppliancesUpdateOptionalParams
631
733
  export type AppliancesUpdateResponse = Appliance;
632
734
 
633
735
  /** Optional parameters. */
634
- export interface AppliancesListClusterCustomerUserCredentialOptionalParams
736
+ export interface AppliancesListClusterUserCredentialOptionalParams
635
737
  extends coreClient.OperationOptions {}
636
738
 
637
- /** Contains response data for the listClusterCustomerUserCredential operation. */
638
- export type AppliancesListClusterCustomerUserCredentialResponse = ApplianceListClusterCustomerUserCredentialResults;
739
+ /** Contains response data for the listClusterUserCredential operation. */
740
+ export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
639
741
 
640
742
  /** Optional parameters. */
641
- export interface AppliancesListClusterUserCredentialOptionalParams
743
+ export interface AppliancesListKeysOptionalParams
642
744
  extends coreClient.OperationOptions {}
643
745
 
644
- /** Contains response data for the listClusterUserCredential operation. */
645
- export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
746
+ /** Contains response data for the listKeys operation. */
747
+ export type AppliancesListKeysResponse = ApplianceListKeysResults;
646
748
 
647
749
  /** Optional parameters. */
648
750
  export interface AppliancesGetUpgradeGraphOptionalParams