@@ -109,7 +109,7 @@ export class ApiService {
109
109
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
110
110
* @param reportProgress flag to report request and response progress.
111
111
*/
112
- public startInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) : Observable < HttpEvent < number > > {
112
+ public startInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) {
113
113
return this . postAction ( START_INSTANCE , instanceId ) ;
114
114
}
115
115
@@ -119,7 +119,7 @@ export class ApiService {
119
119
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
120
120
* @param reportProgress flag to report request and response progress.
121
121
*/
122
- public stopInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) : Observable < HttpEvent < number > > {
122
+ public stopInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) {
123
123
return this . postAction ( STOP_INSTANCE , instanceId ) ;
124
124
}
125
125
@@ -129,7 +129,7 @@ export class ApiService {
129
129
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
130
130
* @param reportProgress flag to report request and response progress.
131
131
*/
132
- public pauseInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) : Observable < HttpEvent < number > > {
132
+ public pauseInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) {
133
133
return this . postAction ( PAUSE_INSTANCE , instanceId ) ;
134
134
}
135
135
@@ -139,7 +139,7 @@ export class ApiService {
139
139
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
140
140
* @param reportProgress flag to report request and response progress.
141
141
*/
142
- public resumeInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) : Observable < HttpEvent < number > > {
142
+ public resumeInstance ( instanceId : string , observe : any = 'body' , reportProgress : boolean = false ) {
143
143
return this . postAction ( RESUME_INSTANCE , instanceId ) ;
144
144
}
145
145
@@ -149,7 +149,7 @@ export class ApiService {
149
149
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
150
150
* @param reportProgress flag to report request and response progress.
151
151
*/
152
- public deleteInstance ( instanceId : string ) : Observable < HttpEvent < number > > {
152
+ public deleteInstance ( instanceId : string ) {
153
153
return this . postAction ( DELETE_INSTANCE , instanceId ) ;
154
154
}
155
155
@@ -214,8 +214,7 @@ export class ApiService {
214
214
}
215
215
216
216
217
- private postAction ( endpoint : string , idInstance : string , observe : any = 'body' , reportProgress : boolean = false ) :
218
- Observable < HttpEvent < number > > {
217
+ private postAction ( endpoint : string , idInstance : string , observe : any = 'body' , reportProgress : boolean = false ) {
219
218
let queryParam = new HttpParams ( { encoder : new CustomHttpUrlEncodingCodec ( ) } ) ;
220
219
221
220
if ( idInstance === null || idInstance === undefined ) {
@@ -228,8 +227,7 @@ export class ApiService {
228
227
}
229
228
230
229
231
- private commonConf ( endpoint : string , queryParameters : HttpParams , observe : any = 'body' , reportProgress : boolean = false ) :
232
- Observable < HttpEvent < number > > {
230
+ private commonConf ( endpoint : string , queryParameters : HttpParams , observe : any = 'body' , reportProgress : boolean = false ) {
233
231
let headers = this . defaultHeaders ;
234
232
235
233
// to determine the Accept header
0 commit comments