@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.
Files changed (53) hide show
  1. package/dist/api/generated/apis/applications-sslcertificates-api.d.ts +6 -6
  2. package/dist/api/generated/apis/applications-sslcertificates-api.js +8 -8
  3. package/dist/api/generated/apis/applications-variables-api.d.ts +7 -6
  4. package/dist/api/generated/apis/applications-variables-api.js +7 -7
  5. package/dist/api/generated/apis/daemons-api.d.ts +10 -10
  6. package/dist/api/generated/apis/daemons-api.js +10 -10
  7. package/dist/api/generated/apis/environments-daemons-api.d.ts +11 -2
  8. package/dist/api/generated/apis/environments-daemons-api.js +22 -2
  9. package/dist/api/generated/apis/environments-network-rules-api.d.ts +2 -2
  10. package/dist/api/generated/apis/environments-network-rules-api.js +2 -2
  11. package/dist/api/generated/apis/network-rules-api.d.ts +7 -7
  12. package/dist/api/generated/apis/network-rules-api.js +7 -7
  13. package/dist/api/generated/apis/pipelines-api.d.ts +9 -8
  14. package/dist/api/generated/apis/pipelines-api.js +11 -11
  15. package/dist/api/generated/apis/pipelines-steps-api.d.ts +17 -17
  16. package/dist/api/generated/apis/pipelines-steps-api.js +35 -35
  17. package/dist/api/generated/apis/projects-daemons-api.d.ts +7 -7
  18. package/dist/api/generated/apis/projects-daemons-api.js +10 -10
  19. package/dist/api/generated/apis/projects-network-rules-api.d.ts +6 -6
  20. package/dist/api/generated/apis/projects-network-rules-api.js +8 -8
  21. package/dist/api/generated/apis/sslcertificates-api.d.ts +3 -3
  22. package/dist/api/generated/apis/sslcertificates-api.js +3 -3
  23. package/dist/api/generated/apis/variables-api.d.ts +4 -4
  24. package/dist/api/generated/apis/variables-api.js +4 -4
  25. package/dist/api/generated/models/cron-job-update.d.ts +3 -4
  26. package/dist/api/generated/models/daemon-create.d.ts +13 -20
  27. package/dist/api/generated/models/daemon-project-create.d.ts +61 -0
  28. package/dist/api/generated/models/daemon-project-create.js +14 -0
  29. package/dist/api/generated/models/daemon-relation.d.ts +13 -13
  30. package/dist/api/generated/models/daemon-restart.d.ts +1 -1
  31. package/dist/api/generated/models/daemon-update.d.ts +16 -23
  32. package/dist/api/generated/models/daemon.d.ts +23 -17
  33. package/dist/api/generated/models/index.d.ts +3 -0
  34. package/dist/api/generated/models/index.js +3 -0
  35. package/dist/api/generated/models/network-rule-create.d.ts +8 -8
  36. package/dist/api/generated/models/network-rule-relation.d.ts +21 -15
  37. package/dist/api/generated/models/network-rule-update.d.ts +7 -7
  38. package/dist/api/generated/models/network-rule.d.ts +23 -17
  39. package/dist/api/generated/models/pipeline-step-create.d.ts +9 -3
  40. package/dist/api/generated/models/pipeline-step-update.d.ts +11 -5
  41. package/dist/api/generated/models/pipeline-step.d.ts +20 -14
  42. package/dist/api/generated/models/pipeline-update.d.ts +30 -0
  43. package/dist/api/generated/models/pipeline-update.js +14 -0
  44. package/dist/api/generated/models/pipeline.d.ts +19 -12
  45. package/dist/api/generated/models/ssl-certificate-create.d.ts +9 -9
  46. package/dist/api/generated/models/ssl-certificate-relation.d.ts +24 -30
  47. package/dist/api/generated/models/ssl-certificate.d.ts +41 -40
  48. package/dist/api/generated/models/variable-create.d.ts +16 -4
  49. package/dist/api/generated/models/variable-relation.d.ts +92 -0
  50. package/dist/api/generated/models/variable-relation.js +14 -0
  51. package/dist/api/generated/models/variable-update.d.ts +4 -10
  52. package/dist/api/generated/models/variable.d.ts +30 -12
  53. 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 Create a new SSL certificate linked to the current application
24
- * @param {number} applicationId Unique id of the parent application
25
- * @param {SslCertificateCreate} sslCertificateCreate A JSON object containing data for creating a new record of SSL certificate
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
- addSslCertificateToApplication(applicationId: number, sslCertificateCreate: SslCertificateCreate): Promise<ApiResponse<SslCertificate>>;
27
+ addApplicationSslCertificate(applicationId: number, sslCertificateCreate: SslCertificateCreate): Promise<ApiResponse<SslCertificate>>;
28
28
  /**
29
29
  *
30
- * @summary Returns a list of SSL certificates issued to an application
31
- * @param {number} applicationId Unique ID of the application to retrieve SSL Certificates from
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 Create a new SSL certificate linked to the current application
35
- * @param {number} applicationId Unique id of the parent application
36
- * @param {SslCertificateCreate} sslCertificateCreate A JSON object containing data for creating a new record of SSL certificate
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
- addSslCertificateToApplication(applicationId, sslCertificateCreate) {
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', 'addSslCertificateToApplication');
41
+ throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationSslCertificate');
42
42
  }
43
43
  if (sslCertificateCreate === null || sslCertificateCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('sslCertificateCreate', 'addSslCertificateToApplication');
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 Returns a list of SSL certificates issued to an application
55
- * @param {number} applicationId Unique ID of the application to retrieve SSL Certificates from
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 Unique id of the application
24
- * @param {VariableCreate} variableCreate A JSON object containing application variable data
24
+ * @param {number} applicationId The ID of the application.
25
+ * @param {VariableCreate} variableCreate A JSON object containing the resource data
25
26
  */
26
- addVariableToApplication(applicationId: number, variableCreate: VariableCreate): Promise<ApiResponse<Variable>>;
27
+ addApplicationVariable(applicationId: number, variableCreate: VariableCreate): Promise<ApiResponse<Variable>>;
27
28
  /**
28
29
  *
29
- * @summary Returns a list of variables belonging to an application
30
- * @param {number} applicationId Unique ID of the application to retrieve variables from
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<Variable>>>;
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 Unique id of the application
36
- * @param {VariableCreate} variableCreate A JSON object containing application variable data
35
+ * @param {number} applicationId The ID of the application.
36
+ * @param {VariableCreate} variableCreate A JSON object containing the resource data
37
37
  */
38
- addVariableToApplication(applicationId, variableCreate) {
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', 'addVariableToApplication');
41
+ throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationVariable');
42
42
  }
43
43
  if (variableCreate === null || variableCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('variableCreate', 'addVariableToApplication');
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 Returns a list of variables belonging to an application
55
- * @param {number} applicationId Unique ID of the application to retrieve variables from
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 Background process
24
- * @param {number} daemonId Numeric ID of the daemon to be deleted
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 background process by ID
30
- * @param {number} daemonId Numeric ID of the daemon to get
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 background process
36
- * @param {number} daemonId Numeric ID of the daemon to restart
37
- * @param {DaemonRestart} daemonRestart A JSON object containing the environment id
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 background process
43
- * @param {number} daemonId Numeric ID of the daemon to update
44
- * @param {DaemonUpdate} daemonUpdate A JSON object containing daemon data
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 Background process
35
- * @param {number} daemonId Numeric ID of the daemon to be deleted
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 background process by ID
51
- * @param {number} daemonId Numeric ID of the daemon to get
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 background process
67
- * @param {number} daemonId Numeric ID of the daemon to restart
68
- * @param {DaemonRestart} daemonRestart A JSON object containing the environment id
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 background process
87
- * @param {number} daemonId Numeric ID of the daemon to update
88
- * @param {DaemonUpdate} daemonUpdate A JSON object containing daemon data
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 Returns a list of all daemons belonging to a environment
22
- * @param {number} environmentId Numeric ID of the environment to get daemons from
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 Returns a list of all daemons belonging to a environment
35
- * @param {number} environmentId Numeric ID of the environment to get daemons from
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 Returns a list of all network rules belonging to a environment
22
- * @param {number} environmentId Numeric ID of the environment to get network rules from
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 Returns a list of all network rules belonging to a environment
35
- * @param {number} environmentId Numeric ID of the environment to get network rules from
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 network rule
23
- * @param {number} networkRuleId Numeric ID of the rule to be deleted
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 network rule by ID
29
- * @param {number} networkRuleId Numeric ID of the rule to get
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 network rule
35
- * @param {number} networkRuleId Numeric ID of the rule to update
36
- * @param {NetworkRuleUpdate} networkRuleUpdate A JSON object containing network rule data
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 network rule
35
- * @param {number} networkRuleId Numeric ID of the rule to be deleted
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 network rule by ID
51
- * @param {number} networkRuleId Numeric ID of the rule to get
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 network rule
67
- * @param {number} networkRuleId Numeric ID of the rule to update
68
- * @param {NetworkRuleUpdate} networkRuleUpdate A JSON object containing network rule data
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 pipeline by ID
22
- * @param {number} pipelineId Unique ID of the pipeline to be deleted
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 pipeline by ID
28
- * @param {number} pipelineId Unique ID of the pipeline to get information from
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 a pipeline by ID
34
- * @param {number} pipelineId Unique ID of the pipeline to update information from
35
- * @param {Pipeline} pipeline A JSON object containing pipeline data
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, pipeline: Pipeline): Promise<ApiResponse<void>>;
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 pipeline by ID
35
- * @param {number} pipelineId Unique ID of the pipeline to be deleted
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 pipeline by ID
51
- * @param {number} pipelineId Unique ID of the pipeline to get information from
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 a pipeline by ID
67
- * @param {number} pipelineId Unique ID of the pipeline to update information from
68
- * @param {Pipeline} pipeline A JSON object containing pipeline data
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, pipeline) {
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 (pipeline === null || pipeline === undefined) {
76
- throw new Exceptions_1.ArgumentNullException('pipeline', 'updatePipeline');
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))), pipeline);
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 Creates a step for a pipeline
24
- * @param {number} pipelineId Unique ID of the pipeline to add the step to
25
- * @param {PipelineStepCreate} pipelineStepCreate A JSON object containing pipeline script data
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
- createPipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
27
+ addPipelinePipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
28
28
  /**
29
29
  *
30
- * @summary Link a step to a pipeline
31
- * @param {number} pipelineId Unique ID of the pipeline
32
- * @param {number} pipelineStepId Unique ID of the step to be linked
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
- linkStepToPipeline(pipelineId: number, pipelineStepId: number): Promise<ApiResponse<void>>;
34
+ linkPipelineStepToPipeline(pipelineId: number, stepId: string): Promise<ApiResponse<void>>;
35
35
  /**
36
36
  *
37
- * @summary Unlink a step from a pipeline
38
- * @param {number} pipelineId Unique ID of the pipeline
39
- * @param {number} pipelineStepId Unique ID of the step to be unlinked
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
- unlinkStepFromPipeline(pipelineId: number, pipelineStepId: number): Promise<ApiResponse<void>>;
41
+ unlinkPipelineStepFromPipeline(pipelineId: number, stepId: string): Promise<ApiResponse<void>>;
42
42
  /**
43
43
  *
44
- * @summary Update a pipeline step
45
- * @param {number} pipelineId Unique ID of the pipeline
46
- * @param {number} pipelineStepId Unique ID of the pipeline step to update information from
47
- * @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing pipeline step data
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
- updatePipelineStep(pipelineId: number, pipelineStepId: number, pipelineStepUpdate: PipelineStepUpdate): Promise<ApiResponse<void>>;
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 Creates a step for a pipeline
35
- * @param {number} pipelineId Unique ID of the pipeline to add the step to
36
- * @param {PipelineStepCreate} pipelineStepCreate A JSON object containing pipeline script data
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
- createPipelineStep(pipelineId, pipelineStepCreate) {
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', 'createPipelineStep');
41
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'addPipelinePipelineStep');
42
42
  }
43
43
  if (pipelineStepCreate === null || pipelineStepCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', 'createPipelineStep');
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 pipeline
55
- * @param {number} pipelineId Unique ID of the pipeline
56
- * @param {number} pipelineStepId Unique ID of the step to be linked
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
- linkStepToPipeline(pipelineId, pipelineStepId) {
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', 'linkStepToPipeline');
61
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'linkPipelineStepToPipeline');
62
62
  }
63
- if (pipelineStepId === null || pipelineStepId === undefined) {
64
- throw new Exceptions_1.ArgumentNullException('pipelineStepId', 'linkStepToPipeline');
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/{pipeline_step_id}' + (queryString ? `?${queryString}` : '');
68
- const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"pipeline_step_id"}}`, encodeURIComponent(String(pipelineStepId))));
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 pipeline
75
- * @param {number} pipelineId Unique ID of the pipeline
76
- * @param {number} pipelineStepId Unique ID of the step to be unlinked
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
- unlinkStepFromPipeline(pipelineId, pipelineStepId) {
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', 'unlinkStepFromPipeline');
81
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'unlinkPipelineStepFromPipeline');
82
82
  }
83
- if (pipelineStepId === null || pipelineStepId === undefined) {
84
- throw new Exceptions_1.ArgumentNullException('pipelineStepId', 'unlinkStepFromPipeline');
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/{pipeline_step_id}' + (queryString ? `?${queryString}` : '');
88
- const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"pipeline_step_id"}}`, encodeURIComponent(String(pipelineStepId))));
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 a pipeline step
95
- * @param {number} pipelineId Unique ID of the pipeline
96
- * @param {number} pipelineStepId Unique ID of the pipeline step to update information from
97
- * @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing pipeline step data
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
- updatePipelineStep(pipelineId, pipelineStepId, pipelineStepUpdate) {
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', 'updatePipelineStep');
102
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipelinePipelineStep');
103
103
  }
104
- if (pipelineStepId === null || pipelineStepId === undefined) {
105
- throw new Exceptions_1.ArgumentNullException('pipelineStepId', 'updatePipelineStep');
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', 'updatePipelineStep');
108
+ throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', 'updatePipelinePipelineStep');
109
109
  }
110
110
  let queryString = '';
111
- const requestUrl = '/pipelines/{pipeline_id}/steps/{pipeline_step_id}' + (queryString ? `?${queryString}` : '');
112
- const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"pipeline_step_id"}}`, encodeURIComponent(String(pipelineStepId))), pipelineStepUpdate);
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
  }