@@ -18,7 +18,7 @@ export class Deployments {
1818 * Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
1919 * This resource requires the 'WRITE' scope for Connect apps.
2020 * */
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 > ;
2222 /**
2323 * Update / insert deployment data.
2424 *
@@ -31,17 +31,17 @@ export class Deployments {
3131 * Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
3232 * This resource requires the 'WRITE' scope for Connect apps.
3333 * */
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 > ;
3535 async submitDeployments < T = Models . SubmitDeployments > ( parameters ?: Parameters . SubmitDeployments , callback ?: Callback < T > ) : Promise < void | T > {
36- const config = ( {
36+ const config = {
3737 url : '/deployments/0.1/bulk' ,
3838 method : 'POST' ,
3939 data : {
4040 properties : parameters ?. properties ,
4141 deployments : parameters ?. deployments ,
4242 providerMetadata : parameters ?. providerMetadata ,
4343 } ,
44- } as RequestConfig ) ;
44+ } as RequestConfig ;
4545
4646 return this . client . sendRequest ( config , callback , { methodName : 'submitDeployments' } ) ;
4747 }
@@ -59,7 +59,7 @@ export class Deployments {
5959 * Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
6060 * This resource requires the 'DELETE' scope for Connect apps.
6161 * */
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 > ;
6363 /**
6464 * Bulk delete all deployments that match the given request.
6565 *
@@ -74,15 +74,15 @@ export class Deployments {
7474 * Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
7575 * This resource requires the 'DELETE' scope for Connect apps.
7676 * */
77- async deleteDeploymentsByProperty < T = unknown > ( parameters ?: Parameters . DeleteDeploymentsByProperty , callback ?: undefined ) : Promise < T > ;
77+ async deleteDeploymentsByProperty < T = unknown > ( parameters ?: Parameters . DeleteDeploymentsByProperty , callback ?: never ) : Promise < T > ;
7878 async deleteDeploymentsByProperty < T = unknown > ( parameters ?: Parameters . DeleteDeploymentsByProperty , callback ?: Callback < T > ) : Promise < void | T > {
79- const config = ( {
79+ const config = {
8080 url : '/deployments/0.1/bulkByProperties' ,
8181 method : 'DELETE' ,
8282 params : {
8383 _updateSequenceNumber : parameters ?. _updateSequenceNumber ,
8484 } ,
85- } as RequestConfig ) ;
85+ } as RequestConfig ;
8686
8787 return this . client . sendRequest ( config , callback , { methodName : 'deleteDeploymentsByProperty' } ) ;
8888 }
@@ -103,12 +103,12 @@ export class Deployments {
103103 * Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
104104 * This resource requires the 'READ' scope for Connect apps.
105105 * */
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 > ;
107107 async getDeploymentByKey < T = Models . GetDeploymentByKey > ( parameters : Parameters . GetDeploymentByKey , callback ?: Callback < T > ) : Promise < void | T > {
108- const config = ( {
108+ const config = {
109109 url : `/deployments/0.1/pipelines/${ parameters . pipelineId } /environments/${ parameters . environmentId } /deployments/${ parameters . deploymentSequenceNumber } ` ,
110110 method : 'GET' ,
111- } as RequestConfig ) ;
111+ } as RequestConfig ;
112112
113113 return this . client . sendRequest ( config , callback , { methodName : 'getDeploymentByKey' } ) ;
114114 }
@@ -129,15 +129,15 @@ export class Deployments {
129129 * Only Connect apps that define the `jiraDeploymentInfoProvider` module, and on-premise integrations, can access this resource.
130130 * This resource requires the 'DELETE' scope for Connect apps.
131131 * */
132- async deleteDeploymentByKey < T = unknown > ( parameters : Parameters . DeleteDeploymentByKey , callback ?: undefined ) : Promise < T > ;
132+ async deleteDeploymentByKey < T = unknown > ( parameters : Parameters . DeleteDeploymentByKey , callback ?: never ) : Promise < T > ;
133133 async deleteDeploymentByKey < T = unknown > ( parameters : Parameters . DeleteDeploymentByKey , callback ?: Callback < T > ) : Promise < void | T > {
134- const config = ( {
134+ const config = {
135135 url : `/deployments/0.1/pipelines/${ parameters . pipelineId } /environments/${ parameters . environmentId } /deployments/${ parameters . deploymentSequenceNumber } ` ,
136136 method : 'DELETE' ,
137137 params : {
138138 _updateSequenceNumber : parameters . _updateSequenceNumber ,
139139 } ,
140- } as RequestConfig ) ;
140+ } as RequestConfig ;
141141
142142 return this . client . sendRequest ( config , callback , { methodName : 'deleteDeploymentByKey' } ) ;
143143 }
@@ -148,12 +148,12 @@ export class Deployments {
148148 /**
149149 * 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.
150150 * */
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 > ;
152152 async getDeploymentGatingStatusByKey < T = Models . GetDeploymentGatingStatusByKey > ( parameters : Parameters . GetDeploymentGatingStatusByKey , callback ?: Callback < T > ) : Promise < void | T > {
153- const config = ( {
153+ const config = {
154154 url : `/deployments/0.1/pipelines/${ parameters . pipelineId } /environments/${ parameters . environmentId } /deployments/${ parameters . deploymentSequenceNumber } /gating-status` ,
155155 method : 'GET' ,
156- } as RequestConfig ) ;
156+ } as RequestConfig ;
157157
158158 return this . client . sendRequest ( config , callback , { methodName : 'getDeploymentGatingStatusByKey' } ) ;
159159 }
0 commit comments