@cirrobio/api-client 0.0.4-alpha → 0.0.6-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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +1 -1
- package/dist/apis/ProcessesApi.d.ts +6 -6
- package/dist/apis/ProcessesApi.js +6 -6
- package/dist/apis/ProjectsApi.d.ts +4 -4
- package/dist/apis/ProjectsApi.js +4 -4
- package/dist/apis/ReferencesApi.d.ts +51 -0
- package/dist/apis/ReferencesApi.js +239 -0
- package/dist/apis/SystemApi.d.ts +9 -11
- package/dist/apis/SystemApi.js +26 -37
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/Project.d.ts +7 -0
- package/dist/models/Project.js +4 -0
- package/dist/models/ProjectDetail.d.ts +2 -2
- package/dist/models/ProjectDetail.js +3 -3
- package/dist/models/ProjectSettings.d.ts +16 -16
- package/dist/models/ProjectSettings.js +31 -17
- package/dist/models/Reference.d.ts +55 -0
- package/dist/models/Reference.js +62 -0
- package/dist/models/ServiceConnection.d.ts +6 -0
- package/dist/models/ServiceConnection.js +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +6 -6
- package/src/apis/ProjectsApi.ts +4 -4
- package/src/apis/ReferencesApi.ts +149 -0
- package/src/apis/SystemApi.ts +20 -33
- package/src/apis/index.ts +1 -0
- package/src/models/Project.ts +16 -0
- package/src/models/ProjectDetail.ts +5 -5
- package/src/models/ProjectSettings.ts +47 -32
- package/src/models/Reference.ts +102 -0
- package/src/models/ServiceConnection.ts +9 -0
- package/src/models/index.ts +1 -0
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
Reference,
|
|
19
|
+
ReferenceType,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ReferenceFromJSON,
|
|
23
|
+
ReferenceToJSON,
|
|
24
|
+
ReferenceTypeFromJSON,
|
|
25
|
+
ReferenceTypeToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface GetReferencesForProjectRequest {
|
|
29
|
+
projectId: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export class ReferencesApi extends runtime.BaseAPI {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* List available reference types
|
|
39
|
+
* Get reference types
|
|
40
|
+
*/
|
|
41
|
+
async getReferenceTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ReferenceType>>> {
|
|
42
|
+
const queryParameters: any = {};
|
|
43
|
+
|
|
44
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
45
|
+
|
|
46
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
47
|
+
const token = this.configuration.accessToken;
|
|
48
|
+
const tokenString = await token("accessToken", []);
|
|
49
|
+
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const response = await this.request({
|
|
55
|
+
path: `/reference-types`,
|
|
56
|
+
method: 'GET',
|
|
57
|
+
headers: headerParameters,
|
|
58
|
+
query: queryParameters,
|
|
59
|
+
}, initOverrides);
|
|
60
|
+
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ReferenceTypeFromJSON));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* List available reference types
|
|
66
|
+
* Get reference types
|
|
67
|
+
*/
|
|
68
|
+
async getReferenceTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ReferenceType>> {
|
|
69
|
+
const response = await this.getReferenceTypesRaw(initOverrides);
|
|
70
|
+
return await response.value();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* List available references (available to everyone)
|
|
75
|
+
* Get global references
|
|
76
|
+
*/
|
|
77
|
+
async getReferencesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Reference>>> {
|
|
78
|
+
const queryParameters: any = {};
|
|
79
|
+
|
|
80
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
|
+
|
|
82
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
83
|
+
const token = this.configuration.accessToken;
|
|
84
|
+
const tokenString = await token("accessToken", []);
|
|
85
|
+
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const response = await this.request({
|
|
91
|
+
path: `/references`,
|
|
92
|
+
method: 'GET',
|
|
93
|
+
headers: headerParameters,
|
|
94
|
+
query: queryParameters,
|
|
95
|
+
}, initOverrides);
|
|
96
|
+
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ReferenceFromJSON));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* List available references (available to everyone)
|
|
102
|
+
* Get global references
|
|
103
|
+
*/
|
|
104
|
+
async getReferences(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Reference>> {
|
|
105
|
+
const response = await this.getReferencesRaw(initOverrides);
|
|
106
|
+
return await response.value();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* List available references for a given project
|
|
111
|
+
* Get project references
|
|
112
|
+
*/
|
|
113
|
+
async getReferencesForProjectRaw(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Reference>> {
|
|
114
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
115
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getReferencesForProject.');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const queryParameters: any = {};
|
|
119
|
+
|
|
120
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
121
|
+
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
const token = this.configuration.accessToken;
|
|
124
|
+
const tokenString = await token("accessToken", []);
|
|
125
|
+
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/projects/{projectId}/references`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
132
|
+
method: 'GET',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ReferenceFromJSON(jsonValue));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* List available references for a given project
|
|
142
|
+
* Get project references
|
|
143
|
+
*/
|
|
144
|
+
async getReferencesForProject(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Reference> {
|
|
145
|
+
const response = await this.getReferencesForProjectRaw(requestParameters, initOverrides);
|
|
146
|
+
return await response.value();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
}
|
package/src/apis/SystemApi.ts
CHANGED
|
@@ -15,13 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
ReferenceType,
|
|
19
18
|
ServiceConnection,
|
|
20
19
|
SystemInfoResponse,
|
|
21
20
|
} from '../models/index';
|
|
22
21
|
import {
|
|
23
|
-
ReferenceTypeFromJSON,
|
|
24
|
-
ReferenceTypeToJSON,
|
|
25
22
|
ServiceConnectionFromJSON,
|
|
26
23
|
ServiceConnectionToJSON,
|
|
27
24
|
SystemInfoResponseFromJSON,
|
|
@@ -34,10 +31,10 @@ import {
|
|
|
34
31
|
export class SystemApi extends runtime.BaseAPI {
|
|
35
32
|
|
|
36
33
|
/**
|
|
37
|
-
* List available
|
|
38
|
-
* Get
|
|
34
|
+
* List available service connections
|
|
35
|
+
* Get service connections
|
|
39
36
|
*/
|
|
40
|
-
async
|
|
37
|
+
async getServiceConnectionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ServiceConnection>>> {
|
|
41
38
|
const queryParameters: any = {};
|
|
42
39
|
|
|
43
40
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -51,70 +48,60 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
const response = await this.request({
|
|
54
|
-
path: `/
|
|
51
|
+
path: `/service-connections`,
|
|
55
52
|
method: 'GET',
|
|
56
53
|
headers: headerParameters,
|
|
57
54
|
query: queryParameters,
|
|
58
55
|
}, initOverrides);
|
|
59
56
|
|
|
60
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ServiceConnectionFromJSON));
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
/**
|
|
64
|
-
* List available
|
|
65
|
-
* Get
|
|
61
|
+
* List available service connections
|
|
62
|
+
* Get service connections
|
|
66
63
|
*/
|
|
67
|
-
async
|
|
68
|
-
const response = await this.
|
|
64
|
+
async getServiceConnections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ServiceConnection>> {
|
|
65
|
+
const response = await this.getServiceConnectionsRaw(initOverrides);
|
|
69
66
|
return await response.value();
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
/**
|
|
73
|
-
*
|
|
74
|
-
* Get service connections
|
|
70
|
+
* Get system info
|
|
75
71
|
*/
|
|
76
|
-
async
|
|
72
|
+
async infoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>> {
|
|
77
73
|
const queryParameters: any = {};
|
|
78
74
|
|
|
79
75
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
80
76
|
|
|
81
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
-
const token = this.configuration.accessToken;
|
|
83
|
-
const tokenString = await token("accessToken", []);
|
|
84
|
-
|
|
85
|
-
if (tokenString) {
|
|
86
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
77
|
const response = await this.request({
|
|
90
|
-
path: `/
|
|
78
|
+
path: `/info`,
|
|
91
79
|
method: 'GET',
|
|
92
80
|
headers: headerParameters,
|
|
93
81
|
query: queryParameters,
|
|
94
82
|
}, initOverrides);
|
|
95
83
|
|
|
96
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoResponseFromJSON(jsonValue));
|
|
97
85
|
}
|
|
98
86
|
|
|
99
87
|
/**
|
|
100
|
-
*
|
|
101
|
-
* Get service connections
|
|
88
|
+
* Get system info
|
|
102
89
|
*/
|
|
103
|
-
async
|
|
104
|
-
const response = await this.
|
|
90
|
+
async info(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse> {
|
|
91
|
+
const response = await this.infoRaw(initOverrides);
|
|
105
92
|
return await response.value();
|
|
106
93
|
}
|
|
107
94
|
|
|
108
95
|
/**
|
|
109
96
|
* Get system info
|
|
110
97
|
*/
|
|
111
|
-
async
|
|
98
|
+
async info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>> {
|
|
112
99
|
const queryParameters: any = {};
|
|
113
100
|
|
|
114
101
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
102
|
|
|
116
103
|
const response = await this.request({
|
|
117
|
-
path: `/info`,
|
|
104
|
+
path: `/info/system`,
|
|
118
105
|
method: 'GET',
|
|
119
106
|
headers: headerParameters,
|
|
120
107
|
query: queryParameters,
|
|
@@ -126,8 +113,8 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
126
113
|
/**
|
|
127
114
|
* Get system info
|
|
128
115
|
*/
|
|
129
|
-
async
|
|
130
|
-
const response = await this.
|
|
116
|
+
async info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse> {
|
|
117
|
+
const response = await this.info1Raw(initOverrides);
|
|
131
118
|
return await response.value();
|
|
132
119
|
}
|
|
133
120
|
|
package/src/apis/index.ts
CHANGED
package/src/models/Project.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Tag } from './Tag';
|
|
17
|
+
import {
|
|
18
|
+
TagFromJSON,
|
|
19
|
+
TagFromJSONTyped,
|
|
20
|
+
TagToJSON,
|
|
21
|
+
} from './Tag';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -43,6 +50,12 @@ export interface Project {
|
|
|
43
50
|
* @memberof Project
|
|
44
51
|
*/
|
|
45
52
|
status: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<Tag>}
|
|
56
|
+
* @memberof Project
|
|
57
|
+
*/
|
|
58
|
+
tags: Array<Tag>;
|
|
46
59
|
}
|
|
47
60
|
|
|
48
61
|
/**
|
|
@@ -54,6 +67,7 @@ export function instanceOfProject(value: object): boolean {
|
|
|
54
67
|
isInstance = isInstance && "name" in value;
|
|
55
68
|
isInstance = isInstance && "description" in value;
|
|
56
69
|
isInstance = isInstance && "status" in value;
|
|
70
|
+
isInstance = isInstance && "tags" in value;
|
|
57
71
|
|
|
58
72
|
return isInstance;
|
|
59
73
|
}
|
|
@@ -72,6 +86,7 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
72
86
|
'name': json['name'],
|
|
73
87
|
'description': json['description'],
|
|
74
88
|
'status': json['status'],
|
|
89
|
+
'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
|
|
75
90
|
};
|
|
76
91
|
}
|
|
77
92
|
|
|
@@ -88,6 +103,7 @@ export function ProjectToJSON(value?: Project | null): any {
|
|
|
88
103
|
'name': value.name,
|
|
89
104
|
'description': value.description,
|
|
90
105
|
'status': value.status,
|
|
106
|
+
'tags': ((value.tags as Array<any>).map(TagToJSON)),
|
|
91
107
|
};
|
|
92
108
|
}
|
|
93
109
|
|
|
@@ -64,10 +64,10 @@ export interface ProjectDetail {
|
|
|
64
64
|
billingAccountId: string;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {Contact}
|
|
67
|
+
* @type {Array<Contact>}
|
|
68
68
|
* @memberof ProjectDetail
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
contacts: Array<Contact>;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -121,7 +121,7 @@ export function instanceOfProjectDetail(value: object): boolean {
|
|
|
121
121
|
isInstance = isInstance && "name" in value;
|
|
122
122
|
isInstance = isInstance && "description" in value;
|
|
123
123
|
isInstance = isInstance && "billingAccountId" in value;
|
|
124
|
-
isInstance = isInstance && "
|
|
124
|
+
isInstance = isInstance && "contacts" in value;
|
|
125
125
|
isInstance = isInstance && "status" in value;
|
|
126
126
|
isInstance = isInstance && "settings" in value;
|
|
127
127
|
isInstance = isInstance && "statusMessage" in value;
|
|
@@ -147,7 +147,7 @@ export function ProjectDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
147
147
|
'name': json['name'],
|
|
148
148
|
'description': json['description'],
|
|
149
149
|
'billingAccountId': json['billingAccountId'],
|
|
150
|
-
'
|
|
150
|
+
'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
|
|
151
151
|
'status': json['status'],
|
|
152
152
|
'settings': ProjectSettingsFromJSON(json['settings']),
|
|
153
153
|
'statusMessage': json['statusMessage'],
|
|
@@ -171,7 +171,7 @@ export function ProjectDetailToJSON(value?: ProjectDetail | null): any {
|
|
|
171
171
|
'name': value.name,
|
|
172
172
|
'description': value.description,
|
|
173
173
|
'billingAccountId': value.billingAccountId,
|
|
174
|
-
'
|
|
174
|
+
'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
|
|
175
175
|
'status': value.status,
|
|
176
176
|
'settings': ProjectSettingsToJSON(value.settings),
|
|
177
177
|
'statusMessage': value.statusMessage,
|
|
@@ -28,94 +28,94 @@ import {
|
|
|
28
28
|
export interface ProjectSettings {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {number}
|
|
32
32
|
* @memberof ProjectSettings
|
|
33
33
|
*/
|
|
34
|
-
budgetAmount
|
|
34
|
+
budgetAmount: number;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {BudgetPeriod}
|
|
38
38
|
* @memberof ProjectSettings
|
|
39
39
|
*/
|
|
40
|
-
budgetPeriod
|
|
40
|
+
budgetPeriod: BudgetPeriod;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof ProjectSettings
|
|
45
45
|
*/
|
|
46
|
-
dragenAmi
|
|
46
|
+
dragenAmi: string;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {boolean}
|
|
50
50
|
* @memberof ProjectSettings
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
enableCompute: boolean;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {boolean}
|
|
56
56
|
* @memberof ProjectSettings
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
enableDragen: boolean;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {boolean}
|
|
62
62
|
* @memberof ProjectSettings
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
enableBackup: boolean;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {boolean}
|
|
68
68
|
* @memberof ProjectSettings
|
|
69
69
|
*/
|
|
70
|
-
enableSftp
|
|
70
|
+
enableSftp: boolean;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {number}
|
|
74
74
|
* @memberof ProjectSettings
|
|
75
75
|
*/
|
|
76
|
-
maxF1VCPU
|
|
76
|
+
maxF1VCPU: number;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof ProjectSettings
|
|
81
81
|
*/
|
|
82
|
-
maxSpotVCPU
|
|
82
|
+
maxSpotVCPU: number;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof ProjectSettings
|
|
87
87
|
*/
|
|
88
|
-
retentionPolicyDays
|
|
88
|
+
retentionPolicyDays: number;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {Array<string>}
|
|
92
92
|
* @memberof ProjectSettings
|
|
93
93
|
*/
|
|
94
|
-
serviceConnections
|
|
94
|
+
serviceConnections: Array<string>;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {boolean}
|
|
98
98
|
* @memberof ProjectSettings
|
|
99
99
|
*/
|
|
100
|
-
createVpc
|
|
100
|
+
createVpc: boolean;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof ProjectSettings
|
|
105
105
|
*/
|
|
106
|
-
vpcId
|
|
106
|
+
vpcId: string;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
109
|
* @type {Array<string>}
|
|
110
110
|
* @memberof ProjectSettings
|
|
111
111
|
*/
|
|
112
|
-
batchSubnets
|
|
112
|
+
batchSubnets: Array<string>;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
115
|
* @type {string}
|
|
116
116
|
* @memberof ProjectSettings
|
|
117
117
|
*/
|
|
118
|
-
kmsArn
|
|
118
|
+
kmsArn: string;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -123,6 +123,21 @@ export interface ProjectSettings {
|
|
|
123
123
|
*/
|
|
124
124
|
export function instanceOfProjectSettings(value: object): boolean {
|
|
125
125
|
let isInstance = true;
|
|
126
|
+
isInstance = isInstance && "budgetAmount" in value;
|
|
127
|
+
isInstance = isInstance && "budgetPeriod" in value;
|
|
128
|
+
isInstance = isInstance && "dragenAmi" in value;
|
|
129
|
+
isInstance = isInstance && "enableCompute" in value;
|
|
130
|
+
isInstance = isInstance && "enableDragen" in value;
|
|
131
|
+
isInstance = isInstance && "enableBackup" in value;
|
|
132
|
+
isInstance = isInstance && "enableSftp" in value;
|
|
133
|
+
isInstance = isInstance && "maxF1VCPU" in value;
|
|
134
|
+
isInstance = isInstance && "maxSpotVCPU" in value;
|
|
135
|
+
isInstance = isInstance && "retentionPolicyDays" in value;
|
|
136
|
+
isInstance = isInstance && "serviceConnections" in value;
|
|
137
|
+
isInstance = isInstance && "createVpc" in value;
|
|
138
|
+
isInstance = isInstance && "vpcId" in value;
|
|
139
|
+
isInstance = isInstance && "batchSubnets" in value;
|
|
140
|
+
isInstance = isInstance && "kmsArn" in value;
|
|
126
141
|
|
|
127
142
|
return isInstance;
|
|
128
143
|
}
|
|
@@ -137,21 +152,21 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
137
152
|
}
|
|
138
153
|
return {
|
|
139
154
|
|
|
140
|
-
'budgetAmount':
|
|
141
|
-
'budgetPeriod':
|
|
142
|
-
'dragenAmi':
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'enableSftp':
|
|
147
|
-
'maxF1VCPU':
|
|
148
|
-
'maxSpotVCPU':
|
|
149
|
-
'retentionPolicyDays':
|
|
150
|
-
'serviceConnections':
|
|
151
|
-
'createVpc':
|
|
152
|
-
'vpcId':
|
|
153
|
-
'batchSubnets':
|
|
154
|
-
'kmsArn':
|
|
155
|
+
'budgetAmount': json['budgetAmount'],
|
|
156
|
+
'budgetPeriod': BudgetPeriodFromJSON(json['budgetPeriod']),
|
|
157
|
+
'dragenAmi': json['dragenAmi'],
|
|
158
|
+
'enableCompute': json['enableCompute'],
|
|
159
|
+
'enableDragen': json['enableDragen'],
|
|
160
|
+
'enableBackup': json['enableBackup'],
|
|
161
|
+
'enableSftp': json['enableSftp'],
|
|
162
|
+
'maxF1VCPU': json['maxF1VCPU'],
|
|
163
|
+
'maxSpotVCPU': json['maxSpotVCPU'],
|
|
164
|
+
'retentionPolicyDays': json['retentionPolicyDays'],
|
|
165
|
+
'serviceConnections': json['serviceConnections'],
|
|
166
|
+
'createVpc': json['createVpc'],
|
|
167
|
+
'vpcId': json['vpcId'],
|
|
168
|
+
'batchSubnets': json['batchSubnets'],
|
|
169
|
+
'kmsArn': json['kmsArn'],
|
|
155
170
|
};
|
|
156
171
|
}
|
|
157
172
|
|
|
@@ -167,9 +182,9 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
|
|
|
167
182
|
'budgetAmount': value.budgetAmount,
|
|
168
183
|
'budgetPeriod': BudgetPeriodToJSON(value.budgetPeriod),
|
|
169
184
|
'dragenAmi': value.dragenAmi,
|
|
170
|
-
'enableBackup': value.enableBackup,
|
|
171
185
|
'enableCompute': value.enableCompute,
|
|
172
186
|
'enableDragen': value.enableDragen,
|
|
187
|
+
'enableBackup': value.enableBackup,
|
|
173
188
|
'enableSftp': value.enableSftp,
|
|
174
189
|
'maxF1VCPU': value.maxF1VCPU,
|
|
175
190
|
'maxSpotVCPU': value.maxSpotVCPU,
|
|
@@ -0,0 +1,102 @@
|
|
|
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 Reference
|
|
20
|
+
*/
|
|
21
|
+
export interface Reference {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Reference
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Reference
|
|
32
|
+
*/
|
|
33
|
+
referenceType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof Reference
|
|
38
|
+
*/
|
|
39
|
+
files: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Reference
|
|
44
|
+
*/
|
|
45
|
+
createdBy: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Reference
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the Reference interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfReference(value: object): boolean {
|
|
58
|
+
let isInstance = true;
|
|
59
|
+
isInstance = isInstance && "name" in value;
|
|
60
|
+
isInstance = isInstance && "referenceType" in value;
|
|
61
|
+
isInstance = isInstance && "files" in value;
|
|
62
|
+
isInstance = isInstance && "createdBy" in value;
|
|
63
|
+
isInstance = isInstance && "createdAt" in value;
|
|
64
|
+
|
|
65
|
+
return isInstance;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ReferenceFromJSON(json: any): Reference {
|
|
69
|
+
return ReferenceFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Reference {
|
|
73
|
+
if ((json === undefined) || (json === null)) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'referenceType': json['referenceType'],
|
|
80
|
+
'files': json['files'],
|
|
81
|
+
'createdBy': json['createdBy'],
|
|
82
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ReferenceToJSON(value?: Reference | null): any {
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (value === null) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'name': value.name,
|
|
96
|
+
'referenceType': value.referenceType,
|
|
97
|
+
'files': value.files,
|
|
98
|
+
'createdBy': value.createdBy,
|
|
99
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|