@openshift-migration-advisor/planner-sdk 0.7.0-4ccf2aa66adf → 0.8.0
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 +2 -2
- package/dist/esm/models/Source.d.ts +12 -0
- package/dist/esm/models/Source.js +4 -0
- package/dist/models/Source.d.ts +12 -0
- package/dist/models/Source.js +4 -0
- package/docs/Source.md +4 -0
- package/package.json +1 -1
- package/src/models/Source.ts +16 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.8.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -140,7 +140,7 @@ and is automatically generated by the
|
|
|
140
140
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
141
141
|
|
|
142
142
|
- API version: `undefined`
|
|
143
|
-
- Package version: `0.
|
|
143
|
+
- Package version: `0.8.0`
|
|
144
144
|
- Generator version: `7.21.0-SNAPSHOT`
|
|
145
145
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
146
146
|
|
|
@@ -73,6 +73,18 @@ export interface Source {
|
|
|
73
73
|
* @memberof Source
|
|
74
74
|
*/
|
|
75
75
|
infra?: SourceInfra;
|
|
76
|
+
/**
|
|
77
|
+
* Agent version (version tag) stored when OVA was downloaded
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Source
|
|
80
|
+
*/
|
|
81
|
+
agentVersion?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Warning message if stored agent version differs from current agent version
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Source
|
|
86
|
+
*/
|
|
87
|
+
agentVersionWarning?: string | null;
|
|
76
88
|
}
|
|
77
89
|
/**
|
|
78
90
|
* Check if a given object implements the Source interface.
|
|
@@ -48,6 +48,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
49
49
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
50
50
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
51
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
52
|
+
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
export function SourceToJSON(json) {
|
|
@@ -67,5 +69,7 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
69
|
'agent': AgentToJSON(value['agent']),
|
|
68
70
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
|
|
69
71
|
'infra': SourceInfraToJSON(value['infra']),
|
|
72
|
+
'agentVersion': value['agentVersion'],
|
|
73
|
+
'agentVersionWarning': value['agentVersionWarning'],
|
|
70
74
|
};
|
|
71
75
|
}
|
package/dist/models/Source.d.ts
CHANGED
|
@@ -73,6 +73,18 @@ export interface Source {
|
|
|
73
73
|
* @memberof Source
|
|
74
74
|
*/
|
|
75
75
|
infra?: SourceInfra;
|
|
76
|
+
/**
|
|
77
|
+
* Agent version (version tag) stored when OVA was downloaded
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Source
|
|
80
|
+
*/
|
|
81
|
+
agentVersion?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Warning message if stored agent version differs from current agent version
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Source
|
|
86
|
+
*/
|
|
87
|
+
agentVersionWarning?: string | null;
|
|
76
88
|
}
|
|
77
89
|
/**
|
|
78
90
|
* Check if a given object implements the Source interface.
|
package/dist/models/Source.js
CHANGED
|
@@ -55,6 +55,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
|
|
56
56
|
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
57
57
|
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
58
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
59
|
+
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
function SourceToJSON(json) {
|
|
@@ -74,5 +76,7 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
76
|
'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
|
|
75
77
|
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|
|
76
78
|
'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
|
|
79
|
+
'agentVersion': value['agentVersion'],
|
|
80
|
+
'agentVersionWarning': value['agentVersionWarning'],
|
|
77
81
|
};
|
|
78
82
|
}
|
package/docs/Source.md
CHANGED
|
@@ -15,6 +15,8 @@ Name | Type
|
|
|
15
15
|
`agent` | [Agent](Agent.md)
|
|
16
16
|
`labels` | [Array<Label>](Label.md)
|
|
17
17
|
`infra` | [SourceInfra](SourceInfra.md)
|
|
18
|
+
`agentVersion` | string
|
|
19
|
+
`agentVersionWarning` | string
|
|
18
20
|
|
|
19
21
|
## Example
|
|
20
22
|
|
|
@@ -32,6 +34,8 @@ const example = {
|
|
|
32
34
|
"agent": null,
|
|
33
35
|
"labels": null,
|
|
34
36
|
"infra": null,
|
|
37
|
+
"agentVersion": null,
|
|
38
|
+
"agentVersionWarning": null,
|
|
35
39
|
} satisfies Source
|
|
36
40
|
|
|
37
41
|
console.log(example)
|
package/package.json
CHANGED
package/src/models/Source.ts
CHANGED
|
@@ -102,6 +102,18 @@ export interface Source {
|
|
|
102
102
|
* @memberof Source
|
|
103
103
|
*/
|
|
104
104
|
infra?: SourceInfra;
|
|
105
|
+
/**
|
|
106
|
+
* Agent version (version tag) stored when OVA was downloaded
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof Source
|
|
109
|
+
*/
|
|
110
|
+
agentVersion?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Warning message if stored agent version differs from current agent version
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof Source
|
|
115
|
+
*/
|
|
116
|
+
agentVersionWarning?: string | null;
|
|
105
117
|
}
|
|
106
118
|
|
|
107
119
|
/**
|
|
@@ -135,6 +147,8 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
135
147
|
'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
|
|
136
148
|
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
137
149
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
150
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
151
|
+
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
138
152
|
};
|
|
139
153
|
}
|
|
140
154
|
|
|
@@ -158,6 +172,8 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
|
|
|
158
172
|
'agent': AgentToJSON(value['agent']),
|
|
159
173
|
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
|
|
160
174
|
'infra': SourceInfraToJSON(value['infra']),
|
|
175
|
+
'agentVersion': value['agentVersion'],
|
|
176
|
+
'agentVersionWarning': value['agentVersionWarning'],
|
|
161
177
|
};
|
|
162
178
|
}
|
|
163
179
|
|