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

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 +44 -0
  37. package/dist/esm/models/SharingSubject.js +51 -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 +44 -0
  49. package/dist/models/SharingSubject.js +58 -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 +38 -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 +84 -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
@@ -0,0 +1,38 @@
1
+
2
+ # SharingSubject
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `type` | string
10
+ `id` | string
11
+ `name` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SharingSubject } from '@openshift-migration-advisor/planner-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "type": null,
21
+ "id": null,
22
+ "name": null,
23
+ } satisfies SharingSubject
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SharingSubject
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -11,7 +11,10 @@ Name | Type
11
11
  `proxy` | [AgentProxy](AgentProxy.md)
12
12
  `certificateChain` | string
13
13
  `network` | [VmNetwork](VmNetwork.md)
14
+ `vmNetwork` | [VmNetwork](VmNetwork.md)
14
15
  `labels` | [Array<Label>](Label.md)
16
+ `enableProxy` | boolean
17
+ `networkConfigType` | string
15
18
 
16
19
  ## Example
17
20
 
@@ -25,7 +28,10 @@ const example = {
25
28
  "proxy": null,
26
29
  "certificateChain": null,
27
30
  "network": null,
31
+ "vmNetwork": null,
28
32
  "labels": null,
33
+ "enableProxy": null,
34
+ "networkConfigType": null,
29
35
  } satisfies SourceCreate
30
36
 
31
37
  console.log(example)
@@ -12,6 +12,9 @@ Name | Type
12
12
  `certificateChain` | string
13
13
  `proxy` | [AgentProxy](AgentProxy.md)
14
14
  `network` | [VmNetwork](VmNetwork.md)
15
+ `vmNetwork` | [VmNetwork](VmNetwork.md)
16
+ `enableProxy` | boolean
17
+ `networkConfigType` | string
15
18
 
16
19
  ## Example
17
20
 
@@ -26,6 +29,9 @@ const example = {
26
29
  "certificateChain": null,
27
30
  "proxy": null,
28
31
  "network": null,
32
+ "vmNetwork": null,
33
+ "enableProxy": null,
34
+ "networkConfigType": null,
29
35
  } satisfies SourceUpdate
30
36
 
31
37
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.12.0",
3
+ "version": "0.13.1-5b03e25a9bc5",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -12,33 +12,42 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- Group,
19
- GroupCreate,
20
- GroupUpdate,
21
- Identity,
22
- Member,
23
- MemberCreate,
24
- MemberUpdate,
25
- } from '../models/index.js';
26
16
  import {
17
+ type Group,
27
18
  GroupFromJSON,
28
19
  GroupToJSON,
20
+ } from '../models/Group.js';
21
+ import {
22
+ type GroupCreate,
29
23
  GroupCreateFromJSON,
30
24
  GroupCreateToJSON,
25
+ } from '../models/GroupCreate.js';
26
+ import {
27
+ type GroupUpdate,
31
28
  GroupUpdateFromJSON,
32
29
  GroupUpdateToJSON,
30
+ } from '../models/GroupUpdate.js';
31
+ import {
32
+ type Identity,
33
33
  IdentityFromJSON,
34
34
  IdentityToJSON,
35
+ } from '../models/Identity.js';
36
+ import {
37
+ type Member,
35
38
  MemberFromJSON,
36
39
  MemberToJSON,
40
+ } from '../models/Member.js';
41
+ import {
42
+ type MemberCreate,
37
43
  MemberCreateFromJSON,
38
44
  MemberCreateToJSON,
45
+ } from '../models/MemberCreate.js';
46
+ import {
47
+ type MemberUpdate,
39
48
  MemberUpdateFromJSON,
40
49
  MemberUpdateToJSON,
41
- } from '../models/index.js';
50
+ } from '../models/MemberUpdate.js';
42
51
 
43
52
  export interface CreateGroupRequest {
44
53
  groupCreate: GroupCreate;
@@ -12,48 +12,67 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- Assessment,
19
- AssessmentForm,
20
- AssessmentUpdate,
21
- ClusterRequirementsRequest,
22
- ClusterRequirementsResponse,
23
- ClusterRequirementsStoredInput,
24
- MigrationComplexityRequest,
25
- MigrationComplexityResponse,
26
- MigrationEstimationByComplexityResponse,
27
- MigrationEstimationRequest,
28
- MigrationEstimationResponse,
29
- Status,
30
- } from '../models/index.js';
31
16
  import {
17
+ type Assessment,
32
18
  AssessmentFromJSON,
33
19
  AssessmentToJSON,
20
+ } from '../models/Assessment.js';
21
+ import {
22
+ type AssessmentForm,
34
23
  AssessmentFormFromJSON,
35
24
  AssessmentFormToJSON,
25
+ } from '../models/AssessmentForm.js';
26
+ import {
27
+ type AssessmentUpdate,
36
28
  AssessmentUpdateFromJSON,
37
29
  AssessmentUpdateToJSON,
30
+ } from '../models/AssessmentUpdate.js';
31
+ import {
32
+ type ClusterRequirementsRequest,
38
33
  ClusterRequirementsRequestFromJSON,
39
34
  ClusterRequirementsRequestToJSON,
35
+ } from '../models/ClusterRequirementsRequest.js';
36
+ import {
37
+ type ClusterRequirementsResponse,
40
38
  ClusterRequirementsResponseFromJSON,
41
39
  ClusterRequirementsResponseToJSON,
40
+ } from '../models/ClusterRequirementsResponse.js';
41
+ import {
42
+ type ClusterRequirementsStoredInput,
42
43
  ClusterRequirementsStoredInputFromJSON,
43
44
  ClusterRequirementsStoredInputToJSON,
45
+ } from '../models/ClusterRequirementsStoredInput.js';
46
+ import {
47
+ type MigrationComplexityRequest,
44
48
  MigrationComplexityRequestFromJSON,
45
49
  MigrationComplexityRequestToJSON,
50
+ } from '../models/MigrationComplexityRequest.js';
51
+ import {
52
+ type MigrationComplexityResponse,
46
53
  MigrationComplexityResponseFromJSON,
47
54
  MigrationComplexityResponseToJSON,
55
+ } from '../models/MigrationComplexityResponse.js';
56
+ import {
57
+ type MigrationEstimationByComplexityResponse,
48
58
  MigrationEstimationByComplexityResponseFromJSON,
49
59
  MigrationEstimationByComplexityResponseToJSON,
60
+ } from '../models/MigrationEstimationByComplexityResponse.js';
61
+ import {
62
+ type MigrationEstimationRequest,
50
63
  MigrationEstimationRequestFromJSON,
51
64
  MigrationEstimationRequestToJSON,
65
+ } from '../models/MigrationEstimationRequest.js';
66
+ import {
67
+ type MigrationEstimationResponse,
52
68
  MigrationEstimationResponseFromJSON,
53
69
  MigrationEstimationResponseToJSON,
70
+ } from '../models/MigrationEstimationResponse.js';
71
+ import {
72
+ type Status,
54
73
  StatusFromJSON,
55
74
  StatusToJSON,
56
- } from '../models/index.js';
75
+ } from '../models/Status.js';
57
76
 
58
77
  export interface CalculateAssessmentClusterRequirementsRequest {
59
78
  id: string;
@@ -12,7 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
16
 
18
17
  /**
@@ -12,15 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- PresignedUrl,
19
- } from '../models/index.js';
20
16
  import {
17
+ type PresignedUrl,
21
18
  PresignedUrlFromJSON,
22
19
  PresignedUrlToJSON,
23
- } from '../models/index.js';
20
+ } from '../models/PresignedUrl.js';
24
21
 
25
22
  export interface GetSourceDownloadURLRequest {
26
23
  id: string;
@@ -12,15 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- Info,
19
- } from '../models/index.js';
20
16
  import {
17
+ type Info,
21
18
  InfoFromJSON,
22
19
  InfoToJSON,
23
- } from '../models/index.js';
20
+ } from '../models/Info.js';
24
21
 
25
22
  /**
26
23
  * InfoApi - interface
@@ -12,15 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- Job,
19
- } from '../models/index.js';
20
16
  import {
17
+ type Job,
21
18
  JobFromJSON,
22
19
  JobToJSON,
23
- } from '../models/index.js';
20
+ } from '../models/Job.js';
24
21
 
25
22
  export interface CancelJobRequest {
26
23
  id: number;
@@ -12,27 +12,32 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- Customer,
19
- Group,
20
- PartnerRequest,
21
- PartnerRequestCreate,
22
- PartnerRequestUpdate,
23
- } from '../models/index.js';
24
16
  import {
17
+ type Customer,
25
18
  CustomerFromJSON,
26
19
  CustomerToJSON,
20
+ } from '../models/Customer.js';
21
+ import {
22
+ type Group,
27
23
  GroupFromJSON,
28
24
  GroupToJSON,
25
+ } from '../models/Group.js';
26
+ import {
27
+ type PartnerRequest,
29
28
  PartnerRequestFromJSON,
30
29
  PartnerRequestToJSON,
30
+ } from '../models/PartnerRequest.js';
31
+ import {
32
+ type PartnerRequestCreate,
31
33
  PartnerRequestCreateFromJSON,
32
34
  PartnerRequestCreateToJSON,
35
+ } from '../models/PartnerRequestCreate.js';
36
+ import {
37
+ type PartnerRequestUpdate,
33
38
  PartnerRequestUpdateFromJSON,
34
39
  PartnerRequestUpdateToJSON,
35
- } from '../models/index.js';
40
+ } from '../models/PartnerRequestUpdate.js';
36
41
 
37
42
  export interface CancelPartnerRequestRequest {
38
43
  id: string;
@@ -12,27 +12,32 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime.js';
17
- import type {
18
- Source,
19
- SourceCreate,
20
- SourceUpdate,
21
- Status,
22
- UpdateInventory,
23
- } from '../models/index.js';
24
16
  import {
17
+ type Source,
25
18
  SourceFromJSON,
26
19
  SourceToJSON,
20
+ } from '../models/Source.js';
21
+ import {
22
+ type SourceCreate,
27
23
  SourceCreateFromJSON,
28
24
  SourceCreateToJSON,
25
+ } from '../models/SourceCreate.js';
26
+ import {
27
+ type SourceUpdate,
29
28
  SourceUpdateFromJSON,
30
29
  SourceUpdateToJSON,
30
+ } from '../models/SourceUpdate.js';
31
+ import {
32
+ type Status,
31
33
  StatusFromJSON,
32
34
  StatusToJSON,
35
+ } from '../models/Status.js';
36
+ import {
37
+ type UpdateInventory,
33
38
  UpdateInventoryFromJSON,
34
39
  UpdateInventoryToJSON,
35
- } from '../models/index.js';
40
+ } from '../models/UpdateInventory.js';
36
41
 
37
42
  export interface CreateSourceRequest {
38
43
  sourceCreate: SourceCreate;
@@ -20,6 +20,13 @@ import {
20
20
  SnapshotToJSON,
21
21
  SnapshotToJSONTyped,
22
22
  } from './Snapshot.js';
23
+ import type { AssessmentSharing } from './AssessmentSharing.js';
24
+ import {
25
+ AssessmentSharingFromJSON,
26
+ AssessmentSharingFromJSONTyped,
27
+ AssessmentSharingToJSON,
28
+ AssessmentSharingToJSONTyped,
29
+ } from './AssessmentSharing.js';
23
30
 
24
31
  /**
25
32
  *
@@ -75,6 +82,18 @@ export interface Assessment {
75
82
  * @memberof Assessment
76
83
  */
77
84
  snapshots: Array<Snapshot>;
85
+ /**
86
+ *
87
+ * @type {Array<AssessmentPermissionsEnum>}
88
+ * @memberof Assessment
89
+ */
90
+ permissions?: Array<AssessmentPermissionsEnum>;
91
+ /**
92
+ *
93
+ * @type {AssessmentSharing}
94
+ * @memberof Assessment
95
+ */
96
+ sharing?: AssessmentSharing;
78
97
  }
79
98
 
80
99
 
@@ -88,6 +107,16 @@ export const AssessmentSourceTypeEnum = {
88
107
  } as const;
89
108
  export type AssessmentSourceTypeEnum = typeof AssessmentSourceTypeEnum[keyof typeof AssessmentSourceTypeEnum];
90
109
 
110
+ /**
111
+ * @export
112
+ */
113
+ export const AssessmentPermissionsEnum = {
114
+ Read: 'read',
115
+ Share: 'share',
116
+ Delete: 'delete'
117
+ } as const;
118
+ export type AssessmentPermissionsEnum = typeof AssessmentPermissionsEnum[keyof typeof AssessmentPermissionsEnum];
119
+
91
120
 
92
121
  /**
93
122
  * Check if a given object implements the Assessment interface.
@@ -119,6 +148,8 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
119
148
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
120
149
  'createdAt': (new Date(json['createdAt'])),
121
150
  'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
151
+ 'permissions': json['permissions'] == null ? undefined : json['permissions'],
152
+ 'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
122
153
  };
123
154
  }
124
155
 
@@ -141,6 +172,8 @@ export function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscrimin
141
172
  'sourceId': value['sourceId'],
142
173
  'createdAt': value['createdAt'].toISOString(),
143
174
  'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
175
+ 'permissions': value['permissions'],
176
+ 'sharing': AssessmentSharingToJSON(value['sharing']),
144
177
  };
145
178
  }
146
179
 
@@ -0,0 +1,91 @@
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
+ import { mapValues } from '../runtime.js';
16
+ import type { SharingSubject } from './SharingSubject.js';
17
+ import {
18
+ SharingSubjectFromJSON,
19
+ SharingSubjectFromJSONTyped,
20
+ SharingSubjectToJSON,
21
+ SharingSubjectToJSONTyped,
22
+ } from './SharingSubject.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssessmentSharing
28
+ */
29
+ export interface AssessmentSharing {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof AssessmentSharing
34
+ */
35
+ isShared: boolean;
36
+ /**
37
+ *
38
+ * @type {Array<SharingSubject>}
39
+ * @memberof AssessmentSharing
40
+ */
41
+ sharedWith: Array<SharingSubject>;
42
+ /**
43
+ *
44
+ * @type {SharingSubject}
45
+ * @memberof AssessmentSharing
46
+ */
47
+ sharedBy?: SharingSubject;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the AssessmentSharing interface.
52
+ */
53
+ export function instanceOfAssessmentSharing(value: object): value is AssessmentSharing {
54
+ if (!('isShared' in value) || value['isShared'] === undefined) return false;
55
+ if (!('sharedWith' in value) || value['sharedWith'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AssessmentSharingFromJSON(json: any): AssessmentSharing {
60
+ return AssessmentSharingFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AssessmentSharingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSharing {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'isShared': json['isShared'],
70
+ 'sharedWith': ((json['sharedWith'] as Array<any>).map(SharingSubjectFromJSON)),
71
+ 'sharedBy': json['sharedBy'] == null ? undefined : SharingSubjectFromJSON(json['sharedBy']),
72
+ };
73
+ }
74
+
75
+ export function AssessmentSharingToJSON(json: any): AssessmentSharing {
76
+ return AssessmentSharingToJSONTyped(json, false);
77
+ }
78
+
79
+ export function AssessmentSharingToJSONTyped(value?: AssessmentSharing | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'isShared': value['isShared'],
87
+ 'sharedWith': ((value['sharedWith'] as Array<any>).map(SharingSubjectToJSON)),
88
+ 'sharedBy': SharingSubjectToJSON(value['sharedBy']),
89
+ };
90
+ }
91
+
@@ -0,0 +1,84 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SharingSubject
20
+ */
21
+ export interface SharingSubject {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SharingSubject
26
+ */
27
+ type: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SharingSubject
32
+ */
33
+ id: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SharingSubject
38
+ */
39
+ name: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SharingSubject interface.
44
+ */
45
+ export function instanceOfSharingSubject(value: object): value is SharingSubject {
46
+ if (!('type' in value) || value['type'] === undefined) return false;
47
+ if (!('id' in value) || value['id'] === undefined) return false;
48
+ if (!('name' in value) || value['name'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SharingSubjectFromJSON(json: any): SharingSubject {
53
+ return SharingSubjectFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SharingSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingSubject {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'type': json['type'],
63
+ 'id': json['id'],
64
+ 'name': json['name'],
65
+ };
66
+ }
67
+
68
+ export function SharingSubjectToJSON(json: any): SharingSubject {
69
+ return SharingSubjectToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SharingSubjectToJSONTyped(value?: SharingSubject | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'type': value['type'],
80
+ 'id': value['id'],
81
+ 'name': value['name'],
82
+ };
83
+ }
84
+
@@ -71,14 +71,43 @@ export interface SourceCreate {
71
71
  * @memberof SourceCreate
72
72
  */
73
73
  network?: VmNetwork;
74
+ /**
75
+ *
76
+ * @type {VmNetwork}
77
+ * @memberof SourceCreate
78
+ */
79
+ vmNetwork?: VmNetwork;
74
80
  /**
75
81
  *
76
82
  * @type {Array<Label>}
77
83
  * @memberof SourceCreate
78
84
  */
79
85
  labels?: Array<Label>;
86
+ /**
87
+ * Set to false to clear all proxy fields. When true or omitted, proxy fields are preserved or updated normally.
88
+ * @type {boolean}
89
+ * @memberof SourceCreate
90
+ */
91
+ enableProxy?: boolean;
92
+ /**
93
+ * 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.
94
+ * @type {SourceCreateNetworkConfigTypeEnum}
95
+ * @memberof SourceCreate
96
+ */
97
+ networkConfigType?: SourceCreateNetworkConfigTypeEnum;
80
98
  }
81
99
 
100
+
101
+ /**
102
+ * @export
103
+ */
104
+ export const SourceCreateNetworkConfigTypeEnum = {
105
+ Dhcp: 'dhcp',
106
+ Static: 'static'
107
+ } as const;
108
+ export type SourceCreateNetworkConfigTypeEnum = typeof SourceCreateNetworkConfigTypeEnum[keyof typeof SourceCreateNetworkConfigTypeEnum];
109
+
110
+
82
111
  /**
83
112
  * Check if a given object implements the SourceCreate interface.
84
113
  */
@@ -102,7 +131,10 @@ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
102
131
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
103
132
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
104
133
  'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
134
+ 'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
105
135
  'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
136
+ 'enableProxy': json['enableProxy'] == null ? undefined : json['enableProxy'],
137
+ 'networkConfigType': json['networkConfigType'] == null ? undefined : json['networkConfigType'],
106
138
  };
107
139
  }
108
140
 
@@ -122,7 +154,10 @@ export function SourceCreateToJSONTyped(value?: SourceCreate | null, ignoreDiscr
122
154
  'proxy': AgentProxyToJSON(value['proxy']),
123
155
  'certificateChain': value['certificateChain'],
124
156
  'network': VmNetworkToJSON(value['network']),
157
+ 'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
125
158
  'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
159
+ 'enableProxy': value['enableProxy'],
160
+ 'networkConfigType': value['networkConfigType'],
126
161
  };
127
162
  }
128
163