@cirrobio/api-client 0.11.4 → 0.12.0

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/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.11.4 --save
39
+ npm install @cirrobio/api-client@1.0.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -39,6 +39,12 @@ export interface FeatureFlags {
39
39
  * @memberof FeatureFlags
40
40
  */
41
41
  workspacesEnabled: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof FeatureFlags
46
+ */
47
+ driveEnabled: boolean;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the FeatureFlags interface.
@@ -20,6 +20,7 @@ export function instanceOfFeatureFlags(value) {
20
20
  isInstance = isInstance && "governanceEnabled" in value;
21
21
  isInstance = isInstance && "projectRequestsEnabled" in value;
22
22
  isInstance = isInstance && "workspacesEnabled" in value;
23
+ isInstance = isInstance && "driveEnabled" in value;
23
24
  return isInstance;
24
25
  }
25
26
  export function FeatureFlagsFromJSON(json) {
@@ -34,6 +35,7 @@ export function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'governanceEnabled': json['governanceEnabled'],
35
36
  'projectRequestsEnabled': json['projectRequestsEnabled'],
36
37
  'workspacesEnabled': json['workspacesEnabled'],
38
+ 'driveEnabled': json['driveEnabled'],
37
39
  };
38
40
  }
39
41
  export function FeatureFlagsToJSON(value) {
@@ -48,5 +50,6 @@ export function FeatureFlagsToJSON(value) {
48
50
  'governanceEnabled': value.governanceEnabled,
49
51
  'projectRequestsEnabled': value.projectRequestsEnabled,
50
52
  'workspacesEnabled': value.workspacesEnabled,
53
+ 'driveEnabled': value.driveEnabled,
51
54
  };
52
55
  }
@@ -165,6 +165,12 @@ export interface ProjectRequirement {
165
165
  * @memberof ProjectRequirement
166
166
  */
167
167
  fulfillmentPath?: string | null;
168
+ /**
169
+ * Whether this requirement requires the user to fulfill (it is active, requires fulfillment, and user has not fulfilled
170
+ * @type {boolean}
171
+ * @memberof ProjectRequirement
172
+ */
173
+ requiresUserFulfillment?: boolean;
168
174
  }
169
175
  /**
170
176
  * Check if a given object implements the ProjectRequirement interface.
@@ -68,6 +68,7 @@ export function ProjectRequirementFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'fulfillmentDate': !exists(json, 'fulfillmentDate') ? undefined : (json['fulfillmentDate'] === null ? null : new Date(json['fulfillmentDate'])),
69
69
  'fulfillmentFile': !exists(json, 'fulfillmentFile') ? undefined : json['fulfillmentFile'],
70
70
  'fulfillmentPath': !exists(json, 'fulfillmentPath') ? undefined : json['fulfillmentPath'],
71
+ 'requiresUserFulfillment': !exists(json, 'requiresUserFulfillment') ? undefined : json['requiresUserFulfillment'],
71
72
  };
72
73
  }
73
74
  export function ProjectRequirementToJSON(value) {
@@ -102,5 +103,6 @@ export function ProjectRequirementToJSON(value) {
102
103
  'fulfillmentDate': value.fulfillmentDate === undefined ? undefined : (value.fulfillmentDate === null ? null : value.fulfillmentDate.toISOString()),
103
104
  'fulfillmentFile': value.fulfillmentFile,
104
105
  'fulfillmentPath': value.fulfillmentPath,
106
+ 'requiresUserFulfillment': value.requiresUserFulfillment,
105
107
  };
106
108
  }
@@ -28,24 +28,6 @@ export interface ProjectSettings {
28
28
  * @memberof ProjectSettings
29
29
  */
30
30
  budgetPeriod: BudgetPeriod;
31
- /**
32
- * AMI ID for the DRAGEN compute environment (if enabled)
33
- * @type {string}
34
- * @memberof ProjectSettings
35
- */
36
- dragenAmi?: string | null;
37
- /**
38
- * Enables the default compute environment
39
- * @type {boolean}
40
- * @memberof ProjectSettings
41
- */
42
- enableCompute?: boolean;
43
- /**
44
- * Enables the DRAGEN compute environment
45
- * @type {boolean}
46
- * @memberof ProjectSettings
47
- */
48
- enableDragen?: boolean;
49
31
  /**
50
32
  * Enables the AWS Backup service for S3
51
33
  * @type {boolean}
@@ -59,23 +41,17 @@ export interface ProjectSettings {
59
41
  */
60
42
  enableSftp?: boolean;
61
43
  /**
62
- * Service quota limit for On Demand F1 instances
63
- * @type {number}
64
- * @memberof ProjectSettings
65
- */
66
- maxF1VCPU?: number;
67
- /**
68
- * Service quota limit for Spot instances
69
- * @type {number}
44
+ * List of service connections to enable
45
+ * @type {Array<string>}
70
46
  * @memberof ProjectSettings
71
47
  */
72
- maxSpotVCPU?: number;
48
+ serviceConnections?: Array<string>;
73
49
  /**
74
- * Service quota limit for GPU Spot instances
75
- * @type {number}
50
+ * KMS Key ARN to encrypt S3 objects, if not provided, default bucket encryption will be used
51
+ * @type {string}
76
52
  * @memberof ProjectSettings
77
53
  */
78
- maxGPUVCPU?: number;
54
+ kmsArn?: string | null;
79
55
  /**
80
56
  * Days to keep deleted datasets before being permanently erased
81
57
  * @type {number}
@@ -88,12 +64,6 @@ export interface ProjectSettings {
88
64
  * @memberof ProjectSettings
89
65
  */
90
66
  temporaryStorageLifetimeDays?: number;
91
- /**
92
- * List of service connections to enable
93
- * @type {Array<string>}
94
- * @memberof ProjectSettings
95
- */
96
- serviceConnections?: Array<string>;
97
67
  /**
98
68
  * VPC that the compute environment will use
99
69
  * @type {string}
@@ -101,7 +71,7 @@ export interface ProjectSettings {
101
71
  */
102
72
  vpcId?: string | null;
103
73
  /**
104
- * List of subnets that the compute environment will use
74
+ * List of subnets that the pipeline compute environment will use
105
75
  * @type {Array<string>}
106
76
  * @memberof ProjectSettings
107
77
  */
@@ -110,14 +80,63 @@ export interface ProjectSettings {
110
80
  * List of subnets that the sagemaker instances will use
111
81
  * @type {Array<string>}
112
82
  * @memberof ProjectSettings
83
+ * @deprecated
113
84
  */
114
85
  sagemakerSubnets?: Array<string> | null;
115
86
  /**
116
- * KMS Key ARN to encrypt S3 objects, if not provided, default bucket encryption will be used
87
+ * List of subnets that workspace instances will use
88
+ * @type {Array<string>}
89
+ * @memberof ProjectSettings
90
+ */
91
+ workspaceSubnets?: Array<string> | null;
92
+ /**
93
+ * vCPU service quota limit for standard spot instances (pipelines)
94
+ * @type {number}
95
+ * @memberof ProjectSettings
96
+ */
97
+ maxSpotVCPU?: number;
98
+ /**
99
+ * vCPU service quota limit for FPGA-enabled instances (pipelines)
100
+ * @type {number}
101
+ * @memberof ProjectSettings
102
+ */
103
+ maxFPGAVCPU?: number;
104
+ /**
105
+ * vCPU service quota limit for GPU-enabled spot instances (pipelines)
106
+ * @type {number}
107
+ * @memberof ProjectSettings
108
+ */
109
+ maxGPUVCPU?: number;
110
+ /**
111
+ * Enables the DRAGEN compute environment (pipelines)
112
+ * @type {boolean}
113
+ * @memberof ProjectSettings
114
+ */
115
+ enableDragen?: boolean;
116
+ /**
117
+ * AMI ID for the DRAGEN compute environment, if enabled (pipelines)
117
118
  * @type {string}
118
119
  * @memberof ProjectSettings
119
120
  */
120
- kmsArn?: string | null;
121
+ dragenAmi?: string | null;
122
+ /**
123
+ * vCPU service quota limit for standard instances (workspaces)
124
+ * @type {number}
125
+ * @memberof ProjectSettings
126
+ */
127
+ maxWorkspacesVCPU?: number;
128
+ /**
129
+ * vCPU service quota limit for GPU-enabled instances (workspaces)
130
+ * @type {number}
131
+ * @memberof ProjectSettings
132
+ */
133
+ maxWorkspacesGPUVCPU?: number;
134
+ /**
135
+ * Maximum number of workspaces per user (workspaces)
136
+ * @type {number}
137
+ * @memberof ProjectSettings
138
+ */
139
+ maxWorkspacesPerUser?: number;
121
140
  /**
122
141
  * Enables the project to be discoverable by other users
123
142
  * @type {boolean}
@@ -130,6 +149,18 @@ export interface ProjectSettings {
130
149
  * @memberof ProjectSettings
131
150
  */
132
151
  isShareable?: boolean | null;
152
+ /**
153
+ * (Read-only) Whether this project has pipelines enabled
154
+ * @type {boolean}
155
+ * @memberof ProjectSettings
156
+ */
157
+ hasPipelinesEnabled?: boolean | null;
158
+ /**
159
+ * (Read-only) Whether this project has workspaces enabled
160
+ * @type {boolean}
161
+ * @memberof ProjectSettings
162
+ */
163
+ hasWorkspacesEnabled?: boolean | null;
133
164
  }
134
165
  /**
135
166
  * Check if a given object implements the ProjectSettings interface.
@@ -32,23 +32,28 @@ export function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return {
33
33
  'budgetAmount': json['budgetAmount'],
34
34
  'budgetPeriod': BudgetPeriodFromJSON(json['budgetPeriod']),
35
- 'dragenAmi': !exists(json, 'dragenAmi') ? undefined : json['dragenAmi'],
36
- 'enableCompute': !exists(json, 'enableCompute') ? undefined : json['enableCompute'],
37
- 'enableDragen': !exists(json, 'enableDragen') ? undefined : json['enableDragen'],
38
35
  'enableBackup': !exists(json, 'enableBackup') ? undefined : json['enableBackup'],
39
36
  'enableSftp': !exists(json, 'enableSftp') ? undefined : json['enableSftp'],
40
- 'maxF1VCPU': !exists(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
41
- 'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
42
- 'maxGPUVCPU': !exists(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
37
+ 'serviceConnections': !exists(json, 'serviceConnections') ? undefined : json['serviceConnections'],
38
+ 'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
43
39
  'retentionPolicyDays': !exists(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
44
40
  'temporaryStorageLifetimeDays': !exists(json, 'temporaryStorageLifetimeDays') ? undefined : json['temporaryStorageLifetimeDays'],
45
- 'serviceConnections': !exists(json, 'serviceConnections') ? undefined : json['serviceConnections'],
46
41
  'vpcId': !exists(json, 'vpcId') ? undefined : json['vpcId'],
47
42
  'batchSubnets': !exists(json, 'batchSubnets') ? undefined : json['batchSubnets'],
48
43
  'sagemakerSubnets': !exists(json, 'sagemakerSubnets') ? undefined : json['sagemakerSubnets'],
49
- 'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
44
+ 'workspaceSubnets': !exists(json, 'workspaceSubnets') ? undefined : json['workspaceSubnets'],
45
+ 'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
46
+ 'maxFPGAVCPU': !exists(json, 'maxFPGAVCPU') ? undefined : json['maxFPGAVCPU'],
47
+ 'maxGPUVCPU': !exists(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
48
+ 'enableDragen': !exists(json, 'enableDragen') ? undefined : json['enableDragen'],
49
+ 'dragenAmi': !exists(json, 'dragenAmi') ? undefined : json['dragenAmi'],
50
+ 'maxWorkspacesVCPU': !exists(json, 'maxWorkspacesVCPU') ? undefined : json['maxWorkspacesVCPU'],
51
+ 'maxWorkspacesGPUVCPU': !exists(json, 'maxWorkspacesGPUVCPU') ? undefined : json['maxWorkspacesGPUVCPU'],
52
+ 'maxWorkspacesPerUser': !exists(json, 'maxWorkspacesPerUser') ? undefined : json['maxWorkspacesPerUser'],
50
53
  'isDiscoverable': !exists(json, 'isDiscoverable') ? undefined : json['isDiscoverable'],
51
54
  'isShareable': !exists(json, 'isShareable') ? undefined : json['isShareable'],
55
+ 'hasPipelinesEnabled': !exists(json, 'hasPipelinesEnabled') ? undefined : json['hasPipelinesEnabled'],
56
+ 'hasWorkspacesEnabled': !exists(json, 'hasWorkspacesEnabled') ? undefined : json['hasWorkspacesEnabled'],
52
57
  };
53
58
  }
54
59
  export function ProjectSettingsToJSON(value) {
@@ -61,22 +66,27 @@ export function ProjectSettingsToJSON(value) {
61
66
  return {
62
67
  'budgetAmount': value.budgetAmount,
63
68
  'budgetPeriod': BudgetPeriodToJSON(value.budgetPeriod),
64
- 'dragenAmi': value.dragenAmi,
65
- 'enableCompute': value.enableCompute,
66
- 'enableDragen': value.enableDragen,
67
69
  'enableBackup': value.enableBackup,
68
70
  'enableSftp': value.enableSftp,
69
- 'maxF1VCPU': value.maxF1VCPU,
70
- 'maxSpotVCPU': value.maxSpotVCPU,
71
- 'maxGPUVCPU': value.maxGPUVCPU,
71
+ 'serviceConnections': value.serviceConnections,
72
+ 'kmsArn': value.kmsArn,
72
73
  'retentionPolicyDays': value.retentionPolicyDays,
73
74
  'temporaryStorageLifetimeDays': value.temporaryStorageLifetimeDays,
74
- 'serviceConnections': value.serviceConnections,
75
75
  'vpcId': value.vpcId,
76
76
  'batchSubnets': value.batchSubnets,
77
77
  'sagemakerSubnets': value.sagemakerSubnets,
78
- 'kmsArn': value.kmsArn,
78
+ 'workspaceSubnets': value.workspaceSubnets,
79
+ 'maxSpotVCPU': value.maxSpotVCPU,
80
+ 'maxFPGAVCPU': value.maxFPGAVCPU,
81
+ 'maxGPUVCPU': value.maxGPUVCPU,
82
+ 'enableDragen': value.enableDragen,
83
+ 'dragenAmi': value.dragenAmi,
84
+ 'maxWorkspacesVCPU': value.maxWorkspacesVCPU,
85
+ 'maxWorkspacesGPUVCPU': value.maxWorkspacesGPUVCPU,
86
+ 'maxWorkspacesPerUser': value.maxWorkspacesPerUser,
79
87
  'isDiscoverable': value.isDiscoverable,
80
88
  'isShareable': value.isShareable,
89
+ 'hasPipelinesEnabled': value.hasPipelinesEnabled,
90
+ 'hasWorkspacesEnabled': value.hasWorkspacesEnabled,
81
91
  };
82
92
  }
@@ -0,0 +1,43 @@
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 VersionSpecification
16
+ */
17
+ export interface VersionSpecification {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VersionSpecification
22
+ */
23
+ version: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof VersionSpecification
28
+ */
29
+ isDefault: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof VersionSpecification
34
+ */
35
+ isLatest: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VersionSpecification interface.
39
+ */
40
+ export declare function instanceOfVersionSpecification(value: object): boolean;
41
+ export declare function VersionSpecificationFromJSON(json: any): VersionSpecification;
42
+ export declare function VersionSpecificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionSpecification;
43
+ export declare function VersionSpecificationToJSON(value?: VersionSpecification | null): any;
@@ -0,0 +1,49 @@
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
+ * Check if a given object implements the VersionSpecification interface.
16
+ */
17
+ export function instanceOfVersionSpecification(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "version" in value;
20
+ isInstance = isInstance && "isDefault" in value;
21
+ isInstance = isInstance && "isLatest" in value;
22
+ return isInstance;
23
+ }
24
+ export function VersionSpecificationFromJSON(json) {
25
+ return VersionSpecificationFromJSONTyped(json, false);
26
+ }
27
+ export function VersionSpecificationFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'version': json['version'],
33
+ 'isDefault': json['isDefault'],
34
+ 'isLatest': json['isLatest'],
35
+ };
36
+ }
37
+ export function VersionSpecificationToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'version': value.version,
46
+ 'isDefault': value.isDefault,
47
+ 'isLatest': value.isLatest,
48
+ };
49
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VersionSpecification } from './VersionSpecification';
12
13
  import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
13
14
  /**
14
15
  *
@@ -46,6 +47,12 @@ export interface WorkspaceEnvironment {
46
47
  * @memberof WorkspaceEnvironment
47
48
  */
48
49
  defaultComputeConfig: WorkspaceComputeConfig;
50
+ /**
51
+ *
52
+ * @type {Array<VersionSpecification>}
53
+ * @memberof WorkspaceEnvironment
54
+ */
55
+ versions: Array<VersionSpecification>;
49
56
  /**
50
57
  *
51
58
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VersionSpecificationFromJSON, VersionSpecificationToJSON, } from './VersionSpecification';
14
15
  import { WorkspaceComputeConfigFromJSON, WorkspaceComputeConfigToJSON, } from './WorkspaceComputeConfig';
15
16
  /**
16
17
  * Check if a given object implements the WorkspaceEnvironment interface.
@@ -22,6 +23,7 @@ export function instanceOfWorkspaceEnvironment(value) {
22
23
  isInstance = isInstance && "description" in value;
23
24
  isInstance = isInstance && "category" in value;
24
25
  isInstance = isInstance && "defaultComputeConfig" in value;
26
+ isInstance = isInstance && "versions" in value;
25
27
  isInstance = isInstance && "owner" in value;
26
28
  return isInstance;
27
29
  }
@@ -38,6 +40,7 @@ export function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
38
40
  'description': json['description'],
39
41
  'category': json['category'],
40
42
  'defaultComputeConfig': WorkspaceComputeConfigFromJSON(json['defaultComputeConfig']),
43
+ 'versions': (json['versions'].map(VersionSpecificationFromJSON)),
41
44
  'owner': json['owner'],
42
45
  };
43
46
  }
@@ -54,6 +57,7 @@ export function WorkspaceEnvironmentToJSON(value) {
54
57
  'description': value.description,
55
58
  'category': value.category,
56
59
  'defaultComputeConfig': WorkspaceComputeConfigToJSON(value.defaultComputeConfig),
60
+ 'versions': (value.versions.map(VersionSpecificationToJSON)),
57
61
  'owner': value.owner,
58
62
  };
59
63
  }
@@ -149,6 +149,7 @@ export * from './UserProjectAssignment';
149
149
  export * from './UserSettings';
150
150
  export * from './ValidateFileNamePatternsRequest';
151
151
  export * from './ValidateFileRequirementsRequest';
152
+ export * from './VersionSpecification';
152
153
  export * from './Workspace';
153
154
  export * from './WorkspaceComputeConfig';
154
155
  export * from './WorkspaceConnectionResponse';
@@ -151,6 +151,7 @@ export * from './UserProjectAssignment';
151
151
  export * from './UserSettings';
152
152
  export * from './ValidateFileNamePatternsRequest';
153
153
  export * from './ValidateFileRequirementsRequest';
154
+ export * from './VersionSpecification';
154
155
  export * from './Workspace';
155
156
  export * from './WorkspaceComputeConfig';
156
157
  export * from './WorkspaceConnectionResponse';
@@ -39,6 +39,12 @@ export interface FeatureFlags {
39
39
  * @memberof FeatureFlags
40
40
  */
41
41
  workspacesEnabled: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof FeatureFlags
46
+ */
47
+ driveEnabled: boolean;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the FeatureFlags interface.
@@ -23,6 +23,7 @@ function instanceOfFeatureFlags(value) {
23
23
  isInstance = isInstance && "governanceEnabled" in value;
24
24
  isInstance = isInstance && "projectRequestsEnabled" in value;
25
25
  isInstance = isInstance && "workspacesEnabled" in value;
26
+ isInstance = isInstance && "driveEnabled" in value;
26
27
  return isInstance;
27
28
  }
28
29
  exports.instanceOfFeatureFlags = instanceOfFeatureFlags;
@@ -39,6 +40,7 @@ function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'governanceEnabled': json['governanceEnabled'],
40
41
  'projectRequestsEnabled': json['projectRequestsEnabled'],
41
42
  'workspacesEnabled': json['workspacesEnabled'],
43
+ 'driveEnabled': json['driveEnabled'],
42
44
  };
43
45
  }
44
46
  exports.FeatureFlagsFromJSONTyped = FeatureFlagsFromJSONTyped;
@@ -54,6 +56,7 @@ function FeatureFlagsToJSON(value) {
54
56
  'governanceEnabled': value.governanceEnabled,
55
57
  'projectRequestsEnabled': value.projectRequestsEnabled,
56
58
  'workspacesEnabled': value.workspacesEnabled,
59
+ 'driveEnabled': value.driveEnabled,
57
60
  };
58
61
  }
59
62
  exports.FeatureFlagsToJSON = FeatureFlagsToJSON;
@@ -165,6 +165,12 @@ export interface ProjectRequirement {
165
165
  * @memberof ProjectRequirement
166
166
  */
167
167
  fulfillmentPath?: string | null;
168
+ /**
169
+ * Whether this requirement requires the user to fulfill (it is active, requires fulfillment, and user has not fulfilled
170
+ * @type {boolean}
171
+ * @memberof ProjectRequirement
172
+ */
173
+ requiresUserFulfillment?: boolean;
168
174
  }
169
175
  /**
170
176
  * Check if a given object implements the ProjectRequirement interface.
@@ -73,6 +73,7 @@ function ProjectRequirementFromJSONTyped(json, ignoreDiscriminator) {
73
73
  'fulfillmentDate': !(0, runtime_1.exists)(json, 'fulfillmentDate') ? undefined : (json['fulfillmentDate'] === null ? null : new Date(json['fulfillmentDate'])),
74
74
  'fulfillmentFile': !(0, runtime_1.exists)(json, 'fulfillmentFile') ? undefined : json['fulfillmentFile'],
75
75
  'fulfillmentPath': !(0, runtime_1.exists)(json, 'fulfillmentPath') ? undefined : json['fulfillmentPath'],
76
+ 'requiresUserFulfillment': !(0, runtime_1.exists)(json, 'requiresUserFulfillment') ? undefined : json['requiresUserFulfillment'],
76
77
  };
77
78
  }
78
79
  exports.ProjectRequirementFromJSONTyped = ProjectRequirementFromJSONTyped;
@@ -108,6 +109,7 @@ function ProjectRequirementToJSON(value) {
108
109
  'fulfillmentDate': value.fulfillmentDate === undefined ? undefined : (value.fulfillmentDate === null ? null : value.fulfillmentDate.toISOString()),
109
110
  'fulfillmentFile': value.fulfillmentFile,
110
111
  'fulfillmentPath': value.fulfillmentPath,
112
+ 'requiresUserFulfillment': value.requiresUserFulfillment,
111
113
  };
112
114
  }
113
115
  exports.ProjectRequirementToJSON = ProjectRequirementToJSON;
@@ -28,24 +28,6 @@ export interface ProjectSettings {
28
28
  * @memberof ProjectSettings
29
29
  */
30
30
  budgetPeriod: BudgetPeriod;
31
- /**
32
- * AMI ID for the DRAGEN compute environment (if enabled)
33
- * @type {string}
34
- * @memberof ProjectSettings
35
- */
36
- dragenAmi?: string | null;
37
- /**
38
- * Enables the default compute environment
39
- * @type {boolean}
40
- * @memberof ProjectSettings
41
- */
42
- enableCompute?: boolean;
43
- /**
44
- * Enables the DRAGEN compute environment
45
- * @type {boolean}
46
- * @memberof ProjectSettings
47
- */
48
- enableDragen?: boolean;
49
31
  /**
50
32
  * Enables the AWS Backup service for S3
51
33
  * @type {boolean}
@@ -59,23 +41,17 @@ export interface ProjectSettings {
59
41
  */
60
42
  enableSftp?: boolean;
61
43
  /**
62
- * Service quota limit for On Demand F1 instances
63
- * @type {number}
64
- * @memberof ProjectSettings
65
- */
66
- maxF1VCPU?: number;
67
- /**
68
- * Service quota limit for Spot instances
69
- * @type {number}
44
+ * List of service connections to enable
45
+ * @type {Array<string>}
70
46
  * @memberof ProjectSettings
71
47
  */
72
- maxSpotVCPU?: number;
48
+ serviceConnections?: Array<string>;
73
49
  /**
74
- * Service quota limit for GPU Spot instances
75
- * @type {number}
50
+ * KMS Key ARN to encrypt S3 objects, if not provided, default bucket encryption will be used
51
+ * @type {string}
76
52
  * @memberof ProjectSettings
77
53
  */
78
- maxGPUVCPU?: number;
54
+ kmsArn?: string | null;
79
55
  /**
80
56
  * Days to keep deleted datasets before being permanently erased
81
57
  * @type {number}
@@ -88,12 +64,6 @@ export interface ProjectSettings {
88
64
  * @memberof ProjectSettings
89
65
  */
90
66
  temporaryStorageLifetimeDays?: number;
91
- /**
92
- * List of service connections to enable
93
- * @type {Array<string>}
94
- * @memberof ProjectSettings
95
- */
96
- serviceConnections?: Array<string>;
97
67
  /**
98
68
  * VPC that the compute environment will use
99
69
  * @type {string}
@@ -101,7 +71,7 @@ export interface ProjectSettings {
101
71
  */
102
72
  vpcId?: string | null;
103
73
  /**
104
- * List of subnets that the compute environment will use
74
+ * List of subnets that the pipeline compute environment will use
105
75
  * @type {Array<string>}
106
76
  * @memberof ProjectSettings
107
77
  */
@@ -110,14 +80,63 @@ export interface ProjectSettings {
110
80
  * List of subnets that the sagemaker instances will use
111
81
  * @type {Array<string>}
112
82
  * @memberof ProjectSettings
83
+ * @deprecated
113
84
  */
114
85
  sagemakerSubnets?: Array<string> | null;
115
86
  /**
116
- * KMS Key ARN to encrypt S3 objects, if not provided, default bucket encryption will be used
87
+ * List of subnets that workspace instances will use
88
+ * @type {Array<string>}
89
+ * @memberof ProjectSettings
90
+ */
91
+ workspaceSubnets?: Array<string> | null;
92
+ /**
93
+ * vCPU service quota limit for standard spot instances (pipelines)
94
+ * @type {number}
95
+ * @memberof ProjectSettings
96
+ */
97
+ maxSpotVCPU?: number;
98
+ /**
99
+ * vCPU service quota limit for FPGA-enabled instances (pipelines)
100
+ * @type {number}
101
+ * @memberof ProjectSettings
102
+ */
103
+ maxFPGAVCPU?: number;
104
+ /**
105
+ * vCPU service quota limit for GPU-enabled spot instances (pipelines)
106
+ * @type {number}
107
+ * @memberof ProjectSettings
108
+ */
109
+ maxGPUVCPU?: number;
110
+ /**
111
+ * Enables the DRAGEN compute environment (pipelines)
112
+ * @type {boolean}
113
+ * @memberof ProjectSettings
114
+ */
115
+ enableDragen?: boolean;
116
+ /**
117
+ * AMI ID for the DRAGEN compute environment, if enabled (pipelines)
117
118
  * @type {string}
118
119
  * @memberof ProjectSettings
119
120
  */
120
- kmsArn?: string | null;
121
+ dragenAmi?: string | null;
122
+ /**
123
+ * vCPU service quota limit for standard instances (workspaces)
124
+ * @type {number}
125
+ * @memberof ProjectSettings
126
+ */
127
+ maxWorkspacesVCPU?: number;
128
+ /**
129
+ * vCPU service quota limit for GPU-enabled instances (workspaces)
130
+ * @type {number}
131
+ * @memberof ProjectSettings
132
+ */
133
+ maxWorkspacesGPUVCPU?: number;
134
+ /**
135
+ * Maximum number of workspaces per user (workspaces)
136
+ * @type {number}
137
+ * @memberof ProjectSettings
138
+ */
139
+ maxWorkspacesPerUser?: number;
121
140
  /**
122
141
  * Enables the project to be discoverable by other users
123
142
  * @type {boolean}
@@ -130,6 +149,18 @@ export interface ProjectSettings {
130
149
  * @memberof ProjectSettings
131
150
  */
132
151
  isShareable?: boolean | null;
152
+ /**
153
+ * (Read-only) Whether this project has pipelines enabled
154
+ * @type {boolean}
155
+ * @memberof ProjectSettings
156
+ */
157
+ hasPipelinesEnabled?: boolean | null;
158
+ /**
159
+ * (Read-only) Whether this project has workspaces enabled
160
+ * @type {boolean}
161
+ * @memberof ProjectSettings
162
+ */
163
+ hasWorkspacesEnabled?: boolean | null;
133
164
  }
134
165
  /**
135
166
  * Check if a given object implements the ProjectSettings interface.
@@ -37,23 +37,28 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return {
38
38
  'budgetAmount': json['budgetAmount'],
39
39
  'budgetPeriod': (0, BudgetPeriod_1.BudgetPeriodFromJSON)(json['budgetPeriod']),
40
- 'dragenAmi': !(0, runtime_1.exists)(json, 'dragenAmi') ? undefined : json['dragenAmi'],
41
- 'enableCompute': !(0, runtime_1.exists)(json, 'enableCompute') ? undefined : json['enableCompute'],
42
- 'enableDragen': !(0, runtime_1.exists)(json, 'enableDragen') ? undefined : json['enableDragen'],
43
40
  'enableBackup': !(0, runtime_1.exists)(json, 'enableBackup') ? undefined : json['enableBackup'],
44
41
  'enableSftp': !(0, runtime_1.exists)(json, 'enableSftp') ? undefined : json['enableSftp'],
45
- 'maxF1VCPU': !(0, runtime_1.exists)(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
46
- 'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
47
- 'maxGPUVCPU': !(0, runtime_1.exists)(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
42
+ 'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
43
+ 'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
48
44
  'retentionPolicyDays': !(0, runtime_1.exists)(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
49
45
  'temporaryStorageLifetimeDays': !(0, runtime_1.exists)(json, 'temporaryStorageLifetimeDays') ? undefined : json['temporaryStorageLifetimeDays'],
50
- 'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
51
46
  'vpcId': !(0, runtime_1.exists)(json, 'vpcId') ? undefined : json['vpcId'],
52
47
  'batchSubnets': !(0, runtime_1.exists)(json, 'batchSubnets') ? undefined : json['batchSubnets'],
53
48
  'sagemakerSubnets': !(0, runtime_1.exists)(json, 'sagemakerSubnets') ? undefined : json['sagemakerSubnets'],
54
- 'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
49
+ 'workspaceSubnets': !(0, runtime_1.exists)(json, 'workspaceSubnets') ? undefined : json['workspaceSubnets'],
50
+ 'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
51
+ 'maxFPGAVCPU': !(0, runtime_1.exists)(json, 'maxFPGAVCPU') ? undefined : json['maxFPGAVCPU'],
52
+ 'maxGPUVCPU': !(0, runtime_1.exists)(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
53
+ 'enableDragen': !(0, runtime_1.exists)(json, 'enableDragen') ? undefined : json['enableDragen'],
54
+ 'dragenAmi': !(0, runtime_1.exists)(json, 'dragenAmi') ? undefined : json['dragenAmi'],
55
+ 'maxWorkspacesVCPU': !(0, runtime_1.exists)(json, 'maxWorkspacesVCPU') ? undefined : json['maxWorkspacesVCPU'],
56
+ 'maxWorkspacesGPUVCPU': !(0, runtime_1.exists)(json, 'maxWorkspacesGPUVCPU') ? undefined : json['maxWorkspacesGPUVCPU'],
57
+ 'maxWorkspacesPerUser': !(0, runtime_1.exists)(json, 'maxWorkspacesPerUser') ? undefined : json['maxWorkspacesPerUser'],
55
58
  'isDiscoverable': !(0, runtime_1.exists)(json, 'isDiscoverable') ? undefined : json['isDiscoverable'],
56
59
  'isShareable': !(0, runtime_1.exists)(json, 'isShareable') ? undefined : json['isShareable'],
60
+ 'hasPipelinesEnabled': !(0, runtime_1.exists)(json, 'hasPipelinesEnabled') ? undefined : json['hasPipelinesEnabled'],
61
+ 'hasWorkspacesEnabled': !(0, runtime_1.exists)(json, 'hasWorkspacesEnabled') ? undefined : json['hasWorkspacesEnabled'],
57
62
  };
58
63
  }
59
64
  exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
@@ -67,23 +72,28 @@ function ProjectSettingsToJSON(value) {
67
72
  return {
68
73
  'budgetAmount': value.budgetAmount,
69
74
  'budgetPeriod': (0, BudgetPeriod_1.BudgetPeriodToJSON)(value.budgetPeriod),
70
- 'dragenAmi': value.dragenAmi,
71
- 'enableCompute': value.enableCompute,
72
- 'enableDragen': value.enableDragen,
73
75
  'enableBackup': value.enableBackup,
74
76
  'enableSftp': value.enableSftp,
75
- 'maxF1VCPU': value.maxF1VCPU,
76
- 'maxSpotVCPU': value.maxSpotVCPU,
77
- 'maxGPUVCPU': value.maxGPUVCPU,
77
+ 'serviceConnections': value.serviceConnections,
78
+ 'kmsArn': value.kmsArn,
78
79
  'retentionPolicyDays': value.retentionPolicyDays,
79
80
  'temporaryStorageLifetimeDays': value.temporaryStorageLifetimeDays,
80
- 'serviceConnections': value.serviceConnections,
81
81
  'vpcId': value.vpcId,
82
82
  'batchSubnets': value.batchSubnets,
83
83
  'sagemakerSubnets': value.sagemakerSubnets,
84
- 'kmsArn': value.kmsArn,
84
+ 'workspaceSubnets': value.workspaceSubnets,
85
+ 'maxSpotVCPU': value.maxSpotVCPU,
86
+ 'maxFPGAVCPU': value.maxFPGAVCPU,
87
+ 'maxGPUVCPU': value.maxGPUVCPU,
88
+ 'enableDragen': value.enableDragen,
89
+ 'dragenAmi': value.dragenAmi,
90
+ 'maxWorkspacesVCPU': value.maxWorkspacesVCPU,
91
+ 'maxWorkspacesGPUVCPU': value.maxWorkspacesGPUVCPU,
92
+ 'maxWorkspacesPerUser': value.maxWorkspacesPerUser,
85
93
  'isDiscoverable': value.isDiscoverable,
86
94
  'isShareable': value.isShareable,
95
+ 'hasPipelinesEnabled': value.hasPipelinesEnabled,
96
+ 'hasWorkspacesEnabled': value.hasWorkspacesEnabled,
87
97
  };
88
98
  }
89
99
  exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
@@ -0,0 +1,43 @@
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 VersionSpecification
16
+ */
17
+ export interface VersionSpecification {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VersionSpecification
22
+ */
23
+ version: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof VersionSpecification
28
+ */
29
+ isDefault: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof VersionSpecification
34
+ */
35
+ isLatest: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VersionSpecification interface.
39
+ */
40
+ export declare function instanceOfVersionSpecification(value: object): boolean;
41
+ export declare function VersionSpecificationFromJSON(json: any): VersionSpecification;
42
+ export declare function VersionSpecificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionSpecification;
43
+ export declare function VersionSpecificationToJSON(value?: VersionSpecification | null): any;
@@ -0,0 +1,56 @@
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.VersionSpecificationToJSON = exports.VersionSpecificationFromJSONTyped = exports.VersionSpecificationFromJSON = exports.instanceOfVersionSpecification = void 0;
17
+ /**
18
+ * Check if a given object implements the VersionSpecification interface.
19
+ */
20
+ function instanceOfVersionSpecification(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "version" in value;
23
+ isInstance = isInstance && "isDefault" in value;
24
+ isInstance = isInstance && "isLatest" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfVersionSpecification = instanceOfVersionSpecification;
28
+ function VersionSpecificationFromJSON(json) {
29
+ return VersionSpecificationFromJSONTyped(json, false);
30
+ }
31
+ exports.VersionSpecificationFromJSON = VersionSpecificationFromJSON;
32
+ function VersionSpecificationFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'version': json['version'],
38
+ 'isDefault': json['isDefault'],
39
+ 'isLatest': json['isLatest'],
40
+ };
41
+ }
42
+ exports.VersionSpecificationFromJSONTyped = VersionSpecificationFromJSONTyped;
43
+ function VersionSpecificationToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'version': value.version,
52
+ 'isDefault': value.isDefault,
53
+ 'isLatest': value.isLatest,
54
+ };
55
+ }
56
+ exports.VersionSpecificationToJSON = VersionSpecificationToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VersionSpecification } from './VersionSpecification';
12
13
  import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
13
14
  /**
14
15
  *
@@ -46,6 +47,12 @@ export interface WorkspaceEnvironment {
46
47
  * @memberof WorkspaceEnvironment
47
48
  */
48
49
  defaultComputeConfig: WorkspaceComputeConfig;
50
+ /**
51
+ *
52
+ * @type {Array<VersionSpecification>}
53
+ * @memberof WorkspaceEnvironment
54
+ */
55
+ versions: Array<VersionSpecification>;
49
56
  /**
50
57
  *
51
58
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WorkspaceEnvironmentToJSON = exports.WorkspaceEnvironmentFromJSONTyped = exports.WorkspaceEnvironmentFromJSON = exports.instanceOfWorkspaceEnvironment = void 0;
17
+ const VersionSpecification_1 = require("./VersionSpecification");
17
18
  const WorkspaceComputeConfig_1 = require("./WorkspaceComputeConfig");
18
19
  /**
19
20
  * Check if a given object implements the WorkspaceEnvironment interface.
@@ -25,6 +26,7 @@ function instanceOfWorkspaceEnvironment(value) {
25
26
  isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "category" in value;
27
28
  isInstance = isInstance && "defaultComputeConfig" in value;
29
+ isInstance = isInstance && "versions" in value;
28
30
  isInstance = isInstance && "owner" in value;
29
31
  return isInstance;
30
32
  }
@@ -43,6 +45,7 @@ function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
43
45
  'description': json['description'],
44
46
  'category': json['category'],
45
47
  'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['defaultComputeConfig']),
48
+ 'versions': (json['versions'].map(VersionSpecification_1.VersionSpecificationFromJSON)),
46
49
  'owner': json['owner'],
47
50
  };
48
51
  }
@@ -60,6 +63,7 @@ function WorkspaceEnvironmentToJSON(value) {
60
63
  'description': value.description,
61
64
  'category': value.category,
62
65
  'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.defaultComputeConfig),
66
+ 'versions': (value.versions.map(VersionSpecification_1.VersionSpecificationToJSON)),
63
67
  'owner': value.owner,
64
68
  };
65
69
  }
@@ -149,6 +149,7 @@ export * from './UserProjectAssignment';
149
149
  export * from './UserSettings';
150
150
  export * from './ValidateFileNamePatternsRequest';
151
151
  export * from './ValidateFileRequirementsRequest';
152
+ export * from './VersionSpecification';
152
153
  export * from './Workspace';
153
154
  export * from './WorkspaceComputeConfig';
154
155
  export * from './WorkspaceConnectionResponse';
@@ -167,6 +167,7 @@ __exportStar(require("./UserProjectAssignment"), exports);
167
167
  __exportStar(require("./UserSettings"), exports);
168
168
  __exportStar(require("./ValidateFileNamePatternsRequest"), exports);
169
169
  __exportStar(require("./ValidateFileRequirementsRequest"), exports);
170
+ __exportStar(require("./VersionSpecification"), exports);
170
171
  __exportStar(require("./Workspace"), exports);
171
172
  __exportStar(require("./WorkspaceComputeConfig"), exports);
172
173
  __exportStar(require("./WorkspaceConnectionResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.11.4",
3
+ "version": "0.12.0",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {