@devopness/sdk-js 2.17.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/apis/applications-sslcertificates-api.d.ts +6 -6
- package/dist/api/generated/apis/applications-sslcertificates-api.js +8 -8
- package/dist/api/generated/apis/applications-variables-api.d.ts +7 -6
- package/dist/api/generated/apis/applications-variables-api.js +7 -7
- package/dist/api/generated/apis/daemons-api.d.ts +10 -10
- package/dist/api/generated/apis/daemons-api.js +10 -10
- package/dist/api/generated/apis/environments-daemons-api.d.ts +11 -2
- package/dist/api/generated/apis/environments-daemons-api.js +22 -2
- package/dist/api/generated/apis/environments-network-rules-api.d.ts +2 -2
- package/dist/api/generated/apis/environments-network-rules-api.js +2 -2
- package/dist/api/generated/apis/network-rules-api.d.ts +7 -7
- package/dist/api/generated/apis/network-rules-api.js +7 -7
- package/dist/api/generated/apis/pipelines-api.d.ts +9 -8
- package/dist/api/generated/apis/pipelines-api.js +11 -11
- package/dist/api/generated/apis/pipelines-steps-api.d.ts +17 -17
- package/dist/api/generated/apis/pipelines-steps-api.js +35 -35
- package/dist/api/generated/apis/projects-daemons-api.d.ts +7 -7
- package/dist/api/generated/apis/projects-daemons-api.js +10 -10
- package/dist/api/generated/apis/projects-network-rules-api.d.ts +6 -6
- package/dist/api/generated/apis/projects-network-rules-api.js +8 -8
- package/dist/api/generated/apis/sslcertificates-api.d.ts +3 -3
- package/dist/api/generated/apis/sslcertificates-api.js +3 -3
- package/dist/api/generated/apis/variables-api.d.ts +4 -4
- package/dist/api/generated/apis/variables-api.js +4 -4
- package/dist/api/generated/models/cron-job-update.d.ts +3 -4
- package/dist/api/generated/models/daemon-create.d.ts +13 -20
- package/dist/api/generated/models/daemon-project-create.d.ts +61 -0
- package/dist/api/generated/models/daemon-project-create.js +14 -0
- package/dist/api/generated/models/daemon-relation.d.ts +13 -13
- package/dist/api/generated/models/daemon-restart.d.ts +1 -1
- package/dist/api/generated/models/daemon-update.d.ts +16 -23
- package/dist/api/generated/models/daemon.d.ts +23 -17
- package/dist/api/generated/models/index.d.ts +3 -0
- package/dist/api/generated/models/index.js +3 -0
- package/dist/api/generated/models/network-rule-create.d.ts +8 -8
- package/dist/api/generated/models/network-rule-relation.d.ts +21 -15
- package/dist/api/generated/models/network-rule-update.d.ts +7 -7
- package/dist/api/generated/models/network-rule.d.ts +23 -17
- package/dist/api/generated/models/pipeline-step-create.d.ts +9 -3
- package/dist/api/generated/models/pipeline-step-update.d.ts +11 -5
- package/dist/api/generated/models/pipeline-step.d.ts +20 -14
- package/dist/api/generated/models/pipeline-update.d.ts +30 -0
- package/dist/api/generated/models/pipeline-update.js +14 -0
- package/dist/api/generated/models/pipeline.d.ts +19 -12
- package/dist/api/generated/models/ssl-certificate-create.d.ts +9 -9
- package/dist/api/generated/models/ssl-certificate-relation.d.ts +24 -30
- package/dist/api/generated/models/ssl-certificate.d.ts +41 -40
- package/dist/api/generated/models/variable-create.d.ts +16 -4
- package/dist/api/generated/models/variable-relation.d.ts +92 -0
- package/dist/api/generated/models/variable-relation.js +14 -0
- package/dist/api/generated/models/variable-update.d.ts +4 -10
- package/dist/api/generated/models/variable.d.ts +30 -12
- package/package.json +1 -1
|
@@ -20,15 +20,15 @@ import { SslCertificateRelation } from '../../generated/models';
|
|
|
20
20
|
export declare class ApplicationsSSLCertificatesApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @summary
|
|
24
|
-
* @param {number} applicationId
|
|
25
|
-
* @param {SslCertificateCreate} sslCertificateCreate A JSON object containing
|
|
23
|
+
* @summary Add a new SSL certificate to the current application
|
|
24
|
+
* @param {number} applicationId The ID of the application.
|
|
25
|
+
* @param {SslCertificateCreate} sslCertificateCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
addApplicationSslCertificate(applicationId: number, sslCertificateCreate: SslCertificateCreate): Promise<ApiResponse<SslCertificate>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @summary
|
|
31
|
-
* @param {number} applicationId
|
|
30
|
+
* @summary Return a list of SSL certificates issued to an application
|
|
31
|
+
* @param {number} applicationId The ID of the application.
|
|
32
32
|
* @param {number} [page] Number of the page to be retrieved
|
|
33
33
|
* @param {number} [perPage] Number of items returned per page
|
|
34
34
|
*/
|
|
@@ -31,17 +31,17 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class ApplicationsSSLCertificatesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} applicationId
|
|
36
|
-
* @param {SslCertificateCreate} sslCertificateCreate A JSON object containing
|
|
34
|
+
* @summary Add a new SSL certificate to the current application
|
|
35
|
+
* @param {number} applicationId The ID of the application.
|
|
36
|
+
* @param {SslCertificateCreate} sslCertificateCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addApplicationSslCertificate(applicationId, sslCertificateCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (applicationId === null || applicationId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('applicationId', '
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationSslCertificate');
|
|
42
42
|
}
|
|
43
43
|
if (sslCertificateCreate === null || sslCertificateCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('sslCertificateCreate', '
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('sslCertificateCreate', 'addApplicationSslCertificate');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/applications/{application_id}/ssl-certificates' + (queryString ? `?${queryString}` : '');
|
|
@@ -51,8 +51,8 @@ class ApplicationsSSLCertificatesApiService extends ApiBaseService_1.ApiBaseServ
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary
|
|
55
|
-
* @param {number} applicationId
|
|
54
|
+
* @summary Return a list of SSL certificates issued to an application
|
|
55
|
+
* @param {number} applicationId The ID of the application.
|
|
56
56
|
* @param {number} [page] Number of the page to be retrieved
|
|
57
57
|
* @param {number} [perPage] Number of items returned per page
|
|
58
58
|
*/
|
|
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Variable } from '../../generated/models';
|
|
15
15
|
import { VariableCreate } from '../../generated/models';
|
|
16
|
+
import { VariableRelation } from '../../generated/models';
|
|
16
17
|
/**
|
|
17
18
|
* ApplicationsVariablesApiService - Auto-generated
|
|
18
19
|
*/
|
|
@@ -20,16 +21,16 @@ export declare class ApplicationsVariablesApiService extends ApiBaseService {
|
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
22
23
|
* @summary Create a new variable linked to an application
|
|
23
|
-
* @param {number} applicationId
|
|
24
|
-
* @param {VariableCreate} variableCreate A JSON object containing
|
|
24
|
+
* @param {number} applicationId The ID of the application.
|
|
25
|
+
* @param {VariableCreate} variableCreate A JSON object containing the resource data
|
|
25
26
|
*/
|
|
26
|
-
|
|
27
|
+
addApplicationVariable(applicationId: number, variableCreate: VariableCreate): Promise<ApiResponse<Variable>>;
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
|
-
* @summary
|
|
30
|
-
* @param {number} applicationId
|
|
30
|
+
* @summary Return a list of variables belonging to an application
|
|
31
|
+
* @param {number} applicationId The ID of the application.
|
|
31
32
|
* @param {number} [page] Number of the page to be retrieved
|
|
32
33
|
* @param {number} [perPage] Number of items returned per page
|
|
33
34
|
*/
|
|
34
|
-
listApplicationVariables(applicationId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<
|
|
35
|
+
listApplicationVariables(applicationId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<VariableRelation>>>;
|
|
35
36
|
}
|
|
@@ -32,16 +32,16 @@ class ApplicationsVariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Create a new variable linked to an application
|
|
35
|
-
* @param {number} applicationId
|
|
36
|
-
* @param {VariableCreate} variableCreate A JSON object containing
|
|
35
|
+
* @param {number} applicationId The ID of the application.
|
|
36
|
+
* @param {VariableCreate} variableCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addApplicationVariable(applicationId, variableCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (applicationId === null || applicationId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('applicationId', '
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationVariable');
|
|
42
42
|
}
|
|
43
43
|
if (variableCreate === null || variableCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('variableCreate', '
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('variableCreate', 'addApplicationVariable');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/applications/{application_id}/variables' + (queryString ? `?${queryString}` : '');
|
|
@@ -51,8 +51,8 @@ class ApplicationsVariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary
|
|
55
|
-
* @param {number} applicationId
|
|
54
|
+
* @summary Return a list of variables belonging to an application
|
|
55
|
+
* @param {number} applicationId The ID of the application.
|
|
56
56
|
* @param {number} [page] Number of the page to be retrieved
|
|
57
57
|
* @param {number} [perPage] Number of items returned per page
|
|
58
58
|
*/
|
|
@@ -20,28 +20,28 @@ import { DaemonUpdate } from '../../generated/models';
|
|
|
20
20
|
export declare class DaemonsApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @summary Delete a given
|
|
24
|
-
* @param {number} daemonId
|
|
23
|
+
* @summary Delete a given Daemon
|
|
24
|
+
* @param {number} daemonId The ID of the daemon.
|
|
25
25
|
*/
|
|
26
26
|
deleteDaemon(daemonId: number): Promise<ApiResponse<void>>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
-
* @summary Get a
|
|
30
|
-
* @param {number} daemonId
|
|
29
|
+
* @summary Get a Daemon by ID
|
|
30
|
+
* @param {number} daemonId The ID of the daemon.
|
|
31
31
|
*/
|
|
32
32
|
getDaemon(daemonId: number): Promise<ApiResponse<Daemon>>;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @summary Restart a
|
|
36
|
-
* @param {number} daemonId
|
|
37
|
-
* @param {DaemonRestart} daemonRestart A JSON object containing the
|
|
35
|
+
* @summary Restart a Daemon
|
|
36
|
+
* @param {number} daemonId The ID of the daemon.
|
|
37
|
+
* @param {DaemonRestart} daemonRestart A JSON object containing the resource data
|
|
38
38
|
*/
|
|
39
39
|
restartDaemon(daemonId: number, daemonRestart: DaemonRestart): Promise<ApiResponse<void>>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @summary Update an existing
|
|
43
|
-
* @param {number} daemonId
|
|
44
|
-
* @param {DaemonUpdate} daemonUpdate A JSON object containing
|
|
42
|
+
* @summary Update an existing Daemon
|
|
43
|
+
* @param {number} daemonId The ID of the daemon.
|
|
44
|
+
* @param {DaemonUpdate} daemonUpdate A JSON object containing the resource data
|
|
45
45
|
*/
|
|
46
46
|
updateDaemon(daemonId: number, daemonUpdate: DaemonUpdate): Promise<ApiResponse<void>>;
|
|
47
47
|
}
|
|
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class DaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Delete a given
|
|
35
|
-
* @param {number} daemonId
|
|
34
|
+
* @summary Delete a given Daemon
|
|
35
|
+
* @param {number} daemonId The ID of the daemon.
|
|
36
36
|
*/
|
|
37
37
|
deleteDaemon(daemonId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,8 +47,8 @@ class DaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @summary Get a
|
|
51
|
-
* @param {number} daemonId
|
|
50
|
+
* @summary Get a Daemon by ID
|
|
51
|
+
* @param {number} daemonId The ID of the daemon.
|
|
52
52
|
*/
|
|
53
53
|
getDaemon(daemonId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,9 +63,9 @@ class DaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @summary Restart a
|
|
67
|
-
* @param {number} daemonId
|
|
68
|
-
* @param {DaemonRestart} daemonRestart A JSON object containing the
|
|
66
|
+
* @summary Restart a Daemon
|
|
67
|
+
* @param {number} daemonId The ID of the daemon.
|
|
68
|
+
* @param {DaemonRestart} daemonRestart A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
70
|
restartDaemon(daemonId, daemonRestart) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -83,9 +83,9 @@ class DaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
|
-
* @summary Update an existing
|
|
87
|
-
* @param {number} daemonId
|
|
88
|
-
* @param {DaemonUpdate} daemonUpdate A JSON object containing
|
|
86
|
+
* @summary Update an existing Daemon
|
|
87
|
+
* @param {number} daemonId The ID of the daemon.
|
|
88
|
+
* @param {DaemonUpdate} daemonUpdate A JSON object containing the resource data
|
|
89
89
|
*/
|
|
90
90
|
updateDaemon(daemonId, daemonUpdate) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { Daemon } from '../../generated/models';
|
|
15
|
+
import { DaemonCreate } from '../../generated/models';
|
|
14
16
|
import { DaemonRelation } from '../../generated/models';
|
|
15
17
|
/**
|
|
16
18
|
* EnvironmentsDaemonsApiService - Auto-generated
|
|
@@ -18,8 +20,15 @@ import { DaemonRelation } from '../../generated/models';
|
|
|
18
20
|
export declare class EnvironmentsDaemonsApiService extends ApiBaseService {
|
|
19
21
|
/**
|
|
20
22
|
*
|
|
21
|
-
* @summary
|
|
22
|
-
* @param {number} environmentId
|
|
23
|
+
* @summary Add a Daemon to the given environment
|
|
24
|
+
* @param {number} environmentId The ID of the environment.
|
|
25
|
+
* @param {DaemonCreate} daemonCreate A JSON object containing the resource data
|
|
26
|
+
*/
|
|
27
|
+
addEnvironmentDaemon(environmentId: number, daemonCreate: DaemonCreate): Promise<ApiResponse<Daemon>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Return a list of all Daemons belonging to an environment
|
|
31
|
+
* @param {number} environmentId The ID of the environment.
|
|
23
32
|
* @param {number} [page] Number of the page to be retrieved
|
|
24
33
|
* @param {number} [perPage] Number of items returned per page
|
|
25
34
|
*/
|
|
@@ -31,8 +31,28 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class EnvironmentsDaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} environmentId
|
|
34
|
+
* @summary Add a Daemon to the given environment
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {DaemonCreate} daemonCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addEnvironmentDaemon(environmentId, daemonCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (environmentId === null || environmentId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentDaemon');
|
|
42
|
+
}
|
|
43
|
+
if (daemonCreate === null || daemonCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('daemonCreate', 'addEnvironmentDaemon');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/daemons' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), daemonCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Return a list of all Daemons belonging to an environment
|
|
55
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
56
|
* @param {number} [page] Number of the page to be retrieved
|
|
37
57
|
* @param {number} [perPage] Number of items returned per page
|
|
38
58
|
*/
|
|
@@ -18,8 +18,8 @@ import { NetworkRuleRelation } from '../../generated/models';
|
|
|
18
18
|
export declare class EnvironmentsNetworkRulesApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary
|
|
22
|
-
* @param {number} environmentId
|
|
21
|
+
* @summary Return a list of all Network Rules belonging 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
|
*/
|
|
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class EnvironmentsNetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} environmentId
|
|
34
|
+
* @summary Return a list of all Network Rules belonging 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
|
*/
|
|
@@ -19,21 +19,21 @@ import { NetworkRuleUpdate } from '../../generated/models';
|
|
|
19
19
|
export declare class NetworkRulesApiService extends ApiBaseService {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @summary Delete a given
|
|
23
|
-
* @param {number} networkRuleId
|
|
22
|
+
* @summary Delete a given Network Rule
|
|
23
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
24
24
|
*/
|
|
25
25
|
deleteNetworkRule(networkRuleId: number): Promise<ApiResponse<void>>;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @summary Get a
|
|
29
|
-
* @param {number} networkRuleId
|
|
28
|
+
* @summary Get a Network Rule by ID
|
|
29
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
30
30
|
*/
|
|
31
31
|
getNetworkRule(networkRuleId: number): Promise<ApiResponse<NetworkRule>>;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Update an existing
|
|
35
|
-
* @param {number} networkRuleId
|
|
36
|
-
* @param {NetworkRuleUpdate} networkRuleUpdate A JSON object containing
|
|
34
|
+
* @summary Update an existing Network Rule
|
|
35
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
36
|
+
* @param {NetworkRuleUpdate} networkRuleUpdate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
38
|
updateNetworkRule(networkRuleId: number, networkRuleUpdate: NetworkRuleUpdate): Promise<ApiResponse<void>>;
|
|
39
39
|
}
|
|
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class NetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Delete a given
|
|
35
|
-
* @param {number} networkRuleId
|
|
34
|
+
* @summary Delete a given Network Rule
|
|
35
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
36
36
|
*/
|
|
37
37
|
deleteNetworkRule(networkRuleId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,8 +47,8 @@ class NetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @summary Get a
|
|
51
|
-
* @param {number} networkRuleId
|
|
50
|
+
* @summary Get a Network Rule by ID
|
|
51
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
52
52
|
*/
|
|
53
53
|
getNetworkRule(networkRuleId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,9 +63,9 @@ class NetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @summary Update an existing
|
|
67
|
-
* @param {number} networkRuleId
|
|
68
|
-
* @param {NetworkRuleUpdate} networkRuleUpdate A JSON object containing
|
|
66
|
+
* @summary Update an existing Network Rule
|
|
67
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
68
|
+
* @param {NetworkRuleUpdate} networkRuleUpdate A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
70
|
updateNetworkRule(networkRuleId, networkRuleUpdate) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -12,27 +12,28 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Pipeline } from '../../generated/models';
|
|
15
|
+
import { PipelineUpdate } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* PipelinesApiService - Auto-generated
|
|
17
18
|
*/
|
|
18
19
|
export declare class PipelinesApiService extends ApiBaseService {
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
|
-
* @summary Delete a
|
|
22
|
-
* @param {number} pipelineId
|
|
22
|
+
* @summary Delete a given Pipeline
|
|
23
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
23
24
|
*/
|
|
24
25
|
deletePipeline(pipelineId: number): Promise<ApiResponse<void>>;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
|
-
* @summary Get a
|
|
28
|
-
* @param {number} pipelineId
|
|
28
|
+
* @summary Get a Pipeline by ID
|
|
29
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
29
30
|
*/
|
|
30
31
|
getPipeline(pipelineId: number): Promise<ApiResponse<Pipeline>>;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @summary Update
|
|
34
|
-
* @param {number} pipelineId
|
|
35
|
-
* @param {
|
|
34
|
+
* @summary Update an existing Pipeline
|
|
35
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
36
|
+
* @param {PipelineUpdate} pipelineUpdate A JSON object containing the resource data
|
|
36
37
|
*/
|
|
37
|
-
updatePipeline(pipelineId: number,
|
|
38
|
+
updatePipeline(pipelineId: number, pipelineUpdate: PipelineUpdate): Promise<ApiResponse<void>>;
|
|
38
39
|
}
|
|
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Delete a
|
|
35
|
-
* @param {number} pipelineId
|
|
34
|
+
* @summary Delete a given Pipeline
|
|
35
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
36
36
|
*/
|
|
37
37
|
deletePipeline(pipelineId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,8 +47,8 @@ class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @summary Get a
|
|
51
|
-
* @param {number} pipelineId
|
|
50
|
+
* @summary Get a Pipeline by ID
|
|
51
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
52
52
|
*/
|
|
53
53
|
getPipeline(pipelineId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,21 +63,21 @@ class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @summary Update
|
|
67
|
-
* @param {number} pipelineId
|
|
68
|
-
* @param {
|
|
66
|
+
* @summary Update an existing Pipeline
|
|
67
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
68
|
+
* @param {PipelineUpdate} pipelineUpdate A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
|
-
updatePipeline(pipelineId,
|
|
70
|
+
updatePipeline(pipelineId, pipelineUpdate) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
if (pipelineId === null || pipelineId === undefined) {
|
|
73
73
|
throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipeline');
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
75
|
+
if (pipelineUpdate === null || pipelineUpdate === undefined) {
|
|
76
|
+
throw new Exceptions_1.ArgumentNullException('pipelineUpdate', 'updatePipeline');
|
|
77
77
|
}
|
|
78
78
|
let queryString = '';
|
|
79
79
|
const requestUrl = '/pipelines/{pipeline_id}' + (queryString ? `?${queryString}` : '');
|
|
80
|
-
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))),
|
|
80
|
+
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))), pipelineUpdate);
|
|
81
81
|
return new ApiResponse_1.ApiResponse(response);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -20,31 +20,31 @@ import { PipelineStepUpdate } from '../../generated/models';
|
|
|
20
20
|
export declare class PipelinesStepsApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @summary
|
|
24
|
-
* @param {number} pipelineId
|
|
25
|
-
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing
|
|
23
|
+
* @summary Add a step to a pipeline
|
|
24
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
25
|
+
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
addPipelinePipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @summary Link a step to a
|
|
31
|
-
* @param {number} pipelineId
|
|
32
|
-
* @param {
|
|
30
|
+
* @summary Link a step to a Pipeline
|
|
31
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
32
|
+
* @param {string} stepId The ID of the step.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
linkPipelineStepToPipeline(pipelineId: number, stepId: string): Promise<ApiResponse<void>>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @summary Unlink a step from a
|
|
38
|
-
* @param {number} pipelineId
|
|
39
|
-
* @param {
|
|
37
|
+
* @summary Unlink a step from a Pipeline
|
|
38
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
39
|
+
* @param {string} stepId The ID of the step.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
unlinkPipelineStepFromPipeline(pipelineId: number, stepId: string): Promise<ApiResponse<void>>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @summary Update
|
|
45
|
-
* @param {number} pipelineId
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing
|
|
44
|
+
* @summary Update an existing Pipeline Step
|
|
45
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
46
|
+
* @param {string} stepId The ID of the step.
|
|
47
|
+
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing the resource data
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
updatePipelinePipelineStep(pipelineId: number, stepId: string, pipelineStepUpdate: PipelineStepUpdate): Promise<ApiResponse<void>>;
|
|
50
50
|
}
|
|
@@ -31,17 +31,17 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class PipelinesStepsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} pipelineId
|
|
36
|
-
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing
|
|
34
|
+
* @summary Add a step to a pipeline
|
|
35
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
36
|
+
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addPipelinePipelineStep(pipelineId, pipelineStepCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (pipelineId === null || pipelineId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'addPipelinePipelineStep');
|
|
42
42
|
}
|
|
43
43
|
if (pipelineStepCreate === null || pipelineStepCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', '
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', 'addPipelinePipelineStep');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/pipelines/{pipeline_id}/steps' + (queryString ? `?${queryString}` : '');
|
|
@@ -51,65 +51,65 @@ class PipelinesStepsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary Link a step to a
|
|
55
|
-
* @param {number} pipelineId
|
|
56
|
-
* @param {
|
|
54
|
+
* @summary Link a step to a Pipeline
|
|
55
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
56
|
+
* @param {string} stepId The ID of the step.
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
linkPipelineStepToPipeline(pipelineId, stepId) {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
if (pipelineId === null || pipelineId === undefined) {
|
|
61
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
61
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'linkPipelineStepToPipeline');
|
|
62
62
|
}
|
|
63
|
-
if (
|
|
64
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
63
|
+
if (stepId === null || stepId === undefined) {
|
|
64
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'linkPipelineStepToPipeline');
|
|
65
65
|
}
|
|
66
66
|
let queryString = '';
|
|
67
|
-
const requestUrl = '/pipelines/{pipeline_id}/steps/{
|
|
68
|
-
const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"
|
|
67
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}/link' + (queryString ? `?${queryString}` : '');
|
|
68
|
+
const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))));
|
|
69
69
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
|
-
* @summary Unlink a step from a
|
|
75
|
-
* @param {number} pipelineId
|
|
76
|
-
* @param {
|
|
74
|
+
* @summary Unlink a step from a Pipeline
|
|
75
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
76
|
+
* @param {string} stepId The ID of the step.
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
unlinkPipelineStepFromPipeline(pipelineId, stepId) {
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
if (pipelineId === null || pipelineId === undefined) {
|
|
81
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
81
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'unlinkPipelineStepFromPipeline');
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
83
|
+
if (stepId === null || stepId === undefined) {
|
|
84
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'unlinkPipelineStepFromPipeline');
|
|
85
85
|
}
|
|
86
86
|
let queryString = '';
|
|
87
|
-
const requestUrl = '/pipelines/{pipeline_id}/steps/{
|
|
88
|
-
const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"
|
|
87
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
88
|
+
const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))));
|
|
89
89
|
return new ApiResponse_1.ApiResponse(response);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @summary Update
|
|
95
|
-
* @param {number} pipelineId
|
|
96
|
-
* @param {
|
|
97
|
-
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing
|
|
94
|
+
* @summary Update an existing Pipeline Step
|
|
95
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
96
|
+
* @param {string} stepId The ID of the step.
|
|
97
|
+
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing the resource data
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
updatePipelinePipelineStep(pipelineId, stepId, pipelineStepUpdate) {
|
|
100
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
101
|
if (pipelineId === null || pipelineId === undefined) {
|
|
102
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
102
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipelinePipelineStep');
|
|
103
103
|
}
|
|
104
|
-
if (
|
|
105
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
104
|
+
if (stepId === null || stepId === undefined) {
|
|
105
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'updatePipelinePipelineStep');
|
|
106
106
|
}
|
|
107
107
|
if (pipelineStepUpdate === null || pipelineStepUpdate === undefined) {
|
|
108
|
-
throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', '
|
|
108
|
+
throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', 'updatePipelinePipelineStep');
|
|
109
109
|
}
|
|
110
110
|
let queryString = '';
|
|
111
|
-
const requestUrl = '/pipelines/{pipeline_id}/steps/{
|
|
112
|
-
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"
|
|
111
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}' + (queryString ? `?${queryString}` : '');
|
|
112
|
+
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))), pipelineStepUpdate);
|
|
113
113
|
return new ApiResponse_1.ApiResponse(response);
|
|
114
114
|
});
|
|
115
115
|
}
|