@@ -22,6 +22,8 @@ import { AchievementGrantRequest } from '../model/achievementGrantRequest';
22
22
import { AchievementGrantResponse } from '../model/achievementGrantResponse' ;
23
23
import { AchievementResponse } from '../model/achievementResponse' ;
24
24
import { AchievementsResponse } from '../model/achievementsResponse' ;
25
+ import { AdminInstanceConfig } from '../model/adminInstanceConfig' ;
26
+ import { AdminInstanceConfigResponse } from '../model/adminInstanceConfigResponse' ;
25
27
import { AdminTaskCreationRequest } from '../model/adminTaskCreationRequest' ;
26
28
import { AdminTaskDeployResponse } from '../model/adminTaskDeployResponse' ;
27
29
import { AdminTaskMergeResponse } from '../model/adminTaskMergeResponse' ;
@@ -2969,6 +2971,105 @@ export class DefaultService {
2969
2971
) ;
2970
2972
}
2971
2973
2974
+ /**
2975
+ *
2976
+ *
2977
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
2978
+ * @param reportProgress flag to report request and response progress.
2979
+ */
2980
+ public instanceConfigGetAll ( observe ?: 'body' , reportProgress ?: boolean ) : Observable < AdminInstanceConfigResponse > ;
2981
+ public instanceConfigGetAll ( observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < AdminInstanceConfigResponse > > ;
2982
+ public instanceConfigGetAll ( observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < AdminInstanceConfigResponse > > ;
2983
+ public instanceConfigGetAll ( observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
2984
+
2985
+ let headers = this . defaultHeaders ;
2986
+
2987
+ // authentication (ksi) required
2988
+ if ( this . configuration . accessToken ) {
2989
+ const accessToken = typeof this . configuration . accessToken === 'function'
2990
+ ? this . configuration . accessToken ( )
2991
+ : this . configuration . accessToken ;
2992
+ headers = headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
2993
+ }
2994
+
2995
+ // to determine the Accept header
2996
+ let httpHeaderAccepts : string [ ] = [
2997
+ 'application/json'
2998
+ ] ;
2999
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
3000
+ if ( httpHeaderAcceptSelected != undefined ) {
3001
+ headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ;
3002
+ }
3003
+
3004
+ // to determine the Content-Type header
3005
+ const consumes : string [ ] = [
3006
+ ] ;
3007
+
3008
+ return this . httpClient . request < AdminInstanceConfigResponse > ( 'get' , `${ this . basePath } /admin/instanceConfig` ,
3009
+ {
3010
+ withCredentials : this . configuration . withCredentials ,
3011
+ headers : headers ,
3012
+ observe : observe ,
3013
+ reportProgress : reportProgress
3014
+ }
3015
+ ) ;
3016
+ }
3017
+
3018
+ /**
3019
+ *
3020
+ *
3021
+ * @param body
3022
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3023
+ * @param reportProgress flag to report request and response progress.
3024
+ */
3025
+ public instanceConfigSetSingle ( body : AdminInstanceConfig , observe ?: 'body' , reportProgress ?: boolean ) : Observable < string > ;
3026
+ public instanceConfigSetSingle ( body : AdminInstanceConfig , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < string > > ;
3027
+ public instanceConfigSetSingle ( body : AdminInstanceConfig , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < string > > ;
3028
+ public instanceConfigSetSingle ( body : AdminInstanceConfig , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
3029
+
3030
+ if ( body === null || body === undefined ) {
3031
+ throw new Error ( 'Required parameter body was null or undefined when calling instanceConfigSetSingle.' ) ;
3032
+ }
3033
+
3034
+ let headers = this . defaultHeaders ;
3035
+
3036
+ // authentication (ksi) required
3037
+ if ( this . configuration . accessToken ) {
3038
+ const accessToken = typeof this . configuration . accessToken === 'function'
3039
+ ? this . configuration . accessToken ( )
3040
+ : this . configuration . accessToken ;
3041
+ headers = headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
3042
+ }
3043
+
3044
+ // to determine the Accept header
3045
+ let httpHeaderAccepts : string [ ] = [
3046
+ 'application/json'
3047
+ ] ;
3048
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
3049
+ if ( httpHeaderAcceptSelected != undefined ) {
3050
+ headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ;
3051
+ }
3052
+
3053
+ // to determine the Content-Type header
3054
+ const consumes : string [ ] = [
3055
+ 'application/json'
3056
+ ] ;
3057
+ const httpContentTypeSelected : string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
3058
+ if ( httpContentTypeSelected != undefined ) {
3059
+ headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ;
3060
+ }
3061
+
3062
+ return this . httpClient . request < string > ( 'post' , `${ this . basePath } /admin/instanceConfig` ,
3063
+ {
3064
+ body : body ,
3065
+ withCredentials : this . configuration . withCredentials ,
3066
+ headers : headers ,
3067
+ observe : observe ,
3068
+ reportProgress : reportProgress
3069
+ }
3070
+ ) ;
3071
+ }
3072
+
2972
3073
/**
2973
3074
*
2974
3075
*
@@ -4246,21 +4347,21 @@ export class DefaultService {
4246
4347
/**
4247
4348
*
4248
4349
*
4249
- * @param _wave
4350
+ * @param wave
4250
4351
* @param year
4251
4352
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
4252
4353
* @param reportProgress flag to report request and response progress.
4253
4354
*/
4254
- public threadsGetAll ( _wave ?: number , year ?: number , observe ?: 'body' , reportProgress ?: boolean ) : Observable < ThreadsResponse > ;
4255
- public threadsGetAll ( _wave ?: number , year ?: number , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < ThreadsResponse > > ;
4256
- public threadsGetAll ( _wave ?: number , year ?: number , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < ThreadsResponse > > ;
4257
- public threadsGetAll ( _wave ?: number , year ?: number , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
4355
+ public threadsGetAll ( wave ?: number , year ?: number , observe ?: 'body' , reportProgress ?: boolean ) : Observable < ThreadsResponse > ;
4356
+ public threadsGetAll ( wave ?: number , year ?: number , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < ThreadsResponse > > ;
4357
+ public threadsGetAll ( wave ?: number , year ?: number , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < ThreadsResponse > > ;
4358
+ public threadsGetAll ( wave ?: number , year ?: number , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
4258
4359
4259
4360
4260
4361
4261
4362
let queryParameters = new HttpParams ( { encoder : new CustomHttpUrlEncodingCodec ( ) } ) ;
4262
- if ( _wave !== undefined && _wave !== null ) {
4263
- queryParameters = queryParameters . set ( '_wave ' , < any > _wave ) ;
4363
+ if ( wave !== undefined && wave !== null ) {
4364
+ queryParameters = queryParameters . set ( 'wave ' , < any > wave ) ;
4264
4365
}
4265
4366
4266
4367
let headers = this . defaultHeaders ;
@@ -4739,6 +4840,14 @@ export class DefaultService {
4739
4840
headers = headers . set ( 'year' , String ( year ) ) ;
4740
4841
}
4741
4842
4843
+ // authentication (ksi) required
4844
+ if ( this . configuration . accessToken ) {
4845
+ const accessToken = typeof this . configuration . accessToken === 'function'
4846
+ ? this . configuration . accessToken ( )
4847
+ : this . configuration . accessToken ;
4848
+ headers = headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
4849
+ }
4850
+
4742
4851
// to determine the Accept header
4743
4852
let httpHeaderAccepts : string [ ] = [
4744
4853
'application/json'
@@ -4780,6 +4889,14 @@ export class DefaultService {
4780
4889
4781
4890
let headers = this . defaultHeaders ;
4782
4891
4892
+ // authentication (ksi) required
4893
+ if ( this . configuration . accessToken ) {
4894
+ const accessToken = typeof this . configuration . accessToken === 'function'
4895
+ ? this . configuration . accessToken ( )
4896
+ : this . configuration . accessToken ;
4897
+ headers = headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
4898
+ }
4899
+
4783
4900
// to determine the Accept header
4784
4901
let httpHeaderAccepts : string [ ] = [
4785
4902
'application/json'
0 commit comments