@cirrobio/api-client 0.0.1

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 (155) hide show
  1. package/.openapi-generator/FILES +54 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/BillingApi.d.ts +68 -0
  6. package/dist/apis/BillingApi.js +264 -0
  7. package/dist/apis/DatasetsApi.d.ts +88 -0
  8. package/dist/apis/DatasetsApi.js +335 -0
  9. package/dist/apis/ExecutionApi.d.ts +96 -0
  10. package/dist/apis/ExecutionApi.js +394 -0
  11. package/dist/apis/MetricsApi.d.ts +31 -0
  12. package/dist/apis/MetricsApi.js +126 -0
  13. package/dist/apis/NotebooksApi.d.ts +77 -0
  14. package/dist/apis/NotebooksApi.js +351 -0
  15. package/dist/apis/ProcessesApi.d.ts +41 -0
  16. package/dist/apis/ProcessesApi.js +169 -0
  17. package/dist/apis/ProjectsApi.d.ts +97 -0
  18. package/dist/apis/ProjectsApi.js +369 -0
  19. package/dist/apis/SystemApi.d.ts +46 -0
  20. package/dist/apis/SystemApi.js +207 -0
  21. package/dist/apis/UsersApi.d.ts +58 -0
  22. package/dist/apis/UsersApi.js +226 -0
  23. package/dist/apis/index.d.ts +9 -0
  24. package/dist/apis/index.js +27 -0
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.js +21 -0
  27. package/dist/models/BillingAccount.d.ts +82 -0
  28. package/dist/models/BillingAccount.js +77 -0
  29. package/dist/models/BillingMethod.d.ts +24 -0
  30. package/dist/models/BillingMethod.js +37 -0
  31. package/dist/models/BudgetPeriod.d.ts +24 -0
  32. package/dist/models/BudgetPeriod.js +37 -0
  33. package/dist/models/CloudAccount.d.ts +50 -0
  34. package/dist/models/CloudAccount.js +57 -0
  35. package/dist/models/Contact.d.ts +49 -0
  36. package/dist/models/Contact.js +56 -0
  37. package/dist/models/CreateNotebookInstanceRequest.d.ts +49 -0
  38. package/dist/models/CreateNotebookInstanceRequest.js +59 -0
  39. package/dist/models/CreateResponse.d.ts +37 -0
  40. package/dist/models/CreateResponse.js +53 -0
  41. package/dist/models/CustomerType.d.ts +25 -0
  42. package/dist/models/CustomerType.js +38 -0
  43. package/dist/models/Dataset.d.ts +86 -0
  44. package/dist/models/Dataset.js +78 -0
  45. package/dist/models/DatasetDetail.d.ts +114 -0
  46. package/dist/models/DatasetDetail.js +90 -0
  47. package/dist/models/DatasetType.d.ts +23 -0
  48. package/dist/models/DatasetType.js +36 -0
  49. package/dist/models/Executor.d.ts +24 -0
  50. package/dist/models/Executor.js +37 -0
  51. package/dist/models/FormSchema.d.ts +41 -0
  52. package/dist/models/FormSchema.js +52 -0
  53. package/dist/models/GetExecutionLogsResponse.d.ts +32 -0
  54. package/dist/models/GetExecutionLogsResponse.js +51 -0
  55. package/dist/models/LogEntry.d.ts +37 -0
  56. package/dist/models/LogEntry.js +53 -0
  57. package/dist/models/NotebookInstance.d.ts +43 -0
  58. package/dist/models/NotebookInstance.js +56 -0
  59. package/dist/models/OpenNotebookInstanceResponse.d.ts +37 -0
  60. package/dist/models/OpenNotebookInstanceResponse.js +53 -0
  61. package/dist/models/Process.d.ts +68 -0
  62. package/dist/models/Process.js +63 -0
  63. package/dist/models/Project.d.ts +49 -0
  64. package/dist/models/Project.js +59 -0
  65. package/dist/models/ProjectDetail.d.ts +100 -0
  66. package/dist/models/ProjectDetail.js +86 -0
  67. package/dist/models/ProjectMetrics.d.ts +47 -0
  68. package/dist/models/ProjectMetrics.js +56 -0
  69. package/dist/models/ProjectRequest.d.ts +71 -0
  70. package/dist/models/ProjectRequest.js +72 -0
  71. package/dist/models/ProjectRole.d.ts +25 -0
  72. package/dist/models/ProjectRole.js +38 -0
  73. package/dist/models/ProjectSettings.d.ts +92 -0
  74. package/dist/models/ProjectSettings.js +71 -0
  75. package/dist/models/ReferenceType.d.ts +31 -0
  76. package/dist/models/ReferenceType.js +50 -0
  77. package/dist/models/Region.d.ts +31 -0
  78. package/dist/models/Region.js +50 -0
  79. package/dist/models/RegisterDatasetRequest.d.ts +31 -0
  80. package/dist/models/RegisterDatasetRequest.js +50 -0
  81. package/dist/models/ServiceConnection.d.ts +31 -0
  82. package/dist/models/ServiceConnection.js +50 -0
  83. package/dist/models/SetUserProjectRoleRequest.d.ts +31 -0
  84. package/dist/models/SetUserProjectRoleRequest.js +50 -0
  85. package/dist/models/StopExecutionResponse.d.ts +37 -0
  86. package/dist/models/StopExecutionResponse.js +52 -0
  87. package/dist/models/SystemInfoResponse.d.ts +55 -0
  88. package/dist/models/SystemInfoResponse.js +62 -0
  89. package/dist/models/Tag.d.ts +37 -0
  90. package/dist/models/Tag.js +53 -0
  91. package/dist/models/Task.d.ts +73 -0
  92. package/dist/models/Task.js +68 -0
  93. package/dist/models/UpdateDatasetRequest.d.ts +31 -0
  94. package/dist/models/UpdateDatasetRequest.js +50 -0
  95. package/dist/models/UpdateUserRequest.d.ts +57 -0
  96. package/dist/models/UpdateUserRequest.js +62 -0
  97. package/dist/models/User.d.ts +49 -0
  98. package/dist/models/User.js +59 -0
  99. package/dist/models/index.d.ts +36 -0
  100. package/dist/models/index.js +54 -0
  101. package/dist/runtime.d.ts +182 -0
  102. package/dist/runtime.js +562 -0
  103. package/package.json +22 -0
  104. package/src/apis/BillingApi.ts +178 -0
  105. package/src/apis/DatasetsApi.ts +257 -0
  106. package/src/apis/ExecutionApi.ts +317 -0
  107. package/src/apis/MetricsApi.ts +66 -0
  108. package/src/apis/NotebooksApi.ts +261 -0
  109. package/src/apis/ProcessesApi.ts +97 -0
  110. package/src/apis/ProjectsApi.ts +283 -0
  111. package/src/apis/SystemApi.ts +118 -0
  112. package/src/apis/UsersApi.ts +153 -0
  113. package/src/apis/index.ts +11 -0
  114. package/src/index.ts +5 -0
  115. package/src/models/BillingAccount.ts +157 -0
  116. package/src/models/BillingMethod.ts +39 -0
  117. package/src/models/BudgetPeriod.ts +39 -0
  118. package/src/models/CloudAccount.ts +96 -0
  119. package/src/models/Contact.ts +89 -0
  120. package/src/models/CreateNotebookInstanceRequest.ts +93 -0
  121. package/src/models/CreateResponse.ts +75 -0
  122. package/src/models/CustomerType.ts +40 -0
  123. package/src/models/Dataset.ts +154 -0
  124. package/src/models/DatasetDetail.ts +190 -0
  125. package/src/models/DatasetType.ts +38 -0
  126. package/src/models/Executor.ts +39 -0
  127. package/src/models/FormSchema.ts +73 -0
  128. package/src/models/GetExecutionLogsResponse.ts +73 -0
  129. package/src/models/LogEntry.ts +74 -0
  130. package/src/models/NotebookInstance.ts +84 -0
  131. package/src/models/OpenNotebookInstanceResponse.ts +75 -0
  132. package/src/models/Process.ts +120 -0
  133. package/src/models/Project.ts +93 -0
  134. package/src/models/ProjectDetail.ts +184 -0
  135. package/src/models/ProjectMetrics.ts +84 -0
  136. package/src/models/ProjectRequest.ts +145 -0
  137. package/src/models/ProjectRole.ts +40 -0
  138. package/src/models/ProjectSettings.ts +152 -0
  139. package/src/models/ReferenceType.ts +66 -0
  140. package/src/models/Region.ts +65 -0
  141. package/src/models/RegisterDatasetRequest.ts +65 -0
  142. package/src/models/ServiceConnection.ts +66 -0
  143. package/src/models/SetUserProjectRoleRequest.ts +65 -0
  144. package/src/models/StopExecutionResponse.ts +73 -0
  145. package/src/models/SystemInfoResponse.ts +102 -0
  146. package/src/models/Tag.ts +75 -0
  147. package/src/models/Task.ts +125 -0
  148. package/src/models/UpdateDatasetRequest.ts +65 -0
  149. package/src/models/UpdateUserRequest.ts +102 -0
  150. package/src/models/User.ts +93 -0
  151. package/src/models/index.ts +38 -0
  152. package/src/runtime.ts +431 -0
  153. package/templates/README.mustache +45 -0
  154. package/templates/package.mustache +43 -0
  155. package/tsconfig.json +20 -0
@@ -0,0 +1,157 @@
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 { BillingMethod } from './BillingMethod';
17
+ import {
18
+ BillingMethodFromJSON,
19
+ BillingMethodFromJSONTyped,
20
+ BillingMethodToJSON,
21
+ } from './BillingMethod';
22
+ import type { Contact } from './Contact';
23
+ import {
24
+ ContactFromJSON,
25
+ ContactFromJSONTyped,
26
+ ContactToJSON,
27
+ } from './Contact';
28
+ import type { CustomerType } from './CustomerType';
29
+ import {
30
+ CustomerTypeFromJSON,
31
+ CustomerTypeFromJSONTyped,
32
+ CustomerTypeToJSON,
33
+ } from './CustomerType';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface BillingAccount
39
+ */
40
+ export interface BillingAccount {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof BillingAccount
45
+ */
46
+ id: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof BillingAccount
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof BillingAccount
57
+ */
58
+ organization: string;
59
+ /**
60
+ *
61
+ * @type {Array<Contact>}
62
+ * @memberof BillingAccount
63
+ */
64
+ contacts: Array<Contact>;
65
+ /**
66
+ *
67
+ * @type {CustomerType}
68
+ * @memberof BillingAccount
69
+ */
70
+ customerType: CustomerType;
71
+ /**
72
+ *
73
+ * @type {BillingMethod}
74
+ * @memberof BillingAccount
75
+ */
76
+ billingMethod: BillingMethod;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof BillingAccount
81
+ */
82
+ primaryBudgetNumber: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof BillingAccount
87
+ */
88
+ owner: string;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof BillingAccount
93
+ */
94
+ sharedWith: Array<string>;
95
+ }
96
+
97
+ /**
98
+ * Check if a given object implements the BillingAccount interface.
99
+ */
100
+ export function instanceOfBillingAccount(value: object): boolean {
101
+ let isInstance = true;
102
+ isInstance = isInstance && "id" in value;
103
+ isInstance = isInstance && "name" in value;
104
+ isInstance = isInstance && "organization" in value;
105
+ isInstance = isInstance && "contacts" in value;
106
+ isInstance = isInstance && "customerType" in value;
107
+ isInstance = isInstance && "billingMethod" in value;
108
+ isInstance = isInstance && "primaryBudgetNumber" in value;
109
+ isInstance = isInstance && "owner" in value;
110
+ isInstance = isInstance && "sharedWith" in value;
111
+
112
+ return isInstance;
113
+ }
114
+
115
+ export function BillingAccountFromJSON(json: any): BillingAccount {
116
+ return BillingAccountFromJSONTyped(json, false);
117
+ }
118
+
119
+ export function BillingAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAccount {
120
+ if ((json === undefined) || (json === null)) {
121
+ return json;
122
+ }
123
+ return {
124
+
125
+ 'id': json['id'],
126
+ 'name': json['name'],
127
+ 'organization': json['organization'],
128
+ 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
129
+ 'customerType': CustomerTypeFromJSON(json['customerType']),
130
+ 'billingMethod': BillingMethodFromJSON(json['billingMethod']),
131
+ 'primaryBudgetNumber': json['primaryBudgetNumber'],
132
+ 'owner': json['owner'],
133
+ 'sharedWith': json['sharedWith'],
134
+ };
135
+ }
136
+
137
+ export function BillingAccountToJSON(value?: BillingAccount | null): any {
138
+ if (value === undefined) {
139
+ return undefined;
140
+ }
141
+ if (value === null) {
142
+ return null;
143
+ }
144
+ return {
145
+
146
+ 'id': value.id,
147
+ 'name': value.name,
148
+ 'organization': value.organization,
149
+ 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
150
+ 'customerType': CustomerTypeToJSON(value.customerType),
151
+ 'billingMethod': BillingMethodToJSON(value.billingMethod),
152
+ 'primaryBudgetNumber': value.primaryBudgetNumber,
153
+ 'owner': value.owner,
154
+ 'sharedWith': value.sharedWith,
155
+ };
156
+ }
157
+
@@ -0,0 +1,39 @@
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
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const BillingMethod = {
21
+ BudgetNumber: 'BUDGET_NUMBER',
22
+ PurchaseOrder: 'PURCHASE_ORDER',
23
+ Credit: 'CREDIT'
24
+ } as const;
25
+ export type BillingMethod = typeof BillingMethod[keyof typeof BillingMethod];
26
+
27
+
28
+ export function BillingMethodFromJSON(json: any): BillingMethod {
29
+ return BillingMethodFromJSONTyped(json, false);
30
+ }
31
+
32
+ export function BillingMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingMethod {
33
+ return json as BillingMethod;
34
+ }
35
+
36
+ export function BillingMethodToJSON(value?: BillingMethod | null): any {
37
+ return value as any;
38
+ }
39
+
@@ -0,0 +1,39 @@
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
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const BudgetPeriod = {
21
+ Annually: 'ANNUALLY',
22
+ Quarterly: 'QUARTERLY',
23
+ Monthly: 'MONTHLY'
24
+ } as const;
25
+ export type BudgetPeriod = typeof BudgetPeriod[keyof typeof BudgetPeriod];
26
+
27
+
28
+ export function BudgetPeriodFromJSON(json: any): BudgetPeriod {
29
+ return BudgetPeriodFromJSONTyped(json, false);
30
+ }
31
+
32
+ export function BudgetPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetPeriod {
33
+ return json as BudgetPeriod;
34
+ }
35
+
36
+ export function BudgetPeriodToJSON(value?: BudgetPeriod | null): any {
37
+ return value as any;
38
+ }
39
+
@@ -0,0 +1,96 @@
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 { Region } from './Region';
17
+ import {
18
+ RegionFromJSON,
19
+ RegionFromJSONTyped,
20
+ RegionToJSON,
21
+ } from './Region';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface CloudAccount
27
+ */
28
+ export interface CloudAccount {
29
+ /**
30
+ *
31
+ * @type {Region}
32
+ * @memberof CloudAccount
33
+ */
34
+ region?: Region;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof CloudAccount
39
+ */
40
+ accountId?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof CloudAccount
45
+ */
46
+ accountName?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof CloudAccount
51
+ */
52
+ regionName?: string;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the CloudAccount interface.
57
+ */
58
+ export function instanceOfCloudAccount(value: object): boolean {
59
+ let isInstance = true;
60
+
61
+ return isInstance;
62
+ }
63
+
64
+ export function CloudAccountFromJSON(json: any): CloudAccount {
65
+ return CloudAccountFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function CloudAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloudAccount {
69
+ if ((json === undefined) || (json === null)) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'region': !exists(json, 'region') ? undefined : RegionFromJSON(json['region']),
75
+ 'accountId': !exists(json, 'accountId') ? undefined : json['accountId'],
76
+ 'accountName': !exists(json, 'accountName') ? undefined : json['accountName'],
77
+ 'regionName': !exists(json, 'regionName') ? undefined : json['regionName'],
78
+ };
79
+ }
80
+
81
+ export function CloudAccountToJSON(value?: CloudAccount | null): any {
82
+ if (value === undefined) {
83
+ return undefined;
84
+ }
85
+ if (value === null) {
86
+ return null;
87
+ }
88
+ return {
89
+
90
+ 'region': RegionToJSON(value.region),
91
+ 'accountId': value.accountId,
92
+ 'accountName': value.accountName,
93
+ 'regionName': value.regionName,
94
+ };
95
+ }
96
+
@@ -0,0 +1,89 @@
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 Contact
20
+ */
21
+ export interface Contact {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Contact
26
+ */
27
+ name?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Contact
32
+ */
33
+ organization?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Contact
38
+ */
39
+ email?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Contact
44
+ */
45
+ phone?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Contact interface.
50
+ */
51
+ export function instanceOfContact(value: object): boolean {
52
+ let isInstance = true;
53
+
54
+ return isInstance;
55
+ }
56
+
57
+ export function ContactFromJSON(json: any): Contact {
58
+ return ContactFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function ContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): Contact {
62
+ if ((json === undefined) || (json === null)) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'name': !exists(json, 'name') ? undefined : json['name'],
68
+ 'organization': !exists(json, 'organization') ? undefined : json['organization'],
69
+ 'email': !exists(json, 'email') ? undefined : json['email'],
70
+ 'phone': !exists(json, 'phone') ? undefined : json['phone'],
71
+ };
72
+ }
73
+
74
+ export function ContactToJSON(value?: Contact | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'name': value.name,
84
+ 'organization': value.organization,
85
+ 'email': value.email,
86
+ 'phone': value.phone,
87
+ };
88
+ }
89
+
@@ -0,0 +1,93 @@
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 CreateNotebookInstanceRequest
20
+ */
21
+ export interface CreateNotebookInstanceRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateNotebookInstanceRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ * AWS EC2 Instance Type (see list of available options)
30
+ * @type {string}
31
+ * @memberof CreateNotebookInstanceRequest
32
+ */
33
+ instanceType: string;
34
+ /**
35
+ *
36
+ * @type {Array<string>}
37
+ * @memberof CreateNotebookInstanceRequest
38
+ */
39
+ acceleratorTypes: Array<string>;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof CreateNotebookInstanceRequest
44
+ */
45
+ volumeSizeGB: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the CreateNotebookInstanceRequest interface.
50
+ */
51
+ export function instanceOfCreateNotebookInstanceRequest(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "name" in value;
54
+ isInstance = isInstance && "instanceType" in value;
55
+ isInstance = isInstance && "acceleratorTypes" in value;
56
+ isInstance = isInstance && "volumeSizeGB" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function CreateNotebookInstanceRequestFromJSON(json: any): CreateNotebookInstanceRequest {
62
+ return CreateNotebookInstanceRequestFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function CreateNotebookInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNotebookInstanceRequest {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'name': json['name'],
72
+ 'instanceType': json['instanceType'],
73
+ 'acceleratorTypes': json['acceleratorTypes'],
74
+ 'volumeSizeGB': json['volumeSizeGB'],
75
+ };
76
+ }
77
+
78
+ export function CreateNotebookInstanceRequestToJSON(value?: CreateNotebookInstanceRequest | null): any {
79
+ if (value === undefined) {
80
+ return undefined;
81
+ }
82
+ if (value === null) {
83
+ return null;
84
+ }
85
+ return {
86
+
87
+ 'name': value.name,
88
+ 'instanceType': value.instanceType,
89
+ 'acceleratorTypes': value.acceleratorTypes,
90
+ 'volumeSizeGB': value.volumeSizeGB,
91
+ };
92
+ }
93
+
@@ -0,0 +1,75 @@
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 CreateResponse
20
+ */
21
+ export interface CreateResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateResponse
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CreateResponse
32
+ */
33
+ message: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CreateResponse interface.
38
+ */
39
+ export function instanceOfCreateResponse(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "id" in value;
42
+ isInstance = isInstance && "message" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function CreateResponseFromJSON(json: any): CreateResponse {
48
+ return CreateResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function CreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'id': json['id'],
58
+ 'message': json['message'],
59
+ };
60
+ }
61
+
62
+ export function CreateResponseToJSON(value?: CreateResponse | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'id': value.id,
72
+ 'message': value.message,
73
+ };
74
+ }
75
+
@@ -0,0 +1,40 @@
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
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const CustomerType = {
21
+ Free: 'FREE',
22
+ Usage: 'USAGE',
23
+ Marketplace: 'MARKETPLACE',
24
+ Contract: 'CONTRACT'
25
+ } as const;
26
+ export type CustomerType = typeof CustomerType[keyof typeof CustomerType];
27
+
28
+
29
+ export function CustomerTypeFromJSON(json: any): CustomerType {
30
+ return CustomerTypeFromJSONTyped(json, false);
31
+ }
32
+
33
+ export function CustomerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerType {
34
+ return json as CustomerType;
35
+ }
36
+
37
+ export function CustomerTypeToJSON(value?: CustomerType | null): any {
38
+ return value as any;
39
+ }
40
+