Changeset 13cbe66 for src/mapservice-webclient/src-gen/gnuboat-mapservice
- Timestamp:
- May 25, 2019, 5:40:08 PM (8 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 70f328b
- Parents:
- 28198a1
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (05/22/19 18:20:13)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (05/25/19 17:40:08)
- Location:
- src/mapservice-webclient/src-gen/gnuboat-mapservice
- Files:
-
- 6 added
- 4 edited
-
api/users.service.ts (modified) (3 diffs)
-
api/waters.service.ts (modified) (4 diffs)
-
model/gauge.ts (added)
-
model/gaugeCreation.ts (added)
-
model/gaugeGeoJson.ts (added)
-
model/gaugeGeoJsonProperties.ts (added)
-
model/geoJsonPoint.ts (added)
-
model/geoJsonType.ts (added)
-
model/models.ts (modified) (1 diff)
-
model/water.ts (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice-webclient/src-gen/gnuboat-mapservice/api/users.service.ts
r28198a1 r13cbe66 148 148 let headers = this.defaultHeaders; 149 149 150 // authentication (apiKeyAuth) required151 if (this.configuration.apiKeys && this.configuration.apiKeys["X-API-KEY"]) {152 headers = headers.set('X-API-KEY', this.configuration.apiKeys["X-API-KEY"]);153 }154 155 150 // authentication (basicAuth) required 156 151 if (this.configuration.username || this.configuration.password) { … … 197 192 let headers = this.defaultHeaders; 198 193 199 // authentication (apiKeyAuth) required200 if (this.configuration.apiKeys && this.configuration.apiKeys["X-API-KEY"]) {201 headers = headers.set('X-API-KEY', this.configuration.apiKeys["X-API-KEY"]);202 }203 204 194 // authentication (basicAuth) required 205 195 if (this.configuration.username || this.configuration.password) { … … 231 221 /** 232 222 * Returns info of a user 233 * Returns information for auser223 * Returns information of current/authorized user 234 224 * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. 235 225 * @param reportProgress flag to report request and response progress. -
src/mapservice-webclient/src-gen/gnuboat-mapservice/api/waters.service.ts
r28198a1 r13cbe66 19 19 import { Observable } from 'rxjs/Observable'; 20 20 21 import { Gauge } from '../model/gauge'; 22 import { GaugeCreation } from '../model/gaugeCreation'; 21 23 import { HttpError } from '../model/httpError'; 22 24 import { Water } from '../model/water'; … … 61 63 62 64 /** 63 * Represents a water64 * Returns the water identified by id65 * @param id Item ID66 * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.67 * @param reportProgress flag to report request and response progress.68 */69 public waterGetById(id: number, observe?: 'body', reportProgress?: boolean): Observable<Water>;70 public waterGetById(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Water>>;71 public waterGetById(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Water>>;72 public waterGetById(id: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {73 if (id === null || id === undefined) {74 throw new Error('Required parameter id was null or undefined when calling waterGetById.');75 }76 77 let headers = this.defaultHeaders;78 79 // to determine the Accept header80 const httpHeaderAccepts: string[] = [81 'application/json'82 ];83 const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);84 if (httpHeaderAcceptSelected !== undefined) {85 headers = headers.set('Accept', httpHeaderAcceptSelected);86 }87 88 // to determine the Content-Type header89 const consumes: string[] = [90 ];91 92 return this.httpClient.get<Water>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(id))}`,93 {94 withCredentials: this.configuration.withCredentials,95 headers: headers,96 observe: observe,97 reportProgress: reportProgress98 }99 );100 }101 102 /**103 65 * Add a new water 104 66 * Adds a new water to the database … … 144 106 waterCreation, 145 107 { 108 withCredentials: this.configuration.withCredentials, 109 headers: headers, 110 observe: observe, 111 reportProgress: reportProgress 112 } 113 ); 114 } 115 116 /** 117 * Add a new water 118 * Adds a new gauge for water waterId to the database 119 * @param waterId Water ID 120 * @param gaugeCreation 121 * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. 122 * @param reportProgress flag to report request and response progress. 123 */ 124 public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe?: 'body', reportProgress?: boolean): Observable<Gauge>; 125 public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Gauge>>; 126 public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Gauge>>; 127 public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { 128 if (waterId === null || waterId === undefined) { 129 throw new Error('Required parameter waterId was null or undefined when calling watersGaugeCreate.'); 130 } 131 132 let headers = this.defaultHeaders; 133 134 // authentication (apiKeyAuth) required 135 if (this.configuration.apiKeys && this.configuration.apiKeys["X-API-KEY"]) { 136 headers = headers.set('X-API-KEY', this.configuration.apiKeys["X-API-KEY"]); 137 } 138 139 // authentication (basicAuth) required 140 if (this.configuration.username || this.configuration.password) { 141 headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password)); 142 } 143 // to determine the Accept header 144 const httpHeaderAccepts: string[] = [ 145 'application/json', 146 'application/geo+json' 147 ]; 148 const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); 149 if (httpHeaderAcceptSelected !== undefined) { 150 headers = headers.set('Accept', httpHeaderAcceptSelected); 151 } 152 153 // to determine the Content-Type header 154 const consumes: string[] = [ 155 'application/json' 156 ]; 157 const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); 158 if (httpContentTypeSelected !== undefined) { 159 headers = headers.set('Content-Type', httpContentTypeSelected); 160 } 161 162 return this.httpClient.post<Gauge>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges`, 163 gaugeCreation, 164 { 165 withCredentials: this.configuration.withCredentials, 166 headers: headers, 167 observe: observe, 168 reportProgress: reportProgress 169 } 170 ); 171 } 172 173 /** 174 * Represents a gauge 175 * Returns the gauge identified by id 176 * @param waterId Water ID 177 * @param gaugeId Gauge ID 178 * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. 179 * @param reportProgress flag to report request and response progress. 180 */ 181 public watersGaugeGetById(waterId: number, gaugeId: number, observe?: 'body', reportProgress?: boolean): Observable<Gauge>; 182 public watersGaugeGetById(waterId: number, gaugeId: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Gauge>>; 183 public watersGaugeGetById(waterId: number, gaugeId: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Gauge>>; 184 public watersGaugeGetById(waterId: number, gaugeId: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { 185 if (waterId === null || waterId === undefined) { 186 throw new Error('Required parameter waterId was null or undefined when calling watersGaugeGetById.'); 187 } 188 if (gaugeId === null || gaugeId === undefined) { 189 throw new Error('Required parameter gaugeId was null or undefined when calling watersGaugeGetById.'); 190 } 191 192 let headers = this.defaultHeaders; 193 194 // to determine the Accept header 195 const httpHeaderAccepts: string[] = [ 196 'application/json', 197 'application/geo+json' 198 ]; 199 const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); 200 if (httpHeaderAcceptSelected !== undefined) { 201 headers = headers.set('Accept', httpHeaderAcceptSelected); 202 } 203 204 // to determine the Content-Type header 205 const consumes: string[] = [ 206 ]; 207 208 return this.httpClient.get<Gauge>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges/${encodeURIComponent(String(gaugeId))}`, 209 { 210 withCredentials: this.configuration.withCredentials, 211 headers: headers, 212 observe: observe, 213 reportProgress: reportProgress 214 } 215 ); 216 } 217 218 /** 219 * Find gauges of water waterId by gaugeId 220 * Returns all gauges of water waterId 221 * @param waterId Water ID 222 * @param name 223 * @param manager 224 * @param orderBy Order by field: name 225 * @param offset Skip over a number of elements by specifying an offset value for the query 226 * @param limit Limit the number of elements on the response 227 * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. 228 * @param reportProgress flag to report request and response progress. 229 */ 230 public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean): Observable<Array<Gauge>>; 231 public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<Gauge>>>; 232 public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<Gauge>>>; 233 public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { 234 if (waterId === null || waterId === undefined) { 235 throw new Error('Required parameter waterId was null or undefined when calling watersGaugesGet.'); 236 } 237 238 let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); 239 if (name !== undefined && name !== null) { 240 queryParameters = queryParameters.set('name', <any>name); 241 } 242 if (manager !== undefined && manager !== null) { 243 queryParameters = queryParameters.set('manager', <any>manager); 244 } 245 if (orderBy !== undefined && orderBy !== null) { 246 queryParameters = queryParameters.set('orderBy', <any>orderBy); 247 } 248 if (offset !== undefined && offset !== null) { 249 queryParameters = queryParameters.set('offset', <any>offset); 250 } 251 if (limit !== undefined && limit !== null) { 252 queryParameters = queryParameters.set('limit', <any>limit); 253 } 254 255 let headers = this.defaultHeaders; 256 257 // to determine the Accept header 258 const httpHeaderAccepts: string[] = [ 259 'application/json', 260 'application/geo+json' 261 ]; 262 const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); 263 if (httpHeaderAcceptSelected !== undefined) { 264 headers = headers.set('Accept', httpHeaderAcceptSelected); 265 } 266 267 // to determine the Content-Type header 268 const consumes: string[] = [ 269 ]; 270 271 return this.httpClient.get<Array<Gauge>>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges`, 272 { 273 params: queryParameters, 146 274 withCredentials: this.configuration.withCredentials, 147 275 headers: headers, … … 211 339 } 212 340 341 /** 342 * Represents a water 343 * Returns the water identified by id 344 * @param id Item ID 345 * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. 346 * @param reportProgress flag to report request and response progress. 347 */ 348 public watersGetById(id: number, observe?: 'body', reportProgress?: boolean): Observable<Water>; 349 public watersGetById(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Water>>; 350 public watersGetById(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Water>>; 351 public watersGetById(id: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { 352 if (id === null || id === undefined) { 353 throw new Error('Required parameter id was null or undefined when calling watersGetById.'); 354 } 355 356 let headers = this.defaultHeaders; 357 358 // to determine the Accept header 359 const httpHeaderAccepts: string[] = [ 360 'application/json' 361 ]; 362 const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); 363 if (httpHeaderAcceptSelected !== undefined) { 364 headers = headers.set('Accept', httpHeaderAcceptSelected); 365 } 366 367 // to determine the Content-Type header 368 const consumes: string[] = [ 369 ]; 370 371 return this.httpClient.get<Water>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(id))}`, 372 { 373 withCredentials: this.configuration.withCredentials, 374 headers: headers, 375 observe: observe, 376 reportProgress: reportProgress 377 } 378 ); 379 } 380 213 381 } -
src/mapservice-webclient/src-gen/gnuboat-mapservice/model/models.ts
r28198a1 r13cbe66 1 export * from './gauge'; 2 export * from './gaugeCreation'; 3 export * from './gaugeGeoJson'; 4 export * from './gaugeGeoJsonProperties'; 5 export * from './geoJsonPoint'; 6 export * from './geoJsonType'; 1 7 export * from './httpError'; 2 8 export * from './order'; -
src/mapservice-webclient/src-gen/gnuboat-mapservice/model/water.ts
r28198a1 r13cbe66 10 10 * Do not edit the class manually. 11 11 */ 12 import { Gauge } from './gauge'; 12 13 import { OsmType } from './osmType'; 13 14 … … 19 20 osmId?: number; 20 21 osmType?: OsmType; 22 gauges?: Array<Gauge>; 21 23 } 22 24
Note:
See TracChangeset
for help on using the changeset viewer.
