@devopness/sdk-js 2.21.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/DevopnessApiClient.d.ts +16 -16
- package/dist/DevopnessApiClient.js +16 -16
- package/dist/api/generated/apis/applications-sslcertificates-api.d.ts +3 -3
- package/dist/api/generated/apis/applications-sslcertificates-api.js +5 -5
- package/dist/api/generated/apis/applications-variables-api.d.ts +3 -3
- package/dist/api/generated/apis/applications-variables-api.js +5 -5
- package/dist/api/generated/apis/environments-applications-api.d.ts +3 -3
- package/dist/api/generated/apis/environments-applications-api.js +5 -5
- package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +3 -3
- package/dist/api/generated/apis/environments-cron-jobs-api.js +5 -5
- package/dist/api/generated/apis/environments-daemons-api.d.ts +3 -3
- package/dist/api/generated/apis/environments-daemons-api.js +5 -5
- package/dist/api/generated/apis/environments-servers-api.d.ts +3 -3
- package/dist/api/generated/apis/environments-servers-api.js +5 -5
- package/dist/api/generated/apis/environments-sshkeys-api.d.ts +3 -3
- package/dist/api/generated/apis/environments-sshkeys-api.js +5 -5
- package/dist/api/generated/apis/{environments-teams-api.d.ts → environments-team-memberships-api.d.ts} +6 -6
- package/dist/api/generated/apis/{environments-teams-api.js → environments-team-memberships-api.js} +9 -9
- package/dist/api/generated/apis/pipelines-api.d.ts +9 -0
- package/dist/api/generated/apis/pipelines-api.js +24 -0
- package/dist/api/generated/apis/pipelines-resources-api.d.ts +0 -9
- package/dist/api/generated/apis/pipelines-resources-api.js +0 -24
- package/dist/api/generated/apis/pipelines-steps-api.d.ts +9 -9
- package/dist/api/generated/apis/pipelines-steps-api.js +19 -19
- package/dist/api/generated/apis/projects-applications-api.d.ts +6 -6
- package/dist/api/generated/apis/projects-applications-api.js +9 -9
- package/dist/api/generated/apis/projects-cron-jobs-api.d.ts +3 -3
- package/dist/api/generated/apis/projects-cron-jobs-api.js +5 -5
- package/dist/api/generated/apis/projects-environments-api.d.ts +7 -7
- package/dist/api/generated/apis/projects-environments-api.js +10 -10
- package/dist/api/generated/apis/projects-network-rules-api.d.ts +3 -3
- package/dist/api/generated/apis/projects-network-rules-api.js +5 -5
- package/dist/api/generated/apis/projects-roles-api.d.ts +9 -6
- package/dist/api/generated/apis/projects-roles-api.js +18 -9
- package/dist/api/generated/apis/projects-servers-api.d.ts +3 -3
- package/dist/api/generated/apis/projects-servers-api.js +5 -5
- package/dist/api/generated/apis/projects-services-api.d.ts +3 -3
- package/dist/api/generated/apis/projects-services-api.js +5 -5
- package/dist/api/generated/apis/projects-sshkeys-api.d.ts +5 -5
- package/dist/api/generated/apis/projects-sshkeys-api.js +8 -8
- package/dist/api/generated/apis/projects-teams-api.d.ts +6 -6
- package/dist/api/generated/apis/projects-teams-api.js +9 -9
- package/dist/api/generated/apis/teams-invitations-api.d.ts +3 -3
- package/dist/api/generated/apis/teams-invitations-api.js +5 -5
- package/dist/api/generated/apis/users-api.d.ts +24 -44
- package/dist/api/generated/apis/users-api.js +37 -81
- package/dist/api/generated/apis/users-passwords-api.d.ts +33 -0
- package/dist/api/generated/apis/users-passwords-api.js +65 -0
- package/dist/api/generated/models/action-retry-response.d.ts +137 -0
- package/dist/api/generated/models/{application-create.js → action-retry-response.js} +0 -0
- package/dist/api/generated/models/{application-create.d.ts → application-project-create.d.ts} +63 -70
- package/dist/api/generated/models/{cron-job-create.js → application-project-create.js} +0 -0
- package/dist/api/generated/models/{cron-job-create.d.ts → cron-job-project-create.d.ts} +9 -9
- package/dist/api/generated/models/{daemon-create.js → cron-job-project-create.js} +0 -0
- package/dist/api/generated/models/{daemon-create.d.ts → daemon-environment-create.d.ts} +8 -8
- package/dist/api/generated/models/{environment-create.js → daemon-environment-create.js} +0 -0
- package/dist/api/generated/models/{environment-create.d.ts → environment-project-create.d.ts} +9 -9
- package/dist/api/generated/models/{invitation-create.js → environment-project-create.js} +0 -0
- package/dist/api/generated/models/index.d.ts +32 -22
- package/dist/api/generated/models/index.js +32 -22
- package/dist/api/generated/models/{invitation-create.d.ts → invitation-team-create.d.ts} +3 -3
- package/dist/api/generated/models/{network-rule-create.js → invitation-team-create.js} +0 -0
- package/dist/api/generated/models/{network-rule-create.d.ts → network-rule-project-create.d.ts} +10 -10
- package/dist/api/generated/models/{pipeline-step-create.js → network-rule-project-create.js} +0 -0
- package/dist/api/generated/models/{user-account-resend-verification.d.ts → password-reset-response.d.ts} +5 -5
- package/dist/api/generated/models/{pipeline-step-update.js → password-reset-response.js} +0 -0
- package/dist/api/generated/models/{user-password-reset.d.ts → password-user-reset.d.ts} +10 -10
- package/dist/api/generated/models/{pipeline-step.js → password-user-reset.js} +0 -0
- package/dist/api/generated/models/password-user-send-reset-link.d.ts +24 -0
- package/dist/api/generated/models/{role-create.js → password-user-send-reset-link.js} +0 -0
- package/dist/api/generated/models/pipeline-relation.d.ts +73 -0
- package/dist/api/generated/models/{server-create.js → pipeline-relation.js} +0 -0
- package/dist/api/generated/models/pipeline.d.ts +3 -3
- package/dist/api/generated/models/project-create.d.ts +3 -3
- package/dist/api/generated/models/project-relation.d.ts +16 -10
- package/dist/api/generated/models/project-update.d.ts +4 -4
- package/dist/api/generated/models/project.d.ts +26 -27
- package/dist/api/generated/models/{role-create.d.ts → role-project-create.d.ts} +7 -7
- package/dist/api/generated/models/{service-create.js → role-project-create.js} +0 -0
- package/dist/api/generated/models/role-relation.d.ts +60 -0
- package/dist/api/generated/models/{ssh-key-create.js → role-relation.js} +0 -0
- package/dist/api/generated/models/role-update.d.ts +2 -8
- package/dist/api/generated/models/role.d.ts +9 -9
- package/dist/api/generated/models/server-environment-create.d.ts +50 -0
- package/dist/api/generated/models/{ssl-certificate-create.js → server-environment-create.js} +0 -0
- package/dist/api/generated/models/{server-create.d.ts → server-project-create.d.ts} +10 -17
- package/dist/api/generated/models/{team-create.js → server-project-create.js} +0 -0
- package/dist/api/generated/models/{service-create.d.ts → service-project-create.d.ts} +7 -7
- package/dist/api/generated/models/{user-account-activate.js → service-project-create.js} +0 -0
- package/dist/api/generated/models/{ssh-key-create.d.ts → ssh-key-environment-create.d.ts} +5 -5
- package/dist/api/generated/models/{user-account-resend-verification.js → ssh-key-environment-create.js} +0 -0
- package/dist/api/generated/models/{ssl-certificate-create.d.ts → ssl-certificate-application-create.d.ts} +8 -8
- package/dist/api/generated/models/{user-account-verify.js → ssl-certificate-application-create.js} +0 -0
- package/dist/api/generated/models/{pipeline-step-create.d.ts → step-pipeline-create.d.ts} +7 -7
- package/dist/api/generated/models/{user-password-reset.js → step-pipeline-create.js} +0 -0
- package/dist/api/generated/models/{pipeline-step-update.d.ts → step-pipeline-update.d.ts} +9 -9
- package/dist/api/generated/models/{user-password-send-reset-link.js → step-pipeline-update.js} +0 -0
- package/dist/api/generated/models/{pipeline-step.d.ts → step.d.ts} +15 -15
- package/dist/api/generated/models/{user-refresh-token-create.js → step.js} +0 -0
- package/dist/api/generated/models/team-environment-create.d.ts +24 -0
- package/dist/api/generated/models/{variable-create.js → team-environment-create.js} +0 -0
- package/dist/api/generated/models/team-membership-relation.d.ts +55 -0
- package/dist/api/generated/models/team-membership-relation.js +14 -0
- package/dist/api/generated/models/{team-create.d.ts → team-project-create.d.ts} +6 -6
- package/dist/api/generated/models/team-project-create.js +14 -0
- package/dist/api/generated/models/team-relation.d.ts +3 -3
- package/dist/api/generated/models/team-update.d.ts +2 -8
- package/dist/api/generated/models/team.d.ts +3 -3
- package/dist/api/generated/models/user-create.d.ts +1 -1
- package/dist/api/generated/models/user-current.d.ts +74 -0
- package/dist/api/generated/models/user-current.js +14 -0
- package/dist/api/generated/models/user-login-response.d.ts +42 -0
- package/dist/api/generated/models/user-login-response.js +14 -0
- package/dist/api/generated/models/user-login.d.ts +30 -0
- package/dist/api/generated/models/user-login.js +14 -0
- package/dist/api/generated/models/user-refresh-token-response.d.ts +42 -0
- package/dist/api/generated/models/user-refresh-token-response.js +14 -0
- package/dist/api/generated/models/{user-refresh-token-create.d.ts → user-refresh-token.d.ts} +4 -4
- package/dist/api/generated/models/user-refresh-token.js +14 -0
- package/dist/api/generated/models/{user-password-send-reset-link.d.ts → user-resend-verification.d.ts} +4 -4
- package/dist/api/generated/models/user-resend-verification.js +14 -0
- package/dist/api/generated/models/user-update.d.ts +8 -9
- package/dist/api/generated/models/{user-account-activate.d.ts → user-verify.d.ts} +10 -10
- package/dist/api/generated/models/user-verify.js +14 -0
- package/dist/api/generated/models/user.d.ts +16 -10
- package/dist/api/generated/models/{variable-create.d.ts → variable-application-create.d.ts} +10 -10
- package/dist/api/generated/models/variable-application-create.js +14 -0
- package/dist/services/EnvironmentService.d.ts +2 -4
- package/dist/services/EnvironmentService.js +2 -4
- package/dist/services/UserService.d.ts +2 -0
- package/dist/services/UserService.js +2 -0
- package/package.json +1 -1
- package/dist/api/generated/apis/environments-members-api.d.ts +0 -37
- package/dist/api/generated/apis/environments-members-api.js +0 -87
- package/dist/api/generated/models/user-account-verify.d.ts +0 -30
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ To authenticate, just invoke the `login` method on the `users` service:
|
|
|
40
40
|
|
|
41
41
|
```javascript
|
|
42
42
|
async function authenticate(email, pass) {
|
|
43
|
-
const userTokens = await devopnessApi.users.
|
|
43
|
+
const userTokens = await devopnessApi.users.loginUser({ email: email, password: pass });
|
|
44
44
|
// The `accessToken` must be set every time a token is obtained or refreshed.
|
|
45
45
|
devopnessApi.accessToken = userTokens.data.access_token;
|
|
46
46
|
}
|
|
@@ -63,7 +63,7 @@ async function getUserProfile() {
|
|
|
63
63
|
|
|
64
64
|
// Now that we're authenticated, we can invoke methods on any services.
|
|
65
65
|
// Here we're invoking the `getCurrentUser()` method on the `users` service
|
|
66
|
-
const currentUser = await devopnessApi.users.
|
|
66
|
+
const currentUser = await devopnessApi.users.getUserCurrent();
|
|
67
67
|
console.log('Successfully retrieved user profile: ', currentUser);
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
+
import { ActionService } from './services/ActionService';
|
|
1
2
|
import { ConfigurationOptions } from './services/ApiBaseService';
|
|
2
3
|
import { ApplicationService } from './services/ApplicationService';
|
|
4
|
+
import { CloudProviderCredentialService } from './services/CloudProviderCredentialService';
|
|
5
|
+
import { CronJobService } from './services/CronJobService';
|
|
3
6
|
import { DaemonService } from './services/DaemonService';
|
|
4
7
|
import { EnvironmentService } from './services/EnvironmentService';
|
|
8
|
+
import { HookIncomingService } from './services/HookIncomingService';
|
|
9
|
+
import { HookOutgoingService } from './services/HookOutgoingService';
|
|
10
|
+
import { HookRequestService } from './services/HookRequestService';
|
|
11
|
+
import { LogService } from './services/LogService';
|
|
5
12
|
import { NetworkRuleService } from './services/NetworkRuleService';
|
|
13
|
+
import { PipelineService } from './services/PipelineService';
|
|
6
14
|
import { ProjectService } from './services/ProjectService';
|
|
15
|
+
import { ResourceEventService } from './services/ResourceEventService';
|
|
16
|
+
import { RoleService } from './services/RoleService';
|
|
7
17
|
import { ServerService } from './services/ServerService';
|
|
8
18
|
import { ServiceService } from './services/ServiceService';
|
|
19
|
+
import { SocialAccountService } from './services/SocialAccountService';
|
|
9
20
|
import { SourceProviderService } from './services/SourceProviderService';
|
|
10
21
|
import { SshKeyService } from './services/SshKeyService';
|
|
11
22
|
import { SslCertificateService } from './services/SslCertificateService';
|
|
12
|
-
import { UserService } from './services/UserService';
|
|
13
|
-
import { CronJobService } from './services/CronJobService';
|
|
14
23
|
import { StaticService } from './services/StaticService';
|
|
15
|
-
import { SocialAccountService } from './services/SocialAccountService';
|
|
16
|
-
import { LogService } from './services/LogService';
|
|
17
|
-
import { VariableService } from './services/VariableService';
|
|
18
|
-
import { HookIncomingService } from './services/HookIncomingService';
|
|
19
|
-
import { HookOutgoingService } from './services/HookOutgoingService';
|
|
20
|
-
import { HookRequestService } from './services/HookRequestService';
|
|
21
|
-
import { CloudProviderCredentialService } from './services/CloudProviderCredentialService';
|
|
22
|
-
import { TeamService } from './services/TeamService';
|
|
23
|
-
import { ResourceEventService } from './services/ResourceEventService';
|
|
24
|
-
import { ActionService } from './services/ActionService';
|
|
25
|
-
import { PipelineService } from './services/PipelineService';
|
|
26
|
-
import { RoleService } from './services/RoleService';
|
|
27
24
|
import { TeamInvitationService } from './services/TeamInvitationService';
|
|
25
|
+
import { TeamService } from './services/TeamService';
|
|
26
|
+
import { UserService } from './services/UserService';
|
|
27
|
+
import { VariableService } from './services/VariableService';
|
|
28
28
|
export declare class DevopnessApiClient {
|
|
29
29
|
actions: ActionService;
|
|
30
30
|
applications: ApplicationService;
|
|
@@ -39,8 +39,8 @@ export declare class DevopnessApiClient {
|
|
|
39
39
|
outgoingHooks: HookOutgoingService;
|
|
40
40
|
pipelines: PipelineService;
|
|
41
41
|
projects: ProjectService;
|
|
42
|
-
roles: RoleService;
|
|
43
42
|
resourceEvents: ResourceEventService;
|
|
43
|
+
roles: RoleService;
|
|
44
44
|
servers: ServerService;
|
|
45
45
|
services: ServiceService;
|
|
46
46
|
socialAccounts: SocialAccountService;
|
|
@@ -48,8 +48,8 @@ export declare class DevopnessApiClient {
|
|
|
48
48
|
sshKeys: SshKeyService;
|
|
49
49
|
sslCertificates: SslCertificateService;
|
|
50
50
|
static: StaticService;
|
|
51
|
-
teams: TeamService;
|
|
52
51
|
teamInvitations: TeamInvitationService;
|
|
52
|
+
teams: TeamService;
|
|
53
53
|
users: UserService;
|
|
54
54
|
variables: VariableService;
|
|
55
55
|
constructor(options?: ConfigurationOptions);
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DevopnessApiClient = void 0;
|
|
4
|
+
const ActionService_1 = require("./services/ActionService");
|
|
4
5
|
const ApiBaseService_1 = require("./services/ApiBaseService");
|
|
5
6
|
const ApplicationService_1 = require("./services/ApplicationService");
|
|
7
|
+
const CloudProviderCredentialService_1 = require("./services/CloudProviderCredentialService");
|
|
8
|
+
const CronJobService_1 = require("./services/CronJobService");
|
|
6
9
|
const DaemonService_1 = require("./services/DaemonService");
|
|
7
10
|
const EnvironmentService_1 = require("./services/EnvironmentService");
|
|
11
|
+
const HookIncomingService_1 = require("./services/HookIncomingService");
|
|
12
|
+
const HookOutgoingService_1 = require("./services/HookOutgoingService");
|
|
13
|
+
const HookRequestService_1 = require("./services/HookRequestService");
|
|
14
|
+
const LogService_1 = require("./services/LogService");
|
|
8
15
|
const NetworkRuleService_1 = require("./services/NetworkRuleService");
|
|
16
|
+
const PipelineService_1 = require("./services/PipelineService");
|
|
9
17
|
const ProjectService_1 = require("./services/ProjectService");
|
|
18
|
+
const ResourceEventService_1 = require("./services/ResourceEventService");
|
|
19
|
+
const RoleService_1 = require("./services/RoleService");
|
|
10
20
|
const ServerService_1 = require("./services/ServerService");
|
|
11
21
|
const ServiceService_1 = require("./services/ServiceService");
|
|
22
|
+
const SocialAccountService_1 = require("./services/SocialAccountService");
|
|
12
23
|
const SourceProviderService_1 = require("./services/SourceProviderService");
|
|
13
24
|
const SshKeyService_1 = require("./services/SshKeyService");
|
|
14
25
|
const SslCertificateService_1 = require("./services/SslCertificateService");
|
|
15
|
-
const UserService_1 = require("./services/UserService");
|
|
16
|
-
const CronJobService_1 = require("./services/CronJobService");
|
|
17
26
|
const StaticService_1 = require("./services/StaticService");
|
|
18
|
-
const SocialAccountService_1 = require("./services/SocialAccountService");
|
|
19
|
-
const LogService_1 = require("./services/LogService");
|
|
20
|
-
const VariableService_1 = require("./services/VariableService");
|
|
21
|
-
const HookIncomingService_1 = require("./services/HookIncomingService");
|
|
22
|
-
const HookOutgoingService_1 = require("./services/HookOutgoingService");
|
|
23
|
-
const HookRequestService_1 = require("./services/HookRequestService");
|
|
24
|
-
const CloudProviderCredentialService_1 = require("./services/CloudProviderCredentialService");
|
|
25
|
-
const TeamService_1 = require("./services/TeamService");
|
|
26
|
-
const ResourceEventService_1 = require("./services/ResourceEventService");
|
|
27
|
-
const ActionService_1 = require("./services/ActionService");
|
|
28
|
-
const PipelineService_1 = require("./services/PipelineService");
|
|
29
|
-
const RoleService_1 = require("./services/RoleService");
|
|
30
27
|
const TeamInvitationService_1 = require("./services/TeamInvitationService");
|
|
28
|
+
const TeamService_1 = require("./services/TeamService");
|
|
29
|
+
const UserService_1 = require("./services/UserService");
|
|
30
|
+
const VariableService_1 = require("./services/VariableService");
|
|
31
31
|
class DevopnessApiClient {
|
|
32
32
|
constructor(options) {
|
|
33
33
|
ApiBaseService_1.ApiBaseService.configuration = new ApiBaseService_1.Configuration(options || {});
|
|
@@ -47,8 +47,8 @@ class DevopnessApiClient {
|
|
|
47
47
|
this.outgoingHooks = new HookOutgoingService_1.HookOutgoingService();
|
|
48
48
|
this.pipelines = new PipelineService_1.PipelineService();
|
|
49
49
|
this.projects = new ProjectService_1.ProjectService();
|
|
50
|
-
this.roles = new RoleService_1.RoleService();
|
|
51
50
|
this.resourceEvents = new ResourceEventService_1.ResourceEventService();
|
|
51
|
+
this.roles = new RoleService_1.RoleService();
|
|
52
52
|
this.servers = new ServerService_1.ServerService();
|
|
53
53
|
this.services = new ServiceService_1.ServiceService();
|
|
54
54
|
this.socialAccounts = new SocialAccountService_1.SocialAccountService();
|
|
@@ -56,8 +56,8 @@ class DevopnessApiClient {
|
|
|
56
56
|
this.sshKeys = new SshKeyService_1.SshKeyService();
|
|
57
57
|
this.sslCertificates = new SslCertificateService_1.SslCertificateService();
|
|
58
58
|
this.static = new StaticService_1.StaticService();
|
|
59
|
-
this.teams = new TeamService_1.TeamService();
|
|
60
59
|
this.teamInvitations = new TeamInvitationService_1.TeamInvitationService();
|
|
60
|
+
this.teams = new TeamService_1.TeamService();
|
|
61
61
|
this.users = new UserService_1.UserService();
|
|
62
62
|
this.variables = new VariableService_1.VariableService();
|
|
63
63
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { SslCertificate } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { SslCertificateApplicationCreate } from '../../generated/models';
|
|
16
16
|
import { SslCertificateRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
18
|
* ApplicationsSSLCertificatesApiService - Auto-generated
|
|
@@ -22,9 +22,9 @@ export declare class ApplicationsSSLCertificatesApiService extends ApiBaseServic
|
|
|
22
22
|
*
|
|
23
23
|
* @summary Add a new SSL certificate to the current application
|
|
24
24
|
* @param {number} applicationId The ID of the application.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {SslCertificateApplicationCreate} sslCertificateApplicationCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
addApplicationSslCertificate(applicationId: number,
|
|
27
|
+
addApplicationSslCertificate(applicationId: number, sslCertificateApplicationCreate: SslCertificateApplicationCreate): Promise<ApiResponse<SslCertificate>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Return a list of SSL certificates issued to an application
|
|
@@ -33,19 +33,19 @@ class ApplicationsSSLCertificatesApiService extends ApiBaseService_1.ApiBaseServ
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Add a new SSL certificate to the current application
|
|
35
35
|
* @param {number} applicationId The ID of the application.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {SslCertificateApplicationCreate} sslCertificateApplicationCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addApplicationSslCertificate(applicationId,
|
|
38
|
+
addApplicationSslCertificate(applicationId, sslCertificateApplicationCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (applicationId === null || applicationId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationSslCertificate');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (sslCertificateApplicationCreate === null || sslCertificateApplicationCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('sslCertificateApplicationCreate', 'addApplicationSslCertificate');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/applications/{application_id}/ssl-certificates' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), sslCertificateApplicationCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Variable } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { VariableApplicationCreate } from '../../generated/models';
|
|
16
16
|
import { VariableRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
18
|
* ApplicationsVariablesApiService - Auto-generated
|
|
@@ -22,9 +22,9 @@ export declare class ApplicationsVariablesApiService extends ApiBaseService {
|
|
|
22
22
|
*
|
|
23
23
|
* @summary Create a new variable linked to an application
|
|
24
24
|
* @param {number} applicationId The ID of the application.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {VariableApplicationCreate} variableApplicationCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
addApplicationVariable(applicationId: number,
|
|
27
|
+
addApplicationVariable(applicationId: number, variableApplicationCreate: VariableApplicationCreate): Promise<ApiResponse<Variable>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Return a list of variables belonging to an application
|
|
@@ -33,19 +33,19 @@ class ApplicationsVariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Create a new variable linked to an application
|
|
35
35
|
* @param {number} applicationId The ID of the application.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {VariableApplicationCreate} variableApplicationCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addApplicationVariable(applicationId,
|
|
38
|
+
addApplicationVariable(applicationId, variableApplicationCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (applicationId === null || applicationId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationVariable');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (variableApplicationCreate === null || variableApplicationCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('variableApplicationCreate', 'addApplicationVariable');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/applications/{application_id}/variables' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), variableApplicationCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Application } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { ApplicationEnvironmentCreate } from '../../generated/models';
|
|
16
16
|
import { ApplicationRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
18
|
* EnvironmentsApplicationsApiService - Auto-generated
|
|
@@ -22,9 +22,9 @@ export declare class EnvironmentsApplicationsApiService extends ApiBaseService {
|
|
|
22
22
|
*
|
|
23
23
|
* @summary Create a new application
|
|
24
24
|
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {ApplicationEnvironmentCreate} applicationEnvironmentCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
addEnvironmentApplication(environmentId: number,
|
|
27
|
+
addEnvironmentApplication(environmentId: number, applicationEnvironmentCreate: ApplicationEnvironmentCreate): Promise<ApiResponse<Application>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Returns a list of all applications belonging to a environment
|
|
@@ -33,19 +33,19 @@ class EnvironmentsApplicationsApiService extends ApiBaseService_1.ApiBaseService
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Create a new application
|
|
35
35
|
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {ApplicationEnvironmentCreate} applicationEnvironmentCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addEnvironmentApplication(environmentId,
|
|
38
|
+
addEnvironmentApplication(environmentId, applicationEnvironmentCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (environmentId === null || environmentId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentApplication');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (applicationEnvironmentCreate === null || applicationEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('applicationEnvironmentCreate', 'addEnvironmentApplication');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/environments/{environment_id}/applications' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), applicationEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { CronJob } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { CronJobEnvironmentCreate } from '../../generated/models';
|
|
16
16
|
import { CronJobRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
18
|
* EnvironmentsCronJobsApiService - Auto-generated
|
|
@@ -22,9 +22,9 @@ export declare class EnvironmentsCronJobsApiService extends ApiBaseService {
|
|
|
22
22
|
*
|
|
23
23
|
* @summary Add a Cron Job to the given environment
|
|
24
24
|
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {CronJobEnvironmentCreate} cronJobEnvironmentCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
addEnvironmentCronJob(environmentId: number,
|
|
27
|
+
addEnvironmentCronJob(environmentId: number, cronJobEnvironmentCreate: CronJobEnvironmentCreate): Promise<ApiResponse<CronJob>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Return a list of all Cron Jobs belonging to an environment
|
|
@@ -33,19 +33,19 @@ class EnvironmentsCronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Add a Cron Job to the given environment
|
|
35
35
|
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {CronJobEnvironmentCreate} cronJobEnvironmentCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addEnvironmentCronJob(environmentId,
|
|
38
|
+
addEnvironmentCronJob(environmentId, cronJobEnvironmentCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (environmentId === null || environmentId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentCronJob');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (cronJobEnvironmentCreate === null || cronJobEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('cronJobEnvironmentCreate', 'addEnvironmentCronJob');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/environments/{environment_id}/cron-jobs' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), cronJobEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Daemon } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { DaemonEnvironmentCreate } from '../../generated/models';
|
|
16
16
|
import { DaemonRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
18
|
* EnvironmentsDaemonsApiService - Auto-generated
|
|
@@ -22,9 +22,9 @@ export declare class EnvironmentsDaemonsApiService extends ApiBaseService {
|
|
|
22
22
|
*
|
|
23
23
|
* @summary Add a Daemon to the given environment
|
|
24
24
|
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {DaemonEnvironmentCreate} daemonEnvironmentCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
addEnvironmentDaemon(environmentId: number,
|
|
27
|
+
addEnvironmentDaemon(environmentId: number, daemonEnvironmentCreate: DaemonEnvironmentCreate): Promise<ApiResponse<Daemon>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Return a list of all Daemons belonging to an environment
|
|
@@ -33,19 +33,19 @@ class EnvironmentsDaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Add a Daemon to the given environment
|
|
35
35
|
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {DaemonEnvironmentCreate} daemonEnvironmentCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addEnvironmentDaemon(environmentId,
|
|
38
|
+
addEnvironmentDaemon(environmentId, daemonEnvironmentCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (environmentId === null || environmentId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentDaemon');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (daemonEnvironmentCreate === null || daemonEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('daemonEnvironmentCreate', 'addEnvironmentDaemon');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/environments/{environment_id}/daemons' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), daemonEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -13,7 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { EnvironmentLinkItem } from '../../generated/models';
|
|
15
15
|
import { Server } from '../../generated/models';
|
|
16
|
-
import {
|
|
16
|
+
import { ServerEnvironmentCreate } from '../../generated/models';
|
|
17
17
|
import { ServerRelation } from '../../generated/models';
|
|
18
18
|
/**
|
|
19
19
|
* EnvironmentsServersApiService - Auto-generated
|
|
@@ -23,9 +23,9 @@ export declare class EnvironmentsServersApiService extends ApiBaseService {
|
|
|
23
23
|
*
|
|
24
24
|
* @summary Creates a server and link it to the given environment
|
|
25
25
|
* @param {number} environmentId The ID of the environment.
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {ServerEnvironmentCreate} serverEnvironmentCreate A JSON object containing the resource data
|
|
27
27
|
*/
|
|
28
|
-
addEnvironmentServer(environmentId: number,
|
|
28
|
+
addEnvironmentServer(environmentId: number, serverEnvironmentCreate: ServerEnvironmentCreate): Promise<ApiResponse<Server>>;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @summary Link a server to an environment
|
|
@@ -33,19 +33,19 @@ class EnvironmentsServersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Creates a server and link it to the given environment
|
|
35
35
|
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {ServerEnvironmentCreate} serverEnvironmentCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addEnvironmentServer(environmentId,
|
|
38
|
+
addEnvironmentServer(environmentId, serverEnvironmentCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (environmentId === null || environmentId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentServer');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (serverEnvironmentCreate === null || serverEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('serverEnvironmentCreate', 'addEnvironmentServer');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/environments/{environment_id}/servers' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), serverEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { SshKey } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { SshKeyEnvironmentCreate } from '../../generated/models';
|
|
16
16
|
import { SshKeyRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
18
|
* EnvironmentsSSHKeysApiService - Auto-generated
|
|
@@ -22,9 +22,9 @@ export declare class EnvironmentsSSHKeysApiService extends ApiBaseService {
|
|
|
22
22
|
*
|
|
23
23
|
* @summary Create an SSH key and link it to the given environment
|
|
24
24
|
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {SshKeyEnvironmentCreate} sshKeyEnvironmentCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
addEnvironmentSshKey(environmentId: number,
|
|
27
|
+
addEnvironmentSshKey(environmentId: number, sshKeyEnvironmentCreate: SshKeyEnvironmentCreate): Promise<ApiResponse<SshKey>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Return a list of all SSH keys added to an environment
|
|
@@ -33,19 +33,19 @@ class EnvironmentsSSHKeysApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
33
33
|
*
|
|
34
34
|
* @summary Create an SSH key and link it to the given environment
|
|
35
35
|
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {SshKeyEnvironmentCreate} sshKeyEnvironmentCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
addEnvironmentSshKey(environmentId,
|
|
38
|
+
addEnvironmentSshKey(environmentId, sshKeyEnvironmentCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (environmentId === null || environmentId === undefined) {
|
|
41
41
|
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentSshKey');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (sshKeyEnvironmentCreate === null || sshKeyEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('sshKeyEnvironmentCreate', 'addEnvironmentSshKey');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/environments/{environment_id}/ssh-keys' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), sshKeyEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { TeamMembershipRelation } from '../../generated/models';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* EnvironmentsTeamMembershipsApiService - Auto-generated
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class EnvironmentsTeamMembershipsApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary
|
|
22
|
-
* @param {number} environmentId
|
|
21
|
+
* @summary Return a list of teams with access to an environment
|
|
22
|
+
* @param {number} environmentId The ID of the environment.
|
|
23
23
|
* @param {number} [page] Number of the page to be retrieved
|
|
24
24
|
* @param {number} [perPage] Number of items returned per page
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
listEnvironmentTeamMemberships(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<TeamMembershipRelation>>>;
|
|
27
27
|
}
|
package/dist/api/generated/apis/{environments-teams-api.js → environments-team-memberships-api.js}
RENAMED
|
@@ -21,25 +21,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.EnvironmentsTeamMembershipsApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* EnvironmentsTeamMembershipsApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class EnvironmentsTeamMembershipsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} environmentId
|
|
34
|
+
* @summary Return a list of teams with access to an environment
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
36
|
* @param {number} [page] Number of the page to be retrieved
|
|
37
37
|
* @param {number} [perPage] Number of items returned per page
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
listEnvironmentTeamMemberships(environmentId, page, perPage) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
if (environmentId === null || environmentId === undefined) {
|
|
42
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', '
|
|
42
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentTeamMemberships');
|
|
43
43
|
}
|
|
44
44
|
let queryString = '';
|
|
45
45
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -49,10 +49,10 @@ class EnvironmentsTeamsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
49
49
|
}
|
|
50
50
|
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
51
51
|
}
|
|
52
|
-
const requestUrl = '/environments/{environment_id}/
|
|
52
|
+
const requestUrl = '/environments/{environment_id}/team-memberships' + (queryString ? `?${queryString}` : '');
|
|
53
53
|
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
54
54
|
return new ApiResponse_1.ApiResponse(response);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
exports.
|
|
58
|
+
exports.EnvironmentsTeamMembershipsApiService = EnvironmentsTeamMembershipsApiService;
|
|
@@ -12,11 +12,20 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Pipeline } from '../../generated/models';
|
|
15
|
+
import { PipelineCreate } from '../../generated/models';
|
|
15
16
|
import { PipelineUpdate } from '../../generated/models';
|
|
16
17
|
/**
|
|
17
18
|
* PipelinesApiService - Auto-generated
|
|
18
19
|
*/
|
|
19
20
|
export declare class PipelinesApiService extends ApiBaseService {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Add a Pipeline to a resource
|
|
24
|
+
* @param {number} resourceId The resource ID.
|
|
25
|
+
* @param {string} resourceType The resource type to add a pipeline to.
|
|
26
|
+
* @param {PipelineCreate} pipelineCreate A JSON object containing the resource data
|
|
27
|
+
*/
|
|
28
|
+
addPipeline(resourceId: number, resourceType: string, pipelineCreate: PipelineCreate): Promise<ApiResponse<Pipeline>>;
|
|
20
29
|
/**
|
|
21
30
|
*
|
|
22
31
|
* @summary Delete a given Pipeline
|
|
@@ -29,6 +29,30 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* PipelinesApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Add a Pipeline to a resource
|
|
35
|
+
* @param {number} resourceId The resource ID.
|
|
36
|
+
* @param {string} resourceType The resource type to add a pipeline to.
|
|
37
|
+
* @param {PipelineCreate} pipelineCreate A JSON object containing the resource data
|
|
38
|
+
*/
|
|
39
|
+
addPipeline(resourceId, resourceType, pipelineCreate) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
if (resourceId === null || resourceId === undefined) {
|
|
42
|
+
throw new Exceptions_1.ArgumentNullException('resourceId', 'addPipeline');
|
|
43
|
+
}
|
|
44
|
+
if (resourceType === null || resourceType === undefined) {
|
|
45
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'addPipeline');
|
|
46
|
+
}
|
|
47
|
+
if (pipelineCreate === null || pipelineCreate === undefined) {
|
|
48
|
+
throw new Exceptions_1.ArgumentNullException('pipelineCreate', 'addPipeline');
|
|
49
|
+
}
|
|
50
|
+
let queryString = '';
|
|
51
|
+
const requestUrl = '/pipelines/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
52
|
+
const response = yield this.post(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))), pipelineCreate);
|
|
53
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
32
56
|
/**
|
|
33
57
|
*
|
|
34
58
|
* @summary Delete a given Pipeline
|