@@ -18,7 +18,7 @@ export class Deployments {
18
18
* Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
19
19
* This resource requires the 'WRITE' scope for Connect apps.
20
20
* */
21
- async submitDeployments < T = Models . SubmitDeployments > ( parameters ? : Parameters . SubmitDeployments , callback ? : Callback < T > ) : Promise < void > ;
21
+ async submitDeployments < T = Models . SubmitDeployments > ( parameters : Parameters . SubmitDeployments | undefined , callback : Callback < T > ) : Promise < void > ;
22
22
/**
23
23
* Update / insert deployment data.
24
24
*
@@ -31,17 +31,17 @@ export class Deployments {
31
31
* Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
32
32
* This resource requires the 'WRITE' scope for Connect apps.
33
33
* */
34
- async submitDeployments < T = Models . SubmitDeployments > ( parameters ?: Parameters . SubmitDeployments , callback ?: undefined ) : Promise < T > ;
34
+ async submitDeployments < T = Models . SubmitDeployments > ( parameters ?: Parameters . SubmitDeployments , callback ?: never ) : Promise < T > ;
35
35
async submitDeployments < T = Models . SubmitDeployments > ( parameters ?: Parameters . SubmitDeployments , callback ?: Callback < T > ) : Promise < void | T > {
36
- const config = ( {
36
+ const config = {
37
37
url : '/deployments/0.1/bulk' ,
38
38
method : 'POST' ,
39
39
data : {
40
40
properties : parameters ?. properties ,
41
41
deployments : parameters ?. deployments ,
42
42
providerMetadata : parameters ?. providerMetadata ,
43
43
} ,
44
- } as RequestConfig ) ;
44
+ } as RequestConfig ;
45
45
46
46
return this . client . sendRequest ( config , callback , { methodName : 'submitDeployments' } ) ;
47
47
}
@@ -59,7 +59,7 @@ export class Deployments {
59
59
* Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
60
60
* This resource requires the 'DELETE' scope for Connect apps.
61
61
* */
62
- async deleteDeploymentsByProperty < T = unknown > ( parameters ? : Parameters . DeleteDeploymentsByProperty , callback ? : Callback < T > ) : Promise < void > ;
62
+ async deleteDeploymentsByProperty < T = unknown > ( parameters : Parameters . DeleteDeploymentsByProperty | undefined , callback : Callback < T > ) : Promise < void > ;
63
63
/**
64
64
* Bulk delete all deployments that match the given request.
65
65
*
@@ -74,15 +74,15 @@ export class Deployments {
74
74
* Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
75
75
* This resource requires the 'DELETE' scope for Connect apps.
76
76
* */
77
- async deleteDeploymentsByProperty < T = unknown > ( parameters ?: Parameters . DeleteDeploymentsByProperty , callback ?: undefined ) : Promise < T > ;
77
+ async deleteDeploymentsByProperty < T = unknown > ( parameters ?: Parameters . DeleteDeploymentsByProperty , callback ?: never ) : Promise < T > ;
78
78
async deleteDeploymentsByProperty < T = unknown > ( parameters ?: Parameters . DeleteDeploymentsByProperty , callback ?: Callback < T > ) : Promise < void | T > {
79
- const config = ( {
79
+ const config = {
80
80
url : '/deployments/0.1/bulkByProperties' ,
81
81
method : 'DELETE' ,
82
82
params : {
83
83
_updateSequenceNumber : parameters ?. _updateSequenceNumber ,
84
84
} ,
85
- } as RequestConfig ) ;
85
+ } as RequestConfig ;
86
86
87
87
return this . client . sendRequest ( config , callback , { methodName : 'deleteDeploymentsByProperty' } ) ;
88
88
}
@@ -103,12 +103,12 @@ export class Deployments {
103
103
* Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
104
104
* This resource requires the 'READ' scope for Connect apps.
105
105
* */
106
- async getDeploymentByKey < T = Models . GetDeploymentByKey > ( parameters : Parameters . GetDeploymentByKey , callback ?: undefined ) : Promise < T > ;
106
+ async getDeploymentByKey < T = Models . GetDeploymentByKey > ( parameters : Parameters . GetDeploymentByKey , callback ?: never ) : Promise < T > ;
107
107
async getDeploymentByKey < T = Models . GetDeploymentByKey > ( parameters : Parameters . GetDeploymentByKey , callback ?: Callback < T > ) : Promise < void | T > {
108
- const config = ( {
108
+ const config = {
109
109
url : `/deployments/0.1/pipelines/${ parameters . pipelineId } /environments/${ parameters . environmentId } /deployments/${ parameters . deploymentSequenceNumber } ` ,
110
110
method : 'GET' ,
111
- } as RequestConfig ) ;
111
+ } as RequestConfig ;
112
112
113
113
return this . client . sendRequest ( config , callback , { methodName : 'getDeploymentByKey' } ) ;
114
114
}
@@ -129,15 +129,15 @@ export class Deployments {
129
129
* Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
130
130
* This resource requires the 'DELETE' scope for Connect apps.
131
131
* */
132
- async deleteDeploymentByKey < T = unknown > ( parameters : Parameters . DeleteDeploymentByKey , callback ?: undefined ) : Promise < T > ;
132
+ async deleteDeploymentByKey < T = unknown > ( parameters : Parameters . DeleteDeploymentByKey , callback ?: never ) : Promise < T > ;
133
133
async deleteDeploymentByKey < T = unknown > ( parameters : Parameters . DeleteDeploymentByKey , callback ?: Callback < T > ) : Promise < void | T > {
134
- const config = ( {
134
+ const config = {
135
135
url : `/deployments/0.1/pipelines/${ parameters . pipelineId } /environments/${ parameters . environmentId } /deployments/${ parameters . deploymentSequenceNumber } ` ,
136
136
method : 'DELETE' ,
137
137
params : {
138
138
_updateSequenceNumber : parameters . _updateSequenceNumber ,
139
139
} ,
140
- } as RequestConfig ) ;
140
+ } as RequestConfig ;
141
141
142
142
return this . client . sendRequest ( config , callback , { methodName : 'deleteDeploymentByKey' } ) ;
143
143
}
@@ -148,12 +148,12 @@ export class Deployments {
148
148
/**
149
149
* Retrieve the Deployment gating status for the given `pipelineId + environmentId + deploymentSequenceNumber` combination. Only apps that define the `jiraDeploymentInfoProvider` module can access this resource. This resource requires the 'READ' scope.
150
150
* */
151
- async getDeploymentGatingStatusByKey < T = Models . GetDeploymentGatingStatusByKey > ( parameters : Parameters . GetDeploymentGatingStatusByKey , callback ?: undefined ) : Promise < T > ;
151
+ async getDeploymentGatingStatusByKey < T = Models . GetDeploymentGatingStatusByKey > ( parameters : Parameters . GetDeploymentGatingStatusByKey , callback ?: never ) : Promise < T > ;
152
152
async getDeploymentGatingStatusByKey < T = Models . GetDeploymentGatingStatusByKey > ( parameters : Parameters . GetDeploymentGatingStatusByKey , callback ?: Callback < T > ) : Promise < void | T > {
153
- const config = ( {
153
+ const config = {
154
154
url : `/deployments/0.1/pipelines/${ parameters . pipelineId } /environments/${ parameters . environmentId } /deployments/${ parameters . deploymentSequenceNumber } /gating-status` ,
155
155
method : 'GET' ,
156
- } as RequestConfig ) ;
156
+ } as RequestConfig ;
157
157
158
158
return this . client . sendRequest ( config , callback , { methodName : 'getDeploymentGatingStatusByKey' } ) ;
159
159
}
0 commit comments