@openshift-migration-advisor/planner-sdk 0.31.0-91e05c592d36 → 0.32.0-050497adaf7f

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.31.0-91e05c592d36
1
+ # @openshift-migration-advisor/planner-sdk@0.32.0-050497adaf7f
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -221,7 +221,7 @@ and is automatically generated by the
221
221
  [OpenAPI Generator](https://openapi-generator.tech) project:
222
222
 
223
223
  - API version: `v1alpha1`
224
- - Package version: `0.31.0-91e05c592d36`
224
+ - Package version: `0.32.0-050497adaf7f`
225
225
  - Generator version: `7.28.0-SNAPSHOT`
226
226
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
227
227
 
@@ -16,6 +16,10 @@ export interface GetSourceDownloadURLRequest {
16
16
  * Source id
17
17
  */
18
18
  id: string;
19
+ /**
20
+ * Which image to link; the OVA or the appliance image tar for a disconnected update
21
+ */
22
+ image?: GetSourceDownloadURLImageEnum;
19
23
  }
20
24
  export interface HeadImageRequest {
21
25
  /**
@@ -33,6 +37,7 @@ export interface ImageApiInterface {
33
37
  /**
34
38
  * Creates request options for getSourceDownloadURL without sending the request
35
39
  * @param {string} id Source id
40
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
36
41
  * @throws {RequiredError}
37
42
  * @memberof ImageApiInterface
38
43
  */
@@ -40,6 +45,7 @@ export interface ImageApiInterface {
40
45
  /**
41
46
  * Get the OVA image via URL
42
47
  * @param {string} id Source id
48
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
43
49
  * @param {*} [options] Override http request option.
44
50
  * @throws {RequiredError}
45
51
  * @memberof ImageApiInterface
@@ -98,3 +104,11 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
98
104
  */
99
105
  headImage(requestParameters: HeadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
100
106
  }
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const GetSourceDownloadURLImageEnum: {
111
+ readonly Ova: "ova";
112
+ readonly Appliance: "appliance";
113
+ };
114
+ export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ImageApi = void 0;
25
+ exports.GetSourceDownloadURLImageEnum = exports.ImageApi = void 0;
26
26
  const runtime = require("../runtime.js");
27
27
  const PresignedUrl_js_1 = require("../models/PresignedUrl.js");
28
28
  /**
@@ -38,6 +38,9 @@ class ImageApi extends runtime.BaseAPI {
38
38
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSourceDownloadURL().');
39
39
  }
40
40
  const queryParameters = {};
41
+ if (requestParameters['image'] != null) {
42
+ queryParameters['image'] = requestParameters['image'];
43
+ }
41
44
  const headerParameters = {};
42
45
  let urlPath = `/api/v1/sources/{id}/image-url`;
43
46
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -108,3 +111,10 @@ class ImageApi extends runtime.BaseAPI {
108
111
  }
109
112
  }
110
113
  exports.ImageApi = ImageApi;
114
+ /**
115
+ * @export
116
+ */
117
+ exports.GetSourceDownloadURLImageEnum = {
118
+ Ova: 'ova',
119
+ Appliance: 'appliance',
120
+ };
@@ -16,6 +16,10 @@ export interface GetSourceDownloadURLRequest {
16
16
  * Source id
17
17
  */
18
18
  id: string;
19
+ /**
20
+ * Which image to link; the OVA or the appliance image tar for a disconnected update
21
+ */
22
+ image?: GetSourceDownloadURLImageEnum;
19
23
  }
20
24
  export interface HeadImageRequest {
21
25
  /**
@@ -33,6 +37,7 @@ export interface ImageApiInterface {
33
37
  /**
34
38
  * Creates request options for getSourceDownloadURL without sending the request
35
39
  * @param {string} id Source id
40
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
36
41
  * @throws {RequiredError}
37
42
  * @memberof ImageApiInterface
38
43
  */
@@ -40,6 +45,7 @@ export interface ImageApiInterface {
40
45
  /**
41
46
  * Get the OVA image via URL
42
47
  * @param {string} id Source id
48
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
43
49
  * @param {*} [options] Override http request option.
44
50
  * @throws {RequiredError}
45
51
  * @memberof ImageApiInterface
@@ -98,3 +104,11 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
98
104
  */
99
105
  headImage(requestParameters: HeadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
100
106
  }
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const GetSourceDownloadURLImageEnum: {
111
+ readonly Ova: "ova";
112
+ readonly Appliance: "appliance";
113
+ };
114
+ export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
@@ -35,6 +35,9 @@ export class ImageApi extends runtime.BaseAPI {
35
35
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSourceDownloadURL().');
36
36
  }
37
37
  const queryParameters = {};
38
+ if (requestParameters['image'] != null) {
39
+ queryParameters['image'] = requestParameters['image'];
40
+ }
38
41
  const headerParameters = {};
39
42
  let urlPath = `/api/v1/sources/{id}/image-url`;
40
43
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -104,3 +107,10 @@ export class ImageApi extends runtime.BaseAPI {
104
107
  });
105
108
  }
106
109
  }
110
+ /**
111
+ * @export
112
+ */
113
+ export const GetSourceDownloadURLImageEnum = {
114
+ Ova: 'ova',
115
+ Appliance: 'appliance',
116
+ };
@@ -29,6 +29,22 @@ export interface Host {
29
29
  *
30
30
  */
31
31
  model: string;
32
+ /**
33
+ * Source datacenter name, when available.
34
+ */
35
+ datacenter?: string;
36
+ /**
37
+ * Source cluster name; omitted for standalone hosts.
38
+ */
39
+ cluster?: string;
40
+ /**
41
+ * Source-reported CPU model, when available.
42
+ */
43
+ cpuModel?: string;
44
+ /**
45
+ * Source-reported host hardware serial or service tag, when available.
46
+ */
47
+ serialNumber?: string;
32
48
  /**
33
49
  * Number of CPU cores
34
50
  */
@@ -34,6 +34,10 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'id': json['id'] == null ? undefined : json['id'],
35
35
  'vendor': json['vendor'],
36
36
  'model': json['model'],
37
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
38
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
39
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
40
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
37
41
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
38
42
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
39
43
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -54,6 +58,10 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
54
58
  'id': value['id'],
55
59
  'vendor': value['vendor'],
56
60
  'model': value['model'],
61
+ 'datacenter': value['datacenter'],
62
+ 'cluster': value['cluster'],
63
+ 'cpuModel': value['cpuModel'],
64
+ 'serialNumber': value['serialNumber'],
57
65
  'cpuCores': value['cpuCores'],
58
66
  'cpuSockets': value['cpuSockets'],
59
67
  'memoryMB': value['memoryMB'],
@@ -29,6 +29,22 @@ export interface Host {
29
29
  *
30
30
  */
31
31
  model: string;
32
+ /**
33
+ * Source datacenter name, when available.
34
+ */
35
+ datacenter?: string;
36
+ /**
37
+ * Source cluster name; omitted for standalone hosts.
38
+ */
39
+ cluster?: string;
40
+ /**
41
+ * Source-reported CPU model, when available.
42
+ */
43
+ cpuModel?: string;
44
+ /**
45
+ * Source-reported host hardware serial or service tag, when available.
46
+ */
47
+ serialNumber?: string;
32
48
  /**
33
49
  * Number of CPU cores
34
50
  */
@@ -41,6 +41,10 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'id': json['id'] == null ? undefined : json['id'],
42
42
  'vendor': json['vendor'],
43
43
  'model': json['model'],
44
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
45
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
46
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
47
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
44
48
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
45
49
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
46
50
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -61,6 +65,10 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
61
65
  'id': value['id'],
62
66
  'vendor': value['vendor'],
63
67
  'model': value['model'],
68
+ 'datacenter': value['datacenter'],
69
+ 'cluster': value['cluster'],
70
+ 'cpuModel': value['cpuModel'],
71
+ 'serialNumber': value['serialNumber'],
64
72
  'cpuCores': value['cpuCores'],
65
73
  'cpuSockets': value['cpuSockets'],
66
74
  'memoryMB': value['memoryMB'],
package/docs/Host.md CHANGED
@@ -9,6 +9,10 @@ Name | Type
9
9
  `id` | string
10
10
  `vendor` | string
11
11
  `model` | string
12
+ `datacenter` | string
13
+ `cluster` | string
14
+ `cpuModel` | string
15
+ `serialNumber` | string
12
16
  `cpuCores` | number
13
17
  `cpuSockets` | number
14
18
  `memoryMB` | number
@@ -27,6 +31,10 @@ const example = {
27
31
  "id": null,
28
32
  "vendor": null,
29
33
  "model": null,
34
+ "datacenter": null,
35
+ "cluster": null,
36
+ "cpuModel": null,
37
+ "serialNumber": null,
30
38
  "cpuCores": null,
31
39
  "cpuSockets": null,
32
40
  "memoryMB": null,
package/docs/ImageApi.md CHANGED
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
11
11
 
12
12
  ## getSourceDownloadURL
13
13
 
14
- > PresignedUrl getSourceDownloadURL(id)
14
+ > PresignedUrl getSourceDownloadURL(id, image)
15
15
 
16
16
 
17
17
 
@@ -33,6 +33,8 @@ async function example() {
33
33
  const body = {
34
34
  // string | Source id
35
35
  id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
36
+ // 'ova' | 'appliance' | Which image to link; the OVA or the appliance image tar for a disconnected update (optional)
37
+ image: image_example,
36
38
  } satisfies GetSourceDownloadURLRequest;
37
39
 
38
40
  try {
@@ -53,6 +55,7 @@ example().catch(console.error);
53
55
  | Name | Type | Description | Notes |
54
56
  |------------- | ------------- | ------------- | -------------|
55
57
  | **id** | `string` | Source id | [Defaults to `undefined`] |
58
+ | **image** | `ova`, `appliance` | Which image to link; the OVA or the appliance image tar for a disconnected update | [Optional] [Defaults to `&#39;ova&#39;`] [Enum: ova, appliance] |
56
59
 
57
60
  ### Return type
58
61
 
@@ -71,7 +74,7 @@ No authorization required
71
74
  ### HTTP response details
72
75
  | Status code | Description | Response headers |
73
76
  |-------------|-------------|------------------|
74
- | **200** | URL to download OVA image | - |
77
+ | **200** | URL to download the image | - |
75
78
  | **400** | Bad Request | - |
76
79
  | **401** | Unauthorized | - |
77
80
  | **403** | Forbidden | - |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.31.0-91e05c592d36",
3
+ "version": "0.32.0-050497adaf7f",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,6 +24,10 @@ export interface GetSourceDownloadURLRequest {
24
24
  * Source id
25
25
  */
26
26
  id: string;
27
+ /**
28
+ * Which image to link; the OVA or the appliance image tar for a disconnected update
29
+ */
30
+ image?: GetSourceDownloadURLImageEnum;
27
31
  }
28
32
 
29
33
  export interface HeadImageRequest {
@@ -43,6 +47,7 @@ export interface ImageApiInterface {
43
47
  /**
44
48
  * Creates request options for getSourceDownloadURL without sending the request
45
49
  * @param {string} id Source id
50
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
46
51
  * @throws {RequiredError}
47
52
  * @memberof ImageApiInterface
48
53
  */
@@ -51,6 +56,7 @@ export interface ImageApiInterface {
51
56
  /**
52
57
  * Get the OVA image via URL
53
58
  * @param {string} id Source id
59
+ * @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
54
60
  * @param {*} [options] Override http request option.
55
61
  * @throws {RequiredError}
56
62
  * @memberof ImageApiInterface
@@ -104,6 +110,10 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
104
110
 
105
111
  const queryParameters: any = {};
106
112
 
113
+ if (requestParameters['image'] != null) {
114
+ queryParameters['image'] = requestParameters['image'];
115
+ }
116
+
107
117
  const headerParameters: runtime.HTTPHeaders = {};
108
118
 
109
119
 
@@ -181,3 +191,12 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
181
191
  }
182
192
 
183
193
  }
194
+
195
+ /**
196
+ * @export
197
+ */
198
+ export const GetSourceDownloadURLImageEnum = {
199
+ Ova: 'ova',
200
+ Appliance: 'appliance',
201
+ } as const;
202
+ export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
@@ -46,6 +46,22 @@ export interface Host {
46
46
  *
47
47
  */
48
48
  model: string;
49
+ /**
50
+ * Source datacenter name, when available.
51
+ */
52
+ datacenter?: string;
53
+ /**
54
+ * Source cluster name; omitted for standalone hosts.
55
+ */
56
+ cluster?: string;
57
+ /**
58
+ * Source-reported CPU model, when available.
59
+ */
60
+ cpuModel?: string;
61
+ /**
62
+ * Source-reported host hardware serial or service tag, when available.
63
+ */
64
+ serialNumber?: string;
49
65
  /**
50
66
  * Number of CPU cores
51
67
  */
@@ -98,6 +114,10 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
98
114
  'id': json['id'] == null ? undefined : json['id'],
99
115
  'vendor': json['vendor'],
100
116
  'model': json['model'],
117
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
118
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
119
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
120
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
101
121
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
102
122
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
103
123
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -122,6 +142,10 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
122
142
  'id': value['id'],
123
143
  'vendor': value['vendor'],
124
144
  'model': value['model'],
145
+ 'datacenter': value['datacenter'],
146
+ 'cluster': value['cluster'],
147
+ 'cpuModel': value['cpuModel'],
148
+ 'serialNumber': value['serialNumber'],
125
149
  'cpuCores': value['cpuCores'],
126
150
  'cpuSockets': value['cpuSockets'],
127
151
  'memoryMB': value['memoryMB'],