@cirrobio/api-client 0.0.3-alpha → 0.0.4-alpha

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 (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +1 -1
  3. package/dist/apis/MetadataApi.d.ts +29 -0
  4. package/dist/apis/MetadataApi.js +133 -0
  5. package/dist/apis/NotebooksApi.js +6 -6
  6. package/dist/apis/ProcessesApi.d.ts +22 -6
  7. package/dist/apis/ProcessesApi.js +66 -7
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/models/CustomPipelineSettings.d.ts +61 -0
  11. package/dist/models/CustomPipelineSettings.js +60 -0
  12. package/dist/models/Process.d.ts +19 -1
  13. package/dist/models/Process.js +8 -1
  14. package/dist/models/ProcessDetail.d.ts +99 -0
  15. package/dist/models/ProcessDetail.js +85 -0
  16. package/dist/models/ProjectMetrics.d.ts +8 -6
  17. package/dist/models/ProjectMetrics.js +3 -4
  18. package/dist/models/ProjectSettings.d.ts +24 -0
  19. package/dist/models/ProjectSettings.js +8 -0
  20. package/dist/models/ReferenceType.d.ts +20 -0
  21. package/dist/models/ReferenceType.js +9 -0
  22. package/dist/models/Sample.d.ts +39 -0
  23. package/dist/models/Sample.js +53 -0
  24. package/dist/models/index.d.ts +3 -0
  25. package/dist/models/index.js +3 -0
  26. package/package.json +1 -1
  27. package/src/apis/MetadataApi.ts +72 -0
  28. package/src/apis/NotebooksApi.ts +6 -6
  29. package/src/apis/ProcessesApi.ts +63 -8
  30. package/src/apis/index.ts +1 -0
  31. package/src/models/CustomPipelineSettings.ts +105 -0
  32. package/src/models/Process.ts +27 -2
  33. package/src/models/ProcessDetail.ts +177 -0
  34. package/src/models/ProjectMetrics.ts +7 -9
  35. package/src/models/ProjectSettings.ts +32 -0
  36. package/src/models/ReferenceType.ts +27 -0
  37. package/src/models/Sample.ts +75 -0
  38. package/src/models/index.ts +3 -0
@@ -17,30 +17,81 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  FormSchema,
19
19
  Process,
20
+ ProcessDetail,
20
21
  } from '../models/index';
21
22
  import {
22
23
  FormSchemaFromJSON,
23
24
  FormSchemaToJSON,
24
25
  ProcessFromJSON,
25
26
  ProcessToJSON,
27
+ ProcessDetailFromJSON,
28
+ ProcessDetailToJSON,
26
29
  } from '../models/index';
27
30
 
28
- export interface GetProcessFormRequest {
31
+ export interface GetProcessRequest {
29
32
  processId: string;
30
33
  }
31
34
 
35
+ export interface GetProcessParametersRequest {
36
+ processId: string;
37
+ }
38
+
39
+ export interface GetProcessesRequest {
40
+ includeArchived?: boolean;
41
+ }
42
+
32
43
  /**
33
44
  *
34
45
  */
35
46
  export class ProcessesApi extends runtime.BaseAPI {
36
47
 
48
+ /**
49
+ * Retrieves detailed information on a process
50
+ * Get Process
51
+ */
52
+ async getProcessRaw(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessDetail>> {
53
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
54
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling getProcess.');
55
+ }
56
+
57
+ const queryParameters: any = {};
58
+
59
+ const headerParameters: runtime.HTTPHeaders = {};
60
+
61
+ if (this.configuration && this.configuration.accessToken) {
62
+ const token = this.configuration.accessToken;
63
+ const tokenString = await token("accessToken", []);
64
+
65
+ if (tokenString) {
66
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
67
+ }
68
+ }
69
+ const response = await this.request({
70
+ path: `/processes/{processId}`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
71
+ method: 'GET',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ }, initOverrides);
75
+
76
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProcessDetailFromJSON(jsonValue));
77
+ }
78
+
79
+ /**
80
+ * Retrieves detailed information on a process
81
+ * Get Process
82
+ */
83
+ async getProcess(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDetail> {
84
+ const response = await this.getProcessRaw(requestParameters, initOverrides);
85
+ return await response.value();
86
+ }
87
+
37
88
  /**
38
89
  * Retrieves the input parameters for a process
39
90
  * Get Process Parameters
40
91
  */
41
- async getProcessFormRaw(requestParameters: GetProcessFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>> {
92
+ async getProcessParametersRaw(requestParameters: GetProcessParametersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>> {
42
93
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
43
- throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling getProcessForm.');
94
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling getProcessParameters.');
44
95
  }
45
96
 
46
97
  const queryParameters: any = {};
@@ -69,8 +120,8 @@ export class ProcessesApi extends runtime.BaseAPI {
69
120
  * Retrieves the input parameters for a process
70
121
  * Get Process Parameters
71
122
  */
72
- async getProcessForm(requestParameters: GetProcessFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema> {
73
- const response = await this.getProcessFormRaw(requestParameters, initOverrides);
123
+ async getProcessParameters(requestParameters: GetProcessParametersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema> {
124
+ const response = await this.getProcessParametersRaw(requestParameters, initOverrides);
74
125
  return await response.value();
75
126
  }
76
127
 
@@ -78,9 +129,13 @@ export class ProcessesApi extends runtime.BaseAPI {
78
129
  * Retrieves a list of available processes
79
130
  * List Processes
80
131
  */
81
- async getProcessesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Process>>> {
132
+ async getProcessesRaw(requestParameters: GetProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Process>>> {
82
133
  const queryParameters: any = {};
83
134
 
135
+ if (requestParameters.includeArchived !== undefined) {
136
+ queryParameters['includeArchived'] = requestParameters.includeArchived;
137
+ }
138
+
84
139
  const headerParameters: runtime.HTTPHeaders = {};
85
140
 
86
141
  if (this.configuration && this.configuration.accessToken) {
@@ -105,8 +160,8 @@ export class ProcessesApi extends runtime.BaseAPI {
105
160
  * Retrieves a list of available processes
106
161
  * List Processes
107
162
  */
108
- async getProcesses(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>> {
109
- const response = await this.getProcessesRaw(initOverrides);
163
+ async getProcesses(requestParameters: GetProcessesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>> {
164
+ const response = await this.getProcessesRaw(requestParameters, initOverrides);
110
165
  return await response.value();
111
166
  }
112
167
 
package/src/apis/index.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  export * from './BillingApi';
4
4
  export * from './DatasetsApi';
5
5
  export * from './ExecutionApi';
6
+ export * from './MetadataApi';
6
7
  export * from './MetricsApi';
7
8
  export * from './NotebooksApi';
8
9
  export * from './ProcessesApi';
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CustomPipelineSettings
20
+ */
21
+ export interface CustomPipelineSettings {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CustomPipelineSettings
26
+ */
27
+ repository?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CustomPipelineSettings
32
+ */
33
+ branch?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CustomPipelineSettings
38
+ */
39
+ folder?: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof CustomPipelineSettings
44
+ */
45
+ lastSync?: Date;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CustomPipelineSettings
50
+ */
51
+ syncStatus?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CustomPipelineSettings
56
+ */
57
+ commitHash?: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the CustomPipelineSettings interface.
62
+ */
63
+ export function instanceOfCustomPipelineSettings(value: object): boolean {
64
+ let isInstance = true;
65
+
66
+ return isInstance;
67
+ }
68
+
69
+ export function CustomPipelineSettingsFromJSON(json: any): CustomPipelineSettings {
70
+ return CustomPipelineSettingsFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettings {
74
+ if ((json === undefined) || (json === null)) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'repository': !exists(json, 'repository') ? undefined : json['repository'],
80
+ 'branch': !exists(json, 'branch') ? undefined : json['branch'],
81
+ 'folder': !exists(json, 'folder') ? undefined : json['folder'],
82
+ 'lastSync': !exists(json, 'lastSync') ? undefined : (new Date(json['lastSync'])),
83
+ 'syncStatus': !exists(json, 'syncStatus') ? undefined : json['syncStatus'],
84
+ 'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
85
+ };
86
+ }
87
+
88
+ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | null): any {
89
+ if (value === undefined) {
90
+ return undefined;
91
+ }
92
+ if (value === null) {
93
+ return null;
94
+ }
95
+ return {
96
+
97
+ 'repository': value.repository,
98
+ 'branch': value.branch,
99
+ 'folder': value.folder,
100
+ 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync.toISOString()),
101
+ 'syncStatus': value.syncStatus,
102
+ 'commitHash': value.commitHash,
103
+ };
104
+ }
105
+
@@ -31,7 +31,7 @@ export interface Process {
31
31
  * @type {string}
32
32
  * @memberof Process
33
33
  */
34
- id?: string;
34
+ id: string;
35
35
  /**
36
36
  *
37
37
  * @type {string}
@@ -68,6 +68,24 @@ export interface Process {
68
68
  * @memberof Process
69
69
  */
70
70
  childProcessIds?: Array<string>;
71
+ /**
72
+ * IDs of pipelines that can be ran upstream
73
+ * @type {Array<string>}
74
+ * @memberof Process
75
+ */
76
+ parentProcessIds?: Array<string>;
77
+ /**
78
+ * Username of the pipeline creator (blank if Cirro curated)
79
+ * @type {string}
80
+ * @memberof Process
81
+ */
82
+ owner?: string;
83
+ /**
84
+ * Projects that can run this pipeline
85
+ * @type {Array<string>}
86
+ * @memberof Process
87
+ */
88
+ linkedProjectIds?: Array<string>;
71
89
  }
72
90
 
73
91
  /**
@@ -75,6 +93,7 @@ export interface Process {
75
93
  */
76
94
  export function instanceOfProcess(value: object): boolean {
77
95
  let isInstance = true;
96
+ isInstance = isInstance && "id" in value;
78
97
 
79
98
  return isInstance;
80
99
  }
@@ -89,13 +108,16 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
89
108
  }
90
109
  return {
91
110
 
92
- 'id': !exists(json, 'id') ? undefined : json['id'],
111
+ 'id': json['id'],
93
112
  'name': !exists(json, 'name') ? undefined : json['name'],
94
113
  'description': !exists(json, 'description') ? undefined : json['description'],
95
114
  'executor': !exists(json, 'executor') ? undefined : ExecutorFromJSON(json['executor']),
96
115
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
97
116
  'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
98
117
  'childProcessIds': !exists(json, 'childProcessIds') ? undefined : json['childProcessIds'],
118
+ 'parentProcessIds': !exists(json, 'parentProcessIds') ? undefined : json['parentProcessIds'],
119
+ 'owner': !exists(json, 'owner') ? undefined : json['owner'],
120
+ 'linkedProjectIds': !exists(json, 'linkedProjectIds') ? undefined : json['linkedProjectIds'],
99
121
  };
100
122
  }
101
123
 
@@ -115,6 +137,9 @@ export function ProcessToJSON(value?: Process | null): any {
115
137
  'documentationUrl': value.documentationUrl,
116
138
  'fileRequirementsMessage': value.fileRequirementsMessage,
117
139
  'childProcessIds': value.childProcessIds,
140
+ 'parentProcessIds': value.parentProcessIds,
141
+ 'owner': value.owner,
142
+ 'linkedProjectIds': value.linkedProjectIds,
118
143
  };
119
144
  }
120
145
 
@@ -0,0 +1,177 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 { exists, mapValues } from '../runtime';
16
+ import type { CustomPipelineSettings } from './CustomPipelineSettings';
17
+ import {
18
+ CustomPipelineSettingsFromJSON,
19
+ CustomPipelineSettingsFromJSONTyped,
20
+ CustomPipelineSettingsToJSON,
21
+ } from './CustomPipelineSettings';
22
+ import type { Executor } from './Executor';
23
+ import {
24
+ ExecutorFromJSON,
25
+ ExecutorFromJSONTyped,
26
+ ExecutorToJSON,
27
+ } from './Executor';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface ProcessDetail
33
+ */
34
+ export interface ProcessDetail {
35
+ /**
36
+ * Unique ID of the Process
37
+ * @type {string}
38
+ * @memberof ProcessDetail
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ProcessDetail
45
+ */
46
+ name: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ProcessDetail
51
+ */
52
+ description: string;
53
+ /**
54
+ *
55
+ * @type {Executor}
56
+ * @memberof ProcessDetail
57
+ */
58
+ executor: Executor;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ProcessDetail
63
+ */
64
+ documentationUrl: string;
65
+ /**
66
+ * Description of the files to be uploaded (optional)
67
+ * @type {string}
68
+ * @memberof ProcessDetail
69
+ */
70
+ fileRequirementsMessage?: string;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof ProcessDetail
75
+ */
76
+ childProcessIds: Array<string>;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof ProcessDetail
81
+ */
82
+ parentProcessIds: Array<string>;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof ProcessDetail
87
+ */
88
+ owner: string;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof ProcessDetail
93
+ */
94
+ linkedProjectIds: Array<string>;
95
+ /**
96
+ *
97
+ * @type {CustomPipelineSettings}
98
+ * @memberof ProcessDetail
99
+ */
100
+ customSettings: CustomPipelineSettings;
101
+ /**
102
+ *
103
+ * @type {boolean}
104
+ * @memberof ProcessDetail
105
+ */
106
+ isArchived: boolean;
107
+ }
108
+
109
+ /**
110
+ * Check if a given object implements the ProcessDetail interface.
111
+ */
112
+ export function instanceOfProcessDetail(value: object): boolean {
113
+ let isInstance = true;
114
+ isInstance = isInstance && "id" in value;
115
+ isInstance = isInstance && "name" in value;
116
+ isInstance = isInstance && "description" in value;
117
+ isInstance = isInstance && "executor" in value;
118
+ isInstance = isInstance && "documentationUrl" in value;
119
+ isInstance = isInstance && "childProcessIds" in value;
120
+ isInstance = isInstance && "parentProcessIds" in value;
121
+ isInstance = isInstance && "owner" in value;
122
+ isInstance = isInstance && "linkedProjectIds" in value;
123
+ isInstance = isInstance && "customSettings" in value;
124
+ isInstance = isInstance && "isArchived" in value;
125
+
126
+ return isInstance;
127
+ }
128
+
129
+ export function ProcessDetailFromJSON(json: any): ProcessDetail {
130
+ return ProcessDetailFromJSONTyped(json, false);
131
+ }
132
+
133
+ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDetail {
134
+ if ((json === undefined) || (json === null)) {
135
+ return json;
136
+ }
137
+ return {
138
+
139
+ 'id': json['id'],
140
+ 'name': json['name'],
141
+ 'description': json['description'],
142
+ 'executor': ExecutorFromJSON(json['executor']),
143
+ 'documentationUrl': json['documentationUrl'],
144
+ 'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
145
+ 'childProcessIds': json['childProcessIds'],
146
+ 'parentProcessIds': json['parentProcessIds'],
147
+ 'owner': json['owner'],
148
+ 'linkedProjectIds': json['linkedProjectIds'],
149
+ 'customSettings': CustomPipelineSettingsFromJSON(json['customSettings']),
150
+ 'isArchived': json['isArchived'],
151
+ };
152
+ }
153
+
154
+ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
155
+ if (value === undefined) {
156
+ return undefined;
157
+ }
158
+ if (value === null) {
159
+ return null;
160
+ }
161
+ return {
162
+
163
+ 'id': value.id,
164
+ 'name': value.name,
165
+ 'description': value.description,
166
+ 'executor': ExecutorToJSON(value.executor),
167
+ 'documentationUrl': value.documentationUrl,
168
+ 'fileRequirementsMessage': value.fileRequirementsMessage,
169
+ 'childProcessIds': value.childProcessIds,
170
+ 'parentProcessIds': value.parentProcessIds,
171
+ 'owner': value.owner,
172
+ 'linkedProjectIds': value.linkedProjectIds,
173
+ 'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
174
+ 'isArchived': value.isArchived,
175
+ };
176
+ }
177
+
@@ -26,17 +26,17 @@ export interface ProjectMetrics {
26
26
  */
27
27
  projectId: string;
28
28
  /**
29
- *
30
- * @type {{ [key: string]: any; }}
29
+ * Costs by service by month
30
+ * @type {{ [key: string]: { [key: string]: number; }; }}
31
31
  * @memberof ProjectMetrics
32
32
  */
33
- costs: { [key: string]: any; };
33
+ costs?: { [key: string]: { [key: string]: number; }; };
34
34
  /**
35
- *
35
+ * Storage usage by tier by day
36
36
  * @type {{ [key: string]: any; }}
37
37
  * @memberof ProjectMetrics
38
38
  */
39
- storageMetrics: { [key: string]: any; };
39
+ storageMetrics?: { [key: string]: any; };
40
40
  }
41
41
 
42
42
  /**
@@ -45,8 +45,6 @@ export interface ProjectMetrics {
45
45
  export function instanceOfProjectMetrics(value: object): boolean {
46
46
  let isInstance = true;
47
47
  isInstance = isInstance && "projectId" in value;
48
- isInstance = isInstance && "costs" in value;
49
- isInstance = isInstance && "storageMetrics" in value;
50
48
 
51
49
  return isInstance;
52
50
  }
@@ -62,8 +60,8 @@ export function ProjectMetricsFromJSONTyped(json: any, ignoreDiscriminator: bool
62
60
  return {
63
61
 
64
62
  'projectId': json['projectId'],
65
- 'costs': json['costs'],
66
- 'storageMetrics': json['storageMetrics'],
63
+ 'costs': !exists(json, 'costs') ? undefined : json['costs'],
64
+ 'storageMetrics': !exists(json, 'storageMetrics') ? undefined : json['storageMetrics'],
67
65
  };
68
66
  }
69
67
 
@@ -92,6 +92,30 @@ export interface ProjectSettings {
92
92
  * @memberof ProjectSettings
93
93
  */
94
94
  serviceConnections?: Array<string>;
95
+ /**
96
+ *
97
+ * @type {boolean}
98
+ * @memberof ProjectSettings
99
+ */
100
+ createVpc?: boolean;
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof ProjectSettings
105
+ */
106
+ vpcId?: string;
107
+ /**
108
+ *
109
+ * @type {Array<string>}
110
+ * @memberof ProjectSettings
111
+ */
112
+ batchSubnets?: Array<string>;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof ProjectSettings
117
+ */
118
+ kmsArn?: string;
95
119
  }
96
120
 
97
121
  /**
@@ -124,6 +148,10 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
124
148
  'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
125
149
  'retentionPolicyDays': !exists(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
126
150
  'serviceConnections': !exists(json, 'serviceConnections') ? undefined : json['serviceConnections'],
151
+ 'createVpc': !exists(json, 'createVpc') ? undefined : json['createVpc'],
152
+ 'vpcId': !exists(json, 'vpcId') ? undefined : json['vpcId'],
153
+ 'batchSubnets': !exists(json, 'batchSubnets') ? undefined : json['batchSubnets'],
154
+ 'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
127
155
  };
128
156
  }
129
157
 
@@ -147,6 +175,10 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
147
175
  'maxSpotVCPU': value.maxSpotVCPU,
148
176
  'retentionPolicyDays': value.retentionPolicyDays,
149
177
  'serviceConnections': value.serviceConnections,
178
+ 'createVpc': value.createVpc,
179
+ 'vpcId': value.vpcId,
180
+ 'batchSubnets': value.batchSubnets,
181
+ 'kmsArn': value.kmsArn,
150
182
  };
151
183
  }
152
184
 
@@ -25,6 +25,24 @@ export interface ReferenceType {
25
25
  * @memberof ReferenceType
26
26
  */
27
27
  name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReferenceType
32
+ */
33
+ description: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReferenceType
38
+ */
39
+ directory: string;
40
+ /**
41
+ *
42
+ * @type {Array<{ [key: string]: any; }>}
43
+ * @memberof ReferenceType
44
+ */
45
+ validation: Array<{ [key: string]: any; }>;
28
46
  }
29
47
 
30
48
  /**
@@ -33,6 +51,9 @@ export interface ReferenceType {
33
51
  export function instanceOfReferenceType(value: object): boolean {
34
52
  let isInstance = true;
35
53
  isInstance = isInstance && "name" in value;
54
+ isInstance = isInstance && "description" in value;
55
+ isInstance = isInstance && "directory" in value;
56
+ isInstance = isInstance && "validation" in value;
36
57
 
37
58
  return isInstance;
38
59
  }
@@ -48,6 +69,9 @@ export function ReferenceTypeFromJSONTyped(json: any, ignoreDiscriminator: boole
48
69
  return {
49
70
 
50
71
  'name': json['name'],
72
+ 'description': json['description'],
73
+ 'directory': json['directory'],
74
+ 'validation': json['validation'],
51
75
  };
52
76
  }
53
77
 
@@ -61,6 +85,9 @@ export function ReferenceTypeToJSON(value?: ReferenceType | null): any {
61
85
  return {
62
86
 
63
87
  'name': value.name,
88
+ 'description': value.description,
89
+ 'directory': value.directory,
90
+ 'validation': value.validation,
64
91
  };
65
92
  }
66
93