@openshift-migration-advisor/agent-sdk 0.33.1-d63d5073ca08 → 0.33.1-e1c90d7b1b79

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 (68) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +14 -2
  3. package/dist/apis/AppliancesApi.d.ts +194 -0
  4. package/dist/apis/AppliancesApi.js +201 -0
  5. package/dist/esm/apis/AppliancesApi.d.ts +194 -0
  6. package/dist/esm/apis/AppliancesApi.js +201 -0
  7. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  8. package/dist/esm/models/ApplianceRule.js +98 -0
  9. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  10. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  11. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  12. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  13. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  14. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  15. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  16. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  17. package/dist/esm/models/Datastore.d.ts +9 -0
  18. package/dist/esm/models/Datastore.js +5 -0
  19. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  20. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  21. package/dist/esm/models/StorageArray.d.ts +42 -0
  22. package/dist/esm/models/StorageArray.js +47 -0
  23. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  24. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  25. package/dist/esm/models/index.d.ts +7 -0
  26. package/dist/esm/models/index.js +7 -0
  27. package/dist/models/ApplianceRule.d.ts +90 -0
  28. package/dist/models/ApplianceRule.js +106 -0
  29. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  30. package/dist/models/ApplianceRuleCondition.js +55 -0
  31. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  32. package/dist/models/ApplianceRuleFunction.js +53 -0
  33. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  34. package/dist/models/ApplianceRuleListResponse.js +51 -0
  35. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  36. package/dist/models/ApplianceRuleRequest.js +93 -0
  37. package/dist/models/Datastore.d.ts +9 -0
  38. package/dist/models/Datastore.js +5 -0
  39. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  40. package/dist/models/DiskGeometryCondition.js +66 -0
  41. package/dist/models/StorageArray.d.ts +42 -0
  42. package/dist/models/StorageArray.js +54 -0
  43. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  44. package/dist/models/VirtualMachineDatastore.js +5 -0
  45. package/dist/models/index.d.ts +7 -0
  46. package/dist/models/index.js +7 -0
  47. package/docs/ApplianceRule.md +50 -0
  48. package/docs/ApplianceRuleCondition.md +39 -0
  49. package/docs/ApplianceRuleFunction.md +37 -0
  50. package/docs/ApplianceRuleListResponse.md +34 -0
  51. package/docs/ApplianceRuleRequest.md +46 -0
  52. package/docs/AppliancesApi.md +338 -0
  53. package/docs/Datastore.md +4 -0
  54. package/docs/DiskGeometryCondition.md +38 -0
  55. package/docs/StorageArray.md +41 -0
  56. package/docs/VirtualMachineDatastore.md +4 -0
  57. package/package.json +1 -1
  58. package/src/apis/AppliancesApi.ts +393 -0
  59. package/src/models/ApplianceRule.ts +159 -0
  60. package/src/models/ApplianceRuleCondition.ts +87 -0
  61. package/src/models/ApplianceRuleFunction.ts +80 -0
  62. package/src/models/ApplianceRuleListResponse.ts +72 -0
  63. package/src/models/ApplianceRuleRequest.ts +137 -0
  64. package/src/models/Datastore.ts +19 -0
  65. package/src/models/DiskGeometryCondition.ts +90 -0
  66. package/src/models/StorageArray.ts +81 -0
  67. package/src/models/VirtualMachineDatastore.ts +20 -0
  68. package/src/models/index.ts +7 -0
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApplianceRuleFunctionFromJSON, ApplianceRuleFunctionToJSON, } from './ApplianceRuleFunction.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceRuleCondition interface.
17
+ */
18
+ export function instanceOfApplianceRuleCondition(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceRuleConditionFromJSON(json) {
24
+ return ApplianceRuleConditionFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceRuleConditionFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'expression': json['expression'] == null ? undefined : json['expression'],
33
+ '_function': json['function'] == null ? undefined : ApplianceRuleFunctionFromJSON(json['function']),
34
+ };
35
+ }
36
+ export function ApplianceRuleConditionToJSON(json) {
37
+ return ApplianceRuleConditionToJSONTyped(json, false);
38
+ }
39
+ export function ApplianceRuleConditionToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'expression': value['expression'],
46
+ 'function': ApplianceRuleFunctionToJSON(value['_function']),
47
+ };
48
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { DiskGeometryCondition } from './DiskGeometryCondition.js';
13
+ /**
14
+ * A registered predicate selected by name. Exactly one payload field, the one matching name, must be set; the payload is validated server-side against the predicate the name resolves to.
15
+ *
16
+ * @export
17
+ * @interface ApplianceRuleFunction
18
+ */
19
+ export interface ApplianceRuleFunction {
20
+ /**
21
+ * Predicate name. disk_geometry is the only one defined; any other name is rejected.
22
+ *
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ */
28
+ disk_geometry?: DiskGeometryCondition;
29
+ }
30
+ /**
31
+ * Check if a given object implements the ApplianceRuleFunction interface.
32
+ */
33
+ export declare function instanceOfApplianceRuleFunction(value: object): value is ApplianceRuleFunction;
34
+ export declare function ApplianceRuleFunctionFromJSON(json: any): ApplianceRuleFunction;
35
+ export declare function ApplianceRuleFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleFunction;
36
+ export declare function ApplianceRuleFunctionToJSON(json: any): ApplianceRuleFunction;
37
+ export declare function ApplianceRuleFunctionToJSONTyped(value?: ApplianceRuleFunction | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { DiskGeometryConditionFromJSON, DiskGeometryConditionToJSON, } from './DiskGeometryCondition.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceRuleFunction interface.
17
+ */
18
+ export function instanceOfApplianceRuleFunction(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceRuleFunctionFromJSON(json) {
24
+ return ApplianceRuleFunctionFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceRuleFunctionFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'disk_geometry': json['disk_geometry'] == null ? undefined : DiskGeometryConditionFromJSON(json['disk_geometry']),
33
+ };
34
+ }
35
+ export function ApplianceRuleFunctionToJSON(json) {
36
+ return ApplianceRuleFunctionToJSONTyped(json, false);
37
+ }
38
+ export function ApplianceRuleFunctionToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'name': value['name'],
44
+ 'disk_geometry': DiskGeometryConditionToJSON(value['disk_geometry']),
45
+ };
46
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApplianceRule } from './ApplianceRule.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceRuleListResponse
17
+ */
18
+ export interface ApplianceRuleListResponse {
19
+ /**
20
+ *
21
+ */
22
+ rules: Array<ApplianceRule>;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ApplianceRuleListResponse interface.
26
+ */
27
+ export declare function instanceOfApplianceRuleListResponse(value: object): value is ApplianceRuleListResponse;
28
+ export declare function ApplianceRuleListResponseFromJSON(json: any): ApplianceRuleListResponse;
29
+ export declare function ApplianceRuleListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleListResponse;
30
+ export declare function ApplianceRuleListResponseToJSON(json: any): ApplianceRuleListResponse;
31
+ export declare function ApplianceRuleListResponseToJSONTyped(value?: ApplianceRuleListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApplianceRuleFromJSON, ApplianceRuleToJSON, } from './ApplianceRule.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceRuleListResponse interface.
17
+ */
18
+ export function instanceOfApplianceRuleListResponse(value) {
19
+ if (!('rules' in value) || value['rules'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceRuleListResponseFromJSON(json) {
24
+ return ApplianceRuleListResponseFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceRuleListResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'rules': (json['rules'].map(ApplianceRuleFromJSON)),
32
+ };
33
+ }
34
+ export function ApplianceRuleListResponseToJSON(json) {
35
+ return ApplianceRuleListResponseToJSONTyped(json, false);
36
+ }
37
+ export function ApplianceRuleListResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'rules': (value['rules'].map(ApplianceRuleToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceRuleRequest
17
+ */
18
+ export interface ApplianceRuleRequest {
19
+ /**
20
+ *
21
+ */
22
+ name: string;
23
+ /**
24
+ *
25
+ */
26
+ vendor: string;
27
+ /**
28
+ *
29
+ */
30
+ category: string;
31
+ /**
32
+ *
33
+ */
34
+ osv_verdict: ApplianceRuleRequestOsvVerdictEnum;
35
+ /**
36
+ *
37
+ */
38
+ max_confidence: ApplianceRuleRequestMaxConfidenceEnum;
39
+ /**
40
+ *
41
+ */
42
+ min_matched: number;
43
+ /**
44
+ *
45
+ */
46
+ conditions: Array<ApplianceRuleCondition>;
47
+ }
48
+ /**
49
+ * @export
50
+ */
51
+ export declare const ApplianceRuleRequestOsvVerdictEnum: {
52
+ readonly Blocked: "blocked";
53
+ readonly Conditional: "conditional";
54
+ readonly Supported: "supported";
55
+ readonly Unknown: "unknown";
56
+ };
57
+ export type ApplianceRuleRequestOsvVerdictEnum = typeof ApplianceRuleRequestOsvVerdictEnum[keyof typeof ApplianceRuleRequestOsvVerdictEnum];
58
+ /**
59
+ * @export
60
+ */
61
+ export declare const ApplianceRuleRequestMaxConfidenceEnum: {
62
+ readonly High: "high";
63
+ readonly Medium: "medium";
64
+ readonly Low: "low";
65
+ };
66
+ export type ApplianceRuleRequestMaxConfidenceEnum = typeof ApplianceRuleRequestMaxConfidenceEnum[keyof typeof ApplianceRuleRequestMaxConfidenceEnum];
67
+ /**
68
+ * Check if a given object implements the ApplianceRuleRequest interface.
69
+ */
70
+ export declare function instanceOfApplianceRuleRequest(value: object): value is ApplianceRuleRequest;
71
+ export declare function ApplianceRuleRequestFromJSON(json: any): ApplianceRuleRequest;
72
+ export declare function ApplianceRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleRequest;
73
+ export declare function ApplianceRuleRequestToJSON(json: any): ApplianceRuleRequest;
74
+ export declare function ApplianceRuleRequestToJSONTyped(value?: ApplianceRuleRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApplianceRuleConditionFromJSON, ApplianceRuleConditionToJSON, } from './ApplianceRuleCondition.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ApplianceRuleRequestOsvVerdictEnum = {
19
+ Blocked: 'blocked',
20
+ Conditional: 'conditional',
21
+ Supported: 'supported',
22
+ Unknown: 'unknown',
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const ApplianceRuleRequestMaxConfidenceEnum = {
28
+ High: 'high',
29
+ Medium: 'medium',
30
+ Low: 'low',
31
+ };
32
+ /**
33
+ * Check if a given object implements the ApplianceRuleRequest interface.
34
+ */
35
+ export function instanceOfApplianceRuleRequest(value) {
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('vendor' in value) || value['vendor'] === undefined)
39
+ return false;
40
+ if (!('category' in value) || value['category'] === undefined)
41
+ return false;
42
+ if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
43
+ return false;
44
+ if (!('max_confidence' in value) || value['max_confidence'] === undefined)
45
+ return false;
46
+ if (!('min_matched' in value) || value['min_matched'] === undefined)
47
+ return false;
48
+ if (!('conditions' in value) || value['conditions'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ export function ApplianceRuleRequestFromJSON(json) {
53
+ return ApplianceRuleRequestFromJSONTyped(json, false);
54
+ }
55
+ export function ApplianceRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'name': json['name'],
61
+ 'vendor': json['vendor'],
62
+ 'category': json['category'],
63
+ 'osv_verdict': json['osv_verdict'],
64
+ 'max_confidence': json['max_confidence'],
65
+ 'min_matched': json['min_matched'],
66
+ 'conditions': (json['conditions'].map(ApplianceRuleConditionFromJSON)),
67
+ };
68
+ }
69
+ export function ApplianceRuleRequestToJSON(json) {
70
+ return ApplianceRuleRequestToJSONTyped(json, false);
71
+ }
72
+ export function ApplianceRuleRequestToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'name': value['name'],
78
+ 'vendor': value['vendor'],
79
+ 'category': value['category'],
80
+ 'osv_verdict': value['osv_verdict'],
81
+ 'max_confidence': value['max_confidence'],
82
+ 'min_matched': value['min_matched'],
83
+ 'conditions': (value['conditions'].map(ApplianceRuleConditionToJSON)),
84
+ };
85
+ }
@@ -10,12 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
13
+ import type { StorageArray } from './StorageArray.js';
13
14
  /**
14
15
  *
15
16
  * @export
16
17
  * @interface Datastore
17
18
  */
18
19
  export interface Datastore {
20
+ /**
21
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
22
+ */
23
+ storageArrays?: Array<StorageArray>;
24
+ /**
25
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
26
+ */
27
+ storageContainerId?: string;
19
28
  /**
20
29
  *
21
30
  */
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { StorageIoConfigurationFromJSON, StorageIoConfigurationToJSON, } from './StorageIoConfiguration.js';
15
+ import { StorageArrayFromJSON, StorageArrayToJSON, } from './StorageArray.js';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -50,6 +51,8 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
50
51
  return json;
51
52
  }
52
53
  return {
54
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArrayFromJSON)),
55
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
53
56
  'type': json['type'],
54
57
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
55
58
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -75,6 +78,8 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
75
78
  return value;
76
79
  }
77
80
  return {
81
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArrayToJSON)),
82
+ 'storageContainerId': value['storageContainerId'],
78
83
  'type': value['type'],
79
84
  'backingDeviceIds': value['backingDeviceIds'],
80
85
  'filesystemType': value['filesystemType'],
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DiskGeometryCondition
16
+ */
17
+ export interface DiskGeometryCondition {
18
+ /**
19
+ *
20
+ */
21
+ disks: Array<number>;
22
+ /**
23
+ *
24
+ */
25
+ mode: DiskGeometryConditionModeEnum;
26
+ /**
27
+ * Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
28
+ *
29
+ */
30
+ tolerance_mib: number;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const DiskGeometryConditionModeEnum: {
36
+ readonly Exact: "exact";
37
+ readonly Superset: "superset";
38
+ };
39
+ export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
40
+ /**
41
+ * Check if a given object implements the DiskGeometryCondition interface.
42
+ */
43
+ export declare function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition;
44
+ export declare function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition;
45
+ export declare function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition;
46
+ export declare function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition;
47
+ export declare function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const DiskGeometryConditionModeEnum = {
18
+ Exact: 'exact',
19
+ Superset: 'superset',
20
+ };
21
+ /**
22
+ * Check if a given object implements the DiskGeometryCondition interface.
23
+ */
24
+ export function instanceOfDiskGeometryCondition(value) {
25
+ if (!('disks' in value) || value['disks'] === undefined)
26
+ return false;
27
+ if (!('mode' in value) || value['mode'] === undefined)
28
+ return false;
29
+ if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function DiskGeometryConditionFromJSON(json) {
34
+ return DiskGeometryConditionFromJSONTyped(json, false);
35
+ }
36
+ export function DiskGeometryConditionFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'disks': json['disks'],
42
+ 'mode': json['mode'],
43
+ 'tolerance_mib': json['tolerance_mib'],
44
+ };
45
+ }
46
+ export function DiskGeometryConditionToJSON(json) {
47
+ return DiskGeometryConditionToJSONTyped(json, false);
48
+ }
49
+ export function DiskGeometryConditionToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'disks': value['disks'],
55
+ 'mode': value['mode'],
56
+ 'tolerance_mib': value['tolerance_mib'],
57
+ };
58
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
14
+ * @export
15
+ * @interface StorageArray
16
+ */
17
+ export interface StorageArray {
18
+ /**
19
+ * Array UUID reported by the source, when available
20
+ */
21
+ uuid?: string;
22
+ /**
23
+ *
24
+ */
25
+ name?: string;
26
+ /**
27
+ * VASA vendor ID, not a SCSI inquiry vendor
28
+ */
29
+ vendorId?: string;
30
+ /**
31
+ * VASA model ID, not a SCSI inquiry model
32
+ */
33
+ modelId?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the StorageArray interface.
37
+ */
38
+ export declare function instanceOfStorageArray(value: object): value is StorageArray;
39
+ export declare function StorageArrayFromJSON(json: any): StorageArray;
40
+ export declare function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray;
41
+ export declare function StorageArrayToJSON(json: any): StorageArray;
42
+ export declare function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the StorageArray interface.
16
+ */
17
+ export function instanceOfStorageArray(value) {
18
+ return true;
19
+ }
20
+ export function StorageArrayFromJSON(json) {
21
+ return StorageArrayFromJSONTyped(json, false);
22
+ }
23
+ export function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
31
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
32
+ };
33
+ }
34
+ export function StorageArrayToJSON(json) {
35
+ return StorageArrayToJSONTyped(json, false);
36
+ }
37
+ export function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'uuid': value['uuid'],
43
+ 'name': value['name'],
44
+ 'vendorId': value['vendorId'],
45
+ 'modelId': value['modelId'],
46
+ };
47
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { StorageArray } from './StorageArray.js';
12
13
  /**
13
14
  * Datastore backing this virtual disk
14
15
  * @export
@@ -55,6 +56,14 @@ export interface VirtualMachineDatastore {
55
56
  * Model reported by matching backing devices when available
56
57
  */
57
58
  model?: string;
59
+ /**
60
+ * Source-reported VASA arrays associated with this datastore, when available
61
+ */
62
+ storageArrays?: Array<StorageArray>;
63
+ /**
64
+ * Source-reported storage container identifier, when available
65
+ */
66
+ storageContainerId?: string;
58
67
  }
59
68
  /**
60
69
  * Check if a given object implements the VirtualMachineDatastore interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { StorageArrayFromJSON, StorageArrayToJSON, } from './StorageArray.js';
14
15
  /**
15
16
  * Check if a given object implements the VirtualMachineDatastore interface.
16
17
  */
@@ -35,6 +36,8 @@ export function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator)
35
36
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
36
37
  'vendor': json['vendor'] == null ? undefined : json['vendor'],
37
38
  'model': json['model'] == null ? undefined : json['model'],
39
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArrayFromJSON)),
40
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
38
41
  };
39
42
  }
40
43
  export function VirtualMachineDatastoreToJSON(json) {
@@ -55,5 +58,7 @@ export function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator =
55
58
  'backingDeviceIds': value['backingDeviceIds'],
56
59
  'vendor': value['vendor'],
57
60
  'model': value['model'],
61
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArrayToJSON)),
62
+ 'storageContainerId': value['storageContainerId'],
58
63
  };
59
64
  }