@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-83e8d01d3484

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 (59) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +7 -2
  3. package/dist/apis/AssessmentApi.d.ts +101 -6
  4. package/dist/apis/AssessmentApi.js +95 -6
  5. package/dist/apis/ImageApi.d.ts +14 -0
  6. package/dist/apis/ImageApi.js +11 -1
  7. package/dist/esm/apis/AssessmentApi.d.ts +101 -6
  8. package/dist/esm/apis/AssessmentApi.js +95 -6
  9. package/dist/esm/apis/ImageApi.d.ts +14 -0
  10. package/dist/esm/apis/ImageApi.js +10 -0
  11. package/dist/esm/models/Host.d.ts +26 -0
  12. package/dist/esm/models/Host.js +14 -0
  13. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  14. package/dist/esm/models/HostStorageAdapter.js +55 -0
  15. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  16. package/dist/esm/models/HostStorageLun.js +51 -0
  17. package/dist/esm/models/Info.d.ts +4 -0
  18. package/dist/esm/models/Info.js +2 -0
  19. package/dist/esm/models/OsInfo.d.ts +12 -0
  20. package/dist/esm/models/OsInfo.js +9 -0
  21. package/dist/esm/models/SourceType.d.ts +26 -0
  22. package/dist/esm/models/SourceType.js +44 -0
  23. package/dist/esm/models/index.d.ts +3 -0
  24. package/dist/esm/models/index.js +3 -0
  25. package/dist/esm/runtime.js +4 -3
  26. package/dist/models/Host.d.ts +26 -0
  27. package/dist/models/Host.js +14 -0
  28. package/dist/models/HostStorageAdapter.d.ts +58 -0
  29. package/dist/models/HostStorageAdapter.js +62 -0
  30. package/dist/models/HostStorageLun.d.ts +50 -0
  31. package/dist/models/HostStorageLun.js +58 -0
  32. package/dist/models/Info.d.ts +4 -0
  33. package/dist/models/Info.js +2 -0
  34. package/dist/models/OsInfo.d.ts +12 -0
  35. package/dist/models/OsInfo.js +10 -1
  36. package/dist/models/SourceType.d.ts +26 -0
  37. package/dist/models/SourceType.js +52 -0
  38. package/dist/models/index.d.ts +3 -0
  39. package/dist/models/index.js +3 -0
  40. package/dist/runtime.js +4 -3
  41. package/docs/AssessmentApi.md +163 -3
  42. package/docs/Host.md +12 -0
  43. package/docs/HostStorageAdapter.md +49 -0
  44. package/docs/HostStorageLun.md +45 -0
  45. package/docs/ImageApi.md +5 -2
  46. package/docs/Info.md +2 -0
  47. package/docs/OsInfo.md +2 -0
  48. package/docs/SourceType.md +32 -0
  49. package/package.json +1 -1
  50. package/src/apis/AssessmentApi.ts +203 -8
  51. package/src/apis/ImageApi.ts +19 -0
  52. package/src/models/Host.ts +51 -0
  53. package/src/models/HostStorageAdapter.ts +105 -0
  54. package/src/models/HostStorageLun.ts +93 -0
  55. package/src/models/Info.ts +6 -0
  56. package/src/models/OsInfo.ts +15 -0
  57. package/src/models/SourceType.ts +54 -0
  58. package/src/models/index.ts +3 -0
  59. package/src/runtime.ts +3 -3
@@ -31,6 +31,10 @@ export interface OsInfo {
31
31
  * OS support tier per Red Hat KCS article 4234591
32
32
  */
33
33
  supportTier?: OsInfoSupportTierEnum;
34
+ /**
35
+ * MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
36
+ */
37
+ mtvStatus?: OsInfoMtvStatusEnum;
34
38
  /**
35
39
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
36
40
  */
@@ -49,6 +53,15 @@ export const OsInfoSupportTierEnum = {
49
53
  } as const;
50
54
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
51
55
 
56
+ /**
57
+ * @export
58
+ */
59
+ export const OsInfoMtvStatusEnum = {
60
+ Green: 'green',
61
+ Blue: 'blue',
62
+ } as const;
63
+ export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
64
+
52
65
 
53
66
  /**
54
67
  * Check if a given object implements the OsInfo interface.
@@ -72,6 +85,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
72
85
  'count': json['count'],
73
86
  'supported': json['supported'],
74
87
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
88
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
75
89
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
76
90
  };
77
91
  }
@@ -90,6 +104,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
90
104
  'count': value['count'],
91
105
  'supported': value['supported'],
92
106
  'supportTier': value['supportTier'],
107
+ 'mtvStatus': value['mtvStatus'],
93
108
  'upgradeRecommendation': value['upgradeRecommendation'],
94
109
  };
95
110
  }
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const SourceType = {
21
+ Inventory: 'inventory',
22
+ Rvtools: 'rvtools',
23
+ Source: 'source',
24
+ } as const;
25
+ export type SourceType = typeof SourceType[keyof typeof SourceType];
26
+
27
+
28
+ export function instanceOfSourceType(value: any): boolean {
29
+ for (const key in SourceType) {
30
+ if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
31
+ if (SourceType[key as keyof typeof SourceType] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function SourceTypeFromJSON(json: any): SourceType {
40
+ return SourceTypeFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType {
44
+ return json as SourceType;
45
+ }
46
+
47
+ export function SourceTypeToJSON(value?: SourceType | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType {
52
+ return value as SourceType;
53
+ }
54
+
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
38
38
  export * from './GroupUpdate.js';
39
39
  export * from './Histogram.js';
40
40
  export * from './Host.js';
41
+ export * from './HostStorageAdapter.js';
42
+ export * from './HostStorageLun.js';
41
43
  export * from './Identity.js';
42
44
  export * from './Info.js';
43
45
  export * from './Infra.js';
@@ -82,6 +84,7 @@ export * from './Snapshot.js';
82
84
  export * from './Source.js';
83
85
  export * from './SourceCreate.js';
84
86
  export * from './SourceInfra.js';
87
+ export * from './SourceType.js';
85
88
  export * from './SourceUpdate.js';
86
89
  export * from './StandaloneClusterRequirementsRequest.js';
87
90
  export * from './StandaloneClusterRequirementsResponse.js';
package/src/runtime.ts CHANGED
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
533
533
  function decodeExtValue(value: string | undefined): string | undefined {
534
534
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
535
535
  try {
536
- return match ? decodeURIComponent(match[1]) : undefined;
536
+ return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
537
537
  } catch {
538
538
  return undefined;
539
539
  }
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
549
549
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
550
550
  let match: RegExpExecArray | null;
551
551
  while ((match = parameter.exec(value)) !== null) {
552
- const name = match[1].toLowerCase();
552
+ const name = (match[1] ?? '').toLowerCase();
553
553
  if (!params.has(name)) {
554
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
554
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
555
555
  }
556
556
  }
557
557
  return params;