@quantum-hub/qhubctl 1.9.0 → 1.11.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.
Files changed (155) hide show
  1. package/README.md +6 -35
  2. package/dist/commands/datapool-upload.js +7 -3
  3. package/dist/commands/init.js +2 -27
  4. package/dist/commands/list-contexts.js +1 -1
  5. package/dist/commands/services-build-status.js +1 -1
  6. package/dist/commands/set-context.js +6 -2
  7. package/dist/commands/up.js +11 -15
  8. package/dist/lib/error.js +25 -8
  9. package/dist/lib/repository.d.ts +1 -4
  10. package/dist/lib/repository.js +2 -9
  11. package/dist/service/quantum-hub-service.d.ts +9 -13
  12. package/dist/service/quantum-hub-service.js +67 -139
  13. package/package.json +2 -2
  14. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +0 -89
  15. package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +0 -222
  16. package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +0 -44
  17. package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +0 -106
  18. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +0 -133
  19. package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +0 -373
  20. package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +0 -101
  21. package/dist/client/kqh/apis/ServicePlatformJobsApi.js +0 -261
  22. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +0 -48
  23. package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +0 -115
  24. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +0 -29
  25. package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +0 -53
  26. package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +0 -501
  27. package/dist/client/kqh/apis/ServicePlatformServicesApi.js +0 -1472
  28. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +0 -66
  29. package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +0 -157
  30. package/dist/client/kqh/apis/TaxonomiesApi.d.ts +0 -90
  31. package/dist/client/kqh/apis/TaxonomiesApi.js +0 -272
  32. package/dist/client/kqh/apis/index.d.ts +0 -9
  33. package/dist/client/kqh/apis/index.js +0 -11
  34. package/dist/client/kqh/index.d.ts +0 -3
  35. package/dist/client/kqh/index.js +0 -5
  36. package/dist/client/kqh/models/AccessTokenDto.d.ts +0 -81
  37. package/dist/client/kqh/models/AccessTokenDto.js +0 -59
  38. package/dist/client/kqh/models/AmountMajorDto.d.ts +0 -37
  39. package/dist/client/kqh/models/AmountMajorDto.js +0 -40
  40. package/dist/client/kqh/models/ApiDto.d.ts +0 -144
  41. package/dist/client/kqh/models/ApiDto.js +0 -92
  42. package/dist/client/kqh/models/ApiOverviewDto.d.ts +0 -119
  43. package/dist/client/kqh/models/ApiOverviewDto.js +0 -83
  44. package/dist/client/kqh/models/ApplicationDto.d.ts +0 -64
  45. package/dist/client/kqh/models/ApplicationDto.js +0 -53
  46. package/dist/client/kqh/models/BuildJobDto.d.ts +0 -75
  47. package/dist/client/kqh/models/BuildJobDto.js +0 -64
  48. package/dist/client/kqh/models/CpuConfiguration.d.ts +0 -38
  49. package/dist/client/kqh/models/CpuConfiguration.js +0 -43
  50. package/dist/client/kqh/models/CreateApplicationRequest.d.ts +0 -31
  51. package/dist/client/kqh/models/CreateApplicationRequest.js +0 -38
  52. package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +0 -31
  53. package/dist/client/kqh/models/CreateDataPoolRequest.js +0 -40
  54. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +0 -46
  55. package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +0 -50
  56. package/dist/client/kqh/models/CreateJobRequest.d.ts +0 -62
  57. package/dist/client/kqh/models/CreateJobRequest.js +0 -51
  58. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +0 -73
  59. package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +0 -72
  60. package/dist/client/kqh/models/CreateProductRequest.d.ts +0 -43
  61. package/dist/client/kqh/models/CreateProductRequest.js +0 -46
  62. package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +0 -37
  63. package/dist/client/kqh/models/CreateSubscriptionRequest.js +0 -44
  64. package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +0 -37
  65. package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +0 -42
  66. package/dist/client/kqh/models/DataPoolDto.d.ts +0 -166
  67. package/dist/client/kqh/models/DataPoolDto.js +0 -98
  68. package/dist/client/kqh/models/DataPoolRef.d.ts +0 -43
  69. package/dist/client/kqh/models/DataPoolRef.js +0 -42
  70. package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +0 -89
  71. package/dist/client/kqh/models/DataSourceDescriptorDto.js +0 -62
  72. package/dist/client/kqh/models/FileDto.d.ts +0 -73
  73. package/dist/client/kqh/models/FileDto.js +0 -45
  74. package/dist/client/kqh/models/FileSource.d.ts +0 -26
  75. package/dist/client/kqh/models/FileSource.js +0 -28
  76. package/dist/client/kqh/models/GpuConfiguration.d.ts +0 -49
  77. package/dist/client/kqh/models/GpuConfiguration.js +0 -53
  78. package/dist/client/kqh/models/JobDto.d.ts +0 -117
  79. package/dist/client/kqh/models/JobDto.js +0 -75
  80. package/dist/client/kqh/models/JobOverviewDto.d.ts +0 -74
  81. package/dist/client/kqh/models/JobOverviewDto.js +0 -60
  82. package/dist/client/kqh/models/MemoryConfiguration.d.ts +0 -38
  83. package/dist/client/kqh/models/MemoryConfiguration.js +0 -43
  84. package/dist/client/kqh/models/MeteringRequest.d.ts +0 -43
  85. package/dist/client/kqh/models/MeteringRequest.js +0 -42
  86. package/dist/client/kqh/models/MeteringResponse.d.ts +0 -49
  87. package/dist/client/kqh/models/MeteringResponse.js +0 -44
  88. package/dist/client/kqh/models/MonthAmountDto.d.ts +0 -51
  89. package/dist/client/kqh/models/MonthAmountDto.js +0 -46
  90. package/dist/client/kqh/models/OwnerDto.d.ts +0 -67
  91. package/dist/client/kqh/models/OwnerDto.js +0 -50
  92. package/dist/client/kqh/models/PageDataPoolDto.d.ts +0 -94
  93. package/dist/client/kqh/models/PageDataPoolDto.js +0 -61
  94. package/dist/client/kqh/models/PageableObject.d.ts +0 -62
  95. package/dist/client/kqh/models/PageableObject.js +0 -49
  96. package/dist/client/kqh/models/PricingPlanDto.d.ts +0 -52
  97. package/dist/client/kqh/models/PricingPlanDto.js +0 -50
  98. package/dist/client/kqh/models/ProductAmountDto.d.ts +0 -38
  99. package/dist/client/kqh/models/ProductAmountDto.js +0 -41
  100. package/dist/client/kqh/models/ProductDto.d.ts +0 -83
  101. package/dist/client/kqh/models/ProductDto.js +0 -69
  102. package/dist/client/kqh/models/ProductGroupDto.d.ts +0 -45
  103. package/dist/client/kqh/models/ProductGroupDto.js +0 -44
  104. package/dist/client/kqh/models/ProductUsageDto.d.ts +0 -61
  105. package/dist/client/kqh/models/ProductUsageDto.js +0 -48
  106. package/dist/client/kqh/models/RegistrySource.d.ts +0 -52
  107. package/dist/client/kqh/models/RegistrySource.js +0 -49
  108. package/dist/client/kqh/models/RepositorySource.d.ts +0 -32
  109. package/dist/client/kqh/models/RepositorySource.js +0 -41
  110. package/dist/client/kqh/models/ResourceConfiguration.d.ts +0 -31
  111. package/dist/client/kqh/models/ResourceConfiguration.js +0 -52
  112. package/dist/client/kqh/models/ReviewDto.d.ts +0 -51
  113. package/dist/client/kqh/models/ReviewDto.js +0 -49
  114. package/dist/client/kqh/models/RuntimeConfiguration.d.ts +0 -53
  115. package/dist/client/kqh/models/RuntimeConfiguration.js +0 -49
  116. package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +0 -39
  117. package/dist/client/kqh/models/ServiceDefinitionCommand.js +0 -45
  118. package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +0 -180
  119. package/dist/client/kqh/models/ServiceDefinitionDto.js +0 -101
  120. package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +0 -23
  121. package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +0 -49
  122. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +0 -79
  123. package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +0 -64
  124. package/dist/client/kqh/models/ServiceDto.d.ts +0 -59
  125. package/dist/client/kqh/models/ServiceDto.js +0 -52
  126. package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +0 -67
  127. package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +0 -57
  128. package/dist/client/kqh/models/ServiceExecutionDto.d.ts +0 -49
  129. package/dist/client/kqh/models/ServiceExecutionDto.js +0 -44
  130. package/dist/client/kqh/models/ServiceOverviewDto.d.ts +0 -115
  131. package/dist/client/kqh/models/ServiceOverviewDto.js +0 -85
  132. package/dist/client/kqh/models/ServiceSource.d.ts +0 -31
  133. package/dist/client/kqh/models/ServiceSource.js +0 -52
  134. package/dist/client/kqh/models/SortObject.d.ts +0 -43
  135. package/dist/client/kqh/models/SortObject.js +0 -42
  136. package/dist/client/kqh/models/SubscriptionDto.d.ts +0 -58
  137. package/dist/client/kqh/models/SubscriptionDto.js +0 -49
  138. package/dist/client/kqh/models/TaxonomyElement.d.ts +0 -43
  139. package/dist/client/kqh/models/TaxonomyElement.js +0 -42
  140. package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +0 -109
  141. package/dist/client/kqh/models/UpdateDataPoolRequest.js +0 -66
  142. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +0 -23
  143. package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +0 -49
  144. package/dist/client/kqh/models/UpdateVersionRequest.d.ts +0 -44
  145. package/dist/client/kqh/models/UpdateVersionRequest.js +0 -43
  146. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +0 -31
  147. package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +0 -27
  148. package/dist/client/kqh/models/ValidationResult.d.ts +0 -52
  149. package/dist/client/kqh/models/ValidationResult.js +0 -50
  150. package/dist/client/kqh/models/index.d.ts +0 -57
  151. package/dist/client/kqh/models/index.js +0 -59
  152. package/dist/client/kqh/runtime.d.ts +0 -181
  153. package/dist/client/kqh/runtime.js +0 -325
  154. package/dist/model/account.d.ts +0 -5
  155. package/dist/model/account.js +0 -1
@@ -1,98 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
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
- import { ReviewDtoFromJSON, ReviewDtoToJSON, } from './ReviewDto.js';
15
- import { OwnerDtoFromJSON, OwnerDtoToJSON, } from './OwnerDto.js';
16
- import { TaxonomyElementFromJSON, TaxonomyElementToJSON, } from './TaxonomyElement.js';
17
- /**
18
- * @export
19
- */
20
- export const DataPoolDtoCurrentUserPermissionEnum = {
21
- Viewer: 'VIEWER',
22
- Maintainer: 'MAINTAINER',
23
- Owner: 'OWNER'
24
- };
25
- /**
26
- * @export
27
- */
28
- export const DataPoolDtoEntityMaturityEnum = {
29
- Initial: 'INITIAL',
30
- UnderReview: 'UNDER_REVIEW',
31
- Approved: 'APPROVED'
32
- };
33
- /**
34
- * Check if a given object implements the DataPoolDto interface.
35
- */
36
- export function instanceOfDataPoolDto(value) {
37
- if (!('id' in value) || value['id'] === undefined)
38
- return false;
39
- if (!('name' in value) || value['name'] === undefined)
40
- return false;
41
- return true;
42
- }
43
- export function DataPoolDtoFromJSON(json) {
44
- return DataPoolDtoFromJSONTyped(json, false);
45
- }
46
- export function DataPoolDtoFromJSONTyped(json, ignoreDiscriminator) {
47
- if (json == null) {
48
- return json;
49
- }
50
- return {
51
- 'currentUserPermission': json['currentUserPermission'] == null ? undefined : json['currentUserPermission'],
52
- 'id': json['id'],
53
- 'name': json['name'],
54
- 'shortDescription': json['shortDescription'] == null ? undefined : json['shortDescription'],
55
- 'description': json['description'] == null ? undefined : json['description'],
56
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
57
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
58
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
59
- 'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
60
- 'labelled': json['labelled'] == null ? undefined : json['labelled'],
61
- 'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
62
- 'entityMaturity': json['entityMaturity'] == null ? undefined : json['entityMaturity'],
63
- 'licenses': json['licenses'] == null ? undefined : (new Set(json['licenses'].map(TaxonomyElementFromJSON))),
64
- 'formats': json['formats'] == null ? undefined : (new Set(json['formats'].map(TaxonomyElementFromJSON))),
65
- 'problemTypes': json['problemTypes'] == null ? undefined : (new Set(json['problemTypes'].map(TaxonomyElementFromJSON))),
66
- 'industries': json['industries'] == null ? undefined : (new Set(json['industries'].map(TaxonomyElementFromJSON))),
67
- 'reviews': json['reviews'] == null ? undefined : (new Set(json['reviews'].map(ReviewDtoFromJSON))),
68
- 'owners': json['owners'] == null ? undefined : (json['owners'].map(OwnerDtoFromJSON)),
69
- 'bookmarked': json['bookmarked'] == null ? undefined : json['bookmarked'],
70
- '_public': json['public'] == null ? undefined : json['public'],
71
- };
72
- }
73
- export function DataPoolDtoToJSON(value) {
74
- if (value == null) {
75
- return value;
76
- }
77
- return {
78
- 'id': value['id'],
79
- 'name': value['name'],
80
- 'shortDescription': value['shortDescription'],
81
- 'description': value['description'],
82
- 'metadata': value['metadata'],
83
- 'createdBy': value['createdBy'],
84
- 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
85
- 'modifiedBy': value['modifiedBy'],
86
- 'labelled': value['labelled'],
87
- 'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
88
- 'entityMaturity': value['entityMaturity'],
89
- 'licenses': value['licenses'] == null ? undefined : (Array.from(value['licenses']).map(TaxonomyElementToJSON)),
90
- 'formats': value['formats'] == null ? undefined : (Array.from(value['formats']).map(TaxonomyElementToJSON)),
91
- 'problemTypes': value['problemTypes'] == null ? undefined : (Array.from(value['problemTypes']).map(TaxonomyElementToJSON)),
92
- 'industries': value['industries'] == null ? undefined : (Array.from(value['industries']).map(TaxonomyElementToJSON)),
93
- 'reviews': value['reviews'] == null ? undefined : (Array.from(value['reviews']).map(ReviewDtoToJSON)),
94
- 'owners': value['owners'] == null ? undefined : (value['owners'].map(OwnerDtoToJSON)),
95
- 'bookmarked': value['bookmarked'],
96
- 'public': value['_public'],
97
- };
98
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
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 DataPoolRef
16
- */
17
- export interface DataPoolRef {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof DataPoolRef
22
- */
23
- dataPoolId?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof DataPoolRef
28
- */
29
- dataSourceDescriptorId?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof DataPoolRef
34
- */
35
- fileId?: string;
36
- }
37
- /**
38
- * Check if a given object implements the DataPoolRef interface.
39
- */
40
- export declare function instanceOfDataPoolRef(value: object): value is DataPoolRef;
41
- export declare function DataPoolRefFromJSON(json: any): DataPoolRef;
42
- export declare function DataPoolRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPoolRef;
43
- export declare function DataPoolRefToJSON(value?: DataPoolRef | null): any;
@@ -1,42 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
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 DataPoolRef interface.
16
- */
17
- export function instanceOfDataPoolRef(value) {
18
- return true;
19
- }
20
- export function DataPoolRefFromJSON(json) {
21
- return DataPoolRefFromJSONTyped(json, false);
22
- }
23
- export function DataPoolRefFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'dataPoolId': json['dataPoolId'] == null ? undefined : json['dataPoolId'],
29
- 'dataSourceDescriptorId': json['dataSourceDescriptorId'] == null ? undefined : json['dataSourceDescriptorId'],
30
- 'fileId': json['fileId'] == null ? undefined : json['fileId'],
31
- };
32
- }
33
- export function DataPoolRefToJSON(value) {
34
- if (value == null) {
35
- return value;
36
- }
37
- return {
38
- 'dataPoolId': value['dataPoolId'],
39
- 'dataSourceDescriptorId': value['dataSourceDescriptorId'],
40
- 'fileId': value['fileId'],
41
- };
42
- }
@@ -1,89 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { FileDto } from './FileDto.js';
13
- /**
14
- *
15
- * @export
16
- * @interface DataSourceDescriptorDto
17
- */
18
- export interface DataSourceDescriptorDto {
19
- /**
20
- * The access permission role for this entity of the current user
21
- * @type {string}
22
- * @memberof DataSourceDescriptorDto
23
- */
24
- readonly currentUserPermission?: DataSourceDescriptorDtoCurrentUserPermissionEnum;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof DataSourceDescriptorDto
29
- */
30
- id?: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof DataSourceDescriptorDto
35
- */
36
- name?: string;
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof DataSourceDescriptorDto
41
- */
42
- description?: string;
43
- /**
44
- *
45
- * @type {Set<FileDto>}
46
- * @memberof DataSourceDescriptorDto
47
- */
48
- files?: Set<FileDto>;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof DataSourceDescriptorDto
53
- */
54
- createdBy?: string;
55
- /**
56
- *
57
- * @type {Date}
58
- * @memberof DataSourceDescriptorDto
59
- */
60
- createdAt?: Date;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof DataSourceDescriptorDto
65
- */
66
- modifiedBy?: string;
67
- /**
68
- *
69
- * @type {Date}
70
- * @memberof DataSourceDescriptorDto
71
- */
72
- modifiedAt?: Date;
73
- }
74
- /**
75
- * @export
76
- */
77
- export declare const DataSourceDescriptorDtoCurrentUserPermissionEnum: {
78
- readonly Viewer: "VIEWER";
79
- readonly Maintainer: "MAINTAINER";
80
- readonly Owner: "OWNER";
81
- };
82
- export type DataSourceDescriptorDtoCurrentUserPermissionEnum = typeof DataSourceDescriptorDtoCurrentUserPermissionEnum[keyof typeof DataSourceDescriptorDtoCurrentUserPermissionEnum];
83
- /**
84
- * Check if a given object implements the DataSourceDescriptorDto interface.
85
- */
86
- export declare function instanceOfDataSourceDescriptorDto(value: object): value is DataSourceDescriptorDto;
87
- export declare function DataSourceDescriptorDtoFromJSON(json: any): DataSourceDescriptorDto;
88
- export declare function DataSourceDescriptorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataSourceDescriptorDto;
89
- export declare function DataSourceDescriptorDtoToJSON(value?: Omit<DataSourceDescriptorDto, 'currentUserPermission'> | null): any;
@@ -1,62 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
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
- import { FileDtoFromJSON, FileDtoToJSON, } from './FileDto.js';
15
- /**
16
- * @export
17
- */
18
- export const DataSourceDescriptorDtoCurrentUserPermissionEnum = {
19
- Viewer: 'VIEWER',
20
- Maintainer: 'MAINTAINER',
21
- Owner: 'OWNER'
22
- };
23
- /**
24
- * Check if a given object implements the DataSourceDescriptorDto interface.
25
- */
26
- export function instanceOfDataSourceDescriptorDto(value) {
27
- return true;
28
- }
29
- export function DataSourceDescriptorDtoFromJSON(json) {
30
- return DataSourceDescriptorDtoFromJSONTyped(json, false);
31
- }
32
- export function DataSourceDescriptorDtoFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'currentUserPermission': json['currentUserPermission'] == null ? undefined : json['currentUserPermission'],
38
- 'id': json['id'] == null ? undefined : json['id'],
39
- 'name': json['name'] == null ? undefined : json['name'],
40
- 'description': json['description'] == null ? undefined : json['description'],
41
- 'files': json['files'] == null ? undefined : (new Set(json['files'].map(FileDtoFromJSON))),
42
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
43
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
44
- 'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
45
- 'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
46
- };
47
- }
48
- export function DataSourceDescriptorDtoToJSON(value) {
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'id': value['id'],
54
- 'name': value['name'],
55
- 'description': value['description'],
56
- 'files': value['files'] == null ? undefined : (Array.from(value['files']).map(FileDtoToJSON)),
57
- 'createdBy': value['createdBy'],
58
- 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
59
- 'modifiedBy': value['modifiedBy'],
60
- 'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
61
- };
62
- }
@@ -1,73 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
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 FileDto
16
- */
17
- export interface FileDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof FileDto
22
- */
23
- readonly id?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof FileDto
28
- */
29
- name?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof FileDto
34
- */
35
- readonly mimeType?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof FileDto
40
- */
41
- readonly fileUrl?: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof FileDto
46
- */
47
- readonly createdBy?: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof FileDto
52
- */
53
- readonly createdAt?: string;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof FileDto
58
- */
59
- readonly modifiedBy?: string;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof FileDto
64
- */
65
- readonly modifiedAt?: string;
66
- }
67
- /**
68
- * Check if a given object implements the FileDto interface.
69
- */
70
- export declare function instanceOfFileDto(value: object): value is FileDto;
71
- export declare function FileDtoFromJSON(json: any): FileDto;
72
- export declare function FileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileDto;
73
- export declare function FileDtoToJSON(value?: Omit<FileDto, 'id' | 'mimeType' | 'fileUrl' | 'createdBy' | 'createdAt' | 'modifiedBy' | 'modifiedAt'> | null): any;
@@ -1,45 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
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 FileDto interface.
16
- */
17
- export function instanceOfFileDto(value) {
18
- return true;
19
- }
20
- export function FileDtoFromJSON(json) {
21
- return FileDtoFromJSONTyped(json, false);
22
- }
23
- export function FileDtoFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'id': json['id'] == null ? undefined : json['id'],
29
- 'name': json['name'] == null ? undefined : json['name'],
30
- 'mimeType': json['mimeType'] == null ? undefined : json['mimeType'],
31
- 'fileUrl': json['fileUrl'] == null ? undefined : json['fileUrl'],
32
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
33
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
34
- 'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
35
- 'modifiedAt': json['modifiedAt'] == null ? undefined : json['modifiedAt'],
36
- };
37
- }
38
- export function FileDtoToJSON(value) {
39
- if (value == null) {
40
- return value;
41
- }
42
- return {
43
- 'name': value['name'],
44
- };
45
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ServiceSource } from './ServiceSource.js';
13
- /**
14
- *
15
- * @export
16
- * @interface FileSource
17
- */
18
- export interface FileSource extends ServiceSource {
19
- }
20
- /**
21
- * Check if a given object implements the FileSource interface.
22
- */
23
- export declare function instanceOfFileSource(value: object): value is FileSource;
24
- export declare function FileSourceFromJSON(json: any): FileSource;
25
- export declare function FileSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileSource;
26
- export declare function FileSourceToJSON(value?: FileSource | null): any;
@@ -1,28 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
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 FileSource interface.
16
- */
17
- export function instanceOfFileSource(value) {
18
- return true;
19
- }
20
- export function FileSourceFromJSON(json) {
21
- return FileSourceFromJSONTyped(json, false);
22
- }
23
- export function FileSourceFromJSONTyped(json, ignoreDiscriminator) {
24
- return json;
25
- }
26
- export function FileSourceToJSON(value) {
27
- return value;
28
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * Quantum Hub Platform API
3
- * Part of the OpenAPI specification for the Quantum Hub Platform.
4
- *
5
- * The version of the OpenAPI document: v1
6
- * Contact: info@anaqor.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ResourceConfiguration } from './ResourceConfiguration.js';
13
- /**
14
- *
15
- * @export
16
- * @interface GpuConfiguration
17
- */
18
- export interface GpuConfiguration extends ResourceConfiguration {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof GpuConfiguration
23
- */
24
- amount?: number;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof GpuConfiguration
29
- */
30
- accelerator?: GpuConfigurationAcceleratorEnum;
31
- }
32
- /**
33
- * @export
34
- */
35
- export declare const GpuConfigurationAcceleratorEnum: {
36
- readonly NvidiaTeslaT4: "NVIDIA_TESLA_T4";
37
- readonly NvidiaTeslaV100: "NVIDIA_TESLA_V100";
38
- readonly NvidiaTeslaA100: "NVIDIA_TESLA_A100";
39
- readonly NvidiaTeslaP100: "NVIDIA_TESLA_P100";
40
- readonly None: "NONE";
41
- };
42
- export type GpuConfigurationAcceleratorEnum = typeof GpuConfigurationAcceleratorEnum[keyof typeof GpuConfigurationAcceleratorEnum];
43
- /**
44
- * Check if a given object implements the GpuConfiguration interface.
45
- */
46
- export declare function instanceOfGpuConfiguration(value: object): value is GpuConfiguration;
47
- export declare function GpuConfigurationFromJSON(json: any): GpuConfiguration;
48
- export declare function GpuConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GpuConfiguration;
49
- export declare function GpuConfigurationToJSON(value?: GpuConfiguration | null): any;
@@ -1,53 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Hub Platform API
5
- * Part of the OpenAPI specification for the Quantum Hub Platform.
6
- *
7
- * The version of the OpenAPI document: v1
8
- * Contact: info@anaqor.io
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
- import { ResourceConfigurationFromJSONTyped, ResourceConfigurationToJSON, } from './ResourceConfiguration.js';
15
- /**
16
- * @export
17
- */
18
- export const GpuConfigurationAcceleratorEnum = {
19
- NvidiaTeslaT4: 'NVIDIA_TESLA_T4',
20
- NvidiaTeslaV100: 'NVIDIA_TESLA_V100',
21
- NvidiaTeslaA100: 'NVIDIA_TESLA_A100',
22
- NvidiaTeslaP100: 'NVIDIA_TESLA_P100',
23
- None: 'NONE'
24
- };
25
- /**
26
- * Check if a given object implements the GpuConfiguration interface.
27
- */
28
- export function instanceOfGpuConfiguration(value) {
29
- return true;
30
- }
31
- export function GpuConfigurationFromJSON(json) {
32
- return GpuConfigurationFromJSONTyped(json, false);
33
- }
34
- export function GpuConfigurationFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- ...ResourceConfigurationFromJSONTyped(json, ignoreDiscriminator),
40
- 'amount': json['amount'] == null ? undefined : json['amount'],
41
- 'accelerator': json['accelerator'] == null ? undefined : json['accelerator'],
42
- };
43
- }
44
- export function GpuConfigurationToJSON(value) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- ...ResourceConfigurationToJSON(value),
50
- 'amount': value['amount'],
51
- 'accelerator': value['accelerator'],
52
- };
53
- }