@cirrobio/api-client 0.1.23 → 0.1.25

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 (41) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +1 -1
  3. package/dist/apis/GovernanceApi.d.ts +81 -0
  4. package/dist/apis/GovernanceApi.js +357 -0
  5. package/dist/apis/ProjectRequestsApi.d.ts +31 -0
  6. package/dist/apis/ProjectRequestsApi.js +137 -0
  7. package/dist/apis/ProjectsApi.d.ts +3 -3
  8. package/dist/apis/ProjectsApi.js +6 -6
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/Agent.d.ts +5 -3
  12. package/dist/models/ClassificationInput.d.ts +37 -0
  13. package/dist/models/ClassificationInput.js +53 -0
  14. package/dist/models/ComputeEnvironmentConfiguration.d.ts +6 -4
  15. package/dist/models/GovernanceClassification.d.ts +61 -0
  16. package/dist/models/GovernanceClassification.js +65 -0
  17. package/dist/models/Project.d.ts +12 -0
  18. package/dist/models/Project.js +6 -0
  19. package/dist/models/ProjectDetail.d.ts +6 -0
  20. package/dist/models/ProjectDetail.js +3 -0
  21. package/dist/models/ProjectInput.d.ts +77 -0
  22. package/dist/models/ProjectInput.js +73 -0
  23. package/dist/models/ProjectRequest.d.ts +8 -18
  24. package/dist/models/ProjectRequest.js +12 -18
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/package.json +1 -1
  28. package/src/apis/GovernanceApi.ts +255 -0
  29. package/src/apis/ProjectRequestsApi.ts +80 -0
  30. package/src/apis/ProjectsApi.ts +11 -11
  31. package/src/apis/index.ts +2 -0
  32. package/src/models/Agent.ts +3 -3
  33. package/src/models/ClassificationInput.ts +75 -0
  34. package/src/models/ComputeEnvironmentConfiguration.ts +10 -10
  35. package/src/models/GovernanceClassification.ts +111 -0
  36. package/src/models/Project.ts +18 -0
  37. package/src/models/ProjectDetail.ts +9 -0
  38. package/src/models/ProjectInput.ts +151 -0
  39. package/src/models/ProjectRequest.ts +20 -52
  40. package/src/models/RunAnalysisRequest.ts +3 -3
  41. package/src/models/index.ts +3 -0
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApproveProjectAccessRequest, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectRequest, ProjectUser, SetUserProjectRoleRequest, Tag } from '../models/index';
13
+ import type { ApproveProjectAccessRequest, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectInput, ProjectUser, SetUserProjectRoleRequest, Tag } from '../models/index';
14
14
  export interface ApproveAccessRequestRequest {
15
15
  projectId: string;
16
16
  accessRequestId: string;
@@ -24,7 +24,7 @@ export interface CreateAccessRequestRequest {
24
24
  createProjectAccessRequest: CreateProjectAccessRequest;
25
25
  }
26
26
  export interface CreateProjectRequest {
27
- projectRequest: ProjectRequest;
27
+ projectInput: ProjectInput;
28
28
  }
29
29
  export interface DenyAccessRequestRequest {
30
30
  projectId: string;
@@ -52,7 +52,7 @@ export interface UnarchiveProjectRequest {
52
52
  }
53
53
  export interface UpdateProjectRequest {
54
54
  projectId: string;
55
- projectRequest: ProjectRequest;
55
+ projectInput: ProjectInput;
56
56
  }
57
57
  export interface UpdateProjectTagsRequest {
58
58
  projectId: string;
@@ -259,8 +259,8 @@ var ProjectsApi = /** @class */ (function (_super) {
259
259
  return __generator(this, function (_a) {
260
260
  switch (_a.label) {
261
261
  case 0:
262
- if (requestParameters.projectRequest === null || requestParameters.projectRequest === undefined) {
263
- throw new runtime.RequiredError('projectRequest', 'Required parameter requestParameters.projectRequest was null or undefined when calling createProject.');
262
+ if (requestParameters.projectInput === null || requestParameters.projectInput === undefined) {
263
+ throw new runtime.RequiredError('projectInput', 'Required parameter requestParameters.projectInput was null or undefined when calling createProject.');
264
264
  }
265
265
  queryParameters = {};
266
266
  headerParameters = {};
@@ -279,7 +279,7 @@ var ProjectsApi = /** @class */ (function (_super) {
279
279
  method: 'POST',
280
280
  headers: headerParameters,
281
281
  query: queryParameters,
282
- body: (0, index_1.ProjectRequestToJSON)(requestParameters.projectRequest),
282
+ body: (0, index_1.ProjectInputToJSON)(requestParameters.projectInput),
283
283
  }, initOverrides)];
284
284
  case 3:
285
285
  response = _a.sent();
@@ -863,8 +863,8 @@ var ProjectsApi = /** @class */ (function (_super) {
863
863
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
864
864
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
865
865
  }
866
- if (requestParameters.projectRequest === null || requestParameters.projectRequest === undefined) {
867
- throw new runtime.RequiredError('projectRequest', 'Required parameter requestParameters.projectRequest was null or undefined when calling updateProject.');
866
+ if (requestParameters.projectInput === null || requestParameters.projectInput === undefined) {
867
+ throw new runtime.RequiredError('projectInput', 'Required parameter requestParameters.projectInput was null or undefined when calling updateProject.');
868
868
  }
869
869
  queryParameters = {};
870
870
  headerParameters = {};
@@ -883,7 +883,7 @@ var ProjectsApi = /** @class */ (function (_super) {
883
883
  method: 'PUT',
884
884
  headers: headerParameters,
885
885
  query: queryParameters,
886
- body: (0, index_1.ProjectRequestToJSON)(requestParameters.projectRequest),
886
+ body: (0, index_1.ProjectInputToJSON)(requestParameters.projectInput),
887
887
  }, initOverrides)];
888
888
  case 3:
889
889
  response = _a.sent();
@@ -5,10 +5,12 @@ export * from './DashboardsApi';
5
5
  export * from './DatasetsApi';
6
6
  export * from './ExecutionApi';
7
7
  export * from './FileApi';
8
+ export * from './GovernanceApi';
8
9
  export * from './MetadataApi';
9
10
  export * from './MetricsApi';
10
11
  export * from './NotebooksApi';
11
12
  export * from './ProcessesApi';
13
+ export * from './ProjectRequestsApi';
12
14
  export * from './ProjectsApi';
13
15
  export * from './ReferencesApi';
14
16
  export * from './SystemApi';
@@ -23,10 +23,12 @@ __exportStar(require("./DashboardsApi"), exports);
23
23
  __exportStar(require("./DatasetsApi"), exports);
24
24
  __exportStar(require("./ExecutionApi"), exports);
25
25
  __exportStar(require("./FileApi"), exports);
26
+ __exportStar(require("./GovernanceApi"), exports);
26
27
  __exportStar(require("./MetadataApi"), exports);
27
28
  __exportStar(require("./MetricsApi"), exports);
28
29
  __exportStar(require("./NotebooksApi"), exports);
29
30
  __exportStar(require("./ProcessesApi"), exports);
31
+ __exportStar(require("./ProjectRequestsApi"), exports);
30
32
  __exportStar(require("./ProjectsApi"), exports);
31
33
  __exportStar(require("./ReferencesApi"), exports);
32
34
  __exportStar(require("./SystemApi"), exports);
@@ -29,11 +29,13 @@ export interface Agent {
29
29
  */
30
30
  name?: string;
31
31
  /**
32
- *
33
- * @type {any}
32
+ * Tags associated with the agent
33
+ * @type {{ [key: string]: string; }}
34
34
  * @memberof Agent
35
35
  */
36
- tags?: any;
36
+ tags?: {
37
+ [key: string]: string;
38
+ };
37
39
  /**
38
40
  *
39
41
  * @type {AgentStatus}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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 ClassificationInput
16
+ */
17
+ export interface ClassificationInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ClassificationInput
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ClassificationInput
28
+ */
29
+ description: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ClassificationInput interface.
33
+ */
34
+ export declare function instanceOfClassificationInput(value: object): boolean;
35
+ export declare function ClassificationInputFromJSON(json: any): ClassificationInput;
36
+ export declare function ClassificationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassificationInput;
37
+ export declare function ClassificationInputToJSON(value?: ClassificationInput | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ClassificationInputToJSON = exports.ClassificationInputFromJSONTyped = exports.ClassificationInputFromJSON = exports.instanceOfClassificationInput = void 0;
17
+ /**
18
+ * Check if a given object implements the ClassificationInput interface.
19
+ */
20
+ function instanceOfClassificationInput(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "description" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfClassificationInput = instanceOfClassificationInput;
27
+ function ClassificationInputFromJSON(json) {
28
+ return ClassificationInputFromJSONTyped(json, false);
29
+ }
30
+ exports.ClassificationInputFromJSON = ClassificationInputFromJSON;
31
+ function ClassificationInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'],
37
+ 'description': json['description'],
38
+ };
39
+ }
40
+ exports.ClassificationInputFromJSONTyped = ClassificationInputFromJSONTyped;
41
+ function ClassificationInputToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'name': value.name,
50
+ 'description': value.description,
51
+ };
52
+ }
53
+ exports.ClassificationInputToJSON = ClassificationInputToJSON;
@@ -30,11 +30,13 @@ export interface ComputeEnvironmentConfiguration {
30
30
  */
31
31
  name?: string;
32
32
  /**
33
- *
34
- * @type {any}
33
+ * Configuration properties passed to the environment
34
+ * @type {{ [key: string]: string; }}
35
35
  * @memberof ComputeEnvironmentConfiguration
36
36
  */
37
- properties?: any;
37
+ properties?: {
38
+ [key: string]: string;
39
+ };
38
40
  /**
39
41
  *
40
42
  * @type {EnvironmentType}
@@ -42,7 +44,7 @@ export interface ComputeEnvironmentConfiguration {
42
44
  */
43
45
  environmentType: EnvironmentType;
44
46
  /**
45
- * The agent associated with this environment (if applicable)
47
+ *
46
48
  * @type {Agent}
47
49
  * @memberof ComputeEnvironmentConfiguration
48
50
  */
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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 GovernanceClassification
16
+ */
17
+ export interface GovernanceClassification {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GovernanceClassification
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GovernanceClassification
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GovernanceClassification
34
+ */
35
+ description: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GovernanceClassification
40
+ */
41
+ createdBy: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof GovernanceClassification
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof GovernanceClassification
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the GovernanceClassification interface.
57
+ */
58
+ export declare function instanceOfGovernanceClassification(value: object): boolean;
59
+ export declare function GovernanceClassificationFromJSON(json: any): GovernanceClassification;
60
+ export declare function GovernanceClassificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceClassification;
61
+ export declare function GovernanceClassificationToJSON(value?: GovernanceClassification | null): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GovernanceClassificationToJSON = exports.GovernanceClassificationFromJSONTyped = exports.GovernanceClassificationFromJSON = exports.instanceOfGovernanceClassification = void 0;
17
+ /**
18
+ * Check if a given object implements the GovernanceClassification interface.
19
+ */
20
+ function instanceOfGovernanceClassification(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "id" in value;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "createdBy" in value;
26
+ isInstance = isInstance && "createdAt" in value;
27
+ isInstance = isInstance && "updatedAt" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfGovernanceClassification = instanceOfGovernanceClassification;
31
+ function GovernanceClassificationFromJSON(json) {
32
+ return GovernanceClassificationFromJSONTyped(json, false);
33
+ }
34
+ exports.GovernanceClassificationFromJSON = GovernanceClassificationFromJSON;
35
+ function GovernanceClassificationFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ 'description': json['description'],
43
+ 'createdBy': json['createdBy'],
44
+ 'createdAt': (new Date(json['createdAt'])),
45
+ 'updatedAt': (new Date(json['updatedAt'])),
46
+ };
47
+ }
48
+ exports.GovernanceClassificationFromJSONTyped = GovernanceClassificationFromJSONTyped;
49
+ function GovernanceClassificationToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {
57
+ 'id': value.id,
58
+ 'name': value.name,
59
+ 'description': value.description,
60
+ 'createdBy': value.createdBy,
61
+ 'createdAt': (value.createdAt.toISOString()),
62
+ 'updatedAt': (value.updatedAt.toISOString()),
63
+ };
64
+ }
65
+ exports.GovernanceClassificationToJSON = GovernanceClassificationToJSON;
@@ -47,6 +47,18 @@ export interface Project {
47
47
  * @memberof Project
48
48
  */
49
49
  tags: Array<Tag>;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Project
54
+ */
55
+ organization: string;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof Project
60
+ */
61
+ classificationIds: Array<string>;
50
62
  /**
51
63
  *
52
64
  * @type {string}
@@ -26,6 +26,8 @@ function instanceOfProject(value) {
26
26
  isInstance = isInstance && "description" in value;
27
27
  isInstance = isInstance && "status" in value;
28
28
  isInstance = isInstance && "tags" in value;
29
+ isInstance = isInstance && "organization" in value;
30
+ isInstance = isInstance && "classificationIds" in value;
29
31
  isInstance = isInstance && "billingAccountId" in value;
30
32
  return isInstance;
31
33
  }
@@ -44,6 +46,8 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'description': json['description'],
45
47
  'status': (0, Status_1.StatusFromJSON)(json['status']),
46
48
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
49
+ 'organization': json['organization'],
50
+ 'classificationIds': json['classificationIds'],
47
51
  'billingAccountId': json['billingAccountId'],
48
52
  };
49
53
  }
@@ -61,6 +65,8 @@ function ProjectToJSON(value) {
61
65
  'description': value.description,
62
66
  'status': (0, Status_1.StatusToJSON)(value.status),
63
67
  'tags': (value.tags.map(Tag_1.TagToJSON)),
68
+ 'organization': value.organization,
69
+ 'classificationIds': value.classificationIds,
64
70
  'billingAccountId': value.billingAccountId,
65
71
  };
66
72
  }
@@ -80,6 +80,12 @@ export interface ProjectDetail {
80
80
  * @memberof ProjectDetail
81
81
  */
82
82
  tags: Array<Tag>;
83
+ /**
84
+ *
85
+ * @type {Array<string>}
86
+ * @memberof ProjectDetail
87
+ */
88
+ classificationIds: Array<string>;
83
89
  /**
84
90
  *
85
91
  * @type {string}
@@ -34,6 +34,7 @@ function instanceOfProjectDetail(value) {
34
34
  isInstance = isInstance && "settings" in value;
35
35
  isInstance = isInstance && "statusMessage" in value;
36
36
  isInstance = isInstance && "tags" in value;
37
+ isInstance = isInstance && "classificationIds" in value;
37
38
  isInstance = isInstance && "createdBy" in value;
38
39
  isInstance = isInstance && "createdAt" in value;
39
40
  isInstance = isInstance && "updatedAt" in value;
@@ -59,6 +60,7 @@ function ProjectDetailFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'account': !(0, runtime_1.exists)(json, 'account') ? undefined : (0, CloudAccount_1.CloudAccountFromJSON)(json['account']),
60
61
  'statusMessage': json['statusMessage'],
61
62
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
63
+ 'classificationIds': json['classificationIds'],
62
64
  'createdBy': json['createdBy'],
63
65
  'createdAt': (new Date(json['createdAt'])),
64
66
  'updatedAt': (new Date(json['updatedAt'])),
@@ -83,6 +85,7 @@ function ProjectDetailToJSON(value) {
83
85
  'account': (0, CloudAccount_1.CloudAccountToJSON)(value.account),
84
86
  'statusMessage': value.statusMessage,
85
87
  'tags': (value.tags.map(Tag_1.TagToJSON)),
88
+ 'classificationIds': value.classificationIds,
86
89
  'createdBy': value.createdBy,
87
90
  'createdAt': (value.createdAt.toISOString()),
88
91
  'updatedAt': (value.updatedAt.toISOString()),
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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 { CloudAccount } from './CloudAccount';
13
+ import type { Contact } from './Contact';
14
+ import type { ProjectSettings } from './ProjectSettings';
15
+ import type { Tag } from './Tag';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProjectInput
20
+ */
21
+ export interface ProjectInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ProjectInput
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProjectInput
32
+ */
33
+ description: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ProjectInput
38
+ */
39
+ billingAccountId: string;
40
+ /**
41
+ *
42
+ * @type {ProjectSettings}
43
+ * @memberof ProjectInput
44
+ */
45
+ settings: ProjectSettings;
46
+ /**
47
+ *
48
+ * @type {Array<Contact>}
49
+ * @memberof ProjectInput
50
+ */
51
+ contacts: Array<Contact>;
52
+ /**
53
+ *
54
+ * @type {CloudAccount}
55
+ * @memberof ProjectInput
56
+ */
57
+ account?: CloudAccount | null;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof ProjectInput
62
+ */
63
+ classificationIds?: Array<string> | null;
64
+ /**
65
+ *
66
+ * @type {Array<Tag>}
67
+ * @memberof ProjectInput
68
+ */
69
+ tags?: Array<Tag> | null;
70
+ }
71
+ /**
72
+ * Check if a given object implements the ProjectInput interface.
73
+ */
74
+ export declare function instanceOfProjectInput(value: object): boolean;
75
+ export declare function ProjectInputFromJSON(json: any): ProjectInput;
76
+ export declare function ProjectInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInput;
77
+ export declare function ProjectInputToJSON(value?: ProjectInput | null): any;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProjectInputToJSON = exports.ProjectInputFromJSONTyped = exports.ProjectInputFromJSON = exports.instanceOfProjectInput = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var CloudAccount_1 = require("./CloudAccount");
19
+ var Contact_1 = require("./Contact");
20
+ var ProjectSettings_1 = require("./ProjectSettings");
21
+ var Tag_1 = require("./Tag");
22
+ /**
23
+ * Check if a given object implements the ProjectInput interface.
24
+ */
25
+ function instanceOfProjectInput(value) {
26
+ var isInstance = true;
27
+ isInstance = isInstance && "name" in value;
28
+ isInstance = isInstance && "description" in value;
29
+ isInstance = isInstance && "billingAccountId" in value;
30
+ isInstance = isInstance && "settings" in value;
31
+ isInstance = isInstance && "contacts" in value;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfProjectInput = instanceOfProjectInput;
35
+ function ProjectInputFromJSON(json) {
36
+ return ProjectInputFromJSONTyped(json, false);
37
+ }
38
+ exports.ProjectInputFromJSON = ProjectInputFromJSON;
39
+ function ProjectInputFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'description': json['description'],
46
+ 'billingAccountId': json['billingAccountId'],
47
+ 'settings': (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
48
+ 'contacts': (json['contacts'].map(Contact_1.ContactFromJSON)),
49
+ 'account': !(0, runtime_1.exists)(json, 'account') ? undefined : (0, CloudAccount_1.CloudAccountFromJSON)(json['account']),
50
+ 'classificationIds': !(0, runtime_1.exists)(json, 'classificationIds') ? undefined : json['classificationIds'],
51
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : (json['tags'] === null ? null : json['tags'].map(Tag_1.TagFromJSON)),
52
+ };
53
+ }
54
+ exports.ProjectInputFromJSONTyped = ProjectInputFromJSONTyped;
55
+ function ProjectInputToJSON(value) {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ return {
63
+ 'name': value.name,
64
+ 'description': value.description,
65
+ 'billingAccountId': value.billingAccountId,
66
+ 'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value.settings),
67
+ 'contacts': (value.contacts.map(Contact_1.ContactToJSON)),
68
+ 'account': (0, CloudAccount_1.CloudAccountToJSON)(value.account),
69
+ 'classificationIds': value.classificationIds,
70
+ 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : value.tags.map(Tag_1.TagToJSON)),
71
+ };
72
+ }
73
+ exports.ProjectInputToJSON = ProjectInputToJSON;
@@ -9,10 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CloudAccount } from './CloudAccount';
13
- import type { Contact } from './Contact';
14
- import type { ProjectSettings } from './ProjectSettings';
15
- import type { Tag } from './Tag';
16
12
  /**
17
13
  *
18
14
  * @export
@@ -33,34 +29,28 @@ export interface ProjectRequest {
33
29
  description: string;
34
30
  /**
35
31
  *
36
- * @type {string}
37
- * @memberof ProjectRequest
38
- */
39
- billingAccountId: string;
40
- /**
41
- *
42
- * @type {ProjectSettings}
32
+ * @type {Array<string>}
43
33
  * @memberof ProjectRequest
44
34
  */
45
- settings: ProjectSettings;
35
+ classificationIds: Array<string>;
46
36
  /**
47
37
  *
48
- * @type {Array<Contact>}
38
+ * @type {string}
49
39
  * @memberof ProjectRequest
50
40
  */
51
- contacts: Array<Contact>;
41
+ billingInfo: string;
52
42
  /**
53
43
  *
54
- * @type {CloudAccount}
44
+ * @type {string}
55
45
  * @memberof ProjectRequest
56
46
  */
57
- account?: CloudAccount | null;
47
+ adminUsername: string;
58
48
  /**
59
49
  *
60
- * @type {Array<Tag>}
50
+ * @type {string}
61
51
  * @memberof ProjectRequest
62
52
  */
63
- tags?: Array<Tag> | null;
53
+ message: string;
64
54
  }
65
55
  /**
66
56
  * Check if a given object implements the ProjectRequest interface.