@openshift-migration-advisor/planner-sdk 0.12.0 → 0.13.1

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 (76) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -3
  4. package/dist/apis/AccountApi.d.ts +7 -1
  5. package/dist/apis/AccountApi.js +20 -14
  6. package/dist/apis/AssessmentApi.d.ts +12 -1
  7. package/dist/apis/AssessmentApi.js +30 -19
  8. package/dist/apis/ImageApi.d.ts +1 -1
  9. package/dist/apis/ImageApi.js +2 -2
  10. package/dist/apis/InfoApi.d.ts +1 -1
  11. package/dist/apis/InfoApi.js +2 -2
  12. package/dist/apis/JobApi.d.ts +1 -1
  13. package/dist/apis/JobApi.js +4 -4
  14. package/dist/apis/PartnerApi.d.ts +5 -1
  15. package/dist/apis/PartnerApi.js +13 -9
  16. package/dist/apis/SourceApi.d.ts +5 -1
  17. package/dist/apis/SourceApi.js +15 -11
  18. package/dist/esm/apis/AccountApi.d.ts +7 -1
  19. package/dist/esm/apis/AccountApi.js +7 -1
  20. package/dist/esm/apis/AssessmentApi.d.ts +12 -1
  21. package/dist/esm/apis/AssessmentApi.js +12 -1
  22. package/dist/esm/apis/ImageApi.d.ts +1 -1
  23. package/dist/esm/apis/ImageApi.js +1 -1
  24. package/dist/esm/apis/InfoApi.d.ts +1 -1
  25. package/dist/esm/apis/InfoApi.js +1 -1
  26. package/dist/esm/apis/JobApi.d.ts +1 -1
  27. package/dist/esm/apis/JobApi.js +1 -1
  28. package/dist/esm/apis/PartnerApi.d.ts +5 -1
  29. package/dist/esm/apis/PartnerApi.js +5 -1
  30. package/dist/esm/apis/SourceApi.d.ts +5 -1
  31. package/dist/esm/apis/SourceApi.js +5 -1
  32. package/dist/esm/models/Assessment.d.ts +22 -0
  33. package/dist/esm/models/Assessment.js +13 -0
  34. package/dist/esm/models/AssessmentSharing.d.ts +45 -0
  35. package/dist/esm/models/AssessmentSharing.js +50 -0
  36. package/dist/esm/models/SharingSubject.d.ts +38 -0
  37. package/dist/esm/models/SharingSubject.js +47 -0
  38. package/dist/esm/models/SourceCreate.d.ts +26 -0
  39. package/dist/esm/models/SourceCreate.js +13 -0
  40. package/dist/esm/models/SourceUpdate.d.ts +26 -0
  41. package/dist/esm/models/SourceUpdate.js +13 -0
  42. package/dist/esm/models/index.d.ts +2 -0
  43. package/dist/esm/models/index.js +2 -0
  44. package/dist/models/Assessment.d.ts +22 -0
  45. package/dist/models/Assessment.js +14 -1
  46. package/dist/models/AssessmentSharing.d.ts +45 -0
  47. package/dist/models/AssessmentSharing.js +57 -0
  48. package/dist/models/SharingSubject.d.ts +38 -0
  49. package/dist/models/SharingSubject.js +54 -0
  50. package/dist/models/SourceCreate.d.ts +26 -0
  51. package/dist/models/SourceCreate.js +14 -0
  52. package/dist/models/SourceUpdate.d.ts +26 -0
  53. package/dist/models/SourceUpdate.js +14 -0
  54. package/dist/models/index.d.ts +2 -0
  55. package/dist/models/index.js +2 -0
  56. package/docs/Assessment.md +4 -0
  57. package/docs/AssessmentSharing.md +38 -0
  58. package/docs/SharingSubject.md +36 -0
  59. package/docs/SourceCreate.md +6 -0
  60. package/docs/SourceUpdate.md +6 -0
  61. package/package.json +1 -1
  62. package/src/apis/AccountApi.ts +20 -11
  63. package/src/apis/AssessmentApi.ts +35 -16
  64. package/src/apis/HealthApi.ts +0 -1
  65. package/src/apis/ImageApi.ts +2 -5
  66. package/src/apis/InfoApi.ts +2 -5
  67. package/src/apis/JobApi.ts +2 -5
  68. package/src/apis/PartnerApi.ts +14 -9
  69. package/src/apis/SourceApi.ts +14 -9
  70. package/src/models/Assessment.ts +33 -0
  71. package/src/models/AssessmentSharing.ts +91 -0
  72. package/src/models/SharingSubject.ts +75 -0
  73. package/src/models/SourceCreate.ts +35 -0
  74. package/src/models/SourceUpdate.ts +35 -0
  75. package/src/models/index.ts +2 -0
  76. package/src/runtime.ts +0 -1
@@ -24,7 +24,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.SourceApi = void 0;
26
26
  const runtime = require("../runtime.js");
27
- const index_js_1 = require("../models/index.js");
27
+ const Source_js_1 = require("../models/Source.js");
28
+ const SourceCreate_js_1 = require("../models/SourceCreate.js");
29
+ const SourceUpdate_js_1 = require("../models/SourceUpdate.js");
30
+ const Status_js_1 = require("../models/Status.js");
31
+ const UpdateInventory_js_1 = require("../models/UpdateInventory.js");
28
32
  /**
29
33
  *
30
34
  */
@@ -46,7 +50,7 @@ class SourceApi extends runtime.BaseAPI {
46
50
  method: 'POST',
47
51
  headers: headerParameters,
48
52
  query: queryParameters,
49
- body: (0, index_js_1.SourceCreateToJSON)(requestParameters['sourceCreate']),
53
+ body: (0, SourceCreate_js_1.SourceCreateToJSON)(requestParameters['sourceCreate']),
50
54
  };
51
55
  });
52
56
  }
@@ -57,7 +61,7 @@ class SourceApi extends runtime.BaseAPI {
57
61
  return __awaiter(this, void 0, void 0, function* () {
58
62
  const requestOptions = yield this.createSourceRequestOpts(requestParameters);
59
63
  const response = yield this.request(requestOptions, initOverrides);
60
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.SourceFromJSON)(jsonValue));
64
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Source_js_1.SourceFromJSON)(jsonValue));
61
65
  });
62
66
  }
63
67
  /**
@@ -96,7 +100,7 @@ class SourceApi extends runtime.BaseAPI {
96
100
  return __awaiter(this, void 0, void 0, function* () {
97
101
  const requestOptions = yield this.deleteSourceRequestOpts(requestParameters);
98
102
  const response = yield this.request(requestOptions, initOverrides);
99
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.SourceFromJSON)(jsonValue));
103
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Source_js_1.SourceFromJSON)(jsonValue));
100
104
  });
101
105
  }
102
106
  /**
@@ -131,7 +135,7 @@ class SourceApi extends runtime.BaseAPI {
131
135
  return __awaiter(this, void 0, void 0, function* () {
132
136
  const requestOptions = yield this.deleteSourcesRequestOpts();
133
137
  const response = yield this.request(requestOptions, initOverrides);
134
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.StatusFromJSON)(jsonValue));
138
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Status_js_1.StatusFromJSON)(jsonValue));
135
139
  });
136
140
  }
137
141
  /**
@@ -170,7 +174,7 @@ class SourceApi extends runtime.BaseAPI {
170
174
  return __awaiter(this, void 0, void 0, function* () {
171
175
  const requestOptions = yield this.getSourceRequestOpts(requestParameters);
172
176
  const response = yield this.request(requestOptions, initOverrides);
173
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.SourceFromJSON)(jsonValue));
177
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Source_js_1.SourceFromJSON)(jsonValue));
174
178
  });
175
179
  }
176
180
  /**
@@ -205,7 +209,7 @@ class SourceApi extends runtime.BaseAPI {
205
209
  return __awaiter(this, void 0, void 0, function* () {
206
210
  const requestOptions = yield this.listSourcesRequestOpts();
207
211
  const response = yield this.request(requestOptions, initOverrides);
208
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.SourceFromJSON));
212
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Source_js_1.SourceFromJSON));
209
213
  });
210
214
  }
211
215
  /**
@@ -238,7 +242,7 @@ class SourceApi extends runtime.BaseAPI {
238
242
  method: 'PUT',
239
243
  headers: headerParameters,
240
244
  query: queryParameters,
241
- body: (0, index_js_1.UpdateInventoryToJSON)(requestParameters['updateInventory']),
245
+ body: (0, UpdateInventory_js_1.UpdateInventoryToJSON)(requestParameters['updateInventory']),
242
246
  };
243
247
  });
244
248
  }
@@ -249,7 +253,7 @@ class SourceApi extends runtime.BaseAPI {
249
253
  return __awaiter(this, void 0, void 0, function* () {
250
254
  const requestOptions = yield this.updateInventoryRequestOpts(requestParameters);
251
255
  const response = yield this.request(requestOptions, initOverrides);
252
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.SourceFromJSON)(jsonValue));
256
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Source_js_1.SourceFromJSON)(jsonValue));
253
257
  });
254
258
  }
255
259
  /**
@@ -282,7 +286,7 @@ class SourceApi extends runtime.BaseAPI {
282
286
  method: 'PUT',
283
287
  headers: headerParameters,
284
288
  query: queryParameters,
285
- body: (0, index_js_1.SourceUpdateToJSON)(requestParameters['sourceUpdate']),
289
+ body: (0, SourceUpdate_js_1.SourceUpdateToJSON)(requestParameters['sourceUpdate']),
286
290
  };
287
291
  });
288
292
  }
@@ -293,7 +297,7 @@ class SourceApi extends runtime.BaseAPI {
293
297
  return __awaiter(this, void 0, void 0, function* () {
294
298
  const requestOptions = yield this.updateSourceRequestOpts(requestParameters);
295
299
  const response = yield this.request(requestOptions, initOverrides);
296
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.SourceFromJSON)(jsonValue));
300
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Source_js_1.SourceFromJSON)(jsonValue));
297
301
  });
298
302
  }
299
303
  /**
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Group, GroupCreate, GroupUpdate, Identity, Member, MemberCreate, MemberUpdate } from '../models/index.js';
13
+ import { type Group } from '../models/Group.js';
14
+ import { type GroupCreate } from '../models/GroupCreate.js';
15
+ import { type GroupUpdate } from '../models/GroupUpdate.js';
16
+ import { type Identity } from '../models/Identity.js';
17
+ import { type Member } from '../models/Member.js';
18
+ import { type MemberCreate } from '../models/MemberCreate.js';
19
+ import { type MemberUpdate } from '../models/MemberUpdate.js';
14
20
  export interface CreateGroupRequest {
15
21
  groupCreate: GroupCreate;
16
22
  }
@@ -21,7 +21,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { GroupFromJSON, GroupCreateToJSON, GroupUpdateToJSON, IdentityFromJSON, MemberFromJSON, MemberCreateToJSON, MemberUpdateToJSON, } from '../models/index.js';
24
+ import { GroupFromJSON, } from '../models/Group.js';
25
+ import { GroupCreateToJSON, } from '../models/GroupCreate.js';
26
+ import { GroupUpdateToJSON, } from '../models/GroupUpdate.js';
27
+ import { IdentityFromJSON, } from '../models/Identity.js';
28
+ import { MemberFromJSON, } from '../models/Member.js';
29
+ import { MemberCreateToJSON, } from '../models/MemberCreate.js';
30
+ import { MemberUpdateToJSON, } from '../models/MemberUpdate.js';
25
31
  /**
26
32
  *
27
33
  */
@@ -10,7 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse, Status } from '../models/index.js';
13
+ import { type Assessment } from '../models/Assessment.js';
14
+ import { type AssessmentForm } from '../models/AssessmentForm.js';
15
+ import { type AssessmentUpdate } from '../models/AssessmentUpdate.js';
16
+ import { type ClusterRequirementsRequest } from '../models/ClusterRequirementsRequest.js';
17
+ import { type ClusterRequirementsResponse } from '../models/ClusterRequirementsResponse.js';
18
+ import { type ClusterRequirementsStoredInput } from '../models/ClusterRequirementsStoredInput.js';
19
+ import { type MigrationComplexityRequest } from '../models/MigrationComplexityRequest.js';
20
+ import { type MigrationComplexityResponse } from '../models/MigrationComplexityResponse.js';
21
+ import { type MigrationEstimationByComplexityResponse } from '../models/MigrationEstimationByComplexityResponse.js';
22
+ import { type MigrationEstimationRequest } from '../models/MigrationEstimationRequest.js';
23
+ import { type MigrationEstimationResponse } from '../models/MigrationEstimationResponse.js';
24
+ import { type Status } from '../models/Status.js';
14
25
  export interface CalculateAssessmentClusterRequirementsRequest {
15
26
  id: string;
16
27
  clusterRequirementsRequest: ClusterRequirementsRequest;
@@ -21,7 +21,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, ClusterRequirementsStoredInputFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, StatusFromJSON, } from '../models/index.js';
24
+ import { AssessmentFromJSON, } from '../models/Assessment.js';
25
+ import { AssessmentFormToJSON, } from '../models/AssessmentForm.js';
26
+ import { AssessmentUpdateToJSON, } from '../models/AssessmentUpdate.js';
27
+ import { ClusterRequirementsRequestToJSON, } from '../models/ClusterRequirementsRequest.js';
28
+ import { ClusterRequirementsResponseFromJSON, } from '../models/ClusterRequirementsResponse.js';
29
+ import { ClusterRequirementsStoredInputFromJSON, } from '../models/ClusterRequirementsStoredInput.js';
30
+ import { MigrationComplexityRequestToJSON, } from '../models/MigrationComplexityRequest.js';
31
+ import { MigrationComplexityResponseFromJSON, } from '../models/MigrationComplexityResponse.js';
32
+ import { MigrationEstimationByComplexityResponseFromJSON, } from '../models/MigrationEstimationByComplexityResponse.js';
33
+ import { MigrationEstimationRequestToJSON, } from '../models/MigrationEstimationRequest.js';
34
+ import { MigrationEstimationResponseFromJSON, } from '../models/MigrationEstimationResponse.js';
35
+ import { StatusFromJSON, } from '../models/Status.js';
25
36
  /**
26
37
  *
27
38
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { PresignedUrl } from '../models/index.js';
13
+ import { type PresignedUrl } from '../models/PresignedUrl.js';
14
14
  export interface GetSourceDownloadURLRequest {
15
15
  id: string;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { PresignedUrlFromJSON, } from '../models/index.js';
24
+ import { PresignedUrlFromJSON, } from '../models/PresignedUrl.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Info } from '../models/index.js';
13
+ import { type Info } from '../models/Info.js';
14
14
  /**
15
15
  * InfoApi - interface
16
16
  *
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { InfoFromJSON, } from '../models/index.js';
24
+ import { InfoFromJSON, } from '../models/Info.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Job } from '../models/index.js';
13
+ import { type Job } from '../models/Job.js';
14
14
  export interface CancelJobRequest {
15
15
  id: number;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { JobFromJSON, } from '../models/index.js';
24
+ import { JobFromJSON, } from '../models/Job.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Customer, Group, PartnerRequest, PartnerRequestCreate, PartnerRequestUpdate } from '../models/index.js';
13
+ import { type Customer } from '../models/Customer.js';
14
+ import { type Group } from '../models/Group.js';
15
+ import { type PartnerRequest } from '../models/PartnerRequest.js';
16
+ import { type PartnerRequestCreate } from '../models/PartnerRequestCreate.js';
17
+ import { type PartnerRequestUpdate } from '../models/PartnerRequestUpdate.js';
14
18
  export interface CancelPartnerRequestRequest {
15
19
  id: string;
16
20
  }
@@ -21,7 +21,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { CustomerFromJSON, GroupFromJSON, PartnerRequestFromJSON, PartnerRequestCreateToJSON, PartnerRequestUpdateToJSON, } from '../models/index.js';
24
+ import { CustomerFromJSON, } from '../models/Customer.js';
25
+ import { GroupFromJSON, } from '../models/Group.js';
26
+ import { PartnerRequestFromJSON, } from '../models/PartnerRequest.js';
27
+ import { PartnerRequestCreateToJSON, } from '../models/PartnerRequestCreate.js';
28
+ import { PartnerRequestUpdateToJSON, } from '../models/PartnerRequestUpdate.js';
25
29
  /**
26
30
  *
27
31
  */
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Source, SourceCreate, SourceUpdate, Status, UpdateInventory } from '../models/index.js';
13
+ import { type Source } from '../models/Source.js';
14
+ import { type SourceCreate } from '../models/SourceCreate.js';
15
+ import { type SourceUpdate } from '../models/SourceUpdate.js';
16
+ import { type Status } from '../models/Status.js';
17
+ import { type UpdateInventory } from '../models/UpdateInventory.js';
14
18
  export interface CreateSourceRequest {
15
19
  sourceCreate: SourceCreate;
16
20
  }
@@ -21,7 +21,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { SourceFromJSON, SourceCreateToJSON, SourceUpdateToJSON, StatusFromJSON, UpdateInventoryToJSON, } from '../models/index.js';
24
+ import { SourceFromJSON, } from '../models/Source.js';
25
+ import { SourceCreateToJSON, } from '../models/SourceCreate.js';
26
+ import { SourceUpdateToJSON, } from '../models/SourceUpdate.js';
27
+ import { StatusFromJSON, } from '../models/Status.js';
28
+ import { UpdateInventoryToJSON, } from '../models/UpdateInventory.js';
25
29
  /**
26
30
  *
27
31
  */
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Snapshot } from './Snapshot.js';
13
+ import type { AssessmentSharing } from './AssessmentSharing.js';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -64,6 +65,18 @@ export interface Assessment {
64
65
  * @memberof Assessment
65
66
  */
66
67
  snapshots: Array<Snapshot>;
68
+ /**
69
+ *
70
+ * @type {Array<AssessmentPermissionsEnum>}
71
+ * @memberof Assessment
72
+ */
73
+ permissions?: Array<AssessmentPermissionsEnum>;
74
+ /**
75
+ *
76
+ * @type {AssessmentSharing}
77
+ * @memberof Assessment
78
+ */
79
+ sharing?: AssessmentSharing;
67
80
  }
68
81
  /**
69
82
  * @export
@@ -74,6 +87,15 @@ export declare const AssessmentSourceTypeEnum: {
74
87
  readonly Source: "source";
75
88
  };
76
89
  export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const AssessmentPermissionsEnum: {
94
+ readonly Read: "read";
95
+ readonly Share: "share";
96
+ readonly Delete: "delete";
97
+ };
98
+ export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
77
99
  /**
78
100
  * Check if a given object implements the Assessment interface.
79
101
  */
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { SnapshotFromJSON, SnapshotToJSON, } from './Snapshot.js';
15
+ import { AssessmentSharingFromJSON, AssessmentSharingToJSON, } from './AssessmentSharing.js';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -20,6 +21,14 @@ export const AssessmentSourceTypeEnum = {
20
21
  Rvtools: 'rvtools',
21
22
  Source: 'source'
22
23
  };
24
+ /**
25
+ * @export
26
+ */
27
+ export const AssessmentPermissionsEnum = {
28
+ Read: 'read',
29
+ Share: 'share',
30
+ Delete: 'delete'
31
+ };
23
32
  /**
24
33
  * Check if a given object implements the Assessment interface.
25
34
  */
@@ -52,6 +61,8 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
52
61
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
53
62
  'createdAt': (new Date(json['createdAt'])),
54
63
  'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
64
+ 'permissions': json['permissions'] == null ? undefined : json['permissions'],
65
+ 'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
55
66
  };
56
67
  }
57
68
  export function AssessmentToJSON(json) {
@@ -70,5 +81,7 @@ export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
70
81
  'sourceId': value['sourceId'],
71
82
  'createdAt': value['createdAt'].toISOString(),
72
83
  'snapshots': (value['snapshots'].map(SnapshotToJSON)),
84
+ 'permissions': value['permissions'],
85
+ 'sharing': AssessmentSharingToJSON(value['sharing']),
73
86
  };
74
87
  }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 { SharingSubject } from './SharingSubject.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssessmentSharing
17
+ */
18
+ export interface AssessmentSharing {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof AssessmentSharing
23
+ */
24
+ isShared: boolean;
25
+ /**
26
+ *
27
+ * @type {Array<SharingSubject>}
28
+ * @memberof AssessmentSharing
29
+ */
30
+ sharedWith: Array<SharingSubject>;
31
+ /**
32
+ *
33
+ * @type {SharingSubject}
34
+ * @memberof AssessmentSharing
35
+ */
36
+ sharedBy?: SharingSubject;
37
+ }
38
+ /**
39
+ * Check if a given object implements the AssessmentSharing interface.
40
+ */
41
+ export declare function instanceOfAssessmentSharing(value: object): value is AssessmentSharing;
42
+ export declare function AssessmentSharingFromJSON(json: any): AssessmentSharing;
43
+ export declare function AssessmentSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSharing;
44
+ export declare function AssessmentSharingToJSON(json: any): AssessmentSharing;
45
+ export declare function AssessmentSharingToJSONTyped(value?: AssessmentSharing | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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
+ import { SharingSubjectFromJSON, SharingSubjectToJSON, } from './SharingSubject.js';
15
+ /**
16
+ * Check if a given object implements the AssessmentSharing interface.
17
+ */
18
+ export function instanceOfAssessmentSharing(value) {
19
+ if (!('isShared' in value) || value['isShared'] === undefined)
20
+ return false;
21
+ if (!('sharedWith' in value) || value['sharedWith'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function AssessmentSharingFromJSON(json) {
26
+ return AssessmentSharingFromJSONTyped(json, false);
27
+ }
28
+ export function AssessmentSharingFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'isShared': json['isShared'],
34
+ 'sharedWith': (json['sharedWith'].map(SharingSubjectFromJSON)),
35
+ 'sharedBy': json['sharedBy'] == null ? undefined : SharingSubjectFromJSON(json['sharedBy']),
36
+ };
37
+ }
38
+ export function AssessmentSharingToJSON(json) {
39
+ return AssessmentSharingToJSONTyped(json, false);
40
+ }
41
+ export function AssessmentSharingToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'isShared': value['isShared'],
47
+ 'sharedWith': (value['sharedWith'].map(SharingSubjectToJSON)),
48
+ 'sharedBy': SharingSubjectToJSON(value['sharedBy']),
49
+ };
50
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 SharingSubject
16
+ */
17
+ export interface SharingSubject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SharingSubject
22
+ */
23
+ type: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SharingSubject
28
+ */
29
+ id: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SharingSubject interface.
33
+ */
34
+ export declare function instanceOfSharingSubject(value: object): value is SharingSubject;
35
+ export declare function SharingSubjectFromJSON(json: any): SharingSubject;
36
+ export declare function SharingSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingSubject;
37
+ export declare function SharingSubjectToJSON(json: any): SharingSubject;
38
+ export declare function SharingSubjectToJSONTyped(value?: SharingSubject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the SharingSubject interface.
16
+ */
17
+ export function instanceOfSharingSubject(value) {
18
+ if (!('type' in value) || value['type'] === undefined)
19
+ return false;
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SharingSubjectFromJSON(json) {
25
+ return SharingSubjectFromJSONTyped(json, false);
26
+ }
27
+ export function SharingSubjectFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'type': json['type'],
33
+ 'id': json['id'],
34
+ };
35
+ }
36
+ export function SharingSubjectToJSON(json) {
37
+ return SharingSubjectToJSONTyped(json, false);
38
+ }
39
+ export function SharingSubjectToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'type': value['type'],
45
+ 'id': value['id'],
46
+ };
47
+ }
@@ -48,13 +48,39 @@ export interface SourceCreate {
48
48
  * @memberof SourceCreate
49
49
  */
50
50
  network?: VmNetwork;
51
+ /**
52
+ *
53
+ * @type {VmNetwork}
54
+ * @memberof SourceCreate
55
+ */
56
+ vmNetwork?: VmNetwork;
51
57
  /**
52
58
  *
53
59
  * @type {Array<Label>}
54
60
  * @memberof SourceCreate
55
61
  */
56
62
  labels?: Array<Label>;
63
+ /**
64
+ * Set to false to clear all proxy fields. When true or omitted, proxy fields are preserved or updated normally.
65
+ * @type {boolean}
66
+ * @memberof SourceCreate
67
+ */
68
+ enableProxy?: boolean;
69
+ /**
70
+ * Set to dhcp to clear all network fields. Set to static when providing vmNetwork/network data. When omitted, network fields are preserved or updated normally.
71
+ * @type {SourceCreateNetworkConfigTypeEnum}
72
+ * @memberof SourceCreate
73
+ */
74
+ networkConfigType?: SourceCreateNetworkConfigTypeEnum;
57
75
  }
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const SourceCreateNetworkConfigTypeEnum: {
80
+ readonly Dhcp: "dhcp";
81
+ readonly Static: "static";
82
+ };
83
+ export type SourceCreateNetworkConfigTypeEnum = typeof SourceCreateNetworkConfigTypeEnum[keyof typeof SourceCreateNetworkConfigTypeEnum];
58
84
  /**
59
85
  * Check if a given object implements the SourceCreate interface.
60
86
  */
@@ -14,6 +14,13 @@
14
14
  import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork.js';
15
15
  import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy.js';
16
16
  import { LabelFromJSON, LabelToJSON, } from './Label.js';
17
+ /**
18
+ * @export
19
+ */
20
+ export const SourceCreateNetworkConfigTypeEnum = {
21
+ Dhcp: 'dhcp',
22
+ Static: 'static'
23
+ };
17
24
  /**
18
25
  * Check if a given object implements the SourceCreate interface.
19
26
  */
@@ -35,7 +42,10 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
35
42
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
36
43
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
37
44
  'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
45
+ 'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
38
46
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
47
+ 'enableProxy': json['enableProxy'] == null ? undefined : json['enableProxy'],
48
+ 'networkConfigType': json['networkConfigType'] == null ? undefined : json['networkConfigType'],
39
49
  };
40
50
  }
41
51
  export function SourceCreateToJSON(json) {
@@ -51,6 +61,9 @@ export function SourceCreateToJSONTyped(value, ignoreDiscriminator = false) {
51
61
  'proxy': AgentProxyToJSON(value['proxy']),
52
62
  'certificateChain': value['certificateChain'],
53
63
  'network': VmNetworkToJSON(value['network']),
64
+ 'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
54
65
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
66
+ 'enableProxy': value['enableProxy'],
67
+ 'networkConfigType': value['networkConfigType'],
55
68
  };
56
69
  }