qovery-typescript-axios 1.1.4 → 1.1.5
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/api.ts +2122 -3105
- package/dist/api.d.ts +1583 -2054
- package/dist/api.js +1117 -2054
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,19 +22,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StatusKindEnum = exports.StateEnum = exports.ServiceTypeEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationApiTokenScope = exports.KubernetesEnum = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HealthcheckProtocolEnum = exports.GitProviderEnum = exports.
|
|
25
|
+
exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StatusKindEnum = exports.StateEnum = exports.ServiceTypeEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationApiTokenScope = exports.LinkedServiceTypeEnum = exports.KubernetesEnum = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HealthcheckProtocolEnum = exports.GitProviderEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryStatusEnum = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.ContainerRegistryKindEnum = exports.ContainerAdvancedSettingsLivenessProbeTypeEnum = exports.ContainerAdvancedSettingsReadinessProbeTypeEnum = exports.CompanySizeEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureValueTypeEnum = exports.CloudProviderEnum = exports.BuildPackLanguageEnum = exports.BuildModeEnum = exports.ApplicationAdvancedSettingsLivenessProbeTypeEnum = exports.ApplicationAdvancedSettingsReadinessProbeTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
26
|
exports.BillingApiAxiosParamCreator = exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEventApi = exports.ApplicationEventApiFactory = exports.ApplicationEventApiFp = exports.ApplicationEventApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationDatabaseApi = exports.ApplicationDatabaseApiFactory = exports.ApplicationDatabaseApiFp = exports.ApplicationDatabaseApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = void 0;
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi =
|
|
31
|
-
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = void 0;
|
|
27
|
+
exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerDependencyApi = exports.ContainerDependencyApiFactory = exports.ContainerDependencyApiFp = exports.ContainerDependencyApiAxiosParamCreator = exports.ContainerDatabaseApi = exports.ContainerDatabaseApiFactory = exports.ContainerDatabaseApiFp = exports.ContainerDatabaseApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = void 0;
|
|
28
|
+
exports.DependencyApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = void 0;
|
|
29
|
+
exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LogicalDatabaseApi = exports.LogicalDatabaseApiFactory = exports.LogicalDatabaseApiFp = exports.LogicalDatabaseApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.DependencyApi = exports.DependencyApiFactory = exports.DependencyApiFp = void 0;
|
|
30
|
+
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = void 0;
|
|
32
31
|
const axios_1 = require("axios");
|
|
33
32
|
// Some imports not used depending on template conditions
|
|
34
33
|
// @ts-ignore
|
|
35
34
|
const common_1 = require("./common");
|
|
36
35
|
// @ts-ignore
|
|
37
36
|
const base_1 = require("./base");
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
var APIVariableScopeEnum;
|
|
43
|
+
(function (APIVariableScopeEnum) {
|
|
44
|
+
APIVariableScopeEnum["APPLICATION"] = "APPLICATION";
|
|
45
|
+
APIVariableScopeEnum["BUILT_IN"] = "BUILT_IN";
|
|
46
|
+
APIVariableScopeEnum["ENVIRONMENT"] = "ENVIRONMENT";
|
|
47
|
+
APIVariableScopeEnum["PROJECT"] = "PROJECT";
|
|
48
|
+
APIVariableScopeEnum["CONTAINER"] = "CONTAINER";
|
|
49
|
+
})(APIVariableScopeEnum = exports.APIVariableScopeEnum || (exports.APIVariableScopeEnum = {}));
|
|
38
50
|
/**
|
|
39
51
|
* @export
|
|
40
52
|
* @enum {string}
|
|
@@ -159,38 +171,29 @@ var ContainerAdvancedSettingsLivenessProbeTypeEnum;
|
|
|
159
171
|
ContainerAdvancedSettingsLivenessProbeTypeEnum["HTTP"] = "HTTP";
|
|
160
172
|
})(ContainerAdvancedSettingsLivenessProbeTypeEnum = exports.ContainerAdvancedSettingsLivenessProbeTypeEnum || (exports.ContainerAdvancedSettingsLivenessProbeTypeEnum = {}));
|
|
161
173
|
/**
|
|
162
|
-
|
|
163
|
-
* @enum {string}
|
|
164
|
-
*/
|
|
165
|
-
var ContainerAdvancedSettingsResponseReadinessProbeTypeEnum;
|
|
166
|
-
(function (ContainerAdvancedSettingsResponseReadinessProbeTypeEnum) {
|
|
167
|
-
ContainerAdvancedSettingsResponseReadinessProbeTypeEnum["NONE"] = "NONE";
|
|
168
|
-
ContainerAdvancedSettingsResponseReadinessProbeTypeEnum["TCP"] = "TCP";
|
|
169
|
-
ContainerAdvancedSettingsResponseReadinessProbeTypeEnum["HTTP"] = "HTTP";
|
|
170
|
-
})(ContainerAdvancedSettingsResponseReadinessProbeTypeEnum = exports.ContainerAdvancedSettingsResponseReadinessProbeTypeEnum || (exports.ContainerAdvancedSettingsResponseReadinessProbeTypeEnum = {}));
|
|
171
|
-
/**
|
|
172
|
-
* @export
|
|
173
|
-
* @enum {string}
|
|
174
|
-
*/
|
|
175
|
-
var ContainerAdvancedSettingsResponseLivenessProbeTypeEnum;
|
|
176
|
-
(function (ContainerAdvancedSettingsResponseLivenessProbeTypeEnum) {
|
|
177
|
-
ContainerAdvancedSettingsResponseLivenessProbeTypeEnum["NONE"] = "NONE";
|
|
178
|
-
ContainerAdvancedSettingsResponseLivenessProbeTypeEnum["TCP"] = "TCP";
|
|
179
|
-
ContainerAdvancedSettingsResponseLivenessProbeTypeEnum["HTTP"] = "HTTP";
|
|
180
|
-
})(ContainerAdvancedSettingsResponseLivenessProbeTypeEnum = exports.ContainerAdvancedSettingsResponseLivenessProbeTypeEnum || (exports.ContainerAdvancedSettingsResponseLivenessProbeTypeEnum = {}));
|
|
181
|
-
/**
|
|
182
|
-
* ECR needs the following parameters - region, access_key_id, secret_access_key DOCR needs the following parameters - token SCALEWAY_CR needs the following parameters - scaleway_access_key, scaleway_secret_key DOCKER_HUB needs the following parameters - username, password PUBLIC_ECR needs the followinf parameters - access_key_id, secret_access_key
|
|
174
|
+
* The type of your container registry
|
|
183
175
|
* @export
|
|
184
176
|
* @enum {string}
|
|
185
177
|
*/
|
|
186
178
|
var ContainerRegistryKindEnum;
|
|
187
179
|
(function (ContainerRegistryKindEnum) {
|
|
188
180
|
ContainerRegistryKindEnum["ECR"] = "ECR";
|
|
189
|
-
ContainerRegistryKindEnum["DOCR"] = "DOCR";
|
|
190
181
|
ContainerRegistryKindEnum["SCALEWAY_CR"] = "SCALEWAY_CR";
|
|
191
182
|
ContainerRegistryKindEnum["DOCKER_HUB"] = "DOCKER_HUB";
|
|
192
183
|
ContainerRegistryKindEnum["PUBLIC_ECR"] = "PUBLIC_ECR";
|
|
184
|
+
ContainerRegistryKindEnum["DOCR"] = "DOCR";
|
|
193
185
|
})(ContainerRegistryKindEnum = exports.ContainerRegistryKindEnum || (exports.ContainerRegistryKindEnum = {}));
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @export
|
|
189
|
+
* @enum {string}
|
|
190
|
+
*/
|
|
191
|
+
var CreateEnvironmentModeEnum;
|
|
192
|
+
(function (CreateEnvironmentModeEnum) {
|
|
193
|
+
CreateEnvironmentModeEnum["DEVELOPMENT"] = "DEVELOPMENT";
|
|
194
|
+
CreateEnvironmentModeEnum["PRODUCTION"] = "PRODUCTION";
|
|
195
|
+
CreateEnvironmentModeEnum["STAGING"] = "STAGING";
|
|
196
|
+
})(CreateEnvironmentModeEnum = exports.CreateEnvironmentModeEnum || (exports.CreateEnvironmentModeEnum = {}));
|
|
194
197
|
/**
|
|
195
198
|
*
|
|
196
199
|
* @export
|
|
@@ -284,18 +287,6 @@ var EnvironmentModeEnum;
|
|
|
284
287
|
EnvironmentModeEnum["PRODUCTION"] = "PRODUCTION";
|
|
285
288
|
EnvironmentModeEnum["STAGING"] = "STAGING";
|
|
286
289
|
})(EnvironmentModeEnum = exports.EnvironmentModeEnum || (exports.EnvironmentModeEnum = {}));
|
|
287
|
-
/**
|
|
288
|
-
*
|
|
289
|
-
* @export
|
|
290
|
-
* @enum {string}
|
|
291
|
-
*/
|
|
292
|
-
var EnvironmentVariableScopeEnum;
|
|
293
|
-
(function (EnvironmentVariableScopeEnum) {
|
|
294
|
-
EnvironmentVariableScopeEnum["APPLICATION"] = "APPLICATION";
|
|
295
|
-
EnvironmentVariableScopeEnum["BUILT_IN"] = "BUILT_IN";
|
|
296
|
-
EnvironmentVariableScopeEnum["ENVIRONMENT"] = "ENVIRONMENT";
|
|
297
|
-
EnvironmentVariableScopeEnum["PROJECT"] = "PROJECT";
|
|
298
|
-
})(EnvironmentVariableScopeEnum = exports.EnvironmentVariableScopeEnum || (exports.EnvironmentVariableScopeEnum = {}));
|
|
299
290
|
/**
|
|
300
291
|
*
|
|
301
292
|
* @export
|
|
@@ -364,6 +355,16 @@ var KubernetesEnum;
|
|
|
364
355
|
KubernetesEnum["K3_S"] = "K3S";
|
|
365
356
|
KubernetesEnum["MANAGED"] = "MANAGED";
|
|
366
357
|
})(KubernetesEnum = exports.KubernetesEnum || (exports.KubernetesEnum = {}));
|
|
358
|
+
/**
|
|
359
|
+
* type of the service (application, database, job, gateway...) present only for `BUILT_IN` variable
|
|
360
|
+
* @export
|
|
361
|
+
* @enum {string}
|
|
362
|
+
*/
|
|
363
|
+
var LinkedServiceTypeEnum;
|
|
364
|
+
(function (LinkedServiceTypeEnum) {
|
|
365
|
+
LinkedServiceTypeEnum["APPLICATION"] = "APPLICATION";
|
|
366
|
+
LinkedServiceTypeEnum["DATABASE"] = "DATABASE";
|
|
367
|
+
})(LinkedServiceTypeEnum = exports.LinkedServiceTypeEnum || (exports.LinkedServiceTypeEnum = {}));
|
|
367
368
|
/**
|
|
368
369
|
*
|
|
369
370
|
* @export
|
|
@@ -402,11 +403,10 @@ var OrganizationWebhookKindEnum;
|
|
|
402
403
|
*/
|
|
403
404
|
var PlanEnum;
|
|
404
405
|
(function (PlanEnum) {
|
|
405
|
-
PlanEnum["BUSINESS"] = "BUSINESS";
|
|
406
|
-
PlanEnum["COMMUNITY"] = "COMMUNITY";
|
|
407
|
-
PlanEnum["ENTERPRISE"] = "ENTERPRISE";
|
|
408
406
|
PlanEnum["FREE"] = "FREE";
|
|
409
407
|
PlanEnum["PROFESSIONAL"] = "PROFESSIONAL";
|
|
408
|
+
PlanEnum["BUSINESS"] = "BUSINESS";
|
|
409
|
+
PlanEnum["ENTERPRISE"] = "ENTERPRISE";
|
|
410
410
|
})(PlanEnum = exports.PlanEnum || (exports.PlanEnum = {}));
|
|
411
411
|
/**
|
|
412
412
|
*
|
|
@@ -1845,15 +1845,19 @@ const ApplicationDeploymentRestrictionApiAxiosParamCreator = function (configura
|
|
|
1845
1845
|
* Edit an application deployment restriction
|
|
1846
1846
|
* @summary Edit an application deployment restriction
|
|
1847
1847
|
* @param {string} applicationId Application ID
|
|
1848
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
1848
1849
|
* @param {ApplicationDeploymentRestrictionRequest} [applicationDeploymentRestrictionRequest]
|
|
1849
1850
|
* @param {*} [options] Override http request option.
|
|
1850
1851
|
* @throws {RequiredError}
|
|
1851
1852
|
*/
|
|
1852
|
-
editApplicationDeploymentRestriction: (applicationId, applicationDeploymentRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1853
|
+
editApplicationDeploymentRestriction: (applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1853
1854
|
// verify required parameter 'applicationId' is not null or undefined
|
|
1854
1855
|
(0, common_1.assertParamExists)('editApplicationDeploymentRestriction', 'applicationId', applicationId);
|
|
1856
|
+
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
1857
|
+
(0, common_1.assertParamExists)('editApplicationDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId);
|
|
1855
1858
|
const localVarPath = `/application/{applicationId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
1856
|
-
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)))
|
|
1859
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)))
|
|
1860
|
+
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
1857
1861
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1858
1862
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1859
1863
|
let baseOptions;
|
|
@@ -1949,13 +1953,14 @@ const ApplicationDeploymentRestrictionApiFp = function (configuration) {
|
|
|
1949
1953
|
* Edit an application deployment restriction
|
|
1950
1954
|
* @summary Edit an application deployment restriction
|
|
1951
1955
|
* @param {string} applicationId Application ID
|
|
1956
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
1952
1957
|
* @param {ApplicationDeploymentRestrictionRequest} [applicationDeploymentRestrictionRequest]
|
|
1953
1958
|
* @param {*} [options] Override http request option.
|
|
1954
1959
|
* @throws {RequiredError}
|
|
1955
1960
|
*/
|
|
1956
|
-
editApplicationDeploymentRestriction(applicationId, applicationDeploymentRestrictionRequest, options) {
|
|
1961
|
+
editApplicationDeploymentRestriction(applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options) {
|
|
1957
1962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1958
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editApplicationDeploymentRestriction(applicationId, applicationDeploymentRestrictionRequest, options);
|
|
1963
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editApplicationDeploymentRestriction(applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options);
|
|
1959
1964
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1960
1965
|
});
|
|
1961
1966
|
},
|
|
@@ -2007,12 +2012,13 @@ const ApplicationDeploymentRestrictionApiFactory = function (configuration, base
|
|
|
2007
2012
|
* Edit an application deployment restriction
|
|
2008
2013
|
* @summary Edit an application deployment restriction
|
|
2009
2014
|
* @param {string} applicationId Application ID
|
|
2015
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
2010
2016
|
* @param {ApplicationDeploymentRestrictionRequest} [applicationDeploymentRestrictionRequest]
|
|
2011
2017
|
* @param {*} [options] Override http request option.
|
|
2012
2018
|
* @throws {RequiredError}
|
|
2013
2019
|
*/
|
|
2014
|
-
editApplicationDeploymentRestriction(applicationId, applicationDeploymentRestrictionRequest, options) {
|
|
2015
|
-
return localVarFp.editApplicationDeploymentRestriction(applicationId, applicationDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
2020
|
+
editApplicationDeploymentRestriction(applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options) {
|
|
2021
|
+
return localVarFp.editApplicationDeploymentRestriction(applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
2016
2022
|
},
|
|
2017
2023
|
/**
|
|
2018
2024
|
* Get application deployment restrictions
|
|
@@ -2061,13 +2067,14 @@ class ApplicationDeploymentRestrictionApi extends base_1.BaseAPI {
|
|
|
2061
2067
|
* Edit an application deployment restriction
|
|
2062
2068
|
* @summary Edit an application deployment restriction
|
|
2063
2069
|
* @param {string} applicationId Application ID
|
|
2070
|
+
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
2064
2071
|
* @param {ApplicationDeploymentRestrictionRequest} [applicationDeploymentRestrictionRequest]
|
|
2065
2072
|
* @param {*} [options] Override http request option.
|
|
2066
2073
|
* @throws {RequiredError}
|
|
2067
2074
|
* @memberof ApplicationDeploymentRestrictionApi
|
|
2068
2075
|
*/
|
|
2069
|
-
editApplicationDeploymentRestriction(applicationId, applicationDeploymentRestrictionRequest, options) {
|
|
2070
|
-
return (0, exports.ApplicationDeploymentRestrictionApiFp)(this.configuration).editApplicationDeploymentRestriction(applicationId, applicationDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2076
|
+
editApplicationDeploymentRestriction(applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options) {
|
|
2077
|
+
return (0, exports.ApplicationDeploymentRestrictionApiFp)(this.configuration).editApplicationDeploymentRestriction(applicationId, deploymentRestrictionId, applicationDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2071
2078
|
}
|
|
2072
2079
|
/**
|
|
2073
2080
|
* Get application deployment restrictions
|
|
@@ -4318,45 +4325,6 @@ const ApplicationSecretApiAxiosParamCreator = function (configuration) {
|
|
|
4318
4325
|
options: localVarRequestOptions,
|
|
4319
4326
|
};
|
|
4320
4327
|
}),
|
|
4321
|
-
/**
|
|
4322
|
-
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
4323
|
-
* @summary Create a secret override at the container level
|
|
4324
|
-
* @param {string} containerId Container ID
|
|
4325
|
-
* @param {string} secretId Secret ID
|
|
4326
|
-
* @param {Value} [value]
|
|
4327
|
-
* @param {*} [options] Override http request option.
|
|
4328
|
-
* @throws {RequiredError}
|
|
4329
|
-
*/
|
|
4330
|
-
createContainerSecretOverride: (containerId, secretId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4331
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
4332
|
-
(0, common_1.assertParamExists)('createContainerSecretOverride', 'containerId', containerId);
|
|
4333
|
-
// verify required parameter 'secretId' is not null or undefined
|
|
4334
|
-
(0, common_1.assertParamExists)('createContainerSecretOverride', 'secretId', secretId);
|
|
4335
|
-
const localVarPath = `/container/{containerId}/secret/{secretId}/override`
|
|
4336
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
4337
|
-
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
4338
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4339
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4340
|
-
let baseOptions;
|
|
4341
|
-
if (configuration) {
|
|
4342
|
-
baseOptions = configuration.baseOptions;
|
|
4343
|
-
}
|
|
4344
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4345
|
-
const localVarHeaderParameter = {};
|
|
4346
|
-
const localVarQueryParameter = {};
|
|
4347
|
-
// authentication bearerAuth required
|
|
4348
|
-
// http bearer authentication required
|
|
4349
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4350
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4351
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4352
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4353
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4354
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(value, localVarRequestOptions, configuration);
|
|
4355
|
-
return {
|
|
4356
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4357
|
-
options: localVarRequestOptions,
|
|
4358
|
-
};
|
|
4359
|
-
}),
|
|
4360
4328
|
/**
|
|
4361
4329
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
4362
4330
|
* @summary Delete a secret from an application
|
|
@@ -4520,21 +4488,6 @@ const ApplicationSecretApiFp = function (configuration) {
|
|
|
4520
4488
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4521
4489
|
});
|
|
4522
4490
|
},
|
|
4523
|
-
/**
|
|
4524
|
-
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
4525
|
-
* @summary Create a secret override at the container level
|
|
4526
|
-
* @param {string} containerId Container ID
|
|
4527
|
-
* @param {string} secretId Secret ID
|
|
4528
|
-
* @param {Value} [value]
|
|
4529
|
-
* @param {*} [options] Override http request option.
|
|
4530
|
-
* @throws {RequiredError}
|
|
4531
|
-
*/
|
|
4532
|
-
createContainerSecretOverride(containerId, secretId, value, options) {
|
|
4533
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4534
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createContainerSecretOverride(containerId, secretId, value, options);
|
|
4535
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4536
|
-
});
|
|
4537
|
-
},
|
|
4538
4491
|
/**
|
|
4539
4492
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
4540
4493
|
* @summary Delete a secret from an application
|
|
@@ -4622,18 +4575,6 @@ const ApplicationSecretApiFactory = function (configuration, basePath, axios) {
|
|
|
4622
4575
|
createApplicationSecretOverride(applicationId, secretId, value, options) {
|
|
4623
4576
|
return localVarFp.createApplicationSecretOverride(applicationId, secretId, value, options).then((request) => request(axios, basePath));
|
|
4624
4577
|
},
|
|
4625
|
-
/**
|
|
4626
|
-
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
4627
|
-
* @summary Create a secret override at the container level
|
|
4628
|
-
* @param {string} containerId Container ID
|
|
4629
|
-
* @param {string} secretId Secret ID
|
|
4630
|
-
* @param {Value} [value]
|
|
4631
|
-
* @param {*} [options] Override http request option.
|
|
4632
|
-
* @throws {RequiredError}
|
|
4633
|
-
*/
|
|
4634
|
-
createContainerSecretOverride(containerId, secretId, value, options) {
|
|
4635
|
-
return localVarFp.createContainerSecretOverride(containerId, secretId, value, options).then((request) => request(axios, basePath));
|
|
4636
|
-
},
|
|
4637
4578
|
/**
|
|
4638
4579
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
4639
4580
|
* @summary Delete a secret from an application
|
|
@@ -4715,19 +4656,6 @@ class ApplicationSecretApi extends base_1.BaseAPI {
|
|
|
4715
4656
|
createApplicationSecretOverride(applicationId, secretId, value, options) {
|
|
4716
4657
|
return (0, exports.ApplicationSecretApiFp)(this.configuration).createApplicationSecretOverride(applicationId, secretId, value, options).then((request) => request(this.axios, this.basePath));
|
|
4717
4658
|
}
|
|
4718
|
-
/**
|
|
4719
|
-
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
4720
|
-
* @summary Create a secret override at the container level
|
|
4721
|
-
* @param {string} containerId Container ID
|
|
4722
|
-
* @param {string} secretId Secret ID
|
|
4723
|
-
* @param {Value} [value]
|
|
4724
|
-
* @param {*} [options] Override http request option.
|
|
4725
|
-
* @throws {RequiredError}
|
|
4726
|
-
* @memberof ApplicationSecretApi
|
|
4727
|
-
*/
|
|
4728
|
-
createContainerSecretOverride(containerId, secretId, value, options) {
|
|
4729
|
-
return (0, exports.ApplicationSecretApiFp)(this.configuration).createContainerSecretOverride(containerId, secretId, value, options).then((request) => request(this.axios, this.basePath));
|
|
4730
|
-
}
|
|
4731
4659
|
/**
|
|
4732
4660
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
4733
4661
|
* @summary Delete a secret from an application
|
|
@@ -4844,16 +4772,12 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
4844
4772
|
}),
|
|
4845
4773
|
/**
|
|
4846
4774
|
*
|
|
4847
|
-
* @summary List
|
|
4848
|
-
* @param {string} environmentId Environment ID
|
|
4775
|
+
* @summary List default application advanced settings
|
|
4849
4776
|
* @param {*} [options] Override http request option.
|
|
4850
4777
|
* @throws {RequiredError}
|
|
4851
4778
|
*/
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
(0, common_1.assertParamExists)('getEnvironmentApplicationCurrentInstance', 'environmentId', environmentId);
|
|
4855
|
-
const localVarPath = `/environment/{environmentId}/application/instance`
|
|
4856
|
-
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
4779
|
+
getDefaultApplicationAdvancedSettings: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4780
|
+
const localVarPath = `/defaultApplicationAdvancedSettings`;
|
|
4857
4781
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4858
4782
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4859
4783
|
let baseOptions;
|
|
@@ -5074,14 +4998,13 @@ const ApplicationsApiFp = function (configuration) {
|
|
|
5074
4998
|
},
|
|
5075
4999
|
/**
|
|
5076
5000
|
*
|
|
5077
|
-
* @summary List
|
|
5078
|
-
* @param {string} environmentId Environment ID
|
|
5001
|
+
* @summary List default application advanced settings
|
|
5079
5002
|
* @param {*} [options] Override http request option.
|
|
5080
5003
|
* @throws {RequiredError}
|
|
5081
5004
|
*/
|
|
5082
|
-
|
|
5005
|
+
getDefaultApplicationAdvancedSettings(options) {
|
|
5083
5006
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5084
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultApplicationAdvancedSettings(options);
|
|
5085
5008
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5086
5009
|
});
|
|
5087
5010
|
},
|
|
@@ -5184,13 +5107,12 @@ const ApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
|
5184
5107
|
},
|
|
5185
5108
|
/**
|
|
5186
5109
|
*
|
|
5187
|
-
* @summary List
|
|
5188
|
-
* @param {string} environmentId Environment ID
|
|
5110
|
+
* @summary List default application advanced settings
|
|
5189
5111
|
* @param {*} [options] Override http request option.
|
|
5190
5112
|
* @throws {RequiredError}
|
|
5191
5113
|
*/
|
|
5192
|
-
|
|
5193
|
-
return localVarFp.
|
|
5114
|
+
getDefaultApplicationAdvancedSettings(options) {
|
|
5115
|
+
return localVarFp.getDefaultApplicationAdvancedSettings(options).then((request) => request(axios, basePath));
|
|
5194
5116
|
},
|
|
5195
5117
|
/**
|
|
5196
5118
|
* Returns min, max, and running number of instances for each application
|
|
@@ -5278,14 +5200,13 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
5278
5200
|
}
|
|
5279
5201
|
/**
|
|
5280
5202
|
*
|
|
5281
|
-
* @summary List
|
|
5282
|
-
* @param {string} environmentId Environment ID
|
|
5203
|
+
* @summary List default application advanced settings
|
|
5283
5204
|
* @param {*} [options] Override http request option.
|
|
5284
5205
|
* @throws {RequiredError}
|
|
5285
5206
|
* @memberof ApplicationsApi
|
|
5286
5207
|
*/
|
|
5287
|
-
|
|
5288
|
-
return (0, exports.ApplicationsApiFp)(this.configuration).
|
|
5208
|
+
getDefaultApplicationAdvancedSettings(options) {
|
|
5209
|
+
return (0, exports.ApplicationsApiFp)(this.configuration).getDefaultApplicationAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5289
5210
|
}
|
|
5290
5211
|
/**
|
|
5291
5212
|
* Returns min, max, and running number of instances for each application
|
|
@@ -5676,6 +5597,41 @@ const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
5676
5597
|
options: localVarRequestOptions,
|
|
5677
5598
|
};
|
|
5678
5599
|
}),
|
|
5600
|
+
/**
|
|
5601
|
+
*
|
|
5602
|
+
* @summary Change organization plan
|
|
5603
|
+
* @param {string} organizationId Organization ID
|
|
5604
|
+
* @param {InlineObject} [inlineObject]
|
|
5605
|
+
* @param {*} [options] Override http request option.
|
|
5606
|
+
* @throws {RequiredError}
|
|
5607
|
+
*/
|
|
5608
|
+
changePlan: (organizationId, inlineObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5609
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5610
|
+
(0, common_1.assertParamExists)('changePlan', 'organizationId', organizationId);
|
|
5611
|
+
const localVarPath = `/organization/{organizationId}/changePlan`
|
|
5612
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
5613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5614
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5615
|
+
let baseOptions;
|
|
5616
|
+
if (configuration) {
|
|
5617
|
+
baseOptions = configuration.baseOptions;
|
|
5618
|
+
}
|
|
5619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5620
|
+
const localVarHeaderParameter = {};
|
|
5621
|
+
const localVarQueryParameter = {};
|
|
5622
|
+
// authentication bearerAuth required
|
|
5623
|
+
// http bearer authentication required
|
|
5624
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5625
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5629
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inlineObject, localVarRequestOptions, configuration);
|
|
5630
|
+
return {
|
|
5631
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5632
|
+
options: localVarRequestOptions,
|
|
5633
|
+
};
|
|
5634
|
+
}),
|
|
5679
5635
|
/**
|
|
5680
5636
|
*
|
|
5681
5637
|
* @summary Delete credit card
|
|
@@ -6085,6 +6041,20 @@ const BillingApiFp = function (configuration) {
|
|
|
6085
6041
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6086
6042
|
});
|
|
6087
6043
|
},
|
|
6044
|
+
/**
|
|
6045
|
+
*
|
|
6046
|
+
* @summary Change organization plan
|
|
6047
|
+
* @param {string} organizationId Organization ID
|
|
6048
|
+
* @param {InlineObject} [inlineObject]
|
|
6049
|
+
* @param {*} [options] Override http request option.
|
|
6050
|
+
* @throws {RequiredError}
|
|
6051
|
+
*/
|
|
6052
|
+
changePlan(organizationId, inlineObject, options) {
|
|
6053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6054
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePlan(organizationId, inlineObject, options);
|
|
6055
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6056
|
+
});
|
|
6057
|
+
},
|
|
6088
6058
|
/**
|
|
6089
6059
|
*
|
|
6090
6060
|
* @summary Delete credit card
|
|
@@ -6265,6 +6235,17 @@ const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
6265
6235
|
addCreditCode(organizationId, organizationCreditCodeRequest, options) {
|
|
6266
6236
|
return localVarFp.addCreditCode(organizationId, organizationCreditCodeRequest, options).then((request) => request(axios, basePath));
|
|
6267
6237
|
},
|
|
6238
|
+
/**
|
|
6239
|
+
*
|
|
6240
|
+
* @summary Change organization plan
|
|
6241
|
+
* @param {string} organizationId Organization ID
|
|
6242
|
+
* @param {InlineObject} [inlineObject]
|
|
6243
|
+
* @param {*} [options] Override http request option.
|
|
6244
|
+
* @throws {RequiredError}
|
|
6245
|
+
*/
|
|
6246
|
+
changePlan(organizationId, inlineObject, options) {
|
|
6247
|
+
return localVarFp.changePlan(organizationId, inlineObject, options).then((request) => request(axios, basePath));
|
|
6248
|
+
},
|
|
6268
6249
|
/**
|
|
6269
6250
|
*
|
|
6270
6251
|
* @summary Delete credit card
|
|
@@ -6414,6 +6395,18 @@ class BillingApi extends base_1.BaseAPI {
|
|
|
6414
6395
|
addCreditCode(organizationId, organizationCreditCodeRequest, options) {
|
|
6415
6396
|
return (0, exports.BillingApiFp)(this.configuration).addCreditCode(organizationId, organizationCreditCodeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6416
6397
|
}
|
|
6398
|
+
/**
|
|
6399
|
+
*
|
|
6400
|
+
* @summary Change organization plan
|
|
6401
|
+
* @param {string} organizationId Organization ID
|
|
6402
|
+
* @param {InlineObject} [inlineObject]
|
|
6403
|
+
* @param {*} [options] Override http request option.
|
|
6404
|
+
* @throws {RequiredError}
|
|
6405
|
+
* @memberof BillingApi
|
|
6406
|
+
*/
|
|
6407
|
+
changePlan(organizationId, inlineObject, options) {
|
|
6408
|
+
return (0, exports.BillingApiFp)(this.configuration).changePlan(organizationId, inlineObject, options).then((request) => request(this.axios, this.basePath));
|
|
6409
|
+
}
|
|
6417
6410
|
/**
|
|
6418
6411
|
*
|
|
6419
6412
|
* @summary Delete credit card
|
|
@@ -7508,16 +7501,20 @@ const CloudProviderCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
7508
7501
|
}),
|
|
7509
7502
|
/**
|
|
7510
7503
|
*
|
|
7511
|
-
* @summary
|
|
7504
|
+
* @summary Get a set of AWS credentials
|
|
7512
7505
|
* @param {string} organizationId Organization ID
|
|
7506
|
+
* @param {string} credentialsId Credentials ID
|
|
7513
7507
|
* @param {*} [options] Override http request option.
|
|
7514
7508
|
* @throws {RequiredError}
|
|
7515
7509
|
*/
|
|
7516
|
-
|
|
7510
|
+
getAWSCredentials: (organizationId, credentialsId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7517
7511
|
// verify required parameter 'organizationId' is not null or undefined
|
|
7518
|
-
(0, common_1.assertParamExists)('
|
|
7519
|
-
|
|
7520
|
-
|
|
7512
|
+
(0, common_1.assertParamExists)('getAWSCredentials', 'organizationId', organizationId);
|
|
7513
|
+
// verify required parameter 'credentialsId' is not null or undefined
|
|
7514
|
+
(0, common_1.assertParamExists)('getAWSCredentials', 'credentialsId', credentialsId);
|
|
7515
|
+
const localVarPath = `/organization/{organizationId}/aws/credentials/{credentialsId}`
|
|
7516
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
7517
|
+
.replace(`{${"credentialsId"}}`, encodeURIComponent(String(credentialsId)));
|
|
7521
7518
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7522
7519
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7523
7520
|
let baseOptions;
|
|
@@ -7540,16 +7537,20 @@ const CloudProviderCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
7540
7537
|
}),
|
|
7541
7538
|
/**
|
|
7542
7539
|
*
|
|
7543
|
-
* @summary
|
|
7540
|
+
* @summary Get a set of Digital Ocean credentials
|
|
7544
7541
|
* @param {string} organizationId Organization ID
|
|
7542
|
+
* @param {string} credentialsId Credentials ID
|
|
7545
7543
|
* @param {*} [options] Override http request option.
|
|
7546
7544
|
* @throws {RequiredError}
|
|
7547
7545
|
*/
|
|
7548
|
-
|
|
7546
|
+
getDOCredentials: (organizationId, credentialsId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7549
7547
|
// verify required parameter 'organizationId' is not null or undefined
|
|
7550
|
-
(0, common_1.assertParamExists)('
|
|
7551
|
-
|
|
7552
|
-
|
|
7548
|
+
(0, common_1.assertParamExists)('getDOCredentials', 'organizationId', organizationId);
|
|
7549
|
+
// verify required parameter 'credentialsId' is not null or undefined
|
|
7550
|
+
(0, common_1.assertParamExists)('getDOCredentials', 'credentialsId', credentialsId);
|
|
7551
|
+
const localVarPath = `/organization/{organizationId}/digitalOcean/credentials/{credentialsId}`
|
|
7552
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
7553
|
+
.replace(`{${"credentialsId"}}`, encodeURIComponent(String(credentialsId)));
|
|
7553
7554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7554
7555
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7555
7556
|
let baseOptions;
|
|
@@ -7572,16 +7573,20 @@ const CloudProviderCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
7572
7573
|
}),
|
|
7573
7574
|
/**
|
|
7574
7575
|
*
|
|
7575
|
-
* @summary
|
|
7576
|
+
* @summary Get a set of Scaleway credentials
|
|
7576
7577
|
* @param {string} organizationId Organization ID
|
|
7578
|
+
* @param {string} credentialsId Credentials ID
|
|
7577
7579
|
* @param {*} [options] Override http request option.
|
|
7578
7580
|
* @throws {RequiredError}
|
|
7579
7581
|
*/
|
|
7580
|
-
|
|
7582
|
+
getScalewayCredentials: (organizationId, credentialsId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7581
7583
|
// verify required parameter 'organizationId' is not null or undefined
|
|
7582
|
-
(0, common_1.assertParamExists)('
|
|
7583
|
-
|
|
7584
|
-
|
|
7584
|
+
(0, common_1.assertParamExists)('getScalewayCredentials', 'organizationId', organizationId);
|
|
7585
|
+
// verify required parameter 'credentialsId' is not null or undefined
|
|
7586
|
+
(0, common_1.assertParamExists)('getScalewayCredentials', 'credentialsId', credentialsId);
|
|
7587
|
+
const localVarPath = `/organization/{organizationId}/scaleway/credentials/{credentialsId}`
|
|
7588
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
7589
|
+
.replace(`{${"credentialsId"}}`, encodeURIComponent(String(credentialsId)));
|
|
7585
7590
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7586
7591
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7587
7592
|
let baseOptions;
|
|
@@ -7602,35 +7607,131 @@ const CloudProviderCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
7602
7607
|
options: localVarRequestOptions,
|
|
7603
7608
|
};
|
|
7604
7609
|
}),
|
|
7605
|
-
};
|
|
7606
|
-
};
|
|
7607
|
-
exports.CloudProviderCredentialsApiAxiosParamCreator = CloudProviderCredentialsApiAxiosParamCreator;
|
|
7608
|
-
/**
|
|
7609
|
-
* CloudProviderCredentialsApi - functional programming interface
|
|
7610
|
-
* @export
|
|
7611
|
-
*/
|
|
7612
|
-
const CloudProviderCredentialsApiFp = function (configuration) {
|
|
7613
|
-
const localVarAxiosParamCreator = (0, exports.CloudProviderCredentialsApiAxiosParamCreator)(configuration);
|
|
7614
|
-
return {
|
|
7615
7610
|
/**
|
|
7616
7611
|
*
|
|
7617
|
-
* @summary
|
|
7612
|
+
* @summary List AWS credentials
|
|
7618
7613
|
* @param {string} organizationId Organization ID
|
|
7619
|
-
* @param {AwsCredentialsRequest} [awsCredentialsRequest]
|
|
7620
7614
|
* @param {*} [options] Override http request option.
|
|
7621
7615
|
* @throws {RequiredError}
|
|
7622
7616
|
*/
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7617
|
+
listAWSCredentials: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7618
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
7619
|
+
(0, common_1.assertParamExists)('listAWSCredentials', 'organizationId', organizationId);
|
|
7620
|
+
const localVarPath = `/organization/{organizationId}/aws/credentials`
|
|
7621
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
7622
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7623
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7624
|
+
let baseOptions;
|
|
7625
|
+
if (configuration) {
|
|
7626
|
+
baseOptions = configuration.baseOptions;
|
|
7627
|
+
}
|
|
7628
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7629
|
+
const localVarHeaderParameter = {};
|
|
7630
|
+
const localVarQueryParameter = {};
|
|
7631
|
+
// authentication bearerAuth required
|
|
7632
|
+
// http bearer authentication required
|
|
7633
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7634
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7635
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7636
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7637
|
+
return {
|
|
7638
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7639
|
+
options: localVarRequestOptions,
|
|
7640
|
+
};
|
|
7641
|
+
}),
|
|
7629
7642
|
/**
|
|
7630
7643
|
*
|
|
7631
|
-
* @summary
|
|
7644
|
+
* @summary List DO credentials
|
|
7632
7645
|
* @param {string} organizationId Organization ID
|
|
7633
|
-
* @param {
|
|
7646
|
+
* @param {*} [options] Override http request option.
|
|
7647
|
+
* @throws {RequiredError}
|
|
7648
|
+
*/
|
|
7649
|
+
listDOCredentials: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7650
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
7651
|
+
(0, common_1.assertParamExists)('listDOCredentials', 'organizationId', organizationId);
|
|
7652
|
+
const localVarPath = `/organization/{organizationId}/digitalOcean/credentials`
|
|
7653
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
7654
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7655
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7656
|
+
let baseOptions;
|
|
7657
|
+
if (configuration) {
|
|
7658
|
+
baseOptions = configuration.baseOptions;
|
|
7659
|
+
}
|
|
7660
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7661
|
+
const localVarHeaderParameter = {};
|
|
7662
|
+
const localVarQueryParameter = {};
|
|
7663
|
+
// authentication bearerAuth required
|
|
7664
|
+
// http bearer authentication required
|
|
7665
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7666
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7668
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7669
|
+
return {
|
|
7670
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7671
|
+
options: localVarRequestOptions,
|
|
7672
|
+
};
|
|
7673
|
+
}),
|
|
7674
|
+
/**
|
|
7675
|
+
*
|
|
7676
|
+
* @summary List Scaleway credentials
|
|
7677
|
+
* @param {string} organizationId Organization ID
|
|
7678
|
+
* @param {*} [options] Override http request option.
|
|
7679
|
+
* @throws {RequiredError}
|
|
7680
|
+
*/
|
|
7681
|
+
listScalewayCredentials: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7682
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
7683
|
+
(0, common_1.assertParamExists)('listScalewayCredentials', 'organizationId', organizationId);
|
|
7684
|
+
const localVarPath = `/organization/{organizationId}/scaleway/credentials`
|
|
7685
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
7686
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7687
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7688
|
+
let baseOptions;
|
|
7689
|
+
if (configuration) {
|
|
7690
|
+
baseOptions = configuration.baseOptions;
|
|
7691
|
+
}
|
|
7692
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7693
|
+
const localVarHeaderParameter = {};
|
|
7694
|
+
const localVarQueryParameter = {};
|
|
7695
|
+
// authentication bearerAuth required
|
|
7696
|
+
// http bearer authentication required
|
|
7697
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7698
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7699
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7700
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7701
|
+
return {
|
|
7702
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7703
|
+
options: localVarRequestOptions,
|
|
7704
|
+
};
|
|
7705
|
+
}),
|
|
7706
|
+
};
|
|
7707
|
+
};
|
|
7708
|
+
exports.CloudProviderCredentialsApiAxiosParamCreator = CloudProviderCredentialsApiAxiosParamCreator;
|
|
7709
|
+
/**
|
|
7710
|
+
* CloudProviderCredentialsApi - functional programming interface
|
|
7711
|
+
* @export
|
|
7712
|
+
*/
|
|
7713
|
+
const CloudProviderCredentialsApiFp = function (configuration) {
|
|
7714
|
+
const localVarAxiosParamCreator = (0, exports.CloudProviderCredentialsApiAxiosParamCreator)(configuration);
|
|
7715
|
+
return {
|
|
7716
|
+
/**
|
|
7717
|
+
*
|
|
7718
|
+
* @summary Create AWS credentials set
|
|
7719
|
+
* @param {string} organizationId Organization ID
|
|
7720
|
+
* @param {AwsCredentialsRequest} [awsCredentialsRequest]
|
|
7721
|
+
* @param {*} [options] Override http request option.
|
|
7722
|
+
* @throws {RequiredError}
|
|
7723
|
+
*/
|
|
7724
|
+
createAWSCredentials(organizationId, awsCredentialsRequest, options) {
|
|
7725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7726
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAWSCredentials(organizationId, awsCredentialsRequest, options);
|
|
7727
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7728
|
+
});
|
|
7729
|
+
},
|
|
7730
|
+
/**
|
|
7731
|
+
*
|
|
7732
|
+
* @summary Create Digital Ocean credentials set
|
|
7733
|
+
* @param {string} organizationId Organization ID
|
|
7734
|
+
* @param {DoCredentialsRequest} [doCredentialsRequest]
|
|
7634
7735
|
* @param {*} [options] Override http request option.
|
|
7635
7736
|
* @throws {RequiredError}
|
|
7636
7737
|
*/
|
|
@@ -7741,6 +7842,48 @@ const CloudProviderCredentialsApiFp = function (configuration) {
|
|
|
7741
7842
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7742
7843
|
});
|
|
7743
7844
|
},
|
|
7845
|
+
/**
|
|
7846
|
+
*
|
|
7847
|
+
* @summary Get a set of AWS credentials
|
|
7848
|
+
* @param {string} organizationId Organization ID
|
|
7849
|
+
* @param {string} credentialsId Credentials ID
|
|
7850
|
+
* @param {*} [options] Override http request option.
|
|
7851
|
+
* @throws {RequiredError}
|
|
7852
|
+
*/
|
|
7853
|
+
getAWSCredentials(organizationId, credentialsId, options) {
|
|
7854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7855
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAWSCredentials(organizationId, credentialsId, options);
|
|
7856
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7857
|
+
});
|
|
7858
|
+
},
|
|
7859
|
+
/**
|
|
7860
|
+
*
|
|
7861
|
+
* @summary Get a set of Digital Ocean credentials
|
|
7862
|
+
* @param {string} organizationId Organization ID
|
|
7863
|
+
* @param {string} credentialsId Credentials ID
|
|
7864
|
+
* @param {*} [options] Override http request option.
|
|
7865
|
+
* @throws {RequiredError}
|
|
7866
|
+
*/
|
|
7867
|
+
getDOCredentials(organizationId, credentialsId, options) {
|
|
7868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7869
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDOCredentials(organizationId, credentialsId, options);
|
|
7870
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7871
|
+
});
|
|
7872
|
+
},
|
|
7873
|
+
/**
|
|
7874
|
+
*
|
|
7875
|
+
* @summary Get a set of Scaleway credentials
|
|
7876
|
+
* @param {string} organizationId Organization ID
|
|
7877
|
+
* @param {string} credentialsId Credentials ID
|
|
7878
|
+
* @param {*} [options] Override http request option.
|
|
7879
|
+
* @throws {RequiredError}
|
|
7880
|
+
*/
|
|
7881
|
+
getScalewayCredentials(organizationId, credentialsId, options) {
|
|
7882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScalewayCredentials(organizationId, credentialsId, options);
|
|
7884
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7885
|
+
});
|
|
7886
|
+
},
|
|
7744
7887
|
/**
|
|
7745
7888
|
*
|
|
7746
7889
|
* @summary List AWS credentials
|
|
@@ -7892,6 +8035,39 @@ const CloudProviderCredentialsApiFactory = function (configuration, basePath, ax
|
|
|
7892
8035
|
editScalewayCredentials(organizationId, credentialsId, scalewayCredentialsRequest, options) {
|
|
7893
8036
|
return localVarFp.editScalewayCredentials(organizationId, credentialsId, scalewayCredentialsRequest, options).then((request) => request(axios, basePath));
|
|
7894
8037
|
},
|
|
8038
|
+
/**
|
|
8039
|
+
*
|
|
8040
|
+
* @summary Get a set of AWS credentials
|
|
8041
|
+
* @param {string} organizationId Organization ID
|
|
8042
|
+
* @param {string} credentialsId Credentials ID
|
|
8043
|
+
* @param {*} [options] Override http request option.
|
|
8044
|
+
* @throws {RequiredError}
|
|
8045
|
+
*/
|
|
8046
|
+
getAWSCredentials(organizationId, credentialsId, options) {
|
|
8047
|
+
return localVarFp.getAWSCredentials(organizationId, credentialsId, options).then((request) => request(axios, basePath));
|
|
8048
|
+
},
|
|
8049
|
+
/**
|
|
8050
|
+
*
|
|
8051
|
+
* @summary Get a set of Digital Ocean credentials
|
|
8052
|
+
* @param {string} organizationId Organization ID
|
|
8053
|
+
* @param {string} credentialsId Credentials ID
|
|
8054
|
+
* @param {*} [options] Override http request option.
|
|
8055
|
+
* @throws {RequiredError}
|
|
8056
|
+
*/
|
|
8057
|
+
getDOCredentials(organizationId, credentialsId, options) {
|
|
8058
|
+
return localVarFp.getDOCredentials(organizationId, credentialsId, options).then((request) => request(axios, basePath));
|
|
8059
|
+
},
|
|
8060
|
+
/**
|
|
8061
|
+
*
|
|
8062
|
+
* @summary Get a set of Scaleway credentials
|
|
8063
|
+
* @param {string} organizationId Organization ID
|
|
8064
|
+
* @param {string} credentialsId Credentials ID
|
|
8065
|
+
* @param {*} [options] Override http request option.
|
|
8066
|
+
* @throws {RequiredError}
|
|
8067
|
+
*/
|
|
8068
|
+
getScalewayCredentials(organizationId, credentialsId, options) {
|
|
8069
|
+
return localVarFp.getScalewayCredentials(organizationId, credentialsId, options).then((request) => request(axios, basePath));
|
|
8070
|
+
},
|
|
7895
8071
|
/**
|
|
7896
8072
|
*
|
|
7897
8073
|
* @summary List AWS credentials
|
|
@@ -8043,6 +8219,42 @@ class CloudProviderCredentialsApi extends base_1.BaseAPI {
|
|
|
8043
8219
|
editScalewayCredentials(organizationId, credentialsId, scalewayCredentialsRequest, options) {
|
|
8044
8220
|
return (0, exports.CloudProviderCredentialsApiFp)(this.configuration).editScalewayCredentials(organizationId, credentialsId, scalewayCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8045
8221
|
}
|
|
8222
|
+
/**
|
|
8223
|
+
*
|
|
8224
|
+
* @summary Get a set of AWS credentials
|
|
8225
|
+
* @param {string} organizationId Organization ID
|
|
8226
|
+
* @param {string} credentialsId Credentials ID
|
|
8227
|
+
* @param {*} [options] Override http request option.
|
|
8228
|
+
* @throws {RequiredError}
|
|
8229
|
+
* @memberof CloudProviderCredentialsApi
|
|
8230
|
+
*/
|
|
8231
|
+
getAWSCredentials(organizationId, credentialsId, options) {
|
|
8232
|
+
return (0, exports.CloudProviderCredentialsApiFp)(this.configuration).getAWSCredentials(organizationId, credentialsId, options).then((request) => request(this.axios, this.basePath));
|
|
8233
|
+
}
|
|
8234
|
+
/**
|
|
8235
|
+
*
|
|
8236
|
+
* @summary Get a set of Digital Ocean credentials
|
|
8237
|
+
* @param {string} organizationId Organization ID
|
|
8238
|
+
* @param {string} credentialsId Credentials ID
|
|
8239
|
+
* @param {*} [options] Override http request option.
|
|
8240
|
+
* @throws {RequiredError}
|
|
8241
|
+
* @memberof CloudProviderCredentialsApi
|
|
8242
|
+
*/
|
|
8243
|
+
getDOCredentials(organizationId, credentialsId, options) {
|
|
8244
|
+
return (0, exports.CloudProviderCredentialsApiFp)(this.configuration).getDOCredentials(organizationId, credentialsId, options).then((request) => request(this.axios, this.basePath));
|
|
8245
|
+
}
|
|
8246
|
+
/**
|
|
8247
|
+
*
|
|
8248
|
+
* @summary Get a set of Scaleway credentials
|
|
8249
|
+
* @param {string} organizationId Organization ID
|
|
8250
|
+
* @param {string} credentialsId Credentials ID
|
|
8251
|
+
* @param {*} [options] Override http request option.
|
|
8252
|
+
* @throws {RequiredError}
|
|
8253
|
+
* @memberof CloudProviderCredentialsApi
|
|
8254
|
+
*/
|
|
8255
|
+
getScalewayCredentials(organizationId, credentialsId, options) {
|
|
8256
|
+
return (0, exports.CloudProviderCredentialsApiFp)(this.configuration).getScalewayCredentials(organizationId, credentialsId, options).then((request) => request(this.axios, this.basePath));
|
|
8257
|
+
}
|
|
8046
8258
|
/**
|
|
8047
8259
|
*
|
|
8048
8260
|
* @summary List AWS credentials
|
|
@@ -8230,6 +8442,45 @@ const ClustersApiAxiosParamCreator = function (configuration) {
|
|
|
8230
8442
|
options: localVarRequestOptions,
|
|
8231
8443
|
};
|
|
8232
8444
|
}),
|
|
8445
|
+
/**
|
|
8446
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
8447
|
+
* @summary Edit advanced settings
|
|
8448
|
+
* @param {string} organizationId Organization ID
|
|
8449
|
+
* @param {string} clusterId Cluster ID
|
|
8450
|
+
* @param {ClusterAdvancedSettings} [clusterAdvancedSettings]
|
|
8451
|
+
* @param {*} [options] Override http request option.
|
|
8452
|
+
* @throws {RequiredError}
|
|
8453
|
+
*/
|
|
8454
|
+
editClusterAdvancedSettings: (organizationId, clusterId, clusterAdvancedSettings, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
8455
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
8456
|
+
(0, common_1.assertParamExists)('editClusterAdvancedSettings', 'organizationId', organizationId);
|
|
8457
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
8458
|
+
(0, common_1.assertParamExists)('editClusterAdvancedSettings', 'clusterId', clusterId);
|
|
8459
|
+
const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/advancedSettings`
|
|
8460
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
8461
|
+
.replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
|
|
8462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8463
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8464
|
+
let baseOptions;
|
|
8465
|
+
if (configuration) {
|
|
8466
|
+
baseOptions = configuration.baseOptions;
|
|
8467
|
+
}
|
|
8468
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8469
|
+
const localVarHeaderParameter = {};
|
|
8470
|
+
const localVarQueryParameter = {};
|
|
8471
|
+
// authentication bearerAuth required
|
|
8472
|
+
// http bearer authentication required
|
|
8473
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8474
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8475
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8477
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8478
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clusterAdvancedSettings, localVarRequestOptions, configuration);
|
|
8479
|
+
return {
|
|
8480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8481
|
+
options: localVarRequestOptions,
|
|
8482
|
+
};
|
|
8483
|
+
}),
|
|
8233
8484
|
/**
|
|
8234
8485
|
* Edit routing table by returning updated table.
|
|
8235
8486
|
* @summary Edit routing table
|
|
@@ -8269,6 +8520,42 @@ const ClustersApiAxiosParamCreator = function (configuration) {
|
|
|
8269
8520
|
options: localVarRequestOptions,
|
|
8270
8521
|
};
|
|
8271
8522
|
}),
|
|
8523
|
+
/**
|
|
8524
|
+
* Get list and values of the advanced settings of the cluster.
|
|
8525
|
+
* @summary Get advanced settings
|
|
8526
|
+
* @param {string} organizationId Organization ID
|
|
8527
|
+
* @param {string} clusterId Cluster ID
|
|
8528
|
+
* @param {*} [options] Override http request option.
|
|
8529
|
+
* @throws {RequiredError}
|
|
8530
|
+
*/
|
|
8531
|
+
getClusterAdvancedSettings: (organizationId, clusterId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
8532
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
8533
|
+
(0, common_1.assertParamExists)('getClusterAdvancedSettings', 'organizationId', organizationId);
|
|
8534
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
8535
|
+
(0, common_1.assertParamExists)('getClusterAdvancedSettings', 'clusterId', clusterId);
|
|
8536
|
+
const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/advancedSettings`
|
|
8537
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
8538
|
+
.replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
|
|
8539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8540
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8541
|
+
let baseOptions;
|
|
8542
|
+
if (configuration) {
|
|
8543
|
+
baseOptions = configuration.baseOptions;
|
|
8544
|
+
}
|
|
8545
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8546
|
+
const localVarHeaderParameter = {};
|
|
8547
|
+
const localVarQueryParameter = {};
|
|
8548
|
+
// authentication bearerAuth required
|
|
8549
|
+
// http bearer authentication required
|
|
8550
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8551
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8553
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8554
|
+
return {
|
|
8555
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8556
|
+
options: localVarRequestOptions,
|
|
8557
|
+
};
|
|
8558
|
+
}),
|
|
8272
8559
|
/**
|
|
8273
8560
|
*
|
|
8274
8561
|
* @summary Know if a cluster is ready to be deployed or not
|
|
@@ -8691,6 +8978,21 @@ const ClustersApiFp = function (configuration) {
|
|
|
8691
8978
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
8692
8979
|
});
|
|
8693
8980
|
},
|
|
8981
|
+
/**
|
|
8982
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
8983
|
+
* @summary Edit advanced settings
|
|
8984
|
+
* @param {string} organizationId Organization ID
|
|
8985
|
+
* @param {string} clusterId Cluster ID
|
|
8986
|
+
* @param {ClusterAdvancedSettings} [clusterAdvancedSettings]
|
|
8987
|
+
* @param {*} [options] Override http request option.
|
|
8988
|
+
* @throws {RequiredError}
|
|
8989
|
+
*/
|
|
8990
|
+
editClusterAdvancedSettings(organizationId, clusterId, clusterAdvancedSettings, options) {
|
|
8991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editClusterAdvancedSettings(organizationId, clusterId, clusterAdvancedSettings, options);
|
|
8993
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
8994
|
+
});
|
|
8995
|
+
},
|
|
8694
8996
|
/**
|
|
8695
8997
|
* Edit routing table by returning updated table.
|
|
8696
8998
|
* @summary Edit routing table
|
|
@@ -8707,22 +9009,36 @@ const ClustersApiFp = function (configuration) {
|
|
|
8707
9009
|
});
|
|
8708
9010
|
},
|
|
8709
9011
|
/**
|
|
8710
|
-
*
|
|
8711
|
-
* @summary
|
|
9012
|
+
* Get list and values of the advanced settings of the cluster.
|
|
9013
|
+
* @summary Get advanced settings
|
|
8712
9014
|
* @param {string} organizationId Organization ID
|
|
8713
9015
|
* @param {string} clusterId Cluster ID
|
|
8714
9016
|
* @param {*} [options] Override http request option.
|
|
8715
9017
|
* @throws {RequiredError}
|
|
8716
9018
|
*/
|
|
8717
|
-
|
|
9019
|
+
getClusterAdvancedSettings(organizationId, clusterId, options) {
|
|
8718
9020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8719
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9021
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterAdvancedSettings(organizationId, clusterId, options);
|
|
8720
9022
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
8721
9023
|
});
|
|
8722
9024
|
},
|
|
8723
9025
|
/**
|
|
8724
9026
|
*
|
|
8725
|
-
* @summary
|
|
9027
|
+
* @summary Know if a cluster is ready to be deployed or not
|
|
9028
|
+
* @param {string} organizationId Organization ID
|
|
9029
|
+
* @param {string} clusterId Cluster ID
|
|
9030
|
+
* @param {*} [options] Override http request option.
|
|
9031
|
+
* @throws {RequiredError}
|
|
9032
|
+
*/
|
|
9033
|
+
getClusterReadinessStatus(organizationId, clusterId, options) {
|
|
9034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9035
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterReadinessStatus(organizationId, clusterId, options);
|
|
9036
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
9037
|
+
});
|
|
9038
|
+
},
|
|
9039
|
+
/**
|
|
9040
|
+
*
|
|
9041
|
+
* @summary Get cluster status
|
|
8726
9042
|
* @param {string} organizationId Organization ID
|
|
8727
9043
|
* @param {string} clusterId Cluster ID
|
|
8728
9044
|
* @param {*} [options] Override http request option.
|
|
@@ -8900,6 +9216,18 @@ const ClustersApiFactory = function (configuration, basePath, axios) {
|
|
|
8900
9216
|
editCluster(organizationId, clusterId, clusterRequest, options) {
|
|
8901
9217
|
return localVarFp.editCluster(organizationId, clusterId, clusterRequest, options).then((request) => request(axios, basePath));
|
|
8902
9218
|
},
|
|
9219
|
+
/**
|
|
9220
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
9221
|
+
* @summary Edit advanced settings
|
|
9222
|
+
* @param {string} organizationId Organization ID
|
|
9223
|
+
* @param {string} clusterId Cluster ID
|
|
9224
|
+
* @param {ClusterAdvancedSettings} [clusterAdvancedSettings]
|
|
9225
|
+
* @param {*} [options] Override http request option.
|
|
9226
|
+
* @throws {RequiredError}
|
|
9227
|
+
*/
|
|
9228
|
+
editClusterAdvancedSettings(organizationId, clusterId, clusterAdvancedSettings, options) {
|
|
9229
|
+
return localVarFp.editClusterAdvancedSettings(organizationId, clusterId, clusterAdvancedSettings, options).then((request) => request(axios, basePath));
|
|
9230
|
+
},
|
|
8903
9231
|
/**
|
|
8904
9232
|
* Edit routing table by returning updated table.
|
|
8905
9233
|
* @summary Edit routing table
|
|
@@ -8912,6 +9240,17 @@ const ClustersApiFactory = function (configuration, basePath, axios) {
|
|
|
8912
9240
|
editRoutingTable(organizationId, clusterId, clusterRoutingTableRequest, options) {
|
|
8913
9241
|
return localVarFp.editRoutingTable(organizationId, clusterId, clusterRoutingTableRequest, options).then((request) => request(axios, basePath));
|
|
8914
9242
|
},
|
|
9243
|
+
/**
|
|
9244
|
+
* Get list and values of the advanced settings of the cluster.
|
|
9245
|
+
* @summary Get advanced settings
|
|
9246
|
+
* @param {string} organizationId Organization ID
|
|
9247
|
+
* @param {string} clusterId Cluster ID
|
|
9248
|
+
* @param {*} [options] Override http request option.
|
|
9249
|
+
* @throws {RequiredError}
|
|
9250
|
+
*/
|
|
9251
|
+
getClusterAdvancedSettings(organizationId, clusterId, options) {
|
|
9252
|
+
return localVarFp.getClusterAdvancedSettings(organizationId, clusterId, options).then((request) => request(axios, basePath));
|
|
9253
|
+
},
|
|
8915
9254
|
/**
|
|
8916
9255
|
*
|
|
8917
9256
|
* @summary Know if a cluster is ready to be deployed or not
|
|
@@ -9080,6 +9419,19 @@ class ClustersApi extends base_1.BaseAPI {
|
|
|
9080
9419
|
editCluster(organizationId, clusterId, clusterRequest, options) {
|
|
9081
9420
|
return (0, exports.ClustersApiFp)(this.configuration).editCluster(organizationId, clusterId, clusterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9082
9421
|
}
|
|
9422
|
+
/**
|
|
9423
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
9424
|
+
* @summary Edit advanced settings
|
|
9425
|
+
* @param {string} organizationId Organization ID
|
|
9426
|
+
* @param {string} clusterId Cluster ID
|
|
9427
|
+
* @param {ClusterAdvancedSettings} [clusterAdvancedSettings]
|
|
9428
|
+
* @param {*} [options] Override http request option.
|
|
9429
|
+
* @throws {RequiredError}
|
|
9430
|
+
* @memberof ClustersApi
|
|
9431
|
+
*/
|
|
9432
|
+
editClusterAdvancedSettings(organizationId, clusterId, clusterAdvancedSettings, options) {
|
|
9433
|
+
return (0, exports.ClustersApiFp)(this.configuration).editClusterAdvancedSettings(organizationId, clusterId, clusterAdvancedSettings, options).then((request) => request(this.axios, this.basePath));
|
|
9434
|
+
}
|
|
9083
9435
|
/**
|
|
9084
9436
|
* Edit routing table by returning updated table.
|
|
9085
9437
|
* @summary Edit routing table
|
|
@@ -9093,6 +9445,18 @@ class ClustersApi extends base_1.BaseAPI {
|
|
|
9093
9445
|
editRoutingTable(organizationId, clusterId, clusterRoutingTableRequest, options) {
|
|
9094
9446
|
return (0, exports.ClustersApiFp)(this.configuration).editRoutingTable(organizationId, clusterId, clusterRoutingTableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9095
9447
|
}
|
|
9448
|
+
/**
|
|
9449
|
+
* Get list and values of the advanced settings of the cluster.
|
|
9450
|
+
* @summary Get advanced settings
|
|
9451
|
+
* @param {string} organizationId Organization ID
|
|
9452
|
+
* @param {string} clusterId Cluster ID
|
|
9453
|
+
* @param {*} [options] Override http request option.
|
|
9454
|
+
* @throws {RequiredError}
|
|
9455
|
+
* @memberof ClustersApi
|
|
9456
|
+
*/
|
|
9457
|
+
getClusterAdvancedSettings(organizationId, clusterId, options) {
|
|
9458
|
+
return (0, exports.ClustersApiFp)(this.configuration).getClusterAdvancedSettings(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
9459
|
+
}
|
|
9096
9460
|
/**
|
|
9097
9461
|
*
|
|
9098
9462
|
* @summary Know if a cluster is ready to be deployed or not
|
|
@@ -9255,41 +9619,6 @@ const ContainerActionsApiAxiosParamCreator = function (configuration) {
|
|
|
9255
9619
|
options: localVarRequestOptions,
|
|
9256
9620
|
};
|
|
9257
9621
|
}),
|
|
9258
|
-
/**
|
|
9259
|
-
* You must provide the image tag.
|
|
9260
|
-
* @summary Deploy a preview environment with your container application
|
|
9261
|
-
* @param {string} containerId Container ID
|
|
9262
|
-
* @param {ContainerDeployRequest} [containerDeployRequest]
|
|
9263
|
-
* @param {*} [options] Override http request option.
|
|
9264
|
-
* @throws {RequiredError}
|
|
9265
|
-
*/
|
|
9266
|
-
previewEnvironmentContainer: (containerId, containerDeployRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9267
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
9268
|
-
(0, common_1.assertParamExists)('previewEnvironmentContainer', 'containerId', containerId);
|
|
9269
|
-
const localVarPath = `/container/{containerId}/previewEnvironment`
|
|
9270
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
9271
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9272
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9273
|
-
let baseOptions;
|
|
9274
|
-
if (configuration) {
|
|
9275
|
-
baseOptions = configuration.baseOptions;
|
|
9276
|
-
}
|
|
9277
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9278
|
-
const localVarHeaderParameter = {};
|
|
9279
|
-
const localVarQueryParameter = {};
|
|
9280
|
-
// authentication bearerAuth required
|
|
9281
|
-
// http bearer authentication required
|
|
9282
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9283
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9284
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9285
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9286
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9287
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(containerDeployRequest, localVarRequestOptions, configuration);
|
|
9288
|
-
return {
|
|
9289
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9290
|
-
options: localVarRequestOptions,
|
|
9291
|
-
};
|
|
9292
|
-
}),
|
|
9293
9622
|
/**
|
|
9294
9623
|
*
|
|
9295
9624
|
* @summary Restart container
|
|
@@ -9378,20 +9707,6 @@ const ContainerActionsApiFp = function (configuration) {
|
|
|
9378
9707
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
9379
9708
|
});
|
|
9380
9709
|
},
|
|
9381
|
-
/**
|
|
9382
|
-
* You must provide the image tag.
|
|
9383
|
-
* @summary Deploy a preview environment with your container application
|
|
9384
|
-
* @param {string} containerId Container ID
|
|
9385
|
-
* @param {ContainerDeployRequest} [containerDeployRequest]
|
|
9386
|
-
* @param {*} [options] Override http request option.
|
|
9387
|
-
* @throws {RequiredError}
|
|
9388
|
-
*/
|
|
9389
|
-
previewEnvironmentContainer(containerId, containerDeployRequest, options) {
|
|
9390
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.previewEnvironmentContainer(containerId, containerDeployRequest, options);
|
|
9392
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
9393
|
-
});
|
|
9394
|
-
},
|
|
9395
9710
|
/**
|
|
9396
9711
|
*
|
|
9397
9712
|
* @summary Restart container
|
|
@@ -9439,17 +9754,6 @@ const ContainerActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
9439
9754
|
deployContainer(containerId, containerDeployRequest, options) {
|
|
9440
9755
|
return localVarFp.deployContainer(containerId, containerDeployRequest, options).then((request) => request(axios, basePath));
|
|
9441
9756
|
},
|
|
9442
|
-
/**
|
|
9443
|
-
* You must provide the image tag.
|
|
9444
|
-
* @summary Deploy a preview environment with your container application
|
|
9445
|
-
* @param {string} containerId Container ID
|
|
9446
|
-
* @param {ContainerDeployRequest} [containerDeployRequest]
|
|
9447
|
-
* @param {*} [options] Override http request option.
|
|
9448
|
-
* @throws {RequiredError}
|
|
9449
|
-
*/
|
|
9450
|
-
previewEnvironmentContainer(containerId, containerDeployRequest, options) {
|
|
9451
|
-
return localVarFp.previewEnvironmentContainer(containerId, containerDeployRequest, options).then((request) => request(axios, basePath));
|
|
9452
|
-
},
|
|
9453
9757
|
/**
|
|
9454
9758
|
*
|
|
9455
9759
|
* @summary Restart container
|
|
@@ -9492,18 +9796,6 @@ class ContainerActionsApi extends base_1.BaseAPI {
|
|
|
9492
9796
|
deployContainer(containerId, containerDeployRequest, options) {
|
|
9493
9797
|
return (0, exports.ContainerActionsApiFp)(this.configuration).deployContainer(containerId, containerDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9494
9798
|
}
|
|
9495
|
-
/**
|
|
9496
|
-
* You must provide the image tag.
|
|
9497
|
-
* @summary Deploy a preview environment with your container application
|
|
9498
|
-
* @param {string} containerId Container ID
|
|
9499
|
-
* @param {ContainerDeployRequest} [containerDeployRequest]
|
|
9500
|
-
* @param {*} [options] Override http request option.
|
|
9501
|
-
* @throws {RequiredError}
|
|
9502
|
-
* @memberof ContainerActionsApi
|
|
9503
|
-
*/
|
|
9504
|
-
previewEnvironmentContainer(containerId, containerDeployRequest, options) {
|
|
9505
|
-
return (0, exports.ContainerActionsApiFp)(this.configuration).previewEnvironmentContainer(containerId, containerDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9506
|
-
}
|
|
9507
9799
|
/**
|
|
9508
9800
|
*
|
|
9509
9801
|
* @summary Restart container
|
|
@@ -10249,42 +10541,6 @@ exports.ContainerCustomDomainApi = ContainerCustomDomainApi;
|
|
|
10249
10541
|
*/
|
|
10250
10542
|
const ContainerDatabaseApiAxiosParamCreator = function (configuration) {
|
|
10251
10543
|
return {
|
|
10252
|
-
/**
|
|
10253
|
-
*
|
|
10254
|
-
* @summary Link a database to the container
|
|
10255
|
-
* @param {string} containerId Container ID
|
|
10256
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10257
|
-
* @param {*} [options] Override http request option.
|
|
10258
|
-
* @throws {RequiredError}
|
|
10259
|
-
*/
|
|
10260
|
-
attachDatabaseToContainer: (containerId, targetDatabaseId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10261
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
10262
|
-
(0, common_1.assertParamExists)('attachDatabaseToContainer', 'containerId', containerId);
|
|
10263
|
-
// verify required parameter 'targetDatabaseId' is not null or undefined
|
|
10264
|
-
(0, common_1.assertParamExists)('attachDatabaseToContainer', 'targetDatabaseId', targetDatabaseId);
|
|
10265
|
-
const localVarPath = `/container/{containerId}/database/{targetDatabaseId}`
|
|
10266
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
10267
|
-
.replace(`{${"targetDatabaseId"}}`, encodeURIComponent(String(targetDatabaseId)));
|
|
10268
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10269
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10270
|
-
let baseOptions;
|
|
10271
|
-
if (configuration) {
|
|
10272
|
-
baseOptions = configuration.baseOptions;
|
|
10273
|
-
}
|
|
10274
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10275
|
-
const localVarHeaderParameter = {};
|
|
10276
|
-
const localVarQueryParameter = {};
|
|
10277
|
-
// authentication bearerAuth required
|
|
10278
|
-
// http bearer authentication required
|
|
10279
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10280
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10281
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10282
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10283
|
-
return {
|
|
10284
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10285
|
-
options: localVarRequestOptions,
|
|
10286
|
-
};
|
|
10287
|
-
}),
|
|
10288
10544
|
/**
|
|
10289
10545
|
*
|
|
10290
10546
|
* @summary Link a logical database to the container
|
|
@@ -10321,38 +10577,6 @@ const ContainerDatabaseApiAxiosParamCreator = function (configuration) {
|
|
|
10321
10577
|
options: localVarRequestOptions,
|
|
10322
10578
|
};
|
|
10323
10579
|
}),
|
|
10324
|
-
/**
|
|
10325
|
-
*
|
|
10326
|
-
* @summary List linked databases
|
|
10327
|
-
* @param {string} containerId Container ID
|
|
10328
|
-
* @param {*} [options] Override http request option.
|
|
10329
|
-
* @throws {RequiredError}
|
|
10330
|
-
*/
|
|
10331
|
-
listContainerDatabase: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10332
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
10333
|
-
(0, common_1.assertParamExists)('listContainerDatabase', 'containerId', containerId);
|
|
10334
|
-
const localVarPath = `/container/{containerId}/database`
|
|
10335
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
10336
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10337
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10338
|
-
let baseOptions;
|
|
10339
|
-
if (configuration) {
|
|
10340
|
-
baseOptions = configuration.baseOptions;
|
|
10341
|
-
}
|
|
10342
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10343
|
-
const localVarHeaderParameter = {};
|
|
10344
|
-
const localVarQueryParameter = {};
|
|
10345
|
-
// authentication bearerAuth required
|
|
10346
|
-
// http bearer authentication required
|
|
10347
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10348
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10349
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10350
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10351
|
-
return {
|
|
10352
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10353
|
-
options: localVarRequestOptions,
|
|
10354
|
-
};
|
|
10355
|
-
}),
|
|
10356
10580
|
/**
|
|
10357
10581
|
*
|
|
10358
10582
|
* @summary List linked logical databases
|
|
@@ -10385,42 +10609,6 @@ const ContainerDatabaseApiAxiosParamCreator = function (configuration) {
|
|
|
10385
10609
|
options: localVarRequestOptions,
|
|
10386
10610
|
};
|
|
10387
10611
|
}),
|
|
10388
|
-
/**
|
|
10389
|
-
*
|
|
10390
|
-
* @summary Remove database link to this container.
|
|
10391
|
-
* @param {string} containerId Container ID
|
|
10392
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10393
|
-
* @param {*} [options] Override http request option.
|
|
10394
|
-
* @throws {RequiredError}
|
|
10395
|
-
*/
|
|
10396
|
-
removeDatabaseFromContainer: (containerId, targetDatabaseId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10397
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
10398
|
-
(0, common_1.assertParamExists)('removeDatabaseFromContainer', 'containerId', containerId);
|
|
10399
|
-
// verify required parameter 'targetDatabaseId' is not null or undefined
|
|
10400
|
-
(0, common_1.assertParamExists)('removeDatabaseFromContainer', 'targetDatabaseId', targetDatabaseId);
|
|
10401
|
-
const localVarPath = `/container/{containerId}/database/{targetDatabaseId}`
|
|
10402
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
10403
|
-
.replace(`{${"targetDatabaseId"}}`, encodeURIComponent(String(targetDatabaseId)));
|
|
10404
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10405
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10406
|
-
let baseOptions;
|
|
10407
|
-
if (configuration) {
|
|
10408
|
-
baseOptions = configuration.baseOptions;
|
|
10409
|
-
}
|
|
10410
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
10411
|
-
const localVarHeaderParameter = {};
|
|
10412
|
-
const localVarQueryParameter = {};
|
|
10413
|
-
// authentication bearerAuth required
|
|
10414
|
-
// http bearer authentication required
|
|
10415
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10416
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10418
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10419
|
-
return {
|
|
10420
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10421
|
-
options: localVarRequestOptions,
|
|
10422
|
-
};
|
|
10423
|
-
}),
|
|
10424
10612
|
/**
|
|
10425
10613
|
*
|
|
10426
10614
|
* @summary Remove logical database link to this container.
|
|
@@ -10467,20 +10655,6 @@ exports.ContainerDatabaseApiAxiosParamCreator = ContainerDatabaseApiAxiosParamCr
|
|
|
10467
10655
|
const ContainerDatabaseApiFp = function (configuration) {
|
|
10468
10656
|
const localVarAxiosParamCreator = (0, exports.ContainerDatabaseApiAxiosParamCreator)(configuration);
|
|
10469
10657
|
return {
|
|
10470
|
-
/**
|
|
10471
|
-
*
|
|
10472
|
-
* @summary Link a database to the container
|
|
10473
|
-
* @param {string} containerId Container ID
|
|
10474
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10475
|
-
* @param {*} [options] Override http request option.
|
|
10476
|
-
* @throws {RequiredError}
|
|
10477
|
-
*/
|
|
10478
|
-
attachDatabaseToContainer(containerId, targetDatabaseId, options) {
|
|
10479
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10480
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachDatabaseToContainer(containerId, targetDatabaseId, options);
|
|
10481
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10482
|
-
});
|
|
10483
|
-
},
|
|
10484
10658
|
/**
|
|
10485
10659
|
*
|
|
10486
10660
|
* @summary Link a logical database to the container
|
|
@@ -10495,19 +10669,6 @@ const ContainerDatabaseApiFp = function (configuration) {
|
|
|
10495
10669
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10496
10670
|
});
|
|
10497
10671
|
},
|
|
10498
|
-
/**
|
|
10499
|
-
*
|
|
10500
|
-
* @summary List linked databases
|
|
10501
|
-
* @param {string} containerId Container ID
|
|
10502
|
-
* @param {*} [options] Override http request option.
|
|
10503
|
-
* @throws {RequiredError}
|
|
10504
|
-
*/
|
|
10505
|
-
listContainerDatabase(containerId, options) {
|
|
10506
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10507
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerDatabase(containerId, options);
|
|
10508
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10509
|
-
});
|
|
10510
|
-
},
|
|
10511
10672
|
/**
|
|
10512
10673
|
*
|
|
10513
10674
|
* @summary List linked logical databases
|
|
@@ -10521,20 +10682,6 @@ const ContainerDatabaseApiFp = function (configuration) {
|
|
|
10521
10682
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10522
10683
|
});
|
|
10523
10684
|
},
|
|
10524
|
-
/**
|
|
10525
|
-
*
|
|
10526
|
-
* @summary Remove database link to this container.
|
|
10527
|
-
* @param {string} containerId Container ID
|
|
10528
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10529
|
-
* @param {*} [options] Override http request option.
|
|
10530
|
-
* @throws {RequiredError}
|
|
10531
|
-
*/
|
|
10532
|
-
removeDatabaseFromContainer(containerId, targetDatabaseId, options) {
|
|
10533
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10534
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeDatabaseFromContainer(containerId, targetDatabaseId, options);
|
|
10535
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10536
|
-
});
|
|
10537
|
-
},
|
|
10538
10685
|
/**
|
|
10539
10686
|
*
|
|
10540
10687
|
* @summary Remove logical database link to this container.
|
|
@@ -10559,17 +10706,6 @@ exports.ContainerDatabaseApiFp = ContainerDatabaseApiFp;
|
|
|
10559
10706
|
const ContainerDatabaseApiFactory = function (configuration, basePath, axios) {
|
|
10560
10707
|
const localVarFp = (0, exports.ContainerDatabaseApiFp)(configuration);
|
|
10561
10708
|
return {
|
|
10562
|
-
/**
|
|
10563
|
-
*
|
|
10564
|
-
* @summary Link a database to the container
|
|
10565
|
-
* @param {string} containerId Container ID
|
|
10566
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10567
|
-
* @param {*} [options] Override http request option.
|
|
10568
|
-
* @throws {RequiredError}
|
|
10569
|
-
*/
|
|
10570
|
-
attachDatabaseToContainer(containerId, targetDatabaseId, options) {
|
|
10571
|
-
return localVarFp.attachDatabaseToContainer(containerId, targetDatabaseId, options).then((request) => request(axios, basePath));
|
|
10572
|
-
},
|
|
10573
10709
|
/**
|
|
10574
10710
|
*
|
|
10575
10711
|
* @summary Link a logical database to the container
|
|
@@ -10581,16 +10717,6 @@ const ContainerDatabaseApiFactory = function (configuration, basePath, axios) {
|
|
|
10581
10717
|
attachLogicalDatabaseToContainer(containerId, targetLogicalDatabaseId, options) {
|
|
10582
10718
|
return localVarFp.attachLogicalDatabaseToContainer(containerId, targetLogicalDatabaseId, options).then((request) => request(axios, basePath));
|
|
10583
10719
|
},
|
|
10584
|
-
/**
|
|
10585
|
-
*
|
|
10586
|
-
* @summary List linked databases
|
|
10587
|
-
* @param {string} containerId Container ID
|
|
10588
|
-
* @param {*} [options] Override http request option.
|
|
10589
|
-
* @throws {RequiredError}
|
|
10590
|
-
*/
|
|
10591
|
-
listContainerDatabase(containerId, options) {
|
|
10592
|
-
return localVarFp.listContainerDatabase(containerId, options).then((request) => request(axios, basePath));
|
|
10593
|
-
},
|
|
10594
10720
|
/**
|
|
10595
10721
|
*
|
|
10596
10722
|
* @summary List linked logical databases
|
|
@@ -10601,17 +10727,6 @@ const ContainerDatabaseApiFactory = function (configuration, basePath, axios) {
|
|
|
10601
10727
|
listContainerLogicalDatabase(containerId, options) {
|
|
10602
10728
|
return localVarFp.listContainerLogicalDatabase(containerId, options).then((request) => request(axios, basePath));
|
|
10603
10729
|
},
|
|
10604
|
-
/**
|
|
10605
|
-
*
|
|
10606
|
-
* @summary Remove database link to this container.
|
|
10607
|
-
* @param {string} containerId Container ID
|
|
10608
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10609
|
-
* @param {*} [options] Override http request option.
|
|
10610
|
-
* @throws {RequiredError}
|
|
10611
|
-
*/
|
|
10612
|
-
removeDatabaseFromContainer(containerId, targetDatabaseId, options) {
|
|
10613
|
-
return localVarFp.removeDatabaseFromContainer(containerId, targetDatabaseId, options).then((request) => request(axios, basePath));
|
|
10614
|
-
},
|
|
10615
10730
|
/**
|
|
10616
10731
|
*
|
|
10617
10732
|
* @summary Remove logical database link to this container.
|
|
@@ -10635,21 +10750,9 @@ exports.ContainerDatabaseApiFactory = ContainerDatabaseApiFactory;
|
|
|
10635
10750
|
class ContainerDatabaseApi extends base_1.BaseAPI {
|
|
10636
10751
|
/**
|
|
10637
10752
|
*
|
|
10638
|
-
* @summary Link a database to the container
|
|
10753
|
+
* @summary Link a logical database to the container
|
|
10639
10754
|
* @param {string} containerId Container ID
|
|
10640
|
-
* @param {string}
|
|
10641
|
-
* @param {*} [options] Override http request option.
|
|
10642
|
-
* @throws {RequiredError}
|
|
10643
|
-
* @memberof ContainerDatabaseApi
|
|
10644
|
-
*/
|
|
10645
|
-
attachDatabaseToContainer(containerId, targetDatabaseId, options) {
|
|
10646
|
-
return (0, exports.ContainerDatabaseApiFp)(this.configuration).attachDatabaseToContainer(containerId, targetDatabaseId, options).then((request) => request(this.axios, this.basePath));
|
|
10647
|
-
}
|
|
10648
|
-
/**
|
|
10649
|
-
*
|
|
10650
|
-
* @summary Link a logical database to the container
|
|
10651
|
-
* @param {string} containerId Container ID
|
|
10652
|
-
* @param {string} targetLogicalDatabaseId Target database ID
|
|
10755
|
+
* @param {string} targetLogicalDatabaseId Target database ID
|
|
10653
10756
|
* @param {*} [options] Override http request option.
|
|
10654
10757
|
* @throws {RequiredError}
|
|
10655
10758
|
* @memberof ContainerDatabaseApi
|
|
@@ -10657,17 +10760,6 @@ class ContainerDatabaseApi extends base_1.BaseAPI {
|
|
|
10657
10760
|
attachLogicalDatabaseToContainer(containerId, targetLogicalDatabaseId, options) {
|
|
10658
10761
|
return (0, exports.ContainerDatabaseApiFp)(this.configuration).attachLogicalDatabaseToContainer(containerId, targetLogicalDatabaseId, options).then((request) => request(this.axios, this.basePath));
|
|
10659
10762
|
}
|
|
10660
|
-
/**
|
|
10661
|
-
*
|
|
10662
|
-
* @summary List linked databases
|
|
10663
|
-
* @param {string} containerId Container ID
|
|
10664
|
-
* @param {*} [options] Override http request option.
|
|
10665
|
-
* @throws {RequiredError}
|
|
10666
|
-
* @memberof ContainerDatabaseApi
|
|
10667
|
-
*/
|
|
10668
|
-
listContainerDatabase(containerId, options) {
|
|
10669
|
-
return (0, exports.ContainerDatabaseApiFp)(this.configuration).listContainerDatabase(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
10670
|
-
}
|
|
10671
10763
|
/**
|
|
10672
10764
|
*
|
|
10673
10765
|
* @summary List linked logical databases
|
|
@@ -10679,18 +10771,6 @@ class ContainerDatabaseApi extends base_1.BaseAPI {
|
|
|
10679
10771
|
listContainerLogicalDatabase(containerId, options) {
|
|
10680
10772
|
return (0, exports.ContainerDatabaseApiFp)(this.configuration).listContainerLogicalDatabase(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
10681
10773
|
}
|
|
10682
|
-
/**
|
|
10683
|
-
*
|
|
10684
|
-
* @summary Remove database link to this container.
|
|
10685
|
-
* @param {string} containerId Container ID
|
|
10686
|
-
* @param {string} targetDatabaseId Target database ID
|
|
10687
|
-
* @param {*} [options] Override http request option.
|
|
10688
|
-
* @throws {RequiredError}
|
|
10689
|
-
* @memberof ContainerDatabaseApi
|
|
10690
|
-
*/
|
|
10691
|
-
removeDatabaseFromContainer(containerId, targetDatabaseId, options) {
|
|
10692
|
-
return (0, exports.ContainerDatabaseApiFp)(this.configuration).removeDatabaseFromContainer(containerId, targetDatabaseId, options).then((request) => request(this.axios, this.basePath));
|
|
10693
|
-
}
|
|
10694
10774
|
/**
|
|
10695
10775
|
*
|
|
10696
10776
|
* @summary Remove logical database link to this container.
|
|
@@ -10715,14 +10795,18 @@ const ContainerDependencyApiAxiosParamCreator = function (configuration) {
|
|
|
10715
10795
|
* Add container dependency to this container to prevent this container starting before the linked dependencies
|
|
10716
10796
|
* @summary Add container dependency to this application.
|
|
10717
10797
|
* @param {string} containerId Container ID
|
|
10798
|
+
* @param {string} targetContainerId Target container ID
|
|
10718
10799
|
* @param {*} [options] Override http request option.
|
|
10719
10800
|
* @throws {RequiredError}
|
|
10720
10801
|
*/
|
|
10721
|
-
createContainerDependency: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10802
|
+
createContainerDependency: (containerId, targetContainerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10722
10803
|
// verify required parameter 'containerId' is not null or undefined
|
|
10723
10804
|
(0, common_1.assertParamExists)('createContainerDependency', 'containerId', containerId);
|
|
10805
|
+
// verify required parameter 'targetContainerId' is not null or undefined
|
|
10806
|
+
(0, common_1.assertParamExists)('createContainerDependency', 'targetContainerId', targetContainerId);
|
|
10724
10807
|
const localVarPath = `/container/{containerId}/dependency/{targetContainerId}`
|
|
10725
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
10808
|
+
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
10809
|
+
.replace(`{${"targetContainerId"}}`, encodeURIComponent(String(targetContainerId)));
|
|
10726
10810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10727
10811
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10728
10812
|
let baseOptions;
|
|
@@ -10821,12 +10905,13 @@ const ContainerDependencyApiFp = function (configuration) {
|
|
|
10821
10905
|
* Add container dependency to this container to prevent this container starting before the linked dependencies
|
|
10822
10906
|
* @summary Add container dependency to this application.
|
|
10823
10907
|
* @param {string} containerId Container ID
|
|
10908
|
+
* @param {string} targetContainerId Target container ID
|
|
10824
10909
|
* @param {*} [options] Override http request option.
|
|
10825
10910
|
* @throws {RequiredError}
|
|
10826
10911
|
*/
|
|
10827
|
-
createContainerDependency(containerId, options) {
|
|
10912
|
+
createContainerDependency(containerId, targetContainerId, options) {
|
|
10828
10913
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10829
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createContainerDependency(containerId, options);
|
|
10914
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createContainerDependency(containerId, targetContainerId, options);
|
|
10830
10915
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10831
10916
|
});
|
|
10832
10917
|
},
|
|
@@ -10870,11 +10955,12 @@ const ContainerDependencyApiFactory = function (configuration, basePath, axios)
|
|
|
10870
10955
|
* Add container dependency to this container to prevent this container starting before the linked dependencies
|
|
10871
10956
|
* @summary Add container dependency to this application.
|
|
10872
10957
|
* @param {string} containerId Container ID
|
|
10958
|
+
* @param {string} targetContainerId Target container ID
|
|
10873
10959
|
* @param {*} [options] Override http request option.
|
|
10874
10960
|
* @throws {RequiredError}
|
|
10875
10961
|
*/
|
|
10876
|
-
createContainerDependency(containerId, options) {
|
|
10877
|
-
return localVarFp.createContainerDependency(containerId, options).then((request) => request(axios, basePath));
|
|
10962
|
+
createContainerDependency(containerId, targetContainerId, options) {
|
|
10963
|
+
return localVarFp.createContainerDependency(containerId, targetContainerId, options).then((request) => request(axios, basePath));
|
|
10878
10964
|
},
|
|
10879
10965
|
/**
|
|
10880
10966
|
*
|
|
@@ -10910,12 +10996,13 @@ class ContainerDependencyApi extends base_1.BaseAPI {
|
|
|
10910
10996
|
* Add container dependency to this container to prevent this container starting before the linked dependencies
|
|
10911
10997
|
* @summary Add container dependency to this application.
|
|
10912
10998
|
* @param {string} containerId Container ID
|
|
10999
|
+
* @param {string} targetContainerId Target container ID
|
|
10913
11000
|
* @param {*} [options] Override http request option.
|
|
10914
11001
|
* @throws {RequiredError}
|
|
10915
11002
|
* @memberof ContainerDependencyApi
|
|
10916
11003
|
*/
|
|
10917
|
-
createContainerDependency(containerId, options) {
|
|
10918
|
-
return (0, exports.ContainerDependencyApiFp)(this.configuration).createContainerDependency(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
11004
|
+
createContainerDependency(containerId, targetContainerId, options) {
|
|
11005
|
+
return (0, exports.ContainerDependencyApiFp)(this.configuration).createContainerDependency(containerId, targetContainerId, options).then((request) => request(this.axios, this.basePath));
|
|
10919
11006
|
}
|
|
10920
11007
|
/**
|
|
10921
11008
|
*
|
|
@@ -10942,128 +11029,22 @@ class ContainerDependencyApi extends base_1.BaseAPI {
|
|
|
10942
11029
|
}
|
|
10943
11030
|
exports.ContainerDependencyApi = ContainerDependencyApi;
|
|
10944
11031
|
/**
|
|
10945
|
-
*
|
|
11032
|
+
* ContainerDeploymentHistoryApi - axios parameter creator
|
|
10946
11033
|
* @export
|
|
10947
11034
|
*/
|
|
10948
|
-
const
|
|
11035
|
+
const ContainerDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
10949
11036
|
return {
|
|
10950
11037
|
/**
|
|
10951
|
-
*
|
|
10952
|
-
* @summary
|
|
10953
|
-
* @param {string} containerId Container ID
|
|
10954
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
10955
|
-
* @param {*} [options] Override http request option.
|
|
10956
|
-
* @throws {RequiredError}
|
|
10957
|
-
*/
|
|
10958
|
-
createContainerDeploymentRestriction: (containerId, containerDeploymentRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10959
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
10960
|
-
(0, common_1.assertParamExists)('createContainerDeploymentRestriction', 'containerId', containerId);
|
|
10961
|
-
const localVarPath = `/container/{containerId}/deploymentRestriction`
|
|
10962
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
10963
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10964
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10965
|
-
let baseOptions;
|
|
10966
|
-
if (configuration) {
|
|
10967
|
-
baseOptions = configuration.baseOptions;
|
|
10968
|
-
}
|
|
10969
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10970
|
-
const localVarHeaderParameter = {};
|
|
10971
|
-
const localVarQueryParameter = {};
|
|
10972
|
-
// authentication bearerAuth required
|
|
10973
|
-
// http bearer authentication required
|
|
10974
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10975
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10976
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10977
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10978
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10979
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(containerDeploymentRestrictionRequest, localVarRequestOptions, configuration);
|
|
10980
|
-
return {
|
|
10981
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10982
|
-
options: localVarRequestOptions,
|
|
10983
|
-
};
|
|
10984
|
-
}),
|
|
10985
|
-
/**
|
|
10986
|
-
* Delete a container deployment restriction
|
|
10987
|
-
* @summary Delete a container deployment restriction
|
|
11038
|
+
* Returns the 20 last container deployments
|
|
11039
|
+
* @summary List container deployments
|
|
10988
11040
|
* @param {string} containerId Container ID
|
|
10989
11041
|
* @param {*} [options] Override http request option.
|
|
10990
11042
|
* @throws {RequiredError}
|
|
10991
11043
|
*/
|
|
10992
|
-
|
|
11044
|
+
listContainerDeploymentHistory: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10993
11045
|
// verify required parameter 'containerId' is not null or undefined
|
|
10994
|
-
(0, common_1.assertParamExists)('
|
|
10995
|
-
const localVarPath = `/container/{containerId}/
|
|
10996
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
10997
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10998
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10999
|
-
let baseOptions;
|
|
11000
|
-
if (configuration) {
|
|
11001
|
-
baseOptions = configuration.baseOptions;
|
|
11002
|
-
}
|
|
11003
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11004
|
-
const localVarHeaderParameter = {};
|
|
11005
|
-
const localVarQueryParameter = {};
|
|
11006
|
-
// authentication bearerAuth required
|
|
11007
|
-
// http bearer authentication required
|
|
11008
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11009
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11010
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11011
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11012
|
-
return {
|
|
11013
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11014
|
-
options: localVarRequestOptions,
|
|
11015
|
-
};
|
|
11016
|
-
}),
|
|
11017
|
-
/**
|
|
11018
|
-
* Edit a container deployment restriction
|
|
11019
|
-
* @summary Edit a container deployment restriction
|
|
11020
|
-
* @param {string} containerId Container ID
|
|
11021
|
-
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
11022
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11023
|
-
* @param {*} [options] Override http request option.
|
|
11024
|
-
* @throws {RequiredError}
|
|
11025
|
-
*/
|
|
11026
|
-
editContainerDeploymentRestriction: (containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11027
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
11028
|
-
(0, common_1.assertParamExists)('editContainerDeploymentRestriction', 'containerId', containerId);
|
|
11029
|
-
// verify required parameter 'deploymentRestrictionId' is not null or undefined
|
|
11030
|
-
(0, common_1.assertParamExists)('editContainerDeploymentRestriction', 'deploymentRestrictionId', deploymentRestrictionId);
|
|
11031
|
-
const localVarPath = `/container/{containerId}/deploymentRestriction/{deploymentRestrictionId}`
|
|
11032
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
11033
|
-
.replace(`{${"deploymentRestrictionId"}}`, encodeURIComponent(String(deploymentRestrictionId)));
|
|
11034
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11035
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11036
|
-
let baseOptions;
|
|
11037
|
-
if (configuration) {
|
|
11038
|
-
baseOptions = configuration.baseOptions;
|
|
11039
|
-
}
|
|
11040
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
11041
|
-
const localVarHeaderParameter = {};
|
|
11042
|
-
const localVarQueryParameter = {};
|
|
11043
|
-
// authentication bearerAuth required
|
|
11044
|
-
// http bearer authentication required
|
|
11045
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11046
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11047
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11048
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11049
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11050
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(containerDeploymentRestrictionRequest, localVarRequestOptions, configuration);
|
|
11051
|
-
return {
|
|
11052
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11053
|
-
options: localVarRequestOptions,
|
|
11054
|
-
};
|
|
11055
|
-
}),
|
|
11056
|
-
/**
|
|
11057
|
-
* Get container deployment restrictions
|
|
11058
|
-
* @summary Get container deployment restrictions
|
|
11059
|
-
* @param {string} containerId Container ID
|
|
11060
|
-
* @param {*} [options] Override http request option.
|
|
11061
|
-
* @throws {RequiredError}
|
|
11062
|
-
*/
|
|
11063
|
-
getContainerDeploymentRestrictions: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11064
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
11065
|
-
(0, common_1.assertParamExists)('getContainerDeploymentRestrictions', 'containerId', containerId);
|
|
11066
|
-
const localVarPath = `/container/{containerId}/deploymentRestriction`
|
|
11046
|
+
(0, common_1.assertParamExists)('listContainerDeploymentHistory', 'containerId', containerId);
|
|
11047
|
+
const localVarPath = `/container/{containerId}/deploymentHistory`
|
|
11067
11048
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
11068
11049
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11069
11050
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11087,181 +11068,70 @@ const ContainerDeploymentRestrictionApiAxiosParamCreator = function (configurati
|
|
|
11087
11068
|
}),
|
|
11088
11069
|
};
|
|
11089
11070
|
};
|
|
11090
|
-
exports.
|
|
11071
|
+
exports.ContainerDeploymentHistoryApiAxiosParamCreator = ContainerDeploymentHistoryApiAxiosParamCreator;
|
|
11091
11072
|
/**
|
|
11092
|
-
*
|
|
11073
|
+
* ContainerDeploymentHistoryApi - functional programming interface
|
|
11093
11074
|
* @export
|
|
11094
11075
|
*/
|
|
11095
|
-
const
|
|
11096
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
11076
|
+
const ContainerDeploymentHistoryApiFp = function (configuration) {
|
|
11077
|
+
const localVarAxiosParamCreator = (0, exports.ContainerDeploymentHistoryApiAxiosParamCreator)(configuration);
|
|
11097
11078
|
return {
|
|
11098
11079
|
/**
|
|
11099
|
-
*
|
|
11100
|
-
* @summary
|
|
11101
|
-
* @param {string} containerId Container ID
|
|
11102
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11103
|
-
* @param {*} [options] Override http request option.
|
|
11104
|
-
* @throws {RequiredError}
|
|
11105
|
-
*/
|
|
11106
|
-
createContainerDeploymentRestriction(containerId, containerDeploymentRestrictionRequest, options) {
|
|
11107
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11108
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createContainerDeploymentRestriction(containerId, containerDeploymentRestrictionRequest, options);
|
|
11109
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11110
|
-
});
|
|
11111
|
-
},
|
|
11112
|
-
/**
|
|
11113
|
-
* Delete a container deployment restriction
|
|
11114
|
-
* @summary Delete a container deployment restriction
|
|
11115
|
-
* @param {string} containerId Container ID
|
|
11116
|
-
* @param {*} [options] Override http request option.
|
|
11117
|
-
* @throws {RequiredError}
|
|
11118
|
-
*/
|
|
11119
|
-
deleteContainerDeploymentRestriction(containerId, options) {
|
|
11120
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11121
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteContainerDeploymentRestriction(containerId, options);
|
|
11122
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11123
|
-
});
|
|
11124
|
-
},
|
|
11125
|
-
/**
|
|
11126
|
-
* Edit a container deployment restriction
|
|
11127
|
-
* @summary Edit a container deployment restriction
|
|
11128
|
-
* @param {string} containerId Container ID
|
|
11129
|
-
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
11130
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11131
|
-
* @param {*} [options] Override http request option.
|
|
11132
|
-
* @throws {RequiredError}
|
|
11133
|
-
*/
|
|
11134
|
-
editContainerDeploymentRestriction(containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options) {
|
|
11135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11136
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editContainerDeploymentRestriction(containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options);
|
|
11137
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11138
|
-
});
|
|
11139
|
-
},
|
|
11140
|
-
/**
|
|
11141
|
-
* Get container deployment restrictions
|
|
11142
|
-
* @summary Get container deployment restrictions
|
|
11080
|
+
* Returns the 20 last container deployments
|
|
11081
|
+
* @summary List container deployments
|
|
11143
11082
|
* @param {string} containerId Container ID
|
|
11144
11083
|
* @param {*} [options] Override http request option.
|
|
11145
11084
|
* @throws {RequiredError}
|
|
11146
11085
|
*/
|
|
11147
|
-
|
|
11086
|
+
listContainerDeploymentHistory(containerId, options) {
|
|
11148
11087
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11149
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11088
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerDeploymentHistory(containerId, options);
|
|
11150
11089
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11151
11090
|
});
|
|
11152
11091
|
},
|
|
11153
11092
|
};
|
|
11154
11093
|
};
|
|
11155
|
-
exports.
|
|
11094
|
+
exports.ContainerDeploymentHistoryApiFp = ContainerDeploymentHistoryApiFp;
|
|
11156
11095
|
/**
|
|
11157
|
-
*
|
|
11096
|
+
* ContainerDeploymentHistoryApi - factory interface
|
|
11158
11097
|
* @export
|
|
11159
11098
|
*/
|
|
11160
|
-
const
|
|
11161
|
-
const localVarFp = (0, exports.
|
|
11099
|
+
const ContainerDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
|
|
11100
|
+
const localVarFp = (0, exports.ContainerDeploymentHistoryApiFp)(configuration);
|
|
11162
11101
|
return {
|
|
11163
11102
|
/**
|
|
11164
|
-
*
|
|
11165
|
-
* @summary
|
|
11166
|
-
* @param {string} containerId Container ID
|
|
11167
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11168
|
-
* @param {*} [options] Override http request option.
|
|
11169
|
-
* @throws {RequiredError}
|
|
11170
|
-
*/
|
|
11171
|
-
createContainerDeploymentRestriction(containerId, containerDeploymentRestrictionRequest, options) {
|
|
11172
|
-
return localVarFp.createContainerDeploymentRestriction(containerId, containerDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
11173
|
-
},
|
|
11174
|
-
/**
|
|
11175
|
-
* Delete a container deployment restriction
|
|
11176
|
-
* @summary Delete a container deployment restriction
|
|
11177
|
-
* @param {string} containerId Container ID
|
|
11178
|
-
* @param {*} [options] Override http request option.
|
|
11179
|
-
* @throws {RequiredError}
|
|
11180
|
-
*/
|
|
11181
|
-
deleteContainerDeploymentRestriction(containerId, options) {
|
|
11182
|
-
return localVarFp.deleteContainerDeploymentRestriction(containerId, options).then((request) => request(axios, basePath));
|
|
11183
|
-
},
|
|
11184
|
-
/**
|
|
11185
|
-
* Edit a container deployment restriction
|
|
11186
|
-
* @summary Edit a container deployment restriction
|
|
11187
|
-
* @param {string} containerId Container ID
|
|
11188
|
-
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
11189
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11190
|
-
* @param {*} [options] Override http request option.
|
|
11191
|
-
* @throws {RequiredError}
|
|
11192
|
-
*/
|
|
11193
|
-
editContainerDeploymentRestriction(containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options) {
|
|
11194
|
-
return localVarFp.editContainerDeploymentRestriction(containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options).then((request) => request(axios, basePath));
|
|
11195
|
-
},
|
|
11196
|
-
/**
|
|
11197
|
-
* Get container deployment restrictions
|
|
11198
|
-
* @summary Get container deployment restrictions
|
|
11103
|
+
* Returns the 20 last container deployments
|
|
11104
|
+
* @summary List container deployments
|
|
11199
11105
|
* @param {string} containerId Container ID
|
|
11200
11106
|
* @param {*} [options] Override http request option.
|
|
11201
11107
|
* @throws {RequiredError}
|
|
11202
11108
|
*/
|
|
11203
|
-
|
|
11204
|
-
return localVarFp.
|
|
11109
|
+
listContainerDeploymentHistory(containerId, options) {
|
|
11110
|
+
return localVarFp.listContainerDeploymentHistory(containerId, options).then((request) => request(axios, basePath));
|
|
11205
11111
|
},
|
|
11206
11112
|
};
|
|
11207
11113
|
};
|
|
11208
|
-
exports.
|
|
11114
|
+
exports.ContainerDeploymentHistoryApiFactory = ContainerDeploymentHistoryApiFactory;
|
|
11209
11115
|
/**
|
|
11210
|
-
*
|
|
11116
|
+
* ContainerDeploymentHistoryApi - object-oriented interface
|
|
11211
11117
|
* @export
|
|
11212
|
-
* @class
|
|
11118
|
+
* @class ContainerDeploymentHistoryApi
|
|
11213
11119
|
* @extends {BaseAPI}
|
|
11214
11120
|
*/
|
|
11215
|
-
class
|
|
11216
|
-
/**
|
|
11217
|
-
* Create an container deployment restriction
|
|
11218
|
-
* @summary Create an container deployment restriction
|
|
11219
|
-
* @param {string} containerId Container ID
|
|
11220
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11221
|
-
* @param {*} [options] Override http request option.
|
|
11222
|
-
* @throws {RequiredError}
|
|
11223
|
-
* @memberof ContainerDeploymentRestrictionApi
|
|
11224
|
-
*/
|
|
11225
|
-
createContainerDeploymentRestriction(containerId, containerDeploymentRestrictionRequest, options) {
|
|
11226
|
-
return (0, exports.ContainerDeploymentRestrictionApiFp)(this.configuration).createContainerDeploymentRestriction(containerId, containerDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11227
|
-
}
|
|
11228
|
-
/**
|
|
11229
|
-
* Delete a container deployment restriction
|
|
11230
|
-
* @summary Delete a container deployment restriction
|
|
11231
|
-
* @param {string} containerId Container ID
|
|
11232
|
-
* @param {*} [options] Override http request option.
|
|
11233
|
-
* @throws {RequiredError}
|
|
11234
|
-
* @memberof ContainerDeploymentRestrictionApi
|
|
11235
|
-
*/
|
|
11236
|
-
deleteContainerDeploymentRestriction(containerId, options) {
|
|
11237
|
-
return (0, exports.ContainerDeploymentRestrictionApiFp)(this.configuration).deleteContainerDeploymentRestriction(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
11238
|
-
}
|
|
11239
|
-
/**
|
|
11240
|
-
* Edit a container deployment restriction
|
|
11241
|
-
* @summary Edit a container deployment restriction
|
|
11242
|
-
* @param {string} containerId Container ID
|
|
11243
|
-
* @param {string} deploymentRestrictionId Deployment Restriction ID
|
|
11244
|
-
* @param {ContainerDeploymentRestrictionRequest} [containerDeploymentRestrictionRequest]
|
|
11245
|
-
* @param {*} [options] Override http request option.
|
|
11246
|
-
* @throws {RequiredError}
|
|
11247
|
-
* @memberof ContainerDeploymentRestrictionApi
|
|
11248
|
-
*/
|
|
11249
|
-
editContainerDeploymentRestriction(containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options) {
|
|
11250
|
-
return (0, exports.ContainerDeploymentRestrictionApiFp)(this.configuration).editContainerDeploymentRestriction(containerId, deploymentRestrictionId, containerDeploymentRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11251
|
-
}
|
|
11121
|
+
class ContainerDeploymentHistoryApi extends base_1.BaseAPI {
|
|
11252
11122
|
/**
|
|
11253
|
-
*
|
|
11254
|
-
* @summary
|
|
11123
|
+
* Returns the 20 last container deployments
|
|
11124
|
+
* @summary List container deployments
|
|
11255
11125
|
* @param {string} containerId Container ID
|
|
11256
11126
|
* @param {*} [options] Override http request option.
|
|
11257
11127
|
* @throws {RequiredError}
|
|
11258
|
-
* @memberof
|
|
11128
|
+
* @memberof ContainerDeploymentHistoryApi
|
|
11259
11129
|
*/
|
|
11260
|
-
|
|
11261
|
-
return (0, exports.
|
|
11130
|
+
listContainerDeploymentHistory(containerId, options) {
|
|
11131
|
+
return (0, exports.ContainerDeploymentHistoryApiFp)(this.configuration).listContainerDeploymentHistory(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
11262
11132
|
}
|
|
11263
11133
|
}
|
|
11264
|
-
exports.
|
|
11134
|
+
exports.ContainerDeploymentHistoryApi = ContainerDeploymentHistoryApi;
|
|
11265
11135
|
/**
|
|
11266
11136
|
* ContainerEnvironmentVariableApi - axios parameter creator
|
|
11267
11137
|
* @export
|
|
@@ -11823,23 +11693,22 @@ class ContainerEnvironmentVariableApi extends base_1.BaseAPI {
|
|
|
11823
11693
|
}
|
|
11824
11694
|
exports.ContainerEnvironmentVariableApi = ContainerEnvironmentVariableApi;
|
|
11825
11695
|
/**
|
|
11826
|
-
*
|
|
11696
|
+
* ContainerLogsApi - axios parameter creator
|
|
11827
11697
|
* @export
|
|
11828
11698
|
*/
|
|
11829
|
-
const
|
|
11699
|
+
const ContainerLogsApiAxiosParamCreator = function (configuration) {
|
|
11830
11700
|
return {
|
|
11831
11701
|
/**
|
|
11832
|
-
*
|
|
11833
|
-
* @summary List
|
|
11702
|
+
* This will list the last 1000 logs of the container
|
|
11703
|
+
* @summary List logs
|
|
11834
11704
|
* @param {string} containerId Container ID
|
|
11835
|
-
* @param {string} [startId] Starting point after which to return results
|
|
11836
11705
|
* @param {*} [options] Override http request option.
|
|
11837
11706
|
* @throws {RequiredError}
|
|
11838
11707
|
*/
|
|
11839
|
-
|
|
11708
|
+
listContainerLog: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11840
11709
|
// verify required parameter 'containerId' is not null or undefined
|
|
11841
|
-
(0, common_1.assertParamExists)('
|
|
11842
|
-
const localVarPath = `/container/{containerId}/
|
|
11710
|
+
(0, common_1.assertParamExists)('listContainerLog', 'containerId', containerId);
|
|
11711
|
+
const localVarPath = `/container/{containerId}/log`
|
|
11843
11712
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
11844
11713
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11845
11714
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11853,9 +11722,6 @@ const ContainerEventApiAxiosParamCreator = function (configuration) {
|
|
|
11853
11722
|
// authentication bearerAuth required
|
|
11854
11723
|
// http bearer authentication required
|
|
11855
11724
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11856
|
-
if (startId !== undefined) {
|
|
11857
|
-
localVarQueryParameter['startId'] = startId;
|
|
11858
|
-
}
|
|
11859
11725
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11860
11726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11861
11727
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11866,90 +11732,87 @@ const ContainerEventApiAxiosParamCreator = function (configuration) {
|
|
|
11866
11732
|
}),
|
|
11867
11733
|
};
|
|
11868
11734
|
};
|
|
11869
|
-
exports.
|
|
11735
|
+
exports.ContainerLogsApiAxiosParamCreator = ContainerLogsApiAxiosParamCreator;
|
|
11870
11736
|
/**
|
|
11871
|
-
*
|
|
11737
|
+
* ContainerLogsApi - functional programming interface
|
|
11872
11738
|
* @export
|
|
11873
11739
|
*/
|
|
11874
|
-
const
|
|
11875
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
11740
|
+
const ContainerLogsApiFp = function (configuration) {
|
|
11741
|
+
const localVarAxiosParamCreator = (0, exports.ContainerLogsApiAxiosParamCreator)(configuration);
|
|
11876
11742
|
return {
|
|
11877
11743
|
/**
|
|
11878
|
-
*
|
|
11879
|
-
* @summary List
|
|
11744
|
+
* This will list the last 1000 logs of the container
|
|
11745
|
+
* @summary List logs
|
|
11880
11746
|
* @param {string} containerId Container ID
|
|
11881
|
-
* @param {string} [startId] Starting point after which to return results
|
|
11882
11747
|
* @param {*} [options] Override http request option.
|
|
11883
11748
|
* @throws {RequiredError}
|
|
11884
11749
|
*/
|
|
11885
|
-
|
|
11750
|
+
listContainerLog(containerId, options) {
|
|
11886
11751
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11887
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11752
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerLog(containerId, options);
|
|
11888
11753
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11889
11754
|
});
|
|
11890
11755
|
},
|
|
11891
11756
|
};
|
|
11892
11757
|
};
|
|
11893
|
-
exports.
|
|
11758
|
+
exports.ContainerLogsApiFp = ContainerLogsApiFp;
|
|
11894
11759
|
/**
|
|
11895
|
-
*
|
|
11760
|
+
* ContainerLogsApi - factory interface
|
|
11896
11761
|
* @export
|
|
11897
11762
|
*/
|
|
11898
|
-
const
|
|
11899
|
-
const localVarFp = (0, exports.
|
|
11763
|
+
const ContainerLogsApiFactory = function (configuration, basePath, axios) {
|
|
11764
|
+
const localVarFp = (0, exports.ContainerLogsApiFp)(configuration);
|
|
11900
11765
|
return {
|
|
11901
11766
|
/**
|
|
11902
|
-
*
|
|
11903
|
-
* @summary List
|
|
11767
|
+
* This will list the last 1000 logs of the container
|
|
11768
|
+
* @summary List logs
|
|
11904
11769
|
* @param {string} containerId Container ID
|
|
11905
|
-
* @param {string} [startId] Starting point after which to return results
|
|
11906
11770
|
* @param {*} [options] Override http request option.
|
|
11907
11771
|
* @throws {RequiredError}
|
|
11908
11772
|
*/
|
|
11909
|
-
|
|
11910
|
-
return localVarFp.
|
|
11773
|
+
listContainerLog(containerId, options) {
|
|
11774
|
+
return localVarFp.listContainerLog(containerId, options).then((request) => request(axios, basePath));
|
|
11911
11775
|
},
|
|
11912
11776
|
};
|
|
11913
11777
|
};
|
|
11914
|
-
exports.
|
|
11778
|
+
exports.ContainerLogsApiFactory = ContainerLogsApiFactory;
|
|
11915
11779
|
/**
|
|
11916
|
-
*
|
|
11780
|
+
* ContainerLogsApi - object-oriented interface
|
|
11917
11781
|
* @export
|
|
11918
|
-
* @class
|
|
11782
|
+
* @class ContainerLogsApi
|
|
11919
11783
|
* @extends {BaseAPI}
|
|
11920
11784
|
*/
|
|
11921
|
-
class
|
|
11785
|
+
class ContainerLogsApi extends base_1.BaseAPI {
|
|
11922
11786
|
/**
|
|
11923
|
-
*
|
|
11924
|
-
* @summary List
|
|
11787
|
+
* This will list the last 1000 logs of the container
|
|
11788
|
+
* @summary List logs
|
|
11925
11789
|
* @param {string} containerId Container ID
|
|
11926
|
-
* @param {string} [startId] Starting point after which to return results
|
|
11927
11790
|
* @param {*} [options] Override http request option.
|
|
11928
11791
|
* @throws {RequiredError}
|
|
11929
|
-
* @memberof
|
|
11792
|
+
* @memberof ContainerLogsApi
|
|
11930
11793
|
*/
|
|
11931
|
-
|
|
11932
|
-
return (0, exports.
|
|
11794
|
+
listContainerLog(containerId, options) {
|
|
11795
|
+
return (0, exports.ContainerLogsApiFp)(this.configuration).listContainerLog(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
11933
11796
|
}
|
|
11934
11797
|
}
|
|
11935
|
-
exports.
|
|
11798
|
+
exports.ContainerLogsApi = ContainerLogsApi;
|
|
11936
11799
|
/**
|
|
11937
|
-
*
|
|
11800
|
+
* ContainerMainCallsApi - axios parameter creator
|
|
11938
11801
|
* @export
|
|
11939
11802
|
*/
|
|
11940
|
-
const
|
|
11803
|
+
const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
|
|
11941
11804
|
return {
|
|
11942
11805
|
/**
|
|
11943
|
-
*
|
|
11944
|
-
* @summary
|
|
11806
|
+
* To delete the container you must have the admin permission
|
|
11807
|
+
* @summary Delete container
|
|
11945
11808
|
* @param {string} containerId Container ID
|
|
11946
11809
|
* @param {*} [options] Override http request option.
|
|
11947
11810
|
* @throws {RequiredError}
|
|
11948
11811
|
*/
|
|
11949
|
-
|
|
11812
|
+
deleteContainer: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11950
11813
|
// verify required parameter 'containerId' is not null or undefined
|
|
11951
|
-
(0, common_1.assertParamExists)('
|
|
11952
|
-
const localVarPath = `/container/{containerId}
|
|
11814
|
+
(0, common_1.assertParamExists)('deleteContainer', 'containerId', containerId);
|
|
11815
|
+
const localVarPath = `/container/{containerId}`
|
|
11953
11816
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
11954
11817
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11955
11818
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11957,182 +11820,7 @@ const ContainerLogsApiAxiosParamCreator = function (configuration) {
|
|
|
11957
11820
|
if (configuration) {
|
|
11958
11821
|
baseOptions = configuration.baseOptions;
|
|
11959
11822
|
}
|
|
11960
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11961
|
-
const localVarHeaderParameter = {};
|
|
11962
|
-
const localVarQueryParameter = {};
|
|
11963
|
-
// authentication bearerAuth required
|
|
11964
|
-
// http bearer authentication required
|
|
11965
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11966
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11967
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11968
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11969
|
-
return {
|
|
11970
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11971
|
-
options: localVarRequestOptions,
|
|
11972
|
-
};
|
|
11973
|
-
}),
|
|
11974
|
-
};
|
|
11975
|
-
};
|
|
11976
|
-
exports.ContainerLogsApiAxiosParamCreator = ContainerLogsApiAxiosParamCreator;
|
|
11977
|
-
/**
|
|
11978
|
-
* ContainerLogsApi - functional programming interface
|
|
11979
|
-
* @export
|
|
11980
|
-
*/
|
|
11981
|
-
const ContainerLogsApiFp = function (configuration) {
|
|
11982
|
-
const localVarAxiosParamCreator = (0, exports.ContainerLogsApiAxiosParamCreator)(configuration);
|
|
11983
|
-
return {
|
|
11984
|
-
/**
|
|
11985
|
-
* This will list the last 1000 logs of the container
|
|
11986
|
-
* @summary List logs
|
|
11987
|
-
* @param {string} containerId Container ID
|
|
11988
|
-
* @param {*} [options] Override http request option.
|
|
11989
|
-
* @throws {RequiredError}
|
|
11990
|
-
*/
|
|
11991
|
-
listContainerLog(containerId, options) {
|
|
11992
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11993
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerLog(containerId, options);
|
|
11994
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11995
|
-
});
|
|
11996
|
-
},
|
|
11997
|
-
};
|
|
11998
|
-
};
|
|
11999
|
-
exports.ContainerLogsApiFp = ContainerLogsApiFp;
|
|
12000
|
-
/**
|
|
12001
|
-
* ContainerLogsApi - factory interface
|
|
12002
|
-
* @export
|
|
12003
|
-
*/
|
|
12004
|
-
const ContainerLogsApiFactory = function (configuration, basePath, axios) {
|
|
12005
|
-
const localVarFp = (0, exports.ContainerLogsApiFp)(configuration);
|
|
12006
|
-
return {
|
|
12007
|
-
/**
|
|
12008
|
-
* This will list the last 1000 logs of the container
|
|
12009
|
-
* @summary List logs
|
|
12010
|
-
* @param {string} containerId Container ID
|
|
12011
|
-
* @param {*} [options] Override http request option.
|
|
12012
|
-
* @throws {RequiredError}
|
|
12013
|
-
*/
|
|
12014
|
-
listContainerLog(containerId, options) {
|
|
12015
|
-
return localVarFp.listContainerLog(containerId, options).then((request) => request(axios, basePath));
|
|
12016
|
-
},
|
|
12017
|
-
};
|
|
12018
|
-
};
|
|
12019
|
-
exports.ContainerLogsApiFactory = ContainerLogsApiFactory;
|
|
12020
|
-
/**
|
|
12021
|
-
* ContainerLogsApi - object-oriented interface
|
|
12022
|
-
* @export
|
|
12023
|
-
* @class ContainerLogsApi
|
|
12024
|
-
* @extends {BaseAPI}
|
|
12025
|
-
*/
|
|
12026
|
-
class ContainerLogsApi extends base_1.BaseAPI {
|
|
12027
|
-
/**
|
|
12028
|
-
* This will list the last 1000 logs of the container
|
|
12029
|
-
* @summary List logs
|
|
12030
|
-
* @param {string} containerId Container ID
|
|
12031
|
-
* @param {*} [options] Override http request option.
|
|
12032
|
-
* @throws {RequiredError}
|
|
12033
|
-
* @memberof ContainerLogsApi
|
|
12034
|
-
*/
|
|
12035
|
-
listContainerLog(containerId, options) {
|
|
12036
|
-
return (0, exports.ContainerLogsApiFp)(this.configuration).listContainerLog(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12037
|
-
}
|
|
12038
|
-
}
|
|
12039
|
-
exports.ContainerLogsApi = ContainerLogsApi;
|
|
12040
|
-
/**
|
|
12041
|
-
* ContainerMainCallsApi - axios parameter creator
|
|
12042
|
-
* @export
|
|
12043
|
-
*/
|
|
12044
|
-
const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
|
|
12045
|
-
return {
|
|
12046
|
-
/**
|
|
12047
|
-
*
|
|
12048
|
-
* @summary Add container tag
|
|
12049
|
-
* @param {string} containerId Container ID
|
|
12050
|
-
* @param {TagRequest} [tagRequest]
|
|
12051
|
-
* @param {*} [options] Override http request option.
|
|
12052
|
-
* @throws {RequiredError}
|
|
12053
|
-
*/
|
|
12054
|
-
createContainerTag: (containerId, tagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12055
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12056
|
-
(0, common_1.assertParamExists)('createContainerTag', 'containerId', containerId);
|
|
12057
|
-
const localVarPath = `/container/{containerId}/tag`
|
|
12058
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12059
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12060
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12061
|
-
let baseOptions;
|
|
12062
|
-
if (configuration) {
|
|
12063
|
-
baseOptions = configuration.baseOptions;
|
|
12064
|
-
}
|
|
12065
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12066
|
-
const localVarHeaderParameter = {};
|
|
12067
|
-
const localVarQueryParameter = {};
|
|
12068
|
-
// authentication bearerAuth required
|
|
12069
|
-
// http bearer authentication required
|
|
12070
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12071
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12072
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12073
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12074
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12075
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tagRequest, localVarRequestOptions, configuration);
|
|
12076
|
-
return {
|
|
12077
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12078
|
-
options: localVarRequestOptions,
|
|
12079
|
-
};
|
|
12080
|
-
}),
|
|
12081
|
-
/**
|
|
12082
|
-
* To delete the container you must have the admin permission
|
|
12083
|
-
* @summary Delete container
|
|
12084
|
-
* @param {string} containerId Container ID
|
|
12085
|
-
* @param {*} [options] Override http request option.
|
|
12086
|
-
* @throws {RequiredError}
|
|
12087
|
-
*/
|
|
12088
|
-
deleteContainer: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12089
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12090
|
-
(0, common_1.assertParamExists)('deleteContainer', 'containerId', containerId);
|
|
12091
|
-
const localVarPath = `/container/{containerId}`
|
|
12092
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12093
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12094
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12095
|
-
let baseOptions;
|
|
12096
|
-
if (configuration) {
|
|
12097
|
-
baseOptions = configuration.baseOptions;
|
|
12098
|
-
}
|
|
12099
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12100
|
-
const localVarHeaderParameter = {};
|
|
12101
|
-
const localVarQueryParameter = {};
|
|
12102
|
-
// authentication bearerAuth required
|
|
12103
|
-
// http bearer authentication required
|
|
12104
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12105
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12106
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12107
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12108
|
-
return {
|
|
12109
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12110
|
-
options: localVarRequestOptions,
|
|
12111
|
-
};
|
|
12112
|
-
}),
|
|
12113
|
-
/**
|
|
12114
|
-
*
|
|
12115
|
-
* @summary Delete container tag
|
|
12116
|
-
* @param {string} containerId Container ID
|
|
12117
|
-
* @param {string} tagId Tag ID
|
|
12118
|
-
* @param {*} [options] Override http request option.
|
|
12119
|
-
* @throws {RequiredError}
|
|
12120
|
-
*/
|
|
12121
|
-
deleteContainerTag: (containerId, tagId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12122
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12123
|
-
(0, common_1.assertParamExists)('deleteContainerTag', 'containerId', containerId);
|
|
12124
|
-
// verify required parameter 'tagId' is not null or undefined
|
|
12125
|
-
(0, common_1.assertParamExists)('deleteContainerTag', 'tagId', tagId);
|
|
12126
|
-
const localVarPath = `/container/{containerId}/tag/{tagId}`
|
|
12127
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
12128
|
-
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
|
12129
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12130
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12131
|
-
let baseOptions;
|
|
12132
|
-
if (configuration) {
|
|
12133
|
-
baseOptions = configuration.baseOptions;
|
|
12134
|
-
}
|
|
12135
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11823
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12136
11824
|
const localVarHeaderParameter = {};
|
|
12137
11825
|
const localVarQueryParameter = {};
|
|
12138
11826
|
// authentication bearerAuth required
|
|
@@ -12150,11 +11838,11 @@ const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
12150
11838
|
* - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it.
|
|
12151
11839
|
* @summary Edit container
|
|
12152
11840
|
* @param {string} containerId Container ID
|
|
12153
|
-
* @param {
|
|
11841
|
+
* @param {ContainerRequest} [containerRequest]
|
|
12154
11842
|
* @param {*} [options] Override http request option.
|
|
12155
11843
|
* @throws {RequiredError}
|
|
12156
11844
|
*/
|
|
12157
|
-
editContainer: (containerId,
|
|
11845
|
+
editContainer: (containerId, containerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12158
11846
|
// verify required parameter 'containerId' is not null or undefined
|
|
12159
11847
|
(0, common_1.assertParamExists)('editContainer', 'containerId', containerId);
|
|
12160
11848
|
const localVarPath = `/container/{containerId}`
|
|
@@ -12175,7 +11863,7 @@ const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
12175
11863
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12176
11864
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12177
11865
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12178
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
11866
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(containerRequest, localVarRequestOptions, configuration);
|
|
12179
11867
|
return {
|
|
12180
11868
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12181
11869
|
options: localVarRequestOptions,
|
|
@@ -12246,71 +11934,7 @@ const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
12246
11934
|
};
|
|
12247
11935
|
}),
|
|
12248
11936
|
/**
|
|
12249
|
-
*
|
|
12250
|
-
* @summary List image tags
|
|
12251
|
-
* @param {string} containerId Container ID
|
|
12252
|
-
* @param {*} [options] Override http request option.
|
|
12253
|
-
* @throws {RequiredError}
|
|
12254
|
-
*/
|
|
12255
|
-
getContainerTags: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12256
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12257
|
-
(0, common_1.assertParamExists)('getContainerTags', 'containerId', containerId);
|
|
12258
|
-
const localVarPath = `/container/{containerId}/tagHistory`
|
|
12259
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12260
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12261
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12262
|
-
let baseOptions;
|
|
12263
|
-
if (configuration) {
|
|
12264
|
-
baseOptions = configuration.baseOptions;
|
|
12265
|
-
}
|
|
12266
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12267
|
-
const localVarHeaderParameter = {};
|
|
12268
|
-
const localVarQueryParameter = {};
|
|
12269
|
-
// authentication bearerAuth required
|
|
12270
|
-
// http bearer authentication required
|
|
12271
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12272
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12273
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12274
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12275
|
-
return {
|
|
12276
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12277
|
-
options: localVarRequestOptions,
|
|
12278
|
-
};
|
|
12279
|
-
}),
|
|
12280
|
-
/**
|
|
12281
|
-
*
|
|
12282
|
-
* @summary List contributors
|
|
12283
|
-
* @param {string} containerId Container ID
|
|
12284
|
-
* @param {*} [options] Override http request option.
|
|
12285
|
-
* @throws {RequiredError}
|
|
12286
|
-
*/
|
|
12287
|
-
listContainerContributor: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12288
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12289
|
-
(0, common_1.assertParamExists)('listContainerContributor', 'containerId', containerId);
|
|
12290
|
-
const localVarPath = `/container/{containerId}/contributor`
|
|
12291
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12292
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12293
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12294
|
-
let baseOptions;
|
|
12295
|
-
if (configuration) {
|
|
12296
|
-
baseOptions = configuration.baseOptions;
|
|
12297
|
-
}
|
|
12298
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12299
|
-
const localVarHeaderParameter = {};
|
|
12300
|
-
const localVarQueryParameter = {};
|
|
12301
|
-
// authentication bearerAuth required
|
|
12302
|
-
// http bearer authentication required
|
|
12303
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12304
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12305
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12306
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12307
|
-
return {
|
|
12308
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12309
|
-
options: localVarRequestOptions,
|
|
12310
|
-
};
|
|
12311
|
-
}),
|
|
12312
|
-
/**
|
|
12313
|
-
* This will return all the custom domains and Qovery autogenerated domain for the given application
|
|
11937
|
+
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
12314
11938
|
* @summary List all URLs of the container
|
|
12315
11939
|
* @param {string} containerId Container ID
|
|
12316
11940
|
* @param {*} [options] Override http request option.
|
|
@@ -12341,38 +11965,6 @@ const ContainerMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
12341
11965
|
options: localVarRequestOptions,
|
|
12342
11966
|
};
|
|
12343
11967
|
}),
|
|
12344
|
-
/**
|
|
12345
|
-
*
|
|
12346
|
-
* @summary List tags
|
|
12347
|
-
* @param {string} containerId Container ID
|
|
12348
|
-
* @param {*} [options] Override http request option.
|
|
12349
|
-
* @throws {RequiredError}
|
|
12350
|
-
*/
|
|
12351
|
-
listContainerTag: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12352
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12353
|
-
(0, common_1.assertParamExists)('listContainerTag', 'containerId', containerId);
|
|
12354
|
-
const localVarPath = `/container/{containerId}/tag`
|
|
12355
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12356
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12357
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12358
|
-
let baseOptions;
|
|
12359
|
-
if (configuration) {
|
|
12360
|
-
baseOptions = configuration.baseOptions;
|
|
12361
|
-
}
|
|
12362
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12363
|
-
const localVarHeaderParameter = {};
|
|
12364
|
-
const localVarQueryParameter = {};
|
|
12365
|
-
// authentication bearerAuth required
|
|
12366
|
-
// http bearer authentication required
|
|
12367
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12368
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12369
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12370
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12371
|
-
return {
|
|
12372
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12373
|
-
options: localVarRequestOptions,
|
|
12374
|
-
};
|
|
12375
|
-
}),
|
|
12376
11968
|
};
|
|
12377
11969
|
};
|
|
12378
11970
|
exports.ContainerMainCallsApiAxiosParamCreator = ContainerMainCallsApiAxiosParamCreator;
|
|
@@ -12384,57 +11976,29 @@ const ContainerMainCallsApiFp = function (configuration) {
|
|
|
12384
11976
|
const localVarAxiosParamCreator = (0, exports.ContainerMainCallsApiAxiosParamCreator)(configuration);
|
|
12385
11977
|
return {
|
|
12386
11978
|
/**
|
|
12387
|
-
*
|
|
12388
|
-
* @summary
|
|
11979
|
+
* To delete the container you must have the admin permission
|
|
11980
|
+
* @summary Delete container
|
|
12389
11981
|
* @param {string} containerId Container ID
|
|
12390
|
-
* @param {TagRequest} [tagRequest]
|
|
12391
11982
|
* @param {*} [options] Override http request option.
|
|
12392
11983
|
* @throws {RequiredError}
|
|
12393
11984
|
*/
|
|
12394
|
-
|
|
11985
|
+
deleteContainer(containerId, options) {
|
|
12395
11986
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12396
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11987
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteContainer(containerId, options);
|
|
12397
11988
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12398
11989
|
});
|
|
12399
11990
|
},
|
|
12400
11991
|
/**
|
|
12401
|
-
* To
|
|
12402
|
-
* @summary
|
|
11992
|
+
* - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it.
|
|
11993
|
+
* @summary Edit container
|
|
12403
11994
|
* @param {string} containerId Container ID
|
|
11995
|
+
* @param {ContainerRequest} [containerRequest]
|
|
12404
11996
|
* @param {*} [options] Override http request option.
|
|
12405
11997
|
* @throws {RequiredError}
|
|
12406
11998
|
*/
|
|
12407
|
-
|
|
12408
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12409
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteContainer(containerId, options);
|
|
12410
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12411
|
-
});
|
|
12412
|
-
},
|
|
12413
|
-
/**
|
|
12414
|
-
*
|
|
12415
|
-
* @summary Delete container tag
|
|
12416
|
-
* @param {string} containerId Container ID
|
|
12417
|
-
* @param {string} tagId Tag ID
|
|
12418
|
-
* @param {*} [options] Override http request option.
|
|
12419
|
-
* @throws {RequiredError}
|
|
12420
|
-
*/
|
|
12421
|
-
deleteContainerTag(containerId, tagId, options) {
|
|
12422
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12423
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteContainerTag(containerId, tagId, options);
|
|
12424
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12425
|
-
});
|
|
12426
|
-
},
|
|
12427
|
-
/**
|
|
12428
|
-
* - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it.
|
|
12429
|
-
* @summary Edit container
|
|
12430
|
-
* @param {string} containerId Container ID
|
|
12431
|
-
* @param {ContainerEditRequest} [containerEditRequest]
|
|
12432
|
-
* @param {*} [options] Override http request option.
|
|
12433
|
-
* @throws {RequiredError}
|
|
12434
|
-
*/
|
|
12435
|
-
editContainer(containerId, containerEditRequest, options) {
|
|
11999
|
+
editContainer(containerId, containerRequest, options) {
|
|
12436
12000
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12437
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editContainer(containerId,
|
|
12001
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editContainer(containerId, containerRequest, options);
|
|
12438
12002
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12439
12003
|
});
|
|
12440
12004
|
},
|
|
@@ -12465,33 +12029,7 @@ const ContainerMainCallsApiFp = function (configuration) {
|
|
|
12465
12029
|
});
|
|
12466
12030
|
},
|
|
12467
12031
|
/**
|
|
12468
|
-
*
|
|
12469
|
-
* @summary List image tags
|
|
12470
|
-
* @param {string} containerId Container ID
|
|
12471
|
-
* @param {*} [options] Override http request option.
|
|
12472
|
-
* @throws {RequiredError}
|
|
12473
|
-
*/
|
|
12474
|
-
getContainerTags(containerId, options) {
|
|
12475
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12476
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerTags(containerId, options);
|
|
12477
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12478
|
-
});
|
|
12479
|
-
},
|
|
12480
|
-
/**
|
|
12481
|
-
*
|
|
12482
|
-
* @summary List contributors
|
|
12483
|
-
* @param {string} containerId Container ID
|
|
12484
|
-
* @param {*} [options] Override http request option.
|
|
12485
|
-
* @throws {RequiredError}
|
|
12486
|
-
*/
|
|
12487
|
-
listContainerContributor(containerId, options) {
|
|
12488
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12489
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerContributor(containerId, options);
|
|
12490
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12491
|
-
});
|
|
12492
|
-
},
|
|
12493
|
-
/**
|
|
12494
|
-
* This will return all the custom domains and Qovery autogenerated domain for the given application
|
|
12032
|
+
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
12495
12033
|
* @summary List all URLs of the container
|
|
12496
12034
|
* @param {string} containerId Container ID
|
|
12497
12035
|
* @param {*} [options] Override http request option.
|
|
@@ -12503,19 +12041,6 @@ const ContainerMainCallsApiFp = function (configuration) {
|
|
|
12503
12041
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12504
12042
|
});
|
|
12505
12043
|
},
|
|
12506
|
-
/**
|
|
12507
|
-
*
|
|
12508
|
-
* @summary List tags
|
|
12509
|
-
* @param {string} containerId Container ID
|
|
12510
|
-
* @param {*} [options] Override http request option.
|
|
12511
|
-
* @throws {RequiredError}
|
|
12512
|
-
*/
|
|
12513
|
-
listContainerTag(containerId, options) {
|
|
12514
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12515
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainerTag(containerId, options);
|
|
12516
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12517
|
-
});
|
|
12518
|
-
},
|
|
12519
12044
|
};
|
|
12520
12045
|
};
|
|
12521
12046
|
exports.ContainerMainCallsApiFp = ContainerMainCallsApiFp;
|
|
@@ -12526,17 +12051,6 @@ exports.ContainerMainCallsApiFp = ContainerMainCallsApiFp;
|
|
|
12526
12051
|
const ContainerMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
12527
12052
|
const localVarFp = (0, exports.ContainerMainCallsApiFp)(configuration);
|
|
12528
12053
|
return {
|
|
12529
|
-
/**
|
|
12530
|
-
*
|
|
12531
|
-
* @summary Add container tag
|
|
12532
|
-
* @param {string} containerId Container ID
|
|
12533
|
-
* @param {TagRequest} [tagRequest]
|
|
12534
|
-
* @param {*} [options] Override http request option.
|
|
12535
|
-
* @throws {RequiredError}
|
|
12536
|
-
*/
|
|
12537
|
-
createContainerTag(containerId, tagRequest, options) {
|
|
12538
|
-
return localVarFp.createContainerTag(containerId, tagRequest, options).then((request) => request(axios, basePath));
|
|
12539
|
-
},
|
|
12540
12054
|
/**
|
|
12541
12055
|
* To delete the container you must have the admin permission
|
|
12542
12056
|
* @summary Delete container
|
|
@@ -12547,27 +12061,16 @@ const ContainerMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
12547
12061
|
deleteContainer(containerId, options) {
|
|
12548
12062
|
return localVarFp.deleteContainer(containerId, options).then((request) => request(axios, basePath));
|
|
12549
12063
|
},
|
|
12550
|
-
/**
|
|
12551
|
-
*
|
|
12552
|
-
* @summary Delete container tag
|
|
12553
|
-
* @param {string} containerId Container ID
|
|
12554
|
-
* @param {string} tagId Tag ID
|
|
12555
|
-
* @param {*} [options] Override http request option.
|
|
12556
|
-
* @throws {RequiredError}
|
|
12557
|
-
*/
|
|
12558
|
-
deleteContainerTag(containerId, tagId, options) {
|
|
12559
|
-
return localVarFp.deleteContainerTag(containerId, tagId, options).then((request) => request(axios, basePath));
|
|
12560
|
-
},
|
|
12561
12064
|
/**
|
|
12562
12065
|
* - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it.
|
|
12563
12066
|
* @summary Edit container
|
|
12564
12067
|
* @param {string} containerId Container ID
|
|
12565
|
-
* @param {
|
|
12068
|
+
* @param {ContainerRequest} [containerRequest]
|
|
12566
12069
|
* @param {*} [options] Override http request option.
|
|
12567
12070
|
* @throws {RequiredError}
|
|
12568
12071
|
*/
|
|
12569
|
-
editContainer(containerId,
|
|
12570
|
-
return localVarFp.editContainer(containerId,
|
|
12072
|
+
editContainer(containerId, containerRequest, options) {
|
|
12073
|
+
return localVarFp.editContainer(containerId, containerRequest, options).then((request) => request(axios, basePath));
|
|
12571
12074
|
},
|
|
12572
12075
|
/**
|
|
12573
12076
|
*
|
|
@@ -12590,27 +12093,7 @@ const ContainerMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
12590
12093
|
return localVarFp.getContainerStatus(containerId, options).then((request) => request(axios, basePath));
|
|
12591
12094
|
},
|
|
12592
12095
|
/**
|
|
12593
|
-
*
|
|
12594
|
-
* @summary List image tags
|
|
12595
|
-
* @param {string} containerId Container ID
|
|
12596
|
-
* @param {*} [options] Override http request option.
|
|
12597
|
-
* @throws {RequiredError}
|
|
12598
|
-
*/
|
|
12599
|
-
getContainerTags(containerId, options) {
|
|
12600
|
-
return localVarFp.getContainerTags(containerId, options).then((request) => request(axios, basePath));
|
|
12601
|
-
},
|
|
12602
|
-
/**
|
|
12603
|
-
*
|
|
12604
|
-
* @summary List contributors
|
|
12605
|
-
* @param {string} containerId Container ID
|
|
12606
|
-
* @param {*} [options] Override http request option.
|
|
12607
|
-
* @throws {RequiredError}
|
|
12608
|
-
*/
|
|
12609
|
-
listContainerContributor(containerId, options) {
|
|
12610
|
-
return localVarFp.listContainerContributor(containerId, options).then((request) => request(axios, basePath));
|
|
12611
|
-
},
|
|
12612
|
-
/**
|
|
12613
|
-
* This will return all the custom domains and Qovery autogenerated domain for the given application
|
|
12096
|
+
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
12614
12097
|
* @summary List all URLs of the container
|
|
12615
12098
|
* @param {string} containerId Container ID
|
|
12616
12099
|
* @param {*} [options] Override http request option.
|
|
@@ -12619,16 +12102,6 @@ const ContainerMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
12619
12102
|
listContainerLinks(containerId, options) {
|
|
12620
12103
|
return localVarFp.listContainerLinks(containerId, options).then((request) => request(axios, basePath));
|
|
12621
12104
|
},
|
|
12622
|
-
/**
|
|
12623
|
-
*
|
|
12624
|
-
* @summary List tags
|
|
12625
|
-
* @param {string} containerId Container ID
|
|
12626
|
-
* @param {*} [options] Override http request option.
|
|
12627
|
-
* @throws {RequiredError}
|
|
12628
|
-
*/
|
|
12629
|
-
listContainerTag(containerId, options) {
|
|
12630
|
-
return localVarFp.listContainerTag(containerId, options).then((request) => request(axios, basePath));
|
|
12631
|
-
},
|
|
12632
12105
|
};
|
|
12633
12106
|
};
|
|
12634
12107
|
exports.ContainerMainCallsApiFactory = ContainerMainCallsApiFactory;
|
|
@@ -12639,18 +12112,6 @@ exports.ContainerMainCallsApiFactory = ContainerMainCallsApiFactory;
|
|
|
12639
12112
|
* @extends {BaseAPI}
|
|
12640
12113
|
*/
|
|
12641
12114
|
class ContainerMainCallsApi extends base_1.BaseAPI {
|
|
12642
|
-
/**
|
|
12643
|
-
*
|
|
12644
|
-
* @summary Add container tag
|
|
12645
|
-
* @param {string} containerId Container ID
|
|
12646
|
-
* @param {TagRequest} [tagRequest]
|
|
12647
|
-
* @param {*} [options] Override http request option.
|
|
12648
|
-
* @throws {RequiredError}
|
|
12649
|
-
* @memberof ContainerMainCallsApi
|
|
12650
|
-
*/
|
|
12651
|
-
createContainerTag(containerId, tagRequest, options) {
|
|
12652
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).createContainerTag(containerId, tagRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12653
|
-
}
|
|
12654
12115
|
/**
|
|
12655
12116
|
* To delete the container you must have the admin permission
|
|
12656
12117
|
* @summary Delete container
|
|
@@ -12662,29 +12123,17 @@ class ContainerMainCallsApi extends base_1.BaseAPI {
|
|
|
12662
12123
|
deleteContainer(containerId, options) {
|
|
12663
12124
|
return (0, exports.ContainerMainCallsApiFp)(this.configuration).deleteContainer(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12664
12125
|
}
|
|
12665
|
-
/**
|
|
12666
|
-
*
|
|
12667
|
-
* @summary Delete container tag
|
|
12668
|
-
* @param {string} containerId Container ID
|
|
12669
|
-
* @param {string} tagId Tag ID
|
|
12670
|
-
* @param {*} [options] Override http request option.
|
|
12671
|
-
* @throws {RequiredError}
|
|
12672
|
-
* @memberof ContainerMainCallsApi
|
|
12673
|
-
*/
|
|
12674
|
-
deleteContainerTag(containerId, tagId, options) {
|
|
12675
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).deleteContainerTag(containerId, tagId, options).then((request) => request(this.axios, this.basePath));
|
|
12676
|
-
}
|
|
12677
12126
|
/**
|
|
12678
12127
|
* - To edit the container you must have the admin permission. - For port edition, if you provide a port id, we will update the corresponding port. If you don\'t we will create a new one. If you remove a port from the payload, we will delete it. - For storage edition, if you provide a storage id, we will update the corresponding storage. If you don\'t we will create a new one. If you remove a storage from the payload, we will delete it.
|
|
12679
12128
|
* @summary Edit container
|
|
12680
12129
|
* @param {string} containerId Container ID
|
|
12681
|
-
* @param {
|
|
12130
|
+
* @param {ContainerRequest} [containerRequest]
|
|
12682
12131
|
* @param {*} [options] Override http request option.
|
|
12683
12132
|
* @throws {RequiredError}
|
|
12684
12133
|
* @memberof ContainerMainCallsApi
|
|
12685
12134
|
*/
|
|
12686
|
-
editContainer(containerId,
|
|
12687
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).editContainer(containerId,
|
|
12135
|
+
editContainer(containerId, containerRequest, options) {
|
|
12136
|
+
return (0, exports.ContainerMainCallsApiFp)(this.configuration).editContainer(containerId, containerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12688
12137
|
}
|
|
12689
12138
|
/**
|
|
12690
12139
|
*
|
|
@@ -12709,243 +12158,35 @@ class ContainerMainCallsApi extends base_1.BaseAPI {
|
|
|
12709
12158
|
return (0, exports.ContainerMainCallsApiFp)(this.configuration).getContainerStatus(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12710
12159
|
}
|
|
12711
12160
|
/**
|
|
12712
|
-
*
|
|
12713
|
-
* @summary List image tags
|
|
12714
|
-
* @param {string} containerId Container ID
|
|
12715
|
-
* @param {*} [options] Override http request option.
|
|
12716
|
-
* @throws {RequiredError}
|
|
12717
|
-
* @memberof ContainerMainCallsApi
|
|
12718
|
-
*/
|
|
12719
|
-
getContainerTags(containerId, options) {
|
|
12720
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).getContainerTags(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12721
|
-
}
|
|
12722
|
-
/**
|
|
12723
|
-
*
|
|
12724
|
-
* @summary List contributors
|
|
12725
|
-
* @param {string} containerId Container ID
|
|
12726
|
-
* @param {*} [options] Override http request option.
|
|
12727
|
-
* @throws {RequiredError}
|
|
12728
|
-
* @memberof ContainerMainCallsApi
|
|
12729
|
-
*/
|
|
12730
|
-
listContainerContributor(containerId, options) {
|
|
12731
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).listContainerContributor(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12732
|
-
}
|
|
12733
|
-
/**
|
|
12734
|
-
* This will return all the custom domains and Qovery autogenerated domain for the given application
|
|
12161
|
+
* This will return all the custom domains and Qovery autogenerated domain for the given container
|
|
12735
12162
|
* @summary List all URLs of the container
|
|
12736
|
-
* @param {string} containerId Container ID
|
|
12737
|
-
* @param {*} [options] Override http request option.
|
|
12738
|
-
* @throws {RequiredError}
|
|
12739
|
-
* @memberof ContainerMainCallsApi
|
|
12740
|
-
*/
|
|
12741
|
-
listContainerLinks(containerId, options) {
|
|
12742
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).listContainerLinks(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12743
|
-
}
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
listContainerTag(containerId, options) {
|
|
12753
|
-
return (0, exports.ContainerMainCallsApiFp)(this.configuration).listContainerTag(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12754
|
-
}
|
|
12755
|
-
}
|
|
12756
|
-
exports.ContainerMainCallsApi = ContainerMainCallsApi;
|
|
12757
|
-
/**
|
|
12758
|
-
* ContainerMetricsApi - axios parameter creator
|
|
12759
|
-
* @export
|
|
12760
|
-
*/
|
|
12761
|
-
const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
12762
|
-
return {
|
|
12763
|
-
/**
|
|
12764
|
-
*
|
|
12765
|
-
* @summary List currently running instances of the container with their CPU and RAM metrics
|
|
12766
|
-
* @param {string} containerId Container ID
|
|
12767
|
-
* @param {*} [options] Override http request option.
|
|
12768
|
-
* @throws {RequiredError}
|
|
12769
|
-
*/
|
|
12770
|
-
getContainerCurrentInstance: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12771
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12772
|
-
(0, common_1.assertParamExists)('getContainerCurrentInstance', 'containerId', containerId);
|
|
12773
|
-
const localVarPath = `/container/{containerId}/instance`
|
|
12774
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12775
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12776
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12777
|
-
let baseOptions;
|
|
12778
|
-
if (configuration) {
|
|
12779
|
-
baseOptions = configuration.baseOptions;
|
|
12780
|
-
}
|
|
12781
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12782
|
-
const localVarHeaderParameter = {};
|
|
12783
|
-
const localVarQueryParameter = {};
|
|
12784
|
-
// authentication bearerAuth required
|
|
12785
|
-
// http bearer authentication required
|
|
12786
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12787
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12788
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12789
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12790
|
-
return {
|
|
12791
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12792
|
-
options: localVarRequestOptions,
|
|
12793
|
-
};
|
|
12794
|
-
}),
|
|
12795
|
-
/**
|
|
12796
|
-
* Returns min, max, and running number of instances of the application
|
|
12797
|
-
* @summary Get current scaling of the container
|
|
12798
|
-
* @param {string} containerId Container ID
|
|
12799
|
-
* @param {*} [options] Override http request option.
|
|
12800
|
-
* @throws {RequiredError}
|
|
12801
|
-
*/
|
|
12802
|
-
getContainerCurrentScale: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12803
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12804
|
-
(0, common_1.assertParamExists)('getContainerCurrentScale', 'containerId', containerId);
|
|
12805
|
-
const localVarPath = `/container/{containerId}/currentScale`
|
|
12806
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12807
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12808
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12809
|
-
let baseOptions;
|
|
12810
|
-
if (configuration) {
|
|
12811
|
-
baseOptions = configuration.baseOptions;
|
|
12812
|
-
}
|
|
12813
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12814
|
-
const localVarHeaderParameter = {};
|
|
12815
|
-
const localVarQueryParameter = {};
|
|
12816
|
-
// authentication bearerAuth required
|
|
12817
|
-
// http bearer authentication required
|
|
12818
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12819
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12820
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12821
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12822
|
-
return {
|
|
12823
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12824
|
-
options: localVarRequestOptions,
|
|
12825
|
-
};
|
|
12826
|
-
}),
|
|
12827
|
-
/**
|
|
12828
|
-
*
|
|
12829
|
-
* @summary List current storage disk usage
|
|
12830
|
-
* @param {string} containerId Container ID
|
|
12831
|
-
* @param {*} [options] Override http request option.
|
|
12832
|
-
* @throws {RequiredError}
|
|
12833
|
-
*/
|
|
12834
|
-
getContainerCurrentStorageDisk: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12835
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12836
|
-
(0, common_1.assertParamExists)('getContainerCurrentStorageDisk', 'containerId', containerId);
|
|
12837
|
-
const localVarPath = `/container/{containerId}/currentStorage`
|
|
12838
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12839
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12840
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12841
|
-
let baseOptions;
|
|
12842
|
-
if (configuration) {
|
|
12843
|
-
baseOptions = configuration.baseOptions;
|
|
12844
|
-
}
|
|
12845
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12846
|
-
const localVarHeaderParameter = {};
|
|
12847
|
-
const localVarQueryParameter = {};
|
|
12848
|
-
// authentication bearerAuth required
|
|
12849
|
-
// http bearer authentication required
|
|
12850
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12851
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12852
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12853
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12854
|
-
return {
|
|
12855
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12856
|
-
options: localVarRequestOptions,
|
|
12857
|
-
};
|
|
12858
|
-
}),
|
|
12859
|
-
/**
|
|
12860
|
-
*
|
|
12861
|
-
* @summary Get CPU consumption metric over time for the container
|
|
12862
|
-
* @param {string} containerId Container ID
|
|
12863
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
12864
|
-
* @param {*} [options] Override http request option.
|
|
12865
|
-
* @throws {RequiredError}
|
|
12866
|
-
*/
|
|
12867
|
-
getContainerMetricCpu: (containerId, lastSeconds, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12868
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12869
|
-
(0, common_1.assertParamExists)('getContainerMetricCpu', 'containerId', containerId);
|
|
12870
|
-
// verify required parameter 'lastSeconds' is not null or undefined
|
|
12871
|
-
(0, common_1.assertParamExists)('getContainerMetricCpu', 'lastSeconds', lastSeconds);
|
|
12872
|
-
const localVarPath = `/container/{containerId}/metric/cpu`
|
|
12873
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12874
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12875
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12876
|
-
let baseOptions;
|
|
12877
|
-
if (configuration) {
|
|
12878
|
-
baseOptions = configuration.baseOptions;
|
|
12879
|
-
}
|
|
12880
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12881
|
-
const localVarHeaderParameter = {};
|
|
12882
|
-
const localVarQueryParameter = {};
|
|
12883
|
-
// authentication bearerAuth required
|
|
12884
|
-
// http bearer authentication required
|
|
12885
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12886
|
-
if (lastSeconds !== undefined) {
|
|
12887
|
-
localVarQueryParameter['lastSeconds'] = lastSeconds;
|
|
12888
|
-
}
|
|
12889
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12890
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12891
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12892
|
-
return {
|
|
12893
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12894
|
-
options: localVarRequestOptions,
|
|
12895
|
-
};
|
|
12896
|
-
}),
|
|
12897
|
-
/**
|
|
12898
|
-
* The value returned corresponds to the 95th centile
|
|
12899
|
-
* @summary Get Health Check latency metric over time for the container
|
|
12900
|
-
* @param {string} containerId Container ID
|
|
12901
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
12902
|
-
* @param {*} [options] Override http request option.
|
|
12903
|
-
* @throws {RequiredError}
|
|
12904
|
-
*/
|
|
12905
|
-
getContainerMetricHealthCheck: (containerId, lastSeconds, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12906
|
-
// verify required parameter 'containerId' is not null or undefined
|
|
12907
|
-
(0, common_1.assertParamExists)('getContainerMetricHealthCheck', 'containerId', containerId);
|
|
12908
|
-
// verify required parameter 'lastSeconds' is not null or undefined
|
|
12909
|
-
(0, common_1.assertParamExists)('getContainerMetricHealthCheck', 'lastSeconds', lastSeconds);
|
|
12910
|
-
const localVarPath = `/container/{containerId}/metric/healthCheck`
|
|
12911
|
-
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12912
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12913
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12914
|
-
let baseOptions;
|
|
12915
|
-
if (configuration) {
|
|
12916
|
-
baseOptions = configuration.baseOptions;
|
|
12917
|
-
}
|
|
12918
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12919
|
-
const localVarHeaderParameter = {};
|
|
12920
|
-
const localVarQueryParameter = {};
|
|
12921
|
-
// authentication bearerAuth required
|
|
12922
|
-
// http bearer authentication required
|
|
12923
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12924
|
-
if (lastSeconds !== undefined) {
|
|
12925
|
-
localVarQueryParameter['lastSeconds'] = lastSeconds;
|
|
12926
|
-
}
|
|
12927
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12928
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12929
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12930
|
-
return {
|
|
12931
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12932
|
-
options: localVarRequestOptions,
|
|
12933
|
-
};
|
|
12934
|
-
}),
|
|
12163
|
+
* @param {string} containerId Container ID
|
|
12164
|
+
* @param {*} [options] Override http request option.
|
|
12165
|
+
* @throws {RequiredError}
|
|
12166
|
+
* @memberof ContainerMainCallsApi
|
|
12167
|
+
*/
|
|
12168
|
+
listContainerLinks(containerId, options) {
|
|
12169
|
+
return (0, exports.ContainerMainCallsApiFp)(this.configuration).listContainerLinks(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
12170
|
+
}
|
|
12171
|
+
}
|
|
12172
|
+
exports.ContainerMainCallsApi = ContainerMainCallsApi;
|
|
12173
|
+
/**
|
|
12174
|
+
* ContainerMetricsApi - axios parameter creator
|
|
12175
|
+
* @export
|
|
12176
|
+
*/
|
|
12177
|
+
const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
12178
|
+
return {
|
|
12935
12179
|
/**
|
|
12936
12180
|
*
|
|
12937
|
-
* @summary
|
|
12181
|
+
* @summary List currently running instances of the container with their CPU and RAM metrics
|
|
12938
12182
|
* @param {string} containerId Container ID
|
|
12939
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
12940
12183
|
* @param {*} [options] Override http request option.
|
|
12941
12184
|
* @throws {RequiredError}
|
|
12942
12185
|
*/
|
|
12943
|
-
|
|
12186
|
+
getContainerCurrentInstance: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12944
12187
|
// verify required parameter 'containerId' is not null or undefined
|
|
12945
|
-
(0, common_1.assertParamExists)('
|
|
12946
|
-
|
|
12947
|
-
(0, common_1.assertParamExists)('getContainerMetricMemory', 'lastSeconds', lastSeconds);
|
|
12948
|
-
const localVarPath = `/container/{containerId}/metric/memory`
|
|
12188
|
+
(0, common_1.assertParamExists)('getContainerCurrentInstance', 'containerId', containerId);
|
|
12189
|
+
const localVarPath = `/container/{containerId}/instance`
|
|
12949
12190
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12950
12191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12951
12192
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -12959,9 +12200,6 @@ const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
12959
12200
|
// authentication bearerAuth required
|
|
12960
12201
|
// http bearer authentication required
|
|
12961
12202
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12962
|
-
if (lastSeconds !== undefined) {
|
|
12963
|
-
localVarQueryParameter['lastSeconds'] = lastSeconds;
|
|
12964
|
-
}
|
|
12965
12203
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12966
12204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12967
12205
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12971,19 +12209,16 @@ const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
12971
12209
|
};
|
|
12972
12210
|
}),
|
|
12973
12211
|
/**
|
|
12974
|
-
*
|
|
12975
|
-
* @summary
|
|
12212
|
+
* Returns min, max, and running number of instances of the application
|
|
12213
|
+
* @summary Get current scaling of the container
|
|
12976
12214
|
* @param {string} containerId Container ID
|
|
12977
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
12978
12215
|
* @param {*} [options] Override http request option.
|
|
12979
12216
|
* @throws {RequiredError}
|
|
12980
12217
|
*/
|
|
12981
|
-
|
|
12218
|
+
getContainerCurrentScale: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12982
12219
|
// verify required parameter 'containerId' is not null or undefined
|
|
12983
|
-
(0, common_1.assertParamExists)('
|
|
12984
|
-
|
|
12985
|
-
(0, common_1.assertParamExists)('getContainerMetricRestart', 'lastSeconds', lastSeconds);
|
|
12986
|
-
const localVarPath = `/container/{containerId}/metric/restart`
|
|
12220
|
+
(0, common_1.assertParamExists)('getContainerCurrentScale', 'containerId', containerId);
|
|
12221
|
+
const localVarPath = `/container/{containerId}/currentScale`
|
|
12987
12222
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
12988
12223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12989
12224
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -12997,9 +12232,6 @@ const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
12997
12232
|
// authentication bearerAuth required
|
|
12998
12233
|
// http bearer authentication required
|
|
12999
12234
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13000
|
-
if (lastSeconds !== undefined) {
|
|
13001
|
-
localVarQueryParameter['lastSeconds'] = lastSeconds;
|
|
13002
|
-
}
|
|
13003
12235
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13004
12236
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13005
12237
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -13010,18 +12242,15 @@ const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
13010
12242
|
}),
|
|
13011
12243
|
/**
|
|
13012
12244
|
*
|
|
13013
|
-
* @summary
|
|
12245
|
+
* @summary List current storage disk usage
|
|
13014
12246
|
* @param {string} containerId Container ID
|
|
13015
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13016
12247
|
* @param {*} [options] Override http request option.
|
|
13017
12248
|
* @throws {RequiredError}
|
|
13018
12249
|
*/
|
|
13019
|
-
|
|
12250
|
+
getContainerCurrentStorageDisk: (containerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13020
12251
|
// verify required parameter 'containerId' is not null or undefined
|
|
13021
|
-
(0, common_1.assertParamExists)('
|
|
13022
|
-
|
|
13023
|
-
(0, common_1.assertParamExists)('getContainerMetricStorage', 'lastSeconds', lastSeconds);
|
|
13024
|
-
const localVarPath = `/container/{containerId}/metric/storage`
|
|
12252
|
+
(0, common_1.assertParamExists)('getContainerCurrentStorageDisk', 'containerId', containerId);
|
|
12253
|
+
const localVarPath = `/container/{containerId}/currentStorage`
|
|
13025
12254
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
13026
12255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13027
12256
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -13035,9 +12264,6 @@ const ContainerMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
13035
12264
|
// authentication bearerAuth required
|
|
13036
12265
|
// http bearer authentication required
|
|
13037
12266
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13038
|
-
if (lastSeconds !== undefined) {
|
|
13039
|
-
localVarQueryParameter['lastSeconds'] = lastSeconds;
|
|
13040
|
-
}
|
|
13041
12267
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13042
12268
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13043
12269
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -13095,76 +12321,6 @@ const ContainerMetricsApiFp = function (configuration) {
|
|
|
13095
12321
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13096
12322
|
});
|
|
13097
12323
|
},
|
|
13098
|
-
/**
|
|
13099
|
-
*
|
|
13100
|
-
* @summary Get CPU consumption metric over time for the container
|
|
13101
|
-
* @param {string} containerId Container ID
|
|
13102
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13103
|
-
* @param {*} [options] Override http request option.
|
|
13104
|
-
* @throws {RequiredError}
|
|
13105
|
-
*/
|
|
13106
|
-
getContainerMetricCpu(containerId, lastSeconds, options) {
|
|
13107
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13108
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerMetricCpu(containerId, lastSeconds, options);
|
|
13109
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13110
|
-
});
|
|
13111
|
-
},
|
|
13112
|
-
/**
|
|
13113
|
-
* The value returned corresponds to the 95th centile
|
|
13114
|
-
* @summary Get Health Check latency metric over time for the container
|
|
13115
|
-
* @param {string} containerId Container ID
|
|
13116
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13117
|
-
* @param {*} [options] Override http request option.
|
|
13118
|
-
* @throws {RequiredError}
|
|
13119
|
-
*/
|
|
13120
|
-
getContainerMetricHealthCheck(containerId, lastSeconds, options) {
|
|
13121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13122
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerMetricHealthCheck(containerId, lastSeconds, options);
|
|
13123
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13124
|
-
});
|
|
13125
|
-
},
|
|
13126
|
-
/**
|
|
13127
|
-
*
|
|
13128
|
-
* @summary Get Memory consumption metric over time for the container
|
|
13129
|
-
* @param {string} containerId Container ID
|
|
13130
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13131
|
-
* @param {*} [options] Override http request option.
|
|
13132
|
-
* @throws {RequiredError}
|
|
13133
|
-
*/
|
|
13134
|
-
getContainerMetricMemory(containerId, lastSeconds, options) {
|
|
13135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13136
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerMetricMemory(containerId, lastSeconds, options);
|
|
13137
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13138
|
-
});
|
|
13139
|
-
},
|
|
13140
|
-
/**
|
|
13141
|
-
* Get container restart message and timestamp.
|
|
13142
|
-
* @summary List container restarts
|
|
13143
|
-
* @param {string} containerId Container ID
|
|
13144
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13145
|
-
* @param {*} [options] Override http request option.
|
|
13146
|
-
* @throws {RequiredError}
|
|
13147
|
-
*/
|
|
13148
|
-
getContainerMetricRestart(containerId, lastSeconds, options) {
|
|
13149
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13150
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerMetricRestart(containerId, lastSeconds, options);
|
|
13151
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13152
|
-
});
|
|
13153
|
-
},
|
|
13154
|
-
/**
|
|
13155
|
-
*
|
|
13156
|
-
* @summary Get Storage consumption metric over time for the container
|
|
13157
|
-
* @param {string} containerId Container ID
|
|
13158
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13159
|
-
* @param {*} [options] Override http request option.
|
|
13160
|
-
* @throws {RequiredError}
|
|
13161
|
-
*/
|
|
13162
|
-
getContainerMetricStorage(containerId, lastSeconds, options) {
|
|
13163
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13164
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerMetricStorage(containerId, lastSeconds, options);
|
|
13165
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13166
|
-
});
|
|
13167
|
-
},
|
|
13168
12324
|
};
|
|
13169
12325
|
};
|
|
13170
12326
|
exports.ContainerMetricsApiFp = ContainerMetricsApiFp;
|
|
@@ -13205,61 +12361,6 @@ const ContainerMetricsApiFactory = function (configuration, basePath, axios) {
|
|
|
13205
12361
|
getContainerCurrentStorageDisk(containerId, options) {
|
|
13206
12362
|
return localVarFp.getContainerCurrentStorageDisk(containerId, options).then((request) => request(axios, basePath));
|
|
13207
12363
|
},
|
|
13208
|
-
/**
|
|
13209
|
-
*
|
|
13210
|
-
* @summary Get CPU consumption metric over time for the container
|
|
13211
|
-
* @param {string} containerId Container ID
|
|
13212
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13213
|
-
* @param {*} [options] Override http request option.
|
|
13214
|
-
* @throws {RequiredError}
|
|
13215
|
-
*/
|
|
13216
|
-
getContainerMetricCpu(containerId, lastSeconds, options) {
|
|
13217
|
-
return localVarFp.getContainerMetricCpu(containerId, lastSeconds, options).then((request) => request(axios, basePath));
|
|
13218
|
-
},
|
|
13219
|
-
/**
|
|
13220
|
-
* The value returned corresponds to the 95th centile
|
|
13221
|
-
* @summary Get Health Check latency metric over time for the container
|
|
13222
|
-
* @param {string} containerId Container ID
|
|
13223
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13224
|
-
* @param {*} [options] Override http request option.
|
|
13225
|
-
* @throws {RequiredError}
|
|
13226
|
-
*/
|
|
13227
|
-
getContainerMetricHealthCheck(containerId, lastSeconds, options) {
|
|
13228
|
-
return localVarFp.getContainerMetricHealthCheck(containerId, lastSeconds, options).then((request) => request(axios, basePath));
|
|
13229
|
-
},
|
|
13230
|
-
/**
|
|
13231
|
-
*
|
|
13232
|
-
* @summary Get Memory consumption metric over time for the container
|
|
13233
|
-
* @param {string} containerId Container ID
|
|
13234
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13235
|
-
* @param {*} [options] Override http request option.
|
|
13236
|
-
* @throws {RequiredError}
|
|
13237
|
-
*/
|
|
13238
|
-
getContainerMetricMemory(containerId, lastSeconds, options) {
|
|
13239
|
-
return localVarFp.getContainerMetricMemory(containerId, lastSeconds, options).then((request) => request(axios, basePath));
|
|
13240
|
-
},
|
|
13241
|
-
/**
|
|
13242
|
-
* Get container restart message and timestamp.
|
|
13243
|
-
* @summary List container restarts
|
|
13244
|
-
* @param {string} containerId Container ID
|
|
13245
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13246
|
-
* @param {*} [options] Override http request option.
|
|
13247
|
-
* @throws {RequiredError}
|
|
13248
|
-
*/
|
|
13249
|
-
getContainerMetricRestart(containerId, lastSeconds, options) {
|
|
13250
|
-
return localVarFp.getContainerMetricRestart(containerId, lastSeconds, options).then((request) => request(axios, basePath));
|
|
13251
|
-
},
|
|
13252
|
-
/**
|
|
13253
|
-
*
|
|
13254
|
-
* @summary Get Storage consumption metric over time for the container
|
|
13255
|
-
* @param {string} containerId Container ID
|
|
13256
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13257
|
-
* @param {*} [options] Override http request option.
|
|
13258
|
-
* @throws {RequiredError}
|
|
13259
|
-
*/
|
|
13260
|
-
getContainerMetricStorage(containerId, lastSeconds, options) {
|
|
13261
|
-
return localVarFp.getContainerMetricStorage(containerId, lastSeconds, options).then((request) => request(axios, basePath));
|
|
13262
|
-
},
|
|
13263
12364
|
};
|
|
13264
12365
|
};
|
|
13265
12366
|
exports.ContainerMetricsApiFactory = ContainerMetricsApiFactory;
|
|
@@ -13303,66 +12404,6 @@ class ContainerMetricsApi extends base_1.BaseAPI {
|
|
|
13303
12404
|
getContainerCurrentStorageDisk(containerId, options) {
|
|
13304
12405
|
return (0, exports.ContainerMetricsApiFp)(this.configuration).getContainerCurrentStorageDisk(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
13305
12406
|
}
|
|
13306
|
-
/**
|
|
13307
|
-
*
|
|
13308
|
-
* @summary Get CPU consumption metric over time for the container
|
|
13309
|
-
* @param {string} containerId Container ID
|
|
13310
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13311
|
-
* @param {*} [options] Override http request option.
|
|
13312
|
-
* @throws {RequiredError}
|
|
13313
|
-
* @memberof ContainerMetricsApi
|
|
13314
|
-
*/
|
|
13315
|
-
getContainerMetricCpu(containerId, lastSeconds, options) {
|
|
13316
|
-
return (0, exports.ContainerMetricsApiFp)(this.configuration).getContainerMetricCpu(containerId, lastSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
13317
|
-
}
|
|
13318
|
-
/**
|
|
13319
|
-
* The value returned corresponds to the 95th centile
|
|
13320
|
-
* @summary Get Health Check latency metric over time for the container
|
|
13321
|
-
* @param {string} containerId Container ID
|
|
13322
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13323
|
-
* @param {*} [options] Override http request option.
|
|
13324
|
-
* @throws {RequiredError}
|
|
13325
|
-
* @memberof ContainerMetricsApi
|
|
13326
|
-
*/
|
|
13327
|
-
getContainerMetricHealthCheck(containerId, lastSeconds, options) {
|
|
13328
|
-
return (0, exports.ContainerMetricsApiFp)(this.configuration).getContainerMetricHealthCheck(containerId, lastSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
13329
|
-
}
|
|
13330
|
-
/**
|
|
13331
|
-
*
|
|
13332
|
-
* @summary Get Memory consumption metric over time for the container
|
|
13333
|
-
* @param {string} containerId Container ID
|
|
13334
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13335
|
-
* @param {*} [options] Override http request option.
|
|
13336
|
-
* @throws {RequiredError}
|
|
13337
|
-
* @memberof ContainerMetricsApi
|
|
13338
|
-
*/
|
|
13339
|
-
getContainerMetricMemory(containerId, lastSeconds, options) {
|
|
13340
|
-
return (0, exports.ContainerMetricsApiFp)(this.configuration).getContainerMetricMemory(containerId, lastSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
13341
|
-
}
|
|
13342
|
-
/**
|
|
13343
|
-
* Get container restart message and timestamp.
|
|
13344
|
-
* @summary List container restarts
|
|
13345
|
-
* @param {string} containerId Container ID
|
|
13346
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13347
|
-
* @param {*} [options] Override http request option.
|
|
13348
|
-
* @throws {RequiredError}
|
|
13349
|
-
* @memberof ContainerMetricsApi
|
|
13350
|
-
*/
|
|
13351
|
-
getContainerMetricRestart(containerId, lastSeconds, options) {
|
|
13352
|
-
return (0, exports.ContainerMetricsApiFp)(this.configuration).getContainerMetricRestart(containerId, lastSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
13353
|
-
}
|
|
13354
|
-
/**
|
|
13355
|
-
*
|
|
13356
|
-
* @summary Get Storage consumption metric over time for the container
|
|
13357
|
-
* @param {string} containerId Container ID
|
|
13358
|
-
* @param {number} lastSeconds Up to how many seconds in the past to ask analytics results
|
|
13359
|
-
* @param {*} [options] Override http request option.
|
|
13360
|
-
* @throws {RequiredError}
|
|
13361
|
-
* @memberof ContainerMetricsApi
|
|
13362
|
-
*/
|
|
13363
|
-
getContainerMetricStorage(containerId, lastSeconds, options) {
|
|
13364
|
-
return (0, exports.ContainerMetricsApiFp)(this.configuration).getContainerMetricStorage(containerId, lastSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
13365
|
-
}
|
|
13366
12407
|
}
|
|
13367
12408
|
exports.ContainerMetricsApi = ContainerMetricsApi;
|
|
13368
12409
|
/**
|
|
@@ -13410,14 +12451,18 @@ const ContainerRegistriesApiAxiosParamCreator = function (configuration) {
|
|
|
13410
12451
|
*
|
|
13411
12452
|
* @summary Delete a container registry
|
|
13412
12453
|
* @param {string} organizationId Organization ID
|
|
12454
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
13413
12455
|
* @param {*} [options] Override http request option.
|
|
13414
12456
|
* @throws {RequiredError}
|
|
13415
12457
|
*/
|
|
13416
|
-
deleteContainerRegistry: (organizationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12458
|
+
deleteContainerRegistry: (organizationId, containerRegistryId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13417
12459
|
// verify required parameter 'organizationId' is not null or undefined
|
|
13418
12460
|
(0, common_1.assertParamExists)('deleteContainerRegistry', 'organizationId', organizationId);
|
|
12461
|
+
// verify required parameter 'containerRegistryId' is not null or undefined
|
|
12462
|
+
(0, common_1.assertParamExists)('deleteContainerRegistry', 'containerRegistryId', containerRegistryId);
|
|
13419
12463
|
const localVarPath = `/organization/{organizationId}/containerRegistry/{containerRegistryId}`
|
|
13420
|
-
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
12464
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
12465
|
+
.replace(`{${"containerRegistryId"}}`, encodeURIComponent(String(containerRegistryId)));
|
|
13421
12466
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13422
12467
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13423
12468
|
let baseOptions;
|
|
@@ -13438,18 +12483,89 @@ const ContainerRegistriesApiAxiosParamCreator = function (configuration) {
|
|
|
13438
12483
|
options: localVarRequestOptions,
|
|
13439
12484
|
};
|
|
13440
12485
|
}),
|
|
12486
|
+
/**
|
|
12487
|
+
*
|
|
12488
|
+
* @summary Edit a container registry
|
|
12489
|
+
* @param {string} organizationId Organization ID
|
|
12490
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12491
|
+
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
12492
|
+
* @param {*} [options] Override http request option.
|
|
12493
|
+
* @throws {RequiredError}
|
|
12494
|
+
*/
|
|
12495
|
+
editContainerRegistry: (organizationId, containerRegistryId, containerRegistryRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12496
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
12497
|
+
(0, common_1.assertParamExists)('editContainerRegistry', 'organizationId', organizationId);
|
|
12498
|
+
// verify required parameter 'containerRegistryId' is not null or undefined
|
|
12499
|
+
(0, common_1.assertParamExists)('editContainerRegistry', 'containerRegistryId', containerRegistryId);
|
|
12500
|
+
const localVarPath = `/organization/{organizationId}/containerRegistry/{containerRegistryId}`
|
|
12501
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
12502
|
+
.replace(`{${"containerRegistryId"}}`, encodeURIComponent(String(containerRegistryId)));
|
|
12503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12505
|
+
let baseOptions;
|
|
12506
|
+
if (configuration) {
|
|
12507
|
+
baseOptions = configuration.baseOptions;
|
|
12508
|
+
}
|
|
12509
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12510
|
+
const localVarHeaderParameter = {};
|
|
12511
|
+
const localVarQueryParameter = {};
|
|
12512
|
+
// authentication bearerAuth required
|
|
12513
|
+
// http bearer authentication required
|
|
12514
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12515
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12516
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12517
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12518
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12519
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(containerRegistryRequest, localVarRequestOptions, configuration);
|
|
12520
|
+
return {
|
|
12521
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12522
|
+
options: localVarRequestOptions,
|
|
12523
|
+
};
|
|
12524
|
+
}),
|
|
12525
|
+
/**
|
|
12526
|
+
*
|
|
12527
|
+
* @summary Get a container registry
|
|
12528
|
+
* @param {string} organizationId Organization ID
|
|
12529
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12530
|
+
* @param {*} [options] Override http request option.
|
|
12531
|
+
* @throws {RequiredError}
|
|
12532
|
+
*/
|
|
12533
|
+
getContainerRegistry: (organizationId, containerRegistryId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12534
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
12535
|
+
(0, common_1.assertParamExists)('getContainerRegistry', 'organizationId', organizationId);
|
|
12536
|
+
// verify required parameter 'containerRegistryId' is not null or undefined
|
|
12537
|
+
(0, common_1.assertParamExists)('getContainerRegistry', 'containerRegistryId', containerRegistryId);
|
|
12538
|
+
const localVarPath = `/organization/{organizationId}/containerRegistry/{containerRegistryId}`
|
|
12539
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
12540
|
+
.replace(`{${"containerRegistryId"}}`, encodeURIComponent(String(containerRegistryId)));
|
|
12541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12542
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12543
|
+
let baseOptions;
|
|
12544
|
+
if (configuration) {
|
|
12545
|
+
baseOptions = configuration.baseOptions;
|
|
12546
|
+
}
|
|
12547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12548
|
+
const localVarHeaderParameter = {};
|
|
12549
|
+
const localVarQueryParameter = {};
|
|
12550
|
+
// authentication bearerAuth required
|
|
12551
|
+
// http bearer authentication required
|
|
12552
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12553
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12556
|
+
return {
|
|
12557
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12558
|
+
options: localVarRequestOptions,
|
|
12559
|
+
};
|
|
12560
|
+
}),
|
|
13441
12561
|
/**
|
|
13442
12562
|
* List supported container registries by Qovery and get the mandatory authentification configuration.
|
|
13443
12563
|
* @summary List supported container registries
|
|
13444
|
-
* @param {string} organizationId Organization ID
|
|
13445
12564
|
* @param {*} [options] Override http request option.
|
|
13446
12565
|
* @throws {RequiredError}
|
|
13447
12566
|
*/
|
|
13448
|
-
listAvailableContainerRegistry: (
|
|
13449
|
-
|
|
13450
|
-
(0, common_1.assertParamExists)('listAvailableContainerRegistry', 'organizationId', organizationId);
|
|
13451
|
-
const localVarPath = `/organization/{organizationId}/availableContainerRegistry`
|
|
13452
|
-
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
12567
|
+
listAvailableContainerRegistry: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12568
|
+
const localVarPath = `/availableContainerRegistry`;
|
|
13453
12569
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13454
12570
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13455
12571
|
let baseOptions;
|
|
@@ -13530,25 +12646,54 @@ const ContainerRegistriesApiFp = function (configuration) {
|
|
|
13530
12646
|
*
|
|
13531
12647
|
* @summary Delete a container registry
|
|
13532
12648
|
* @param {string} organizationId Organization ID
|
|
12649
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12650
|
+
* @param {*} [options] Override http request option.
|
|
12651
|
+
* @throws {RequiredError}
|
|
12652
|
+
*/
|
|
12653
|
+
deleteContainerRegistry(organizationId, containerRegistryId, options) {
|
|
12654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteContainerRegistry(organizationId, containerRegistryId, options);
|
|
12656
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12657
|
+
});
|
|
12658
|
+
},
|
|
12659
|
+
/**
|
|
12660
|
+
*
|
|
12661
|
+
* @summary Edit a container registry
|
|
12662
|
+
* @param {string} organizationId Organization ID
|
|
12663
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12664
|
+
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
12665
|
+
* @param {*} [options] Override http request option.
|
|
12666
|
+
* @throws {RequiredError}
|
|
12667
|
+
*/
|
|
12668
|
+
editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options) {
|
|
12669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12670
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options);
|
|
12671
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
12672
|
+
});
|
|
12673
|
+
},
|
|
12674
|
+
/**
|
|
12675
|
+
*
|
|
12676
|
+
* @summary Get a container registry
|
|
12677
|
+
* @param {string} organizationId Organization ID
|
|
12678
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
13533
12679
|
* @param {*} [options] Override http request option.
|
|
13534
12680
|
* @throws {RequiredError}
|
|
13535
12681
|
*/
|
|
13536
|
-
|
|
12682
|
+
getContainerRegistry(organizationId, containerRegistryId, options) {
|
|
13537
12683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13538
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
12684
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getContainerRegistry(organizationId, containerRegistryId, options);
|
|
13539
12685
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13540
12686
|
});
|
|
13541
12687
|
},
|
|
13542
12688
|
/**
|
|
13543
12689
|
* List supported container registries by Qovery and get the mandatory authentification configuration.
|
|
13544
12690
|
* @summary List supported container registries
|
|
13545
|
-
* @param {string} organizationId Organization ID
|
|
13546
12691
|
* @param {*} [options] Override http request option.
|
|
13547
12692
|
* @throws {RequiredError}
|
|
13548
12693
|
*/
|
|
13549
|
-
listAvailableContainerRegistry(
|
|
12694
|
+
listAvailableContainerRegistry(options) {
|
|
13550
12695
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13551
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableContainerRegistry(
|
|
12696
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableContainerRegistry(options);
|
|
13552
12697
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13553
12698
|
});
|
|
13554
12699
|
},
|
|
@@ -13590,21 +12735,44 @@ const ContainerRegistriesApiFactory = function (configuration, basePath, axios)
|
|
|
13590
12735
|
*
|
|
13591
12736
|
* @summary Delete a container registry
|
|
13592
12737
|
* @param {string} organizationId Organization ID
|
|
12738
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12739
|
+
* @param {*} [options] Override http request option.
|
|
12740
|
+
* @throws {RequiredError}
|
|
12741
|
+
*/
|
|
12742
|
+
deleteContainerRegistry(organizationId, containerRegistryId, options) {
|
|
12743
|
+
return localVarFp.deleteContainerRegistry(organizationId, containerRegistryId, options).then((request) => request(axios, basePath));
|
|
12744
|
+
},
|
|
12745
|
+
/**
|
|
12746
|
+
*
|
|
12747
|
+
* @summary Edit a container registry
|
|
12748
|
+
* @param {string} organizationId Organization ID
|
|
12749
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12750
|
+
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
12751
|
+
* @param {*} [options] Override http request option.
|
|
12752
|
+
* @throws {RequiredError}
|
|
12753
|
+
*/
|
|
12754
|
+
editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options) {
|
|
12755
|
+
return localVarFp.editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options).then((request) => request(axios, basePath));
|
|
12756
|
+
},
|
|
12757
|
+
/**
|
|
12758
|
+
*
|
|
12759
|
+
* @summary Get a container registry
|
|
12760
|
+
* @param {string} organizationId Organization ID
|
|
12761
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
13593
12762
|
* @param {*} [options] Override http request option.
|
|
13594
12763
|
* @throws {RequiredError}
|
|
13595
12764
|
*/
|
|
13596
|
-
|
|
13597
|
-
return localVarFp.
|
|
12765
|
+
getContainerRegistry(organizationId, containerRegistryId, options) {
|
|
12766
|
+
return localVarFp.getContainerRegistry(organizationId, containerRegistryId, options).then((request) => request(axios, basePath));
|
|
13598
12767
|
},
|
|
13599
12768
|
/**
|
|
13600
12769
|
* List supported container registries by Qovery and get the mandatory authentification configuration.
|
|
13601
12770
|
* @summary List supported container registries
|
|
13602
|
-
* @param {string} organizationId Organization ID
|
|
13603
12771
|
* @param {*} [options] Override http request option.
|
|
13604
12772
|
* @throws {RequiredError}
|
|
13605
12773
|
*/
|
|
13606
|
-
listAvailableContainerRegistry(
|
|
13607
|
-
return localVarFp.listAvailableContainerRegistry(
|
|
12774
|
+
listAvailableContainerRegistry(options) {
|
|
12775
|
+
return localVarFp.listAvailableContainerRegistry(options).then((request) => request(axios, basePath));
|
|
13608
12776
|
},
|
|
13609
12777
|
/**
|
|
13610
12778
|
*
|
|
@@ -13642,23 +12810,48 @@ class ContainerRegistriesApi extends base_1.BaseAPI {
|
|
|
13642
12810
|
*
|
|
13643
12811
|
* @summary Delete a container registry
|
|
13644
12812
|
* @param {string} organizationId Organization ID
|
|
12813
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12814
|
+
* @param {*} [options] Override http request option.
|
|
12815
|
+
* @throws {RequiredError}
|
|
12816
|
+
* @memberof ContainerRegistriesApi
|
|
12817
|
+
*/
|
|
12818
|
+
deleteContainerRegistry(organizationId, containerRegistryId, options) {
|
|
12819
|
+
return (0, exports.ContainerRegistriesApiFp)(this.configuration).deleteContainerRegistry(organizationId, containerRegistryId, options).then((request) => request(this.axios, this.basePath));
|
|
12820
|
+
}
|
|
12821
|
+
/**
|
|
12822
|
+
*
|
|
12823
|
+
* @summary Edit a container registry
|
|
12824
|
+
* @param {string} organizationId Organization ID
|
|
12825
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
12826
|
+
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
12827
|
+
* @param {*} [options] Override http request option.
|
|
12828
|
+
* @throws {RequiredError}
|
|
12829
|
+
* @memberof ContainerRegistriesApi
|
|
12830
|
+
*/
|
|
12831
|
+
editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options) {
|
|
12832
|
+
return (0, exports.ContainerRegistriesApiFp)(this.configuration).editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12833
|
+
}
|
|
12834
|
+
/**
|
|
12835
|
+
*
|
|
12836
|
+
* @summary Get a container registry
|
|
12837
|
+
* @param {string} organizationId Organization ID
|
|
12838
|
+
* @param {string} containerRegistryId Container Registry ID
|
|
13645
12839
|
* @param {*} [options] Override http request option.
|
|
13646
12840
|
* @throws {RequiredError}
|
|
13647
12841
|
* @memberof ContainerRegistriesApi
|
|
13648
12842
|
*/
|
|
13649
|
-
|
|
13650
|
-
return (0, exports.ContainerRegistriesApiFp)(this.configuration).
|
|
12843
|
+
getContainerRegistry(organizationId, containerRegistryId, options) {
|
|
12844
|
+
return (0, exports.ContainerRegistriesApiFp)(this.configuration).getContainerRegistry(organizationId, containerRegistryId, options).then((request) => request(this.axios, this.basePath));
|
|
13651
12845
|
}
|
|
13652
12846
|
/**
|
|
13653
12847
|
* List supported container registries by Qovery and get the mandatory authentification configuration.
|
|
13654
12848
|
* @summary List supported container registries
|
|
13655
|
-
* @param {string} organizationId Organization ID
|
|
13656
12849
|
* @param {*} [options] Override http request option.
|
|
13657
12850
|
* @throws {RequiredError}
|
|
13658
12851
|
* @memberof ContainerRegistriesApi
|
|
13659
12852
|
*/
|
|
13660
|
-
listAvailableContainerRegistry(
|
|
13661
|
-
return (0, exports.ContainerRegistriesApiFp)(this.configuration).listAvailableContainerRegistry(
|
|
12853
|
+
listAvailableContainerRegistry(options) {
|
|
12854
|
+
return (0, exports.ContainerRegistriesApiFp)(this.configuration).listAvailableContainerRegistry(options).then((request) => request(this.axios, this.basePath));
|
|
13662
12855
|
}
|
|
13663
12856
|
/**
|
|
13664
12857
|
*
|
|
@@ -13674,35 +12867,31 @@ class ContainerRegistriesApi extends base_1.BaseAPI {
|
|
|
13674
12867
|
}
|
|
13675
12868
|
exports.ContainerRegistriesApi = ContainerRegistriesApi;
|
|
13676
12869
|
/**
|
|
13677
|
-
*
|
|
12870
|
+
* ContainerSecretApi - axios parameter creator
|
|
13678
12871
|
* @export
|
|
13679
12872
|
*/
|
|
13680
|
-
const
|
|
12873
|
+
const ContainerSecretApiAxiosParamCreator = function (configuration) {
|
|
13681
12874
|
return {
|
|
13682
12875
|
/**
|
|
13683
|
-
*
|
|
13684
|
-
* @summary
|
|
13685
|
-
* @param {string}
|
|
13686
|
-
* @param {
|
|
13687
|
-
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
12876
|
+
* - Add a secret to the container.
|
|
12877
|
+
* @summary Add a secret to the container
|
|
12878
|
+
* @param {string} containerId Container ID
|
|
12879
|
+
* @param {SecretRequest} [secretRequest]
|
|
13688
12880
|
* @param {*} [options] Override http request option.
|
|
13689
12881
|
* @throws {RequiredError}
|
|
13690
12882
|
*/
|
|
13691
|
-
|
|
13692
|
-
// verify required parameter '
|
|
13693
|
-
(0, common_1.assertParamExists)('
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
const localVarPath = `/organization/{organizationId}/containerRegistry/{containerRegistryId}`
|
|
13697
|
-
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
13698
|
-
.replace(`{${"containerRegistryId"}}`, encodeURIComponent(String(containerRegistryId)));
|
|
12883
|
+
createContainerSecret: (containerId, secretRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12884
|
+
// verify required parameter 'containerId' is not null or undefined
|
|
12885
|
+
(0, common_1.assertParamExists)('createContainerSecret', 'containerId', containerId);
|
|
12886
|
+
const localVarPath = `/container/{containerId}/secret`
|
|
12887
|
+
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
13699
12888
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13700
12889
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13701
12890
|
let baseOptions;
|
|
13702
12891
|
if (configuration) {
|
|
13703
12892
|
baseOptions = configuration.baseOptions;
|
|
13704
12893
|
}
|
|
13705
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
12894
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13706
12895
|
const localVarHeaderParameter = {};
|
|
13707
12896
|
const localVarQueryParameter = {};
|
|
13708
12897
|
// authentication bearerAuth required
|
|
@@ -13712,103 +12901,29 @@ const ContainerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
13712
12901
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13713
12902
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13714
12903
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13715
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
12904
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(secretRequest, localVarRequestOptions, configuration);
|
|
13716
12905
|
return {
|
|
13717
12906
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13718
12907
|
options: localVarRequestOptions,
|
|
13719
12908
|
};
|
|
13720
12909
|
}),
|
|
13721
|
-
};
|
|
13722
|
-
};
|
|
13723
|
-
exports.ContainerRegistryApiAxiosParamCreator = ContainerRegistryApiAxiosParamCreator;
|
|
13724
|
-
/**
|
|
13725
|
-
* ContainerRegistryApi - functional programming interface
|
|
13726
|
-
* @export
|
|
13727
|
-
*/
|
|
13728
|
-
const ContainerRegistryApiFp = function (configuration) {
|
|
13729
|
-
const localVarAxiosParamCreator = (0, exports.ContainerRegistryApiAxiosParamCreator)(configuration);
|
|
13730
|
-
return {
|
|
13731
|
-
/**
|
|
13732
|
-
*
|
|
13733
|
-
* @summary Edit a container registry
|
|
13734
|
-
* @param {string} organizationId Organization ID
|
|
13735
|
-
* @param {string} containerRegistryId Container Registry ID
|
|
13736
|
-
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
13737
|
-
* @param {*} [options] Override http request option.
|
|
13738
|
-
* @throws {RequiredError}
|
|
13739
|
-
*/
|
|
13740
|
-
editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options) {
|
|
13741
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options);
|
|
13743
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13744
|
-
});
|
|
13745
|
-
},
|
|
13746
|
-
};
|
|
13747
|
-
};
|
|
13748
|
-
exports.ContainerRegistryApiFp = ContainerRegistryApiFp;
|
|
13749
|
-
/**
|
|
13750
|
-
* ContainerRegistryApi - factory interface
|
|
13751
|
-
* @export
|
|
13752
|
-
*/
|
|
13753
|
-
const ContainerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
13754
|
-
const localVarFp = (0, exports.ContainerRegistryApiFp)(configuration);
|
|
13755
|
-
return {
|
|
13756
|
-
/**
|
|
13757
|
-
*
|
|
13758
|
-
* @summary Edit a container registry
|
|
13759
|
-
* @param {string} organizationId Organization ID
|
|
13760
|
-
* @param {string} containerRegistryId Container Registry ID
|
|
13761
|
-
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
13762
|
-
* @param {*} [options] Override http request option.
|
|
13763
|
-
* @throws {RequiredError}
|
|
13764
|
-
*/
|
|
13765
|
-
editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options) {
|
|
13766
|
-
return localVarFp.editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options).then((request) => request(axios, basePath));
|
|
13767
|
-
},
|
|
13768
|
-
};
|
|
13769
|
-
};
|
|
13770
|
-
exports.ContainerRegistryApiFactory = ContainerRegistryApiFactory;
|
|
13771
|
-
/**
|
|
13772
|
-
* ContainerRegistryApi - object-oriented interface
|
|
13773
|
-
* @export
|
|
13774
|
-
* @class ContainerRegistryApi
|
|
13775
|
-
* @extends {BaseAPI}
|
|
13776
|
-
*/
|
|
13777
|
-
class ContainerRegistryApi extends base_1.BaseAPI {
|
|
13778
|
-
/**
|
|
13779
|
-
*
|
|
13780
|
-
* @summary Edit a container registry
|
|
13781
|
-
* @param {string} organizationId Organization ID
|
|
13782
|
-
* @param {string} containerRegistryId Container Registry ID
|
|
13783
|
-
* @param {ContainerRegistryRequest} [containerRegistryRequest]
|
|
13784
|
-
* @param {*} [options] Override http request option.
|
|
13785
|
-
* @throws {RequiredError}
|
|
13786
|
-
* @memberof ContainerRegistryApi
|
|
13787
|
-
*/
|
|
13788
|
-
editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options) {
|
|
13789
|
-
return (0, exports.ContainerRegistryApiFp)(this.configuration).editContainerRegistry(organizationId, containerRegistryId, containerRegistryRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13790
|
-
}
|
|
13791
|
-
}
|
|
13792
|
-
exports.ContainerRegistryApi = ContainerRegistryApi;
|
|
13793
|
-
/**
|
|
13794
|
-
* ContainerSecretApi - axios parameter creator
|
|
13795
|
-
* @export
|
|
13796
|
-
*/
|
|
13797
|
-
const ContainerSecretApiAxiosParamCreator = function (configuration) {
|
|
13798
|
-
return {
|
|
13799
12910
|
/**
|
|
13800
|
-
* -
|
|
13801
|
-
* @summary
|
|
12911
|
+
* - Allows you to add an alias at container level on an existing secret having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new secret at container level with the same value as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the aliased_secret will be exposed in the \"aliased_secret\" field of the newly created secret - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
12912
|
+
* @summary Create a secret alias at the container level
|
|
13802
12913
|
* @param {string} containerId Container ID
|
|
13803
|
-
* @param {
|
|
12914
|
+
* @param {string} secretId Secret ID
|
|
12915
|
+
* @param {Key} [key]
|
|
13804
12916
|
* @param {*} [options] Override http request option.
|
|
13805
12917
|
* @throws {RequiredError}
|
|
13806
12918
|
*/
|
|
13807
|
-
|
|
12919
|
+
createContainerSecretAlias: (containerId, secretId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13808
12920
|
// verify required parameter 'containerId' is not null or undefined
|
|
13809
|
-
(0, common_1.assertParamExists)('
|
|
13810
|
-
|
|
13811
|
-
|
|
12921
|
+
(0, common_1.assertParamExists)('createContainerSecretAlias', 'containerId', containerId);
|
|
12922
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
12923
|
+
(0, common_1.assertParamExists)('createContainerSecretAlias', 'secretId', secretId);
|
|
12924
|
+
const localVarPath = `/container/{containerId}/secret/{secretId}/alias`
|
|
12925
|
+
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
12926
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
13812
12927
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13813
12928
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13814
12929
|
let baseOptions;
|
|
@@ -13825,27 +12940,27 @@ const ContainerSecretApiAxiosParamCreator = function (configuration) {
|
|
|
13825
12940
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13826
12941
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13827
12942
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13828
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
12943
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(key, localVarRequestOptions, configuration);
|
|
13829
12944
|
return {
|
|
13830
12945
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13831
12946
|
options: localVarRequestOptions,
|
|
13832
12947
|
};
|
|
13833
12948
|
}),
|
|
13834
12949
|
/**
|
|
13835
|
-
* - Allows you to
|
|
13836
|
-
* @summary Create a secret
|
|
12950
|
+
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
12951
|
+
* @summary Create a secret override at the container level
|
|
13837
12952
|
* @param {string} containerId Container ID
|
|
13838
12953
|
* @param {string} secretId Secret ID
|
|
13839
|
-
* @param {
|
|
12954
|
+
* @param {Value} [value]
|
|
13840
12955
|
* @param {*} [options] Override http request option.
|
|
13841
12956
|
* @throws {RequiredError}
|
|
13842
12957
|
*/
|
|
13843
|
-
|
|
12958
|
+
createContainerSecretOverride: (containerId, secretId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13844
12959
|
// verify required parameter 'containerId' is not null or undefined
|
|
13845
|
-
(0, common_1.assertParamExists)('
|
|
12960
|
+
(0, common_1.assertParamExists)('createContainerSecretOverride', 'containerId', containerId);
|
|
13846
12961
|
// verify required parameter 'secretId' is not null or undefined
|
|
13847
|
-
(0, common_1.assertParamExists)('
|
|
13848
|
-
const localVarPath = `/container/{containerId}/secret/{secretId}/
|
|
12962
|
+
(0, common_1.assertParamExists)('createContainerSecretOverride', 'secretId', secretId);
|
|
12963
|
+
const localVarPath = `/container/{containerId}/secret/{secretId}/override`
|
|
13849
12964
|
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)))
|
|
13850
12965
|
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
13851
12966
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13864,7 +12979,7 @@ const ContainerSecretApiAxiosParamCreator = function (configuration) {
|
|
|
13864
12979
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13865
12980
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13866
12981
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13867
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
12982
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(value, localVarRequestOptions, configuration);
|
|
13868
12983
|
return {
|
|
13869
12984
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13870
12985
|
options: localVarRequestOptions,
|
|
@@ -14018,6 +13133,21 @@ const ContainerSecretApiFp = function (configuration) {
|
|
|
14018
13133
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
14019
13134
|
});
|
|
14020
13135
|
},
|
|
13136
|
+
/**
|
|
13137
|
+
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
13138
|
+
* @summary Create a secret override at the container level
|
|
13139
|
+
* @param {string} containerId Container ID
|
|
13140
|
+
* @param {string} secretId Secret ID
|
|
13141
|
+
* @param {Value} [value]
|
|
13142
|
+
* @param {*} [options] Override http request option.
|
|
13143
|
+
* @throws {RequiredError}
|
|
13144
|
+
*/
|
|
13145
|
+
createContainerSecretOverride(containerId, secretId, value, options) {
|
|
13146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createContainerSecretOverride(containerId, secretId, value, options);
|
|
13148
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13149
|
+
});
|
|
13150
|
+
},
|
|
14021
13151
|
/**
|
|
14022
13152
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
14023
13153
|
* @summary Delete a secret from an container
|
|
@@ -14093,6 +13223,18 @@ const ContainerSecretApiFactory = function (configuration, basePath, axios) {
|
|
|
14093
13223
|
createContainerSecretAlias(containerId, secretId, key, options) {
|
|
14094
13224
|
return localVarFp.createContainerSecretAlias(containerId, secretId, key, options).then((request) => request(axios, basePath));
|
|
14095
13225
|
},
|
|
13226
|
+
/**
|
|
13227
|
+
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
13228
|
+
* @summary Create a secret override at the container level
|
|
13229
|
+
* @param {string} containerId Container ID
|
|
13230
|
+
* @param {string} secretId Secret ID
|
|
13231
|
+
* @param {Value} [value]
|
|
13232
|
+
* @param {*} [options] Override http request option.
|
|
13233
|
+
* @throws {RequiredError}
|
|
13234
|
+
*/
|
|
13235
|
+
createContainerSecretOverride(containerId, secretId, value, options) {
|
|
13236
|
+
return localVarFp.createContainerSecretOverride(containerId, secretId, value, options).then((request) => request(axios, basePath));
|
|
13237
|
+
},
|
|
14096
13238
|
/**
|
|
14097
13239
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
14098
13240
|
* @summary Delete a secret from an container
|
|
@@ -14161,6 +13303,19 @@ class ContainerSecretApi extends base_1.BaseAPI {
|
|
|
14161
13303
|
createContainerSecretAlias(containerId, secretId, key, options) {
|
|
14162
13304
|
return (0, exports.ContainerSecretApiFp)(this.configuration).createContainerSecretAlias(containerId, secretId, key, options).then((request) => request(this.axios, this.basePath));
|
|
14163
13305
|
}
|
|
13306
|
+
/**
|
|
13307
|
+
* - Allows you to override at container level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at container level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
13308
|
+
* @summary Create a secret override at the container level
|
|
13309
|
+
* @param {string} containerId Container ID
|
|
13310
|
+
* @param {string} secretId Secret ID
|
|
13311
|
+
* @param {Value} [value]
|
|
13312
|
+
* @param {*} [options] Override http request option.
|
|
13313
|
+
* @throws {RequiredError}
|
|
13314
|
+
* @memberof ContainerSecretApi
|
|
13315
|
+
*/
|
|
13316
|
+
createContainerSecretOverride(containerId, secretId, value, options) {
|
|
13317
|
+
return (0, exports.ContainerSecretApiFp)(this.configuration).createContainerSecretOverride(containerId, secretId, value, options).then((request) => request(this.axios, this.basePath));
|
|
13318
|
+
}
|
|
14164
13319
|
/**
|
|
14165
13320
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
14166
13321
|
* @summary Delete a secret from an container
|
|
@@ -14206,18 +13361,18 @@ exports.ContainerSecretApi = ContainerSecretApi;
|
|
|
14206
13361
|
const ContainersApiAxiosParamCreator = function (configuration) {
|
|
14207
13362
|
return {
|
|
14208
13363
|
/**
|
|
14209
|
-
*
|
|
14210
|
-
* @summary
|
|
14211
|
-
* @param {string}
|
|
14212
|
-
* @param {
|
|
14213
|
-
* @param {*} [options] Override http request option.
|
|
14214
|
-
* @throws {RequiredError}
|
|
14215
|
-
*/
|
|
14216
|
-
|
|
14217
|
-
// verify required parameter '
|
|
14218
|
-
(0, common_1.assertParamExists)('
|
|
14219
|
-
const localVarPath = `/
|
|
14220
|
-
.replace(`{${"
|
|
13364
|
+
* Triggers a new container deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the container should have the same image name and a different tag
|
|
13365
|
+
* @summary Auto deploy containers
|
|
13366
|
+
* @param {string} organizationId Organization ID
|
|
13367
|
+
* @param {InlineObject1} [inlineObject1]
|
|
13368
|
+
* @param {*} [options] Override http request option.
|
|
13369
|
+
* @throws {RequiredError}
|
|
13370
|
+
*/
|
|
13371
|
+
autoDeployContainerEnvironments: (organizationId, inlineObject1, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13372
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
13373
|
+
(0, common_1.assertParamExists)('autoDeployContainerEnvironments', 'organizationId', organizationId);
|
|
13374
|
+
const localVarPath = `/organization/{organizationId}/container/deploy`
|
|
13375
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
14221
13376
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14222
13377
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14223
13378
|
let baseOptions;
|
|
@@ -14234,24 +13389,24 @@ const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
14234
13389
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14235
13390
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14236
13391
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14237
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
13392
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inlineObject1, localVarRequestOptions, configuration);
|
|
14238
13393
|
return {
|
|
14239
13394
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14240
13395
|
options: localVarRequestOptions,
|
|
14241
13396
|
};
|
|
14242
13397
|
}),
|
|
14243
13398
|
/**
|
|
14244
|
-
*
|
|
14245
|
-
* @summary
|
|
13399
|
+
*
|
|
13400
|
+
* @summary Create a container
|
|
14246
13401
|
* @param {string} environmentId Environment ID
|
|
14247
|
-
* @param {
|
|
13402
|
+
* @param {ContainerRequest} [containerRequest]
|
|
14248
13403
|
* @param {*} [options] Override http request option.
|
|
14249
13404
|
* @throws {RequiredError}
|
|
14250
13405
|
*/
|
|
14251
|
-
|
|
13406
|
+
createContainer: (environmentId, containerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
14252
13407
|
// verify required parameter 'environmentId' is not null or undefined
|
|
14253
|
-
(0, common_1.assertParamExists)('
|
|
14254
|
-
const localVarPath = `/environment/{environmentId}/container
|
|
13408
|
+
(0, common_1.assertParamExists)('createContainer', 'environmentId', environmentId);
|
|
13409
|
+
const localVarPath = `/environment/{environmentId}/container`
|
|
14255
13410
|
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
14256
13411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14257
13412
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -14269,23 +13424,24 @@ const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
14269
13424
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14270
13425
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14271
13426
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14272
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
13427
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(containerRequest, localVarRequestOptions, configuration);
|
|
14273
13428
|
return {
|
|
14274
13429
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14275
13430
|
options: localVarRequestOptions,
|
|
14276
13431
|
};
|
|
14277
13432
|
}),
|
|
14278
13433
|
/**
|
|
14279
|
-
*
|
|
14280
|
-
* @summary
|
|
13434
|
+
* Update and deploy the selected services
|
|
13435
|
+
* @summary Deploy services
|
|
14281
13436
|
* @param {string} environmentId Environment ID
|
|
13437
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
14282
13438
|
* @param {*} [options] Override http request option.
|
|
14283
13439
|
* @throws {RequiredError}
|
|
14284
13440
|
*/
|
|
14285
|
-
|
|
13441
|
+
deployAllServices: (environmentId, deployAllRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
14286
13442
|
// verify required parameter 'environmentId' is not null or undefined
|
|
14287
|
-
(0, common_1.assertParamExists)('
|
|
14288
|
-
const localVarPath = `/environment/{environmentId}/container/
|
|
13443
|
+
(0, common_1.assertParamExists)('deployAllServices', 'environmentId', environmentId);
|
|
13444
|
+
const localVarPath = `/environment/{environmentId}/container/deploy`
|
|
14289
13445
|
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
14290
13446
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14291
13447
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -14293,15 +13449,17 @@ const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
14293
13449
|
if (configuration) {
|
|
14294
13450
|
baseOptions = configuration.baseOptions;
|
|
14295
13451
|
}
|
|
14296
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13452
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14297
13453
|
const localVarHeaderParameter = {};
|
|
14298
13454
|
const localVarQueryParameter = {};
|
|
14299
13455
|
// authentication bearerAuth required
|
|
14300
13456
|
// http bearer authentication required
|
|
14301
13457
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13458
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14302
13459
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14303
13460
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14304
13461
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13462
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deployAllRequest, localVarRequestOptions, configuration);
|
|
14305
13463
|
return {
|
|
14306
13464
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14307
13465
|
options: localVarRequestOptions,
|
|
@@ -14439,6 +13597,41 @@ const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
14439
13597
|
options: localVarRequestOptions,
|
|
14440
13598
|
};
|
|
14441
13599
|
}),
|
|
13600
|
+
/**
|
|
13601
|
+
* Triggers a new container preview for each environment matching the following conditions - preview environment feature should be enabled for the container - the container should have the same image name and a different tag
|
|
13602
|
+
* @summary Preview container environments
|
|
13603
|
+
* @param {string} organizationId Organization ID
|
|
13604
|
+
* @param {InlineObject2} [inlineObject2]
|
|
13605
|
+
* @param {*} [options] Override http request option.
|
|
13606
|
+
* @throws {RequiredError}
|
|
13607
|
+
*/
|
|
13608
|
+
previewContainerEnvironments: (organizationId, inlineObject2, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13609
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
13610
|
+
(0, common_1.assertParamExists)('previewContainerEnvironments', 'organizationId', organizationId);
|
|
13611
|
+
const localVarPath = `/organization/{organizationId}/container/preview`
|
|
13612
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
13613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13614
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13615
|
+
let baseOptions;
|
|
13616
|
+
if (configuration) {
|
|
13617
|
+
baseOptions = configuration.baseOptions;
|
|
13618
|
+
}
|
|
13619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13620
|
+
const localVarHeaderParameter = {};
|
|
13621
|
+
const localVarQueryParameter = {};
|
|
13622
|
+
// authentication bearerAuth required
|
|
13623
|
+
// http bearer authentication required
|
|
13624
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13625
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13629
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inlineObject2, localVarRequestOptions, configuration);
|
|
13630
|
+
return {
|
|
13631
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13632
|
+
options: localVarRequestOptions,
|
|
13633
|
+
};
|
|
13634
|
+
}),
|
|
14442
13635
|
};
|
|
14443
13636
|
};
|
|
14444
13637
|
exports.ContainersApiAxiosParamCreator = ContainersApiAxiosParamCreator;
|
|
@@ -14450,43 +13643,44 @@ const ContainersApiFp = function (configuration) {
|
|
|
14450
13643
|
const localVarAxiosParamCreator = (0, exports.ContainersApiAxiosParamCreator)(configuration);
|
|
14451
13644
|
return {
|
|
14452
13645
|
/**
|
|
14453
|
-
*
|
|
14454
|
-
* @summary
|
|
14455
|
-
* @param {string}
|
|
14456
|
-
* @param {
|
|
13646
|
+
* Triggers a new container deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the container should have the same image name and a different tag
|
|
13647
|
+
* @summary Auto deploy containers
|
|
13648
|
+
* @param {string} organizationId Organization ID
|
|
13649
|
+
* @param {InlineObject1} [inlineObject1]
|
|
14457
13650
|
* @param {*} [options] Override http request option.
|
|
14458
13651
|
* @throws {RequiredError}
|
|
14459
13652
|
*/
|
|
14460
|
-
|
|
13653
|
+
autoDeployContainerEnvironments(organizationId, inlineObject1, options) {
|
|
14461
13654
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14462
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.autoDeployContainerEnvironments(organizationId, inlineObject1, options);
|
|
14463
13656
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
14464
13657
|
});
|
|
14465
13658
|
},
|
|
14466
13659
|
/**
|
|
14467
|
-
*
|
|
14468
|
-
* @summary
|
|
13660
|
+
*
|
|
13661
|
+
* @summary Create a container
|
|
14469
13662
|
* @param {string} environmentId Environment ID
|
|
14470
|
-
* @param {
|
|
13663
|
+
* @param {ContainerRequest} [containerRequest]
|
|
14471
13664
|
* @param {*} [options] Override http request option.
|
|
14472
13665
|
* @throws {RequiredError}
|
|
14473
13666
|
*/
|
|
14474
|
-
|
|
13667
|
+
createContainer(environmentId, containerRequest, options) {
|
|
14475
13668
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14476
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13669
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createContainer(environmentId, containerRequest, options);
|
|
14477
13670
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
14478
13671
|
});
|
|
14479
13672
|
},
|
|
14480
13673
|
/**
|
|
14481
|
-
*
|
|
14482
|
-
* @summary
|
|
13674
|
+
* Update and deploy the selected services
|
|
13675
|
+
* @summary Deploy services
|
|
14483
13676
|
* @param {string} environmentId Environment ID
|
|
13677
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
14484
13678
|
* @param {*} [options] Override http request option.
|
|
14485
13679
|
* @throws {RequiredError}
|
|
14486
13680
|
*/
|
|
14487
|
-
|
|
13681
|
+
deployAllServices(environmentId, deployAllRequest, options) {
|
|
14488
13682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14489
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployAllServices(environmentId, deployAllRequest, options);
|
|
14490
13684
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
14491
13685
|
});
|
|
14492
13686
|
},
|
|
@@ -14543,6 +13737,20 @@ const ContainersApiFp = function (configuration) {
|
|
|
14543
13737
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
14544
13738
|
});
|
|
14545
13739
|
},
|
|
13740
|
+
/**
|
|
13741
|
+
* Triggers a new container preview for each environment matching the following conditions - preview environment feature should be enabled for the container - the container should have the same image name and a different tag
|
|
13742
|
+
* @summary Preview container environments
|
|
13743
|
+
* @param {string} organizationId Organization ID
|
|
13744
|
+
* @param {InlineObject2} [inlineObject2]
|
|
13745
|
+
* @param {*} [options] Override http request option.
|
|
13746
|
+
* @throws {RequiredError}
|
|
13747
|
+
*/
|
|
13748
|
+
previewContainerEnvironments(organizationId, inlineObject2, options) {
|
|
13749
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13750
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.previewContainerEnvironments(organizationId, inlineObject2, options);
|
|
13751
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13752
|
+
});
|
|
13753
|
+
},
|
|
14546
13754
|
};
|
|
14547
13755
|
};
|
|
14548
13756
|
exports.ContainersApiFp = ContainersApiFp;
|
|
@@ -14553,6 +13761,17 @@ exports.ContainersApiFp = ContainersApiFp;
|
|
|
14553
13761
|
const ContainersApiFactory = function (configuration, basePath, axios) {
|
|
14554
13762
|
const localVarFp = (0, exports.ContainersApiFp)(configuration);
|
|
14555
13763
|
return {
|
|
13764
|
+
/**
|
|
13765
|
+
* Triggers a new container deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the container should have the same image name and a different tag
|
|
13766
|
+
* @summary Auto deploy containers
|
|
13767
|
+
* @param {string} organizationId Organization ID
|
|
13768
|
+
* @param {InlineObject1} [inlineObject1]
|
|
13769
|
+
* @param {*} [options] Override http request option.
|
|
13770
|
+
* @throws {RequiredError}
|
|
13771
|
+
*/
|
|
13772
|
+
autoDeployContainerEnvironments(organizationId, inlineObject1, options) {
|
|
13773
|
+
return localVarFp.autoDeployContainerEnvironments(organizationId, inlineObject1, options).then((request) => request(axios, basePath));
|
|
13774
|
+
},
|
|
14556
13775
|
/**
|
|
14557
13776
|
*
|
|
14558
13777
|
* @summary Create a container
|
|
@@ -14565,25 +13784,15 @@ const ContainersApiFactory = function (configuration, basePath, axios) {
|
|
|
14565
13784
|
return localVarFp.createContainer(environmentId, containerRequest, options).then((request) => request(axios, basePath));
|
|
14566
13785
|
},
|
|
14567
13786
|
/**
|
|
14568
|
-
*
|
|
14569
|
-
* @summary Deploy
|
|
13787
|
+
* Update and deploy the selected services
|
|
13788
|
+
* @summary Deploy services
|
|
14570
13789
|
* @param {string} environmentId Environment ID
|
|
14571
13790
|
* @param {DeployAllRequest} [deployAllRequest]
|
|
14572
13791
|
* @param {*} [options] Override http request option.
|
|
14573
13792
|
* @throws {RequiredError}
|
|
14574
13793
|
*/
|
|
14575
|
-
|
|
14576
|
-
return localVarFp.
|
|
14577
|
-
},
|
|
14578
|
-
/**
|
|
14579
|
-
*
|
|
14580
|
-
* @summary List running instances with CPU and RAM usage for each container
|
|
14581
|
-
* @param {string} environmentId Environment ID
|
|
14582
|
-
* @param {*} [options] Override http request option.
|
|
14583
|
-
* @throws {RequiredError}
|
|
14584
|
-
*/
|
|
14585
|
-
getEnvironmentContainerCurrentInstance(environmentId, options) {
|
|
14586
|
-
return localVarFp.getEnvironmentContainerCurrentInstance(environmentId, options).then((request) => request(axios, basePath));
|
|
13794
|
+
deployAllServices(environmentId, deployAllRequest, options) {
|
|
13795
|
+
return localVarFp.deployAllServices(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
|
|
14587
13796
|
},
|
|
14588
13797
|
/**
|
|
14589
13798
|
* Returns min, max, and running number of instances for each container
|
|
@@ -14626,6 +13835,17 @@ const ContainersApiFactory = function (configuration, basePath, axios) {
|
|
|
14626
13835
|
listContainer(environmentId, toUpdate, options) {
|
|
14627
13836
|
return localVarFp.listContainer(environmentId, toUpdate, options).then((request) => request(axios, basePath));
|
|
14628
13837
|
},
|
|
13838
|
+
/**
|
|
13839
|
+
* Triggers a new container preview for each environment matching the following conditions - preview environment feature should be enabled for the container - the container should have the same image name and a different tag
|
|
13840
|
+
* @summary Preview container environments
|
|
13841
|
+
* @param {string} organizationId Organization ID
|
|
13842
|
+
* @param {InlineObject2} [inlineObject2]
|
|
13843
|
+
* @param {*} [options] Override http request option.
|
|
13844
|
+
* @throws {RequiredError}
|
|
13845
|
+
*/
|
|
13846
|
+
previewContainerEnvironments(organizationId, inlineObject2, options) {
|
|
13847
|
+
return localVarFp.previewContainerEnvironments(organizationId, inlineObject2, options).then((request) => request(axios, basePath));
|
|
13848
|
+
},
|
|
14629
13849
|
};
|
|
14630
13850
|
};
|
|
14631
13851
|
exports.ContainersApiFactory = ContainersApiFactory;
|
|
@@ -14637,39 +13857,40 @@ exports.ContainersApiFactory = ContainersApiFactory;
|
|
|
14637
13857
|
*/
|
|
14638
13858
|
class ContainersApi extends base_1.BaseAPI {
|
|
14639
13859
|
/**
|
|
14640
|
-
*
|
|
14641
|
-
* @summary
|
|
14642
|
-
* @param {string}
|
|
14643
|
-
* @param {
|
|
13860
|
+
* Triggers a new container deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the container should have the same image name and a different tag
|
|
13861
|
+
* @summary Auto deploy containers
|
|
13862
|
+
* @param {string} organizationId Organization ID
|
|
13863
|
+
* @param {InlineObject1} [inlineObject1]
|
|
14644
13864
|
* @param {*} [options] Override http request option.
|
|
14645
13865
|
* @throws {RequiredError}
|
|
14646
13866
|
* @memberof ContainersApi
|
|
14647
13867
|
*/
|
|
14648
|
-
|
|
14649
|
-
return (0, exports.ContainersApiFp)(this.configuration).
|
|
13868
|
+
autoDeployContainerEnvironments(organizationId, inlineObject1, options) {
|
|
13869
|
+
return (0, exports.ContainersApiFp)(this.configuration).autoDeployContainerEnvironments(organizationId, inlineObject1, options).then((request) => request(this.axios, this.basePath));
|
|
14650
13870
|
}
|
|
14651
13871
|
/**
|
|
14652
|
-
*
|
|
14653
|
-
* @summary
|
|
13872
|
+
*
|
|
13873
|
+
* @summary Create a container
|
|
14654
13874
|
* @param {string} environmentId Environment ID
|
|
14655
|
-
* @param {
|
|
13875
|
+
* @param {ContainerRequest} [containerRequest]
|
|
14656
13876
|
* @param {*} [options] Override http request option.
|
|
14657
13877
|
* @throws {RequiredError}
|
|
14658
13878
|
* @memberof ContainersApi
|
|
14659
13879
|
*/
|
|
14660
|
-
|
|
14661
|
-
return (0, exports.ContainersApiFp)(this.configuration).
|
|
13880
|
+
createContainer(environmentId, containerRequest, options) {
|
|
13881
|
+
return (0, exports.ContainersApiFp)(this.configuration).createContainer(environmentId, containerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14662
13882
|
}
|
|
14663
13883
|
/**
|
|
14664
|
-
*
|
|
14665
|
-
* @summary
|
|
13884
|
+
* Update and deploy the selected services
|
|
13885
|
+
* @summary Deploy services
|
|
14666
13886
|
* @param {string} environmentId Environment ID
|
|
13887
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
14667
13888
|
* @param {*} [options] Override http request option.
|
|
14668
13889
|
* @throws {RequiredError}
|
|
14669
13890
|
* @memberof ContainersApi
|
|
14670
13891
|
*/
|
|
14671
|
-
|
|
14672
|
-
return (0, exports.ContainersApiFp)(this.configuration).
|
|
13892
|
+
deployAllServices(environmentId, deployAllRequest, options) {
|
|
13893
|
+
return (0, exports.ContainersApiFp)(this.configuration).deployAllServices(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14673
13894
|
}
|
|
14674
13895
|
/**
|
|
14675
13896
|
* Returns min, max, and running number of instances for each container
|
|
@@ -14716,6 +13937,18 @@ class ContainersApi extends base_1.BaseAPI {
|
|
|
14716
13937
|
listContainer(environmentId, toUpdate, options) {
|
|
14717
13938
|
return (0, exports.ContainersApiFp)(this.configuration).listContainer(environmentId, toUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
14718
13939
|
}
|
|
13940
|
+
/**
|
|
13941
|
+
* Triggers a new container preview for each environment matching the following conditions - preview environment feature should be enabled for the container - the container should have the same image name and a different tag
|
|
13942
|
+
* @summary Preview container environments
|
|
13943
|
+
* @param {string} organizationId Organization ID
|
|
13944
|
+
* @param {InlineObject2} [inlineObject2]
|
|
13945
|
+
* @param {*} [options] Override http request option.
|
|
13946
|
+
* @throws {RequiredError}
|
|
13947
|
+
* @memberof ContainersApi
|
|
13948
|
+
*/
|
|
13949
|
+
previewContainerEnvironments(organizationId, inlineObject2, options) {
|
|
13950
|
+
return (0, exports.ContainersApiFp)(this.configuration).previewContainerEnvironments(organizationId, inlineObject2, options).then((request) => request(this.axios, this.basePath));
|
|
13951
|
+
}
|
|
14719
13952
|
}
|
|
14720
13953
|
exports.ContainersApi = ContainersApi;
|
|
14721
13954
|
/**
|
|
@@ -15532,183 +14765,6 @@ class DatabaseApplicationApi extends base_1.BaseAPI {
|
|
|
15532
14765
|
}
|
|
15533
14766
|
}
|
|
15534
14767
|
exports.DatabaseApplicationApi = DatabaseApplicationApi;
|
|
15535
|
-
/**
|
|
15536
|
-
* DatabaseContainerApi - axios parameter creator
|
|
15537
|
-
* @export
|
|
15538
|
-
*/
|
|
15539
|
-
const DatabaseContainerApiAxiosParamCreator = function (configuration) {
|
|
15540
|
-
return {
|
|
15541
|
-
/**
|
|
15542
|
-
*
|
|
15543
|
-
* @summary List container using the database
|
|
15544
|
-
* @param {string} databaseId Database ID
|
|
15545
|
-
* @param {*} [options] Override http request option.
|
|
15546
|
-
* @throws {RequiredError}
|
|
15547
|
-
*/
|
|
15548
|
-
listDatabaseContainer: (databaseId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
15549
|
-
// verify required parameter 'databaseId' is not null or undefined
|
|
15550
|
-
(0, common_1.assertParamExists)('listDatabaseContainer', 'databaseId', databaseId);
|
|
15551
|
-
const localVarPath = `/database/{databaseId}/container`
|
|
15552
|
-
.replace(`{${"databaseId"}}`, encodeURIComponent(String(databaseId)));
|
|
15553
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15554
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15555
|
-
let baseOptions;
|
|
15556
|
-
if (configuration) {
|
|
15557
|
-
baseOptions = configuration.baseOptions;
|
|
15558
|
-
}
|
|
15559
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15560
|
-
const localVarHeaderParameter = {};
|
|
15561
|
-
const localVarQueryParameter = {};
|
|
15562
|
-
// authentication bearerAuth required
|
|
15563
|
-
// http bearer authentication required
|
|
15564
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15565
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15566
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15567
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15568
|
-
return {
|
|
15569
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15570
|
-
options: localVarRequestOptions,
|
|
15571
|
-
};
|
|
15572
|
-
}),
|
|
15573
|
-
/**
|
|
15574
|
-
*
|
|
15575
|
-
* @summary Remove an container from this database
|
|
15576
|
-
* @param {string} databaseId Database ID
|
|
15577
|
-
* @param {string} targetContainerId Target container ID
|
|
15578
|
-
* @param {*} [options] Override http request option.
|
|
15579
|
-
* @throws {RequiredError}
|
|
15580
|
-
*/
|
|
15581
|
-
removeContainerFromDatabase: (databaseId, targetContainerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
15582
|
-
// verify required parameter 'databaseId' is not null or undefined
|
|
15583
|
-
(0, common_1.assertParamExists)('removeContainerFromDatabase', 'databaseId', databaseId);
|
|
15584
|
-
// verify required parameter 'targetContainerId' is not null or undefined
|
|
15585
|
-
(0, common_1.assertParamExists)('removeContainerFromDatabase', 'targetContainerId', targetContainerId);
|
|
15586
|
-
const localVarPath = `/database/{databaseId}/container/{targetContainerId}`
|
|
15587
|
-
.replace(`{${"databaseId"}}`, encodeURIComponent(String(databaseId)))
|
|
15588
|
-
.replace(`{${"targetContainerId"}}`, encodeURIComponent(String(targetContainerId)));
|
|
15589
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15590
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15591
|
-
let baseOptions;
|
|
15592
|
-
if (configuration) {
|
|
15593
|
-
baseOptions = configuration.baseOptions;
|
|
15594
|
-
}
|
|
15595
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
15596
|
-
const localVarHeaderParameter = {};
|
|
15597
|
-
const localVarQueryParameter = {};
|
|
15598
|
-
// authentication bearerAuth required
|
|
15599
|
-
// http bearer authentication required
|
|
15600
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15601
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15602
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15603
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15604
|
-
return {
|
|
15605
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15606
|
-
options: localVarRequestOptions,
|
|
15607
|
-
};
|
|
15608
|
-
}),
|
|
15609
|
-
};
|
|
15610
|
-
};
|
|
15611
|
-
exports.DatabaseContainerApiAxiosParamCreator = DatabaseContainerApiAxiosParamCreator;
|
|
15612
|
-
/**
|
|
15613
|
-
* DatabaseContainerApi - functional programming interface
|
|
15614
|
-
* @export
|
|
15615
|
-
*/
|
|
15616
|
-
const DatabaseContainerApiFp = function (configuration) {
|
|
15617
|
-
const localVarAxiosParamCreator = (0, exports.DatabaseContainerApiAxiosParamCreator)(configuration);
|
|
15618
|
-
return {
|
|
15619
|
-
/**
|
|
15620
|
-
*
|
|
15621
|
-
* @summary List container using the database
|
|
15622
|
-
* @param {string} databaseId Database ID
|
|
15623
|
-
* @param {*} [options] Override http request option.
|
|
15624
|
-
* @throws {RequiredError}
|
|
15625
|
-
*/
|
|
15626
|
-
listDatabaseContainer(databaseId, options) {
|
|
15627
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15628
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDatabaseContainer(databaseId, options);
|
|
15629
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
15630
|
-
});
|
|
15631
|
-
},
|
|
15632
|
-
/**
|
|
15633
|
-
*
|
|
15634
|
-
* @summary Remove an container from this database
|
|
15635
|
-
* @param {string} databaseId Database ID
|
|
15636
|
-
* @param {string} targetContainerId Target container ID
|
|
15637
|
-
* @param {*} [options] Override http request option.
|
|
15638
|
-
* @throws {RequiredError}
|
|
15639
|
-
*/
|
|
15640
|
-
removeContainerFromDatabase(databaseId, targetContainerId, options) {
|
|
15641
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15642
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeContainerFromDatabase(databaseId, targetContainerId, options);
|
|
15643
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
15644
|
-
});
|
|
15645
|
-
},
|
|
15646
|
-
};
|
|
15647
|
-
};
|
|
15648
|
-
exports.DatabaseContainerApiFp = DatabaseContainerApiFp;
|
|
15649
|
-
/**
|
|
15650
|
-
* DatabaseContainerApi - factory interface
|
|
15651
|
-
* @export
|
|
15652
|
-
*/
|
|
15653
|
-
const DatabaseContainerApiFactory = function (configuration, basePath, axios) {
|
|
15654
|
-
const localVarFp = (0, exports.DatabaseContainerApiFp)(configuration);
|
|
15655
|
-
return {
|
|
15656
|
-
/**
|
|
15657
|
-
*
|
|
15658
|
-
* @summary List container using the database
|
|
15659
|
-
* @param {string} databaseId Database ID
|
|
15660
|
-
* @param {*} [options] Override http request option.
|
|
15661
|
-
* @throws {RequiredError}
|
|
15662
|
-
*/
|
|
15663
|
-
listDatabaseContainer(databaseId, options) {
|
|
15664
|
-
return localVarFp.listDatabaseContainer(databaseId, options).then((request) => request(axios, basePath));
|
|
15665
|
-
},
|
|
15666
|
-
/**
|
|
15667
|
-
*
|
|
15668
|
-
* @summary Remove an container from this database
|
|
15669
|
-
* @param {string} databaseId Database ID
|
|
15670
|
-
* @param {string} targetContainerId Target container ID
|
|
15671
|
-
* @param {*} [options] Override http request option.
|
|
15672
|
-
* @throws {RequiredError}
|
|
15673
|
-
*/
|
|
15674
|
-
removeContainerFromDatabase(databaseId, targetContainerId, options) {
|
|
15675
|
-
return localVarFp.removeContainerFromDatabase(databaseId, targetContainerId, options).then((request) => request(axios, basePath));
|
|
15676
|
-
},
|
|
15677
|
-
};
|
|
15678
|
-
};
|
|
15679
|
-
exports.DatabaseContainerApiFactory = DatabaseContainerApiFactory;
|
|
15680
|
-
/**
|
|
15681
|
-
* DatabaseContainerApi - object-oriented interface
|
|
15682
|
-
* @export
|
|
15683
|
-
* @class DatabaseContainerApi
|
|
15684
|
-
* @extends {BaseAPI}
|
|
15685
|
-
*/
|
|
15686
|
-
class DatabaseContainerApi extends base_1.BaseAPI {
|
|
15687
|
-
/**
|
|
15688
|
-
*
|
|
15689
|
-
* @summary List container using the database
|
|
15690
|
-
* @param {string} databaseId Database ID
|
|
15691
|
-
* @param {*} [options] Override http request option.
|
|
15692
|
-
* @throws {RequiredError}
|
|
15693
|
-
* @memberof DatabaseContainerApi
|
|
15694
|
-
*/
|
|
15695
|
-
listDatabaseContainer(databaseId, options) {
|
|
15696
|
-
return (0, exports.DatabaseContainerApiFp)(this.configuration).listDatabaseContainer(databaseId, options).then((request) => request(this.axios, this.basePath));
|
|
15697
|
-
}
|
|
15698
|
-
/**
|
|
15699
|
-
*
|
|
15700
|
-
* @summary Remove an container from this database
|
|
15701
|
-
* @param {string} databaseId Database ID
|
|
15702
|
-
* @param {string} targetContainerId Target container ID
|
|
15703
|
-
* @param {*} [options] Override http request option.
|
|
15704
|
-
* @throws {RequiredError}
|
|
15705
|
-
* @memberof DatabaseContainerApi
|
|
15706
|
-
*/
|
|
15707
|
-
removeContainerFromDatabase(databaseId, targetContainerId, options) {
|
|
15708
|
-
return (0, exports.DatabaseContainerApiFp)(this.configuration).removeContainerFromDatabase(databaseId, targetContainerId, options).then((request) => request(this.axios, this.basePath));
|
|
15709
|
-
}
|
|
15710
|
-
}
|
|
15711
|
-
exports.DatabaseContainerApi = DatabaseContainerApi;
|
|
15712
14768
|
/**
|
|
15713
14769
|
* DatabaseDeploymentHistoryApi - axios parameter creator
|
|
15714
14770
|
* @export
|
|
@@ -15719,10 +14775,11 @@ const DatabaseDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
|
15719
14775
|
* By default it returns the 20 last results. The response is paginated.
|
|
15720
14776
|
* @summary List database deploys
|
|
15721
14777
|
* @param {string} databaseId Database ID
|
|
14778
|
+
* @param {string} [startId] Starting point after which to return results
|
|
15722
14779
|
* @param {*} [options] Override http request option.
|
|
15723
14780
|
* @throws {RequiredError}
|
|
15724
14781
|
*/
|
|
15725
|
-
listDatabaseDeploymentHistory: (databaseId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
14782
|
+
listDatabaseDeploymentHistory: (databaseId, startId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
15726
14783
|
// verify required parameter 'databaseId' is not null or undefined
|
|
15727
14784
|
(0, common_1.assertParamExists)('listDatabaseDeploymentHistory', 'databaseId', databaseId);
|
|
15728
14785
|
const localVarPath = `/database/{databaseId}/deploymentHistory`
|
|
@@ -15739,6 +14796,9 @@ const DatabaseDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
|
15739
14796
|
// authentication bearerAuth required
|
|
15740
14797
|
// http bearer authentication required
|
|
15741
14798
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14799
|
+
if (startId !== undefined) {
|
|
14800
|
+
localVarQueryParameter['startId'] = startId;
|
|
14801
|
+
}
|
|
15742
14802
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15743
14803
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15744
14804
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -15761,12 +14821,13 @@ const DatabaseDeploymentHistoryApiFp = function (configuration) {
|
|
|
15761
14821
|
* By default it returns the 20 last results. The response is paginated.
|
|
15762
14822
|
* @summary List database deploys
|
|
15763
14823
|
* @param {string} databaseId Database ID
|
|
14824
|
+
* @param {string} [startId] Starting point after which to return results
|
|
15764
14825
|
* @param {*} [options] Override http request option.
|
|
15765
14826
|
* @throws {RequiredError}
|
|
15766
14827
|
*/
|
|
15767
|
-
listDatabaseDeploymentHistory(databaseId, options) {
|
|
14828
|
+
listDatabaseDeploymentHistory(databaseId, startId, options) {
|
|
15768
14829
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15769
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDatabaseDeploymentHistory(databaseId, options);
|
|
14830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDatabaseDeploymentHistory(databaseId, startId, options);
|
|
15770
14831
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
15771
14832
|
});
|
|
15772
14833
|
},
|
|
@@ -15784,11 +14845,12 @@ const DatabaseDeploymentHistoryApiFactory = function (configuration, basePath, a
|
|
|
15784
14845
|
* By default it returns the 20 last results. The response is paginated.
|
|
15785
14846
|
* @summary List database deploys
|
|
15786
14847
|
* @param {string} databaseId Database ID
|
|
14848
|
+
* @param {string} [startId] Starting point after which to return results
|
|
15787
14849
|
* @param {*} [options] Override http request option.
|
|
15788
14850
|
* @throws {RequiredError}
|
|
15789
14851
|
*/
|
|
15790
|
-
listDatabaseDeploymentHistory(databaseId, options) {
|
|
15791
|
-
return localVarFp.listDatabaseDeploymentHistory(databaseId, options).then((request) => request(axios, basePath));
|
|
14852
|
+
listDatabaseDeploymentHistory(databaseId, startId, options) {
|
|
14853
|
+
return localVarFp.listDatabaseDeploymentHistory(databaseId, startId, options).then((request) => request(axios, basePath));
|
|
15792
14854
|
},
|
|
15793
14855
|
};
|
|
15794
14856
|
};
|
|
@@ -15804,12 +14866,13 @@ class DatabaseDeploymentHistoryApi extends base_1.BaseAPI {
|
|
|
15804
14866
|
* By default it returns the 20 last results. The response is paginated.
|
|
15805
14867
|
* @summary List database deploys
|
|
15806
14868
|
* @param {string} databaseId Database ID
|
|
14869
|
+
* @param {string} [startId] Starting point after which to return results
|
|
15807
14870
|
* @param {*} [options] Override http request option.
|
|
15808
14871
|
* @throws {RequiredError}
|
|
15809
14872
|
* @memberof DatabaseDeploymentHistoryApi
|
|
15810
14873
|
*/
|
|
15811
|
-
listDatabaseDeploymentHistory(databaseId, options) {
|
|
15812
|
-
return (0, exports.DatabaseDeploymentHistoryApiFp)(this.configuration).listDatabaseDeploymentHistory(databaseId, options).then((request) => request(this.axios, this.basePath));
|
|
14874
|
+
listDatabaseDeploymentHistory(databaseId, startId, options) {
|
|
14875
|
+
return (0, exports.DatabaseDeploymentHistoryApiFp)(this.configuration).listDatabaseDeploymentHistory(databaseId, startId, options).then((request) => request(this.axios, this.basePath));
|
|
15813
14876
|
}
|
|
15814
14877
|
}
|
|
15815
14878
|
exports.DatabaseDeploymentHistoryApi = DatabaseDeploymentHistoryApi;
|
|
@@ -19677,11 +18740,11 @@ const EnvironmentsApiAxiosParamCreator = function (configuration) {
|
|
|
19677
18740
|
*
|
|
19678
18741
|
* @summary Create an environment
|
|
19679
18742
|
* @param {string} projectId Project ID
|
|
19680
|
-
* @param {
|
|
18743
|
+
* @param {CreateEnvironmentRequest} [createEnvironmentRequest]
|
|
19681
18744
|
* @param {*} [options] Override http request option.
|
|
19682
18745
|
* @throws {RequiredError}
|
|
19683
18746
|
*/
|
|
19684
|
-
createEnvironment: (projectId,
|
|
18747
|
+
createEnvironment: (projectId, createEnvironmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19685
18748
|
// verify required parameter 'projectId' is not null or undefined
|
|
19686
18749
|
(0, common_1.assertParamExists)('createEnvironment', 'projectId', projectId);
|
|
19687
18750
|
const localVarPath = `/project/{projectId}/environment`
|
|
@@ -19702,7 +18765,7 @@ const EnvironmentsApiAxiosParamCreator = function (configuration) {
|
|
|
19702
18765
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19703
18766
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19704
18767
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19705
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
18768
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEnvironmentRequest, localVarRequestOptions, configuration);
|
|
19706
18769
|
return {
|
|
19707
18770
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19708
18771
|
options: localVarRequestOptions,
|
|
@@ -19818,13 +18881,13 @@ const EnvironmentsApiFp = function (configuration) {
|
|
|
19818
18881
|
*
|
|
19819
18882
|
* @summary Create an environment
|
|
19820
18883
|
* @param {string} projectId Project ID
|
|
19821
|
-
* @param {
|
|
18884
|
+
* @param {CreateEnvironmentRequest} [createEnvironmentRequest]
|
|
19822
18885
|
* @param {*} [options] Override http request option.
|
|
19823
18886
|
* @throws {RequiredError}
|
|
19824
18887
|
*/
|
|
19825
|
-
createEnvironment(projectId,
|
|
18888
|
+
createEnvironment(projectId, createEnvironmentRequest, options) {
|
|
19826
18889
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19827
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironment(projectId,
|
|
18890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEnvironment(projectId, createEnvironmentRequest, options);
|
|
19828
18891
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19829
18892
|
});
|
|
19830
18893
|
},
|
|
@@ -19881,12 +18944,12 @@ const EnvironmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
19881
18944
|
*
|
|
19882
18945
|
* @summary Create an environment
|
|
19883
18946
|
* @param {string} projectId Project ID
|
|
19884
|
-
* @param {
|
|
18947
|
+
* @param {CreateEnvironmentRequest} [createEnvironmentRequest]
|
|
19885
18948
|
* @param {*} [options] Override http request option.
|
|
19886
18949
|
* @throws {RequiredError}
|
|
19887
18950
|
*/
|
|
19888
|
-
createEnvironment(projectId,
|
|
19889
|
-
return localVarFp.createEnvironment(projectId,
|
|
18951
|
+
createEnvironment(projectId, createEnvironmentRequest, options) {
|
|
18952
|
+
return localVarFp.createEnvironment(projectId, createEnvironmentRequest, options).then((request) => request(axios, basePath));
|
|
19890
18953
|
},
|
|
19891
18954
|
/**
|
|
19892
18955
|
* Returns a list of environment ids, and for each its total numberof services
|
|
@@ -19932,13 +18995,13 @@ class EnvironmentsApi extends base_1.BaseAPI {
|
|
|
19932
18995
|
*
|
|
19933
18996
|
* @summary Create an environment
|
|
19934
18997
|
* @param {string} projectId Project ID
|
|
19935
|
-
* @param {
|
|
18998
|
+
* @param {CreateEnvironmentRequest} [createEnvironmentRequest]
|
|
19936
18999
|
* @param {*} [options] Override http request option.
|
|
19937
19000
|
* @throws {RequiredError}
|
|
19938
19001
|
* @memberof EnvironmentsApi
|
|
19939
19002
|
*/
|
|
19940
|
-
createEnvironment(projectId,
|
|
19941
|
-
return (0, exports.EnvironmentsApiFp)(this.configuration).createEnvironment(projectId,
|
|
19003
|
+
createEnvironment(projectId, createEnvironmentRequest, options) {
|
|
19004
|
+
return (0, exports.EnvironmentsApiFp)(this.configuration).createEnvironment(projectId, createEnvironmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19942
19005
|
}
|
|
19943
19006
|
/**
|
|
19944
19007
|
* Returns a list of environment ids, and for each its total numberof services
|