@quantum-hub/qhubctl 1.0.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/LICENSE +201 -0
- package/README.md +41 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +15 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +12 -0
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +89 -0
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +259 -0
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +44 -0
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +143 -0
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +133 -0
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +410 -0
- package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +101 -0
- package/dist/client/kqh/apis/ServicePlatformJobsApi.js +298 -0
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +48 -0
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +152 -0
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +29 -0
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +90 -0
- package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +501 -0
- package/dist/client/kqh/apis/ServicePlatformServicesApi.js +1509 -0
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +66 -0
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +194 -0
- package/dist/client/kqh/apis/TaxonomiesApi.d.ts +90 -0
- package/dist/client/kqh/apis/TaxonomiesApi.js +309 -0
- package/dist/client/kqh/apis/index.d.ts +9 -0
- package/dist/client/kqh/apis/index.js +27 -0
- package/dist/client/kqh/index.d.ts +3 -0
- package/dist/client/kqh/index.js +21 -0
- package/dist/client/kqh/models/AccessTokenDto.d.ts +81 -0
- package/dist/client/kqh/models/AccessTokenDto.js +66 -0
- package/dist/client/kqh/models/AmountMajorDto.d.ts +37 -0
- package/dist/client/kqh/models/AmountMajorDto.js +46 -0
- package/dist/client/kqh/models/ApiDto.d.ts +144 -0
- package/dist/client/kqh/models/ApiDto.js +99 -0
- package/dist/client/kqh/models/ApiOverviewDto.d.ts +119 -0
- package/dist/client/kqh/models/ApiOverviewDto.js +90 -0
- package/dist/client/kqh/models/ApplicationDto.d.ts +64 -0
- package/dist/client/kqh/models/ApplicationDto.js +60 -0
- package/dist/client/kqh/models/BuildJobDto.d.ts +75 -0
- package/dist/client/kqh/models/BuildJobDto.js +71 -0
- package/dist/client/kqh/models/CpuConfiguration.d.ts +38 -0
- package/dist/client/kqh/models/CpuConfiguration.js +49 -0
- package/dist/client/kqh/models/CreateApplicationRequest.d.ts +31 -0
- package/dist/client/kqh/models/CreateApplicationRequest.js +44 -0
- package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +31 -0
- package/dist/client/kqh/models/CreateDataPoolRequest.js +46 -0
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +46 -0
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +57 -0
- package/dist/client/kqh/models/CreateJobRequest.d.ts +62 -0
- package/dist/client/kqh/models/CreateJobRequest.js +57 -0
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +73 -0
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +79 -0
- package/dist/client/kqh/models/CreateProductRequest.d.ts +43 -0
- package/dist/client/kqh/models/CreateProductRequest.js +52 -0
- package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +37 -0
- package/dist/client/kqh/models/CreateSubscriptionRequest.js +50 -0
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +37 -0
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +48 -0
- package/dist/client/kqh/models/DataPoolDto.d.ts +166 -0
- package/dist/client/kqh/models/DataPoolDto.js +105 -0
- package/dist/client/kqh/models/DataPoolRef.d.ts +43 -0
- package/dist/client/kqh/models/DataPoolRef.js +48 -0
- package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +89 -0
- package/dist/client/kqh/models/DataSourceDescriptorDto.js +69 -0
- package/dist/client/kqh/models/FileDto.d.ts +73 -0
- package/dist/client/kqh/models/FileDto.js +51 -0
- package/dist/client/kqh/models/FileSource.d.ts +26 -0
- package/dist/client/kqh/models/FileSource.js +34 -0
- package/dist/client/kqh/models/GpuConfiguration.d.ts +49 -0
- package/dist/client/kqh/models/GpuConfiguration.js +60 -0
- package/dist/client/kqh/models/JobDto.d.ts +117 -0
- package/dist/client/kqh/models/JobDto.js +82 -0
- package/dist/client/kqh/models/JobOverviewDto.d.ts +74 -0
- package/dist/client/kqh/models/JobOverviewDto.js +67 -0
- package/dist/client/kqh/models/MemoryConfiguration.d.ts +38 -0
- package/dist/client/kqh/models/MemoryConfiguration.js +49 -0
- package/dist/client/kqh/models/MeteringRequest.d.ts +43 -0
- package/dist/client/kqh/models/MeteringRequest.js +48 -0
- package/dist/client/kqh/models/MeteringResponse.d.ts +49 -0
- package/dist/client/kqh/models/MeteringResponse.js +50 -0
- package/dist/client/kqh/models/MonthAmountDto.d.ts +51 -0
- package/dist/client/kqh/models/MonthAmountDto.js +52 -0
- package/dist/client/kqh/models/OwnerDto.d.ts +67 -0
- package/dist/client/kqh/models/OwnerDto.js +56 -0
- package/dist/client/kqh/models/PageDataPoolDto.d.ts +94 -0
- package/dist/client/kqh/models/PageDataPoolDto.js +67 -0
- package/dist/client/kqh/models/PageableObject.d.ts +62 -0
- package/dist/client/kqh/models/PageableObject.js +55 -0
- package/dist/client/kqh/models/PricingPlanDto.d.ts +52 -0
- package/dist/client/kqh/models/PricingPlanDto.js +57 -0
- package/dist/client/kqh/models/ProductAmountDto.d.ts +38 -0
- package/dist/client/kqh/models/ProductAmountDto.js +47 -0
- package/dist/client/kqh/models/ProductDto.d.ts +83 -0
- package/dist/client/kqh/models/ProductDto.js +76 -0
- package/dist/client/kqh/models/ProductGroupDto.d.ts +45 -0
- package/dist/client/kqh/models/ProductGroupDto.js +50 -0
- package/dist/client/kqh/models/ProductUsageDto.d.ts +61 -0
- package/dist/client/kqh/models/ProductUsageDto.js +54 -0
- package/dist/client/kqh/models/RegistrySource.d.ts +52 -0
- package/dist/client/kqh/models/RegistrySource.js +55 -0
- package/dist/client/kqh/models/RepositorySource.d.ts +32 -0
- package/dist/client/kqh/models/RepositorySource.js +47 -0
- package/dist/client/kqh/models/ResourceConfiguration.d.ts +31 -0
- package/dist/client/kqh/models/ResourceConfiguration.js +58 -0
- package/dist/client/kqh/models/ReviewDto.d.ts +51 -0
- package/dist/client/kqh/models/ReviewDto.js +56 -0
- package/dist/client/kqh/models/RuntimeConfiguration.d.ts +53 -0
- package/dist/client/kqh/models/RuntimeConfiguration.js +56 -0
- package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +39 -0
- package/dist/client/kqh/models/ServiceDefinitionCommand.js +52 -0
- package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +180 -0
- package/dist/client/kqh/models/ServiceDefinitionDto.js +108 -0
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +23 -0
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +54 -0
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +79 -0
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +71 -0
- package/dist/client/kqh/models/ServiceDto.d.ts +59 -0
- package/dist/client/kqh/models/ServiceDto.js +59 -0
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +67 -0
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +64 -0
- package/dist/client/kqh/models/ServiceExecutionDto.d.ts +49 -0
- package/dist/client/kqh/models/ServiceExecutionDto.js +50 -0
- package/dist/client/kqh/models/ServiceOverviewDto.d.ts +115 -0
- package/dist/client/kqh/models/ServiceOverviewDto.js +92 -0
- package/dist/client/kqh/models/ServiceSource.d.ts +31 -0
- package/dist/client/kqh/models/ServiceSource.js +58 -0
- package/dist/client/kqh/models/SortObject.d.ts +43 -0
- package/dist/client/kqh/models/SortObject.js +48 -0
- package/dist/client/kqh/models/SubscriptionDto.d.ts +58 -0
- package/dist/client/kqh/models/SubscriptionDto.js +55 -0
- package/dist/client/kqh/models/TaxonomyElement.d.ts +43 -0
- package/dist/client/kqh/models/TaxonomyElement.js +48 -0
- package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +109 -0
- package/dist/client/kqh/models/UpdateDataPoolRequest.js +72 -0
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +23 -0
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +54 -0
- package/dist/client/kqh/models/UpdateVersionRequest.d.ts +44 -0
- package/dist/client/kqh/models/UpdateVersionRequest.js +49 -0
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +31 -0
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +44 -0
- package/dist/client/kqh/models/ValidationResult.d.ts +52 -0
- package/dist/client/kqh/models/ValidationResult.js +57 -0
- package/dist/client/kqh/models/index.d.ts +57 -0
- package/dist/client/kqh/models/index.js +75 -0
- package/dist/client/kqh/runtime.d.ts +181 -0
- package/dist/client/kqh/runtime.js +340 -0
- package/dist/client/users/apis/AuthenticationApi.d.ts +31 -0
- package/dist/client/users/apis/AuthenticationApi.js +83 -0
- package/dist/client/users/apis/ExpertsApi.d.ts +44 -0
- package/dist/client/users/apis/ExpertsApi.js +112 -0
- package/dist/client/users/apis/SearchApi.d.ts +46 -0
- package/dist/client/users/apis/SearchApi.js +134 -0
- package/dist/client/users/apis/UserSettingsApi.d.ts +139 -0
- package/dist/client/users/apis/UserSettingsApi.js +417 -0
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +64 -0
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +184 -0
- package/dist/client/users/apis/UsersApi.d.ts +70 -0
- package/dist/client/users/apis/UsersApi.js +170 -0
- package/dist/client/users/apis/index.d.ts +6 -0
- package/dist/client/users/apis/index.js +24 -0
- package/dist/client/users/index.d.ts +3 -0
- package/dist/client/users/index.js +21 -0
- package/dist/client/users/models/AccessTokenCreateRequest.d.ts +51 -0
- package/dist/client/users/models/AccessTokenCreateRequest.js +60 -0
- package/dist/client/users/models/AccessTokenDto.d.ts +75 -0
- package/dist/client/users/models/AccessTokenDto.js +68 -0
- package/dist/client/users/models/AccessTokensResponse.d.ts +38 -0
- package/dist/client/users/models/AccessTokensResponse.js +47 -0
- package/dist/client/users/models/DefaultAccessTokenResponse.d.ts +31 -0
- package/dist/client/users/models/DefaultAccessTokenResponse.js +44 -0
- package/dist/client/users/models/Language.d.ts +31 -0
- package/dist/client/users/models/Language.js +44 -0
- package/dist/client/users/models/PageUserDto.d.ts +94 -0
- package/dist/client/users/models/PageUserDto.js +67 -0
- package/dist/client/users/models/Pageable.d.ts +43 -0
- package/dist/client/users/models/Pageable.js +48 -0
- package/dist/client/users/models/PageableObject.d.ts +62 -0
- package/dist/client/users/models/PageableObject.js +55 -0
- package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +38 -0
- package/dist/client/users/models/PersonalAccessTokenPrincipal.js +47 -0
- package/dist/client/users/models/Skill.d.ts +31 -0
- package/dist/client/users/models/Skill.js +44 -0
- package/dist/client/users/models/SortObject.d.ts +43 -0
- package/dist/client/users/models/SortObject.js +48 -0
- package/dist/client/users/models/UpdateUserRequest.d.ts +61 -0
- package/dist/client/users/models/UpdateUserRequest.js +54 -0
- package/dist/client/users/models/UserDto.d.ts +111 -0
- package/dist/client/users/models/UserDto.js +72 -0
- package/dist/client/users/models/UserOverviewDto.d.ts +67 -0
- package/dist/client/users/models/UserOverviewDto.js +56 -0
- package/dist/client/users/models/index.d.ts +14 -0
- package/dist/client/users/models/index.js +32 -0
- package/dist/client/users/runtime.d.ts +181 -0
- package/dist/client/users/runtime.js +340 -0
- package/dist/commands/compress/index.d.ts +6 -0
- package/dist/commands/compress/index.js +31 -0
- package/dist/commands/datapool/upload.d.ts +23 -0
- package/dist/commands/datapool/upload.js +266 -0
- package/dist/commands/get-context/index.d.ts +6 -0
- package/dist/commands/get-context/index.js +13 -0
- package/dist/commands/init/index.d.ts +10 -0
- package/dist/commands/init/index.js +81 -0
- package/dist/commands/list-contexts/index.d.ts +9 -0
- package/dist/commands/list-contexts/index.js +36 -0
- package/dist/commands/login/index.d.ts +10 -0
- package/dist/commands/login/index.js +68 -0
- package/dist/commands/logout/index.d.ts +6 -0
- package/dist/commands/logout/index.js +21 -0
- package/dist/commands/openapi/index.d.ts +26 -0
- package/dist/commands/openapi/index.js +313 -0
- package/dist/commands/run/index.d.ts +18 -0
- package/dist/commands/run/index.js +155 -0
- package/dist/commands/serve/index.d.ts +13 -0
- package/dist/commands/serve/index.js +93 -0
- package/dist/commands/services/index.d.ts +14 -0
- package/dist/commands/services/index.js +71 -0
- package/dist/commands/set-context/index.d.ts +17 -0
- package/dist/commands/set-context/index.js +69 -0
- package/dist/commands/up/index.d.ts +19 -0
- package/dist/commands/up/index.js +196 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/lib/command.d.ts +6 -0
- package/dist/lib/command.js +21 -0
- package/dist/lib/debug.d.ts +1 -0
- package/dist/lib/debug.js +5 -0
- package/dist/lib/entrypoint-resolver.d.ts +52 -0
- package/dist/lib/entrypoint-resolver.js +125 -0
- package/dist/lib/error.d.ts +1 -0
- package/dist/lib/error.js +20 -0
- package/dist/lib/fetch.d.ts +7 -0
- package/dist/lib/fetch.js +43 -0
- package/dist/lib/init-user-input.d.ts +18 -0
- package/dist/lib/init-user-input.js +87 -0
- package/dist/lib/random-name.d.ts +1 -0
- package/dist/lib/random-name.js +161 -0
- package/dist/lib/random-string.d.ts +1 -0
- package/dist/lib/random-string.js +12 -0
- package/dist/lib/repository.d.ts +3 -0
- package/dist/lib/repository.js +51 -0
- package/dist/lib/stream-to-blob.d.ts +2 -0
- package/dist/lib/stream-to-blob.js +27 -0
- package/dist/lib/up/get-description.d.ts +1 -0
- package/dist/lib/up/get-description.js +29 -0
- package/dist/lib/up/ignore.d.ts +1 -0
- package/dist/lib/up/ignore.js +21 -0
- package/dist/lib/up/zip.d.ts +1 -0
- package/dist/lib/up/zip.js +40 -0
- package/dist/model/account.d.ts +5 -0
- package/dist/model/account.js +2 -0
- package/dist/model/command.d.ts +12 -0
- package/dist/model/command.js +55 -0
- package/dist/model/managed-service-config.d.ts +28 -0
- package/dist/model/managed-service-config.js +16 -0
- package/dist/model/user-config.d.ts +22 -0
- package/dist/model/user-config.js +8 -0
- package/dist/service/auth-service.d.ts +9 -0
- package/dist/service/auth-service.js +38 -0
- package/dist/service/command-service.d.ts +9 -0
- package/dist/service/command-service.js +14 -0
- package/dist/service/quantum-hub-service.d.ts +24 -0
- package/dist/service/quantum-hub-service.js +222 -0
- package/dist/service/service-config-service.d.ts +3 -0
- package/dist/service/service-config-service.js +26 -0
- package/dist/service/user-config-service.d.ts +3 -0
- package/dist/service/user-config-service.js +26 -0
- package/dist/service/user-service.d.ts +9 -0
- package/dist/service/user-service.js +35 -0
- package/oclif.manifest.json +530 -0
- package/package.json +107 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Quantum Hub Control
|
|
2
|
+
|
|
3
|
+
The Quantum Hub Control, qhubctl, is a Command Line Interface (CLI) which lets you interact with the Kipu Quantum Platform from your terminal.
|
|
4
|
+
We have installation instructions to guide you through the initial setup in our
|
|
5
|
+
[quickstart](https://docs.hub.kipu-quantum.com/quickstart.html) guide.
|
|
6
|
+
|
|
7
|
+
Detailed information about the supported commands can be found in our
|
|
8
|
+
[CLI reference](https://docs.hub.kipu-quantum.com/cli-reference.html).
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
To install qhubctl, you must install Node.js and the npm command line interface using either a
|
|
13
|
+
[Node version manager](https://github.com/nvm-sh/nvm) or a [Node installer](https://nodejs.org/en/download).
|
|
14
|
+
|
|
15
|
+
**Make sure you install Node.js version 18 or higher.**
|
|
16
|
+
|
|
17
|
+
Then install the qhubctl globally using npm:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g @quantum-hub/qhubctl
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
You can use the `--help` flag to get information about the supported commands:
|
|
24
|
+
|
|
25
|
+
``` bash
|
|
26
|
+
qhubctl --help
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
You may also get information about a specific command:
|
|
30
|
+
|
|
31
|
+
``` bash
|
|
32
|
+
qhubctl <command> --help
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
> **Troubleshooting:**
|
|
36
|
+
> If you experience `EACCES permissions` errors during installation, we recommend using [Node version manager](https://github.com/nvm-sh/nvm) (nvm).
|
|
37
|
+
> Further, you may refer to the official [npm documentation](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally) how to resolve such issues.
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
Apache-2.0 | Copyright 2023-now Kipu Quantum GmbH
|
package/bin/dev.cmd
ADDED
package/bin/dev.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// disable warnings
|
|
4
|
+
process.removeAllListeners('warning');
|
|
5
|
+
|
|
6
|
+
// disable SSL/TLS cert verification
|
|
7
|
+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
|
8
|
+
|
|
9
|
+
// always perform version update check
|
|
10
|
+
process.env.QHUBCTL_FORCE_VERSION_CACHE_UPDATE = 'true';
|
|
11
|
+
|
|
12
|
+
(async () => {
|
|
13
|
+
const oclif = await import('@oclif/core')
|
|
14
|
+
await oclif.execute({ development: true, dir: __dirname })
|
|
15
|
+
})()
|
package/bin/run.cmd
ADDED
package/bin/run.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// disable warnings
|
|
4
|
+
process.removeAllListeners('warning');
|
|
5
|
+
|
|
6
|
+
// disable SSL/TLS cert verification
|
|
7
|
+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
|
8
|
+
|
|
9
|
+
(async () => {
|
|
10
|
+
const oclif = await import('@oclif/core')
|
|
11
|
+
await oclif.execute({ dir: __dirname })
|
|
12
|
+
})()
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quantum Platform API
|
|
3
|
+
* Part of the OpenAPI specification for the Quantum 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 * as runtime from '../runtime';
|
|
13
|
+
import type { AccessTokenDto, ApplicationDto, CreateApplicationRequest, SubscriptionDto } from '../models/index';
|
|
14
|
+
export interface CreateApplicationOperationRequest {
|
|
15
|
+
createApplicationRequest: CreateApplicationRequest;
|
|
16
|
+
xOrganizationId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteApplicationRequest {
|
|
19
|
+
id: string;
|
|
20
|
+
xOrganizationId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetAccessTokenRequest {
|
|
23
|
+
id: string;
|
|
24
|
+
xOrganizationId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetApplicationRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
xOrganizationId?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GetApplicationSubscriptionsRequest {
|
|
31
|
+
id: string;
|
|
32
|
+
xOrganizationId?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface GetApplicationsRequest {
|
|
35
|
+
xOrganizationId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new application within your organization or for yourself.
|
|
43
|
+
*/
|
|
44
|
+
createApplicationRaw(requestParameters: CreateApplicationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDto>>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new application within your organization or for yourself.
|
|
47
|
+
*/
|
|
48
|
+
createApplication(requestParameters: CreateApplicationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationDto>;
|
|
49
|
+
/**
|
|
50
|
+
* Deletes an application.
|
|
51
|
+
*/
|
|
52
|
+
deleteApplicationRaw(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
53
|
+
/**
|
|
54
|
+
* Deletes an application.
|
|
55
|
+
*/
|
|
56
|
+
deleteApplication(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
|
|
59
|
+
*/
|
|
60
|
+
getAccessTokenRaw(requestParameters: GetAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccessTokenDto>>;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
|
|
63
|
+
*/
|
|
64
|
+
getAccessToken(requestParameters: GetAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccessTokenDto>;
|
|
65
|
+
/**
|
|
66
|
+
* Gets an specific application and its basic properties.
|
|
67
|
+
*/
|
|
68
|
+
getApplicationRaw(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDto>>;
|
|
69
|
+
/**
|
|
70
|
+
* Gets an specific application and its basic properties.
|
|
71
|
+
*/
|
|
72
|
+
getApplication(requestParameters: GetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationDto>;
|
|
73
|
+
/**
|
|
74
|
+
* Gets a list of all subscriptions of an application. This information concerns the services this application is subscribe to, either internal or public (through the marketplace API) subscriptions.
|
|
75
|
+
*/
|
|
76
|
+
getApplicationSubscriptionsRaw(requestParameters: GetApplicationSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SubscriptionDto>>>;
|
|
77
|
+
/**
|
|
78
|
+
* Gets a list of all subscriptions of an application. This information concerns the services this application is subscribe to, either internal or public (through the marketplace API) subscriptions.
|
|
79
|
+
*/
|
|
80
|
+
getApplicationSubscriptions(requestParameters: GetApplicationSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SubscriptionDto>>;
|
|
81
|
+
/**
|
|
82
|
+
* Gets a list of all applications.
|
|
83
|
+
*/
|
|
84
|
+
getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApplicationDto>>>;
|
|
85
|
+
/**
|
|
86
|
+
* Gets a list of all applications.
|
|
87
|
+
*/
|
|
88
|
+
getApplications(requestParameters?: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApplicationDto>>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Quantum Platform API
|
|
6
|
+
* Part of the OpenAPI specification for the Quantum Platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
* Contact: info@anaqor.io
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ServicePlatformApplicationsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ServicePlatformApplicationsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new application within your organization or for yourself.
|
|
58
|
+
*/
|
|
59
|
+
async createApplicationRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['createApplicationRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('createApplicationRequest', 'Required parameter "createApplicationRequest" was null or undefined when calling createApplication().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
67
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
68
|
+
}
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
71
|
+
}
|
|
72
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
73
|
+
// oauth required
|
|
74
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
75
|
+
}
|
|
76
|
+
const response = await this.request({
|
|
77
|
+
path: `/v2/applications`,
|
|
78
|
+
method: 'POST',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
body: (0, index_1.CreateApplicationRequestToJSON)(requestParameters['createApplicationRequest']),
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDtoFromJSON)(jsonValue));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates a new application within your organization or for yourself.
|
|
87
|
+
*/
|
|
88
|
+
async createApplication(requestParameters, initOverrides) {
|
|
89
|
+
const response = await this.createApplicationRaw(requestParameters, initOverrides);
|
|
90
|
+
return await response.value();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Deletes an application.
|
|
94
|
+
*/
|
|
95
|
+
async deleteApplicationRaw(requestParameters, initOverrides) {
|
|
96
|
+
if (requestParameters['id'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteApplication().');
|
|
98
|
+
}
|
|
99
|
+
const queryParameters = {};
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
102
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
103
|
+
}
|
|
104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
106
|
+
}
|
|
107
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
108
|
+
// oauth required
|
|
109
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
110
|
+
}
|
|
111
|
+
const response = await this.request({
|
|
112
|
+
path: `/v2/applications/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
113
|
+
method: 'DELETE',
|
|
114
|
+
headers: headerParameters,
|
|
115
|
+
query: queryParameters,
|
|
116
|
+
}, initOverrides);
|
|
117
|
+
return new runtime.VoidApiResponse(response);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Deletes an application.
|
|
121
|
+
*/
|
|
122
|
+
async deleteApplication(requestParameters, initOverrides) {
|
|
123
|
+
await this.deleteApplicationRaw(requestParameters, initOverrides);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
|
|
127
|
+
*/
|
|
128
|
+
async getAccessTokenRaw(requestParameters, initOverrides) {
|
|
129
|
+
if (requestParameters['id'] == null) {
|
|
130
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAccessToken().');
|
|
131
|
+
}
|
|
132
|
+
const queryParameters = {};
|
|
133
|
+
const headerParameters = {};
|
|
134
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
135
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
136
|
+
}
|
|
137
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
138
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
139
|
+
}
|
|
140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
+
// oauth required
|
|
142
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
143
|
+
}
|
|
144
|
+
const response = await this.request({
|
|
145
|
+
path: `/v2/applications/{id}/access-token`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
146
|
+
method: 'POST',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessTokenDtoFromJSON)(jsonValue));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Gets the access token for your application. The access token must be used to authenticate execution requests to subscribed services.
|
|
154
|
+
*/
|
|
155
|
+
async getAccessToken(requestParameters, initOverrides) {
|
|
156
|
+
const response = await this.getAccessTokenRaw(requestParameters, initOverrides);
|
|
157
|
+
return await response.value();
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Gets an specific application and its basic properties.
|
|
161
|
+
*/
|
|
162
|
+
async getApplicationRaw(requestParameters, initOverrides) {
|
|
163
|
+
if (requestParameters['id'] == null) {
|
|
164
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApplication().');
|
|
165
|
+
}
|
|
166
|
+
const queryParameters = {};
|
|
167
|
+
const headerParameters = {};
|
|
168
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
169
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
170
|
+
}
|
|
171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
173
|
+
}
|
|
174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
175
|
+
// oauth required
|
|
176
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
177
|
+
}
|
|
178
|
+
const response = await this.request({
|
|
179
|
+
path: `/v2/applications/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
180
|
+
method: 'GET',
|
|
181
|
+
headers: headerParameters,
|
|
182
|
+
query: queryParameters,
|
|
183
|
+
}, initOverrides);
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDtoFromJSON)(jsonValue));
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Gets an specific application and its basic properties.
|
|
188
|
+
*/
|
|
189
|
+
async getApplication(requestParameters, initOverrides) {
|
|
190
|
+
const response = await this.getApplicationRaw(requestParameters, initOverrides);
|
|
191
|
+
return await response.value();
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Gets a list of all subscriptions of an application. This information concerns the services this application is subscribe to, either internal or public (through the marketplace API) subscriptions.
|
|
195
|
+
*/
|
|
196
|
+
async getApplicationSubscriptionsRaw(requestParameters, initOverrides) {
|
|
197
|
+
if (requestParameters['id'] == null) {
|
|
198
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApplicationSubscriptions().');
|
|
199
|
+
}
|
|
200
|
+
const queryParameters = {};
|
|
201
|
+
const headerParameters = {};
|
|
202
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
203
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
204
|
+
}
|
|
205
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
206
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
207
|
+
}
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
// oauth required
|
|
210
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
211
|
+
}
|
|
212
|
+
const response = await this.request({
|
|
213
|
+
path: `/v2/applications/{id}/subscriptions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
214
|
+
method: 'GET',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
}, initOverrides);
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SubscriptionDtoFromJSON));
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Gets a list of all subscriptions of an application. This information concerns the services this application is subscribe to, either internal or public (through the marketplace API) subscriptions.
|
|
222
|
+
*/
|
|
223
|
+
async getApplicationSubscriptions(requestParameters, initOverrides) {
|
|
224
|
+
const response = await this.getApplicationSubscriptionsRaw(requestParameters, initOverrides);
|
|
225
|
+
return await response.value();
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Gets a list of all applications.
|
|
229
|
+
*/
|
|
230
|
+
async getApplicationsRaw(requestParameters, initOverrides) {
|
|
231
|
+
const queryParameters = {};
|
|
232
|
+
const headerParameters = {};
|
|
233
|
+
if (requestParameters['xOrganizationId'] != null) {
|
|
234
|
+
headerParameters['X-OrganizationId'] = String(requestParameters['xOrganizationId']);
|
|
235
|
+
}
|
|
236
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
237
|
+
headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
|
|
238
|
+
}
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
// oauth required
|
|
241
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
|
|
242
|
+
}
|
|
243
|
+
const response = await this.request({
|
|
244
|
+
path: `/v2/applications`,
|
|
245
|
+
method: 'GET',
|
|
246
|
+
headers: headerParameters,
|
|
247
|
+
query: queryParameters,
|
|
248
|
+
}, initOverrides);
|
|
249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApplicationDtoFromJSON));
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Gets a list of all applications.
|
|
253
|
+
*/
|
|
254
|
+
async getApplications(requestParameters = {}, initOverrides) {
|
|
255
|
+
const response = await this.getApplicationsRaw(requestParameters, initOverrides);
|
|
256
|
+
return await response.value();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.ServicePlatformApplicationsApi = ServicePlatformApplicationsApi;
|