@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,69 +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
- * @export
16
- */
17
- export const ProductDtoTypeEnum = {
18
- Api: 'API',
19
- Cpu: 'CPU',
20
- Memory: 'MEMORY',
21
- Ionq1GateShot: 'IONQ_1_GATE_SHOT',
22
- Ionq2GateShot: 'IONQ_2_GATE_SHOT',
23
- AwsSv1: 'AWS_SV1',
24
- AwsDm1: 'AWS_DM1',
25
- AwsTn1: 'AWS_TN1',
26
- AwsQuantumTask: 'AWS_QUANTUM_TASK',
27
- AwsIonqHarmony: 'AWS_IONQ_HARMONY',
28
- AwsIonqAria: 'AWS_IONQ_ARIA',
29
- AwsOqcLucy: 'AWS_OQC_LUCY',
30
- AwsRigettiAspenm: 'AWS_RIGETTI_ASPENM',
31
- Custom: 'CUSTOM',
32
- GpuNvidiaT4: 'GPU_NVIDIA_T4',
33
- GpuNvidiaV100: 'GPU_NVIDIA_V100'
34
- };
35
- /**
36
- * Check if a given object implements the ProductDto interface.
37
- */
38
- export function instanceOfProductDto(value) {
39
- return true;
40
- }
41
- export function ProductDtoFromJSON(json) {
42
- return ProductDtoFromJSONTyped(json, false);
43
- }
44
- export function ProductDtoFromJSONTyped(json, ignoreDiscriminator) {
45
- if (json == null) {
46
- return json;
47
- }
48
- return {
49
- 'id': json['id'] == null ? undefined : json['id'],
50
- 'name': json['name'] == null ? undefined : json['name'],
51
- 'unitLabel': json['unitLabel'] == null ? undefined : json['unitLabel'],
52
- 'amountMajor': json['amountMajor'] == null ? undefined : json['amountMajor'],
53
- 'currency': json['currency'] == null ? undefined : json['currency'],
54
- 'type': json['type'] == null ? undefined : json['type'],
55
- };
56
- }
57
- export function ProductDtoToJSON(value) {
58
- if (value == null) {
59
- return value;
60
- }
61
- return {
62
- 'id': value['id'],
63
- 'name': value['name'],
64
- 'unitLabel': value['unitLabel'],
65
- 'amountMajor': value['amountMajor'],
66
- 'currency': value['currency'],
67
- 'type': value['type'],
68
- };
69
- }
@@ -1,45 +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 { ProductAmountDto } from './ProductAmountDto.js';
13
- import type { AmountMajorDto } from './AmountMajorDto.js';
14
- /**
15
- *
16
- * @export
17
- * @interface ProductGroupDto
18
- */
19
- export interface ProductGroupDto {
20
- /**
21
- *
22
- * @type {string}
23
- * @memberof ProductGroupDto
24
- */
25
- name?: string;
26
- /**
27
- *
28
- * @type {AmountMajorDto}
29
- * @memberof ProductGroupDto
30
- */
31
- amountMajor?: AmountMajorDto;
32
- /**
33
- *
34
- * @type {Array<ProductAmountDto>}
35
- * @memberof ProductGroupDto
36
- */
37
- products?: Array<ProductAmountDto>;
38
- }
39
- /**
40
- * Check if a given object implements the ProductGroupDto interface.
41
- */
42
- export declare function instanceOfProductGroupDto(value: object): value is ProductGroupDto;
43
- export declare function ProductGroupDtoFromJSON(json: any): ProductGroupDto;
44
- export declare function ProductGroupDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGroupDto;
45
- export declare function ProductGroupDtoToJSON(value?: ProductGroupDto | null): any;
@@ -1,44 +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 { ProductAmountDtoFromJSON, ProductAmountDtoToJSON, } from './ProductAmountDto.js';
15
- import { AmountMajorDtoFromJSON, AmountMajorDtoToJSON, } from './AmountMajorDto.js';
16
- /**
17
- * Check if a given object implements the ProductGroupDto interface.
18
- */
19
- export function instanceOfProductGroupDto(value) {
20
- return true;
21
- }
22
- export function ProductGroupDtoFromJSON(json) {
23
- return ProductGroupDtoFromJSONTyped(json, false);
24
- }
25
- export function ProductGroupDtoFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'name': json['name'] == null ? undefined : json['name'],
31
- 'amountMajor': json['amountMajor'] == null ? undefined : AmountMajorDtoFromJSON(json['amountMajor']),
32
- 'products': json['products'] == null ? undefined : (json['products'].map(ProductAmountDtoFromJSON)),
33
- };
34
- }
35
- export function ProductGroupDtoToJSON(value) {
36
- if (value == null) {
37
- return value;
38
- }
39
- return {
40
- 'name': value['name'],
41
- 'amountMajor': AmountMajorDtoToJSON(value['amountMajor']),
42
- 'products': value['products'] == null ? undefined : (value['products'].map(ProductAmountDtoToJSON)),
43
- };
44
- }
@@ -1,61 +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 ProductUsageDto
16
- */
17
- export interface ProductUsageDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ProductUsageDto
22
- */
23
- timestamp?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ProductUsageDto
28
- */
29
- productName?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ProductUsageDto
34
- */
35
- productId?: string;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof ProductUsageDto
40
- */
41
- unitPrice?: number;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof ProductUsageDto
46
- */
47
- currency?: string;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof ProductUsageDto
52
- */
53
- count?: number;
54
- }
55
- /**
56
- * Check if a given object implements the ProductUsageDto interface.
57
- */
58
- export declare function instanceOfProductUsageDto(value: object): value is ProductUsageDto;
59
- export declare function ProductUsageDtoFromJSON(json: any): ProductUsageDto;
60
- export declare function ProductUsageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductUsageDto;
61
- export declare function ProductUsageDtoToJSON(value?: ProductUsageDto | null): any;
@@ -1,48 +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 ProductUsageDto interface.
16
- */
17
- export function instanceOfProductUsageDto(value) {
18
- return true;
19
- }
20
- export function ProductUsageDtoFromJSON(json) {
21
- return ProductUsageDtoFromJSONTyped(json, false);
22
- }
23
- export function ProductUsageDtoFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
29
- 'productName': json['productName'] == null ? undefined : json['productName'],
30
- 'productId': json['productId'] == null ? undefined : json['productId'],
31
- 'unitPrice': json['unitPrice'] == null ? undefined : json['unitPrice'],
32
- 'currency': json['currency'] == null ? undefined : json['currency'],
33
- 'count': json['count'] == null ? undefined : json['count'],
34
- };
35
- }
36
- export function ProductUsageDtoToJSON(value) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'timestamp': value['timestamp'],
42
- 'productName': value['productName'],
43
- 'productId': value['productId'],
44
- 'unitPrice': value['unitPrice'],
45
- 'currency': value['currency'],
46
- 'count': value['count'],
47
- };
48
- }
@@ -1,52 +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 RegistrySource
17
- */
18
- export interface RegistrySource extends ServiceSource {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof RegistrySource
23
- */
24
- image: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof RegistrySource
29
- */
30
- tag?: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof RegistrySource
35
- * @deprecated
36
- */
37
- username?: string;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof RegistrySource
42
- * @deprecated
43
- */
44
- password?: string;
45
- }
46
- /**
47
- * Check if a given object implements the RegistrySource interface.
48
- */
49
- export declare function instanceOfRegistrySource(value: object): value is RegistrySource;
50
- export declare function RegistrySourceFromJSON(json: any): RegistrySource;
51
- export declare function RegistrySourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistrySource;
52
- export declare function RegistrySourceToJSON(value?: RegistrySource | null): any;
@@ -1,49 +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 { ServiceSourceFromJSONTyped, ServiceSourceToJSON, } from './ServiceSource.js';
15
- /**
16
- * Check if a given object implements the RegistrySource interface.
17
- */
18
- export function instanceOfRegistrySource(value) {
19
- if (!('image' in value) || value['image'] === undefined)
20
- return false;
21
- return true;
22
- }
23
- export function RegistrySourceFromJSON(json) {
24
- return RegistrySourceFromJSONTyped(json, false);
25
- }
26
- export function RegistrySourceFromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- return {
31
- ...ServiceSourceFromJSONTyped(json, ignoreDiscriminator),
32
- 'image': json['image'],
33
- 'tag': json['tag'] == null ? undefined : json['tag'],
34
- 'username': json['username'] == null ? undefined : json['username'],
35
- 'password': json['password'] == null ? undefined : json['password'],
36
- };
37
- }
38
- export function RegistrySourceToJSON(value) {
39
- if (value == null) {
40
- return value;
41
- }
42
- return {
43
- ...ServiceSourceToJSON(value),
44
- 'image': value['image'],
45
- 'tag': value['tag'],
46
- 'username': value['username'],
47
- 'password': value['password'],
48
- };
49
- }
@@ -1,32 +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 RepositorySource
17
- */
18
- export interface RepositorySource extends ServiceSource {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof RepositorySource
23
- */
24
- fullPath?: string;
25
- }
26
- /**
27
- * Check if a given object implements the RepositorySource interface.
28
- */
29
- export declare function instanceOfRepositorySource(value: object): value is RepositorySource;
30
- export declare function RepositorySourceFromJSON(json: any): RepositorySource;
31
- export declare function RepositorySourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositorySource;
32
- export declare function RepositorySourceToJSON(value?: RepositorySource | null): any;
@@ -1,41 +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 { ServiceSourceFromJSONTyped, ServiceSourceToJSON, } from './ServiceSource.js';
15
- /**
16
- * Check if a given object implements the RepositorySource interface.
17
- */
18
- export function instanceOfRepositorySource(value) {
19
- return true;
20
- }
21
- export function RepositorySourceFromJSON(json) {
22
- return RepositorySourceFromJSONTyped(json, false);
23
- }
24
- export function RepositorySourceFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- ...ServiceSourceFromJSONTyped(json, ignoreDiscriminator),
30
- 'fullPath': json['fullPath'] == null ? undefined : json['fullPath'],
31
- };
32
- }
33
- export function RepositorySourceToJSON(value) {
34
- if (value == null) {
35
- return value;
36
- }
37
- return {
38
- ...ServiceSourceToJSON(value),
39
- 'fullPath': value['fullPath'],
40
- };
41
- }
@@ -1,31 +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 ResourceConfiguration
16
- */
17
- export interface ResourceConfiguration {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ResourceConfiguration
22
- */
23
- type?: string;
24
- }
25
- /**
26
- * Check if a given object implements the ResourceConfiguration interface.
27
- */
28
- export declare function instanceOfResourceConfiguration(value: object): value is ResourceConfiguration;
29
- export declare function ResourceConfigurationFromJSON(json: any): ResourceConfiguration;
30
- export declare function ResourceConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceConfiguration;
31
- export declare function ResourceConfigurationToJSON(value?: ResourceConfiguration | null): any;
@@ -1,52 +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 { CpuConfigurationFromJSONTyped } from './CpuConfiguration.js';
15
- import { GpuConfigurationFromJSONTyped } from './GpuConfiguration.js';
16
- import { MemoryConfigurationFromJSONTyped } from './MemoryConfiguration.js';
17
- /**
18
- * Check if a given object implements the ResourceConfiguration interface.
19
- */
20
- export function instanceOfResourceConfiguration(value) {
21
- return true;
22
- }
23
- export function ResourceConfigurationFromJSON(json) {
24
- return ResourceConfigurationFromJSONTyped(json, false);
25
- }
26
- export function ResourceConfigurationFromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- if (!ignoreDiscriminator) {
31
- if (json['type'] === 'CpuConfiguration') {
32
- return CpuConfigurationFromJSONTyped(json, true);
33
- }
34
- if (json['type'] === 'GpuConfiguration') {
35
- return GpuConfigurationFromJSONTyped(json, true);
36
- }
37
- if (json['type'] === 'MemoryConfiguration') {
38
- return MemoryConfigurationFromJSONTyped(json, true);
39
- }
40
- }
41
- return {
42
- 'type': json['type'] == null ? undefined : json['type'],
43
- };
44
- }
45
- export function ResourceConfigurationToJSON(value) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'type': value['type'],
51
- };
52
- }
@@ -1,51 +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 ReviewDto
16
- */
17
- export interface ReviewDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ReviewDto
22
- */
23
- userId?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ReviewDto
28
- */
29
- reviewerName?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ReviewDto
34
- */
35
- state?: ReviewDtoStateEnum;
36
- }
37
- /**
38
- * @export
39
- */
40
- export declare const ReviewDtoStateEnum: {
41
- readonly UnderReview: "UNDER_REVIEW";
42
- readonly Reviewed: "REVIEWED";
43
- };
44
- export type ReviewDtoStateEnum = typeof ReviewDtoStateEnum[keyof typeof ReviewDtoStateEnum];
45
- /**
46
- * Check if a given object implements the ReviewDto interface.
47
- */
48
- export declare function instanceOfReviewDto(value: object): value is ReviewDto;
49
- export declare function ReviewDtoFromJSON(json: any): ReviewDto;
50
- export declare function ReviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewDto;
51
- export declare function ReviewDtoToJSON(value?: ReviewDto | null): any;
@@ -1,49 +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
- * @export
16
- */
17
- export const ReviewDtoStateEnum = {
18
- UnderReview: 'UNDER_REVIEW',
19
- Reviewed: 'REVIEWED'
20
- };
21
- /**
22
- * Check if a given object implements the ReviewDto interface.
23
- */
24
- export function instanceOfReviewDto(value) {
25
- return true;
26
- }
27
- export function ReviewDtoFromJSON(json) {
28
- return ReviewDtoFromJSONTyped(json, false);
29
- }
30
- export function ReviewDtoFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'userId': json['userId'] == null ? undefined : json['userId'],
36
- 'reviewerName': json['reviewerName'] == null ? undefined : json['reviewerName'],
37
- 'state': json['state'] == null ? undefined : json['state'],
38
- };
39
- }
40
- export function ReviewDtoToJSON(value) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'userId': value['userId'],
46
- 'reviewerName': value['reviewerName'],
47
- 'state': value['state'],
48
- };
49
- }
@@ -1,53 +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 RuntimeConfiguration
16
- */
17
- export interface RuntimeConfiguration {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof RuntimeConfiguration
22
- */
23
- runtime?: RuntimeConfigurationRuntimeEnum;
24
- /**
25
- *
26
- * @type {{ [key: string]: string; }}
27
- * @memberof RuntimeConfiguration
28
- */
29
- environment?: {
30
- [key: string]: string;
31
- };
32
- /**
33
- *
34
- * @type {boolean}
35
- * @memberof RuntimeConfiguration
36
- */
37
- applyProviderTokens?: boolean;
38
- }
39
- /**
40
- * @export
41
- */
42
- export declare const RuntimeConfigurationRuntimeEnum: {
43
- readonly Docker: "DOCKER";
44
- readonly PythonTemplate: "PYTHON_TEMPLATE";
45
- };
46
- export type RuntimeConfigurationRuntimeEnum = typeof RuntimeConfigurationRuntimeEnum[keyof typeof RuntimeConfigurationRuntimeEnum];
47
- /**
48
- * Check if a given object implements the RuntimeConfiguration interface.
49
- */
50
- export declare function instanceOfRuntimeConfiguration(value: object): value is RuntimeConfiguration;
51
- export declare function RuntimeConfigurationFromJSON(json: any): RuntimeConfiguration;
52
- export declare function RuntimeConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RuntimeConfiguration;
53
- export declare function RuntimeConfigurationToJSON(value?: RuntimeConfiguration | null): any;