Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * deleteGatewayFromClient
- *
- * @param clientId clientId
- * @param gatewayId gatewayId
- * @param body
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
- * @param reportProgress flag to report request and response progress.
- */
- public deleteGatewayFromClient(clientId: number, gatewayId: number, accepted?: boolean, alias?: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
- public deleteGatewayFromClient(clientId: number, gatewayId: number, accepted?: boolean, alias?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
- public deleteGatewayFromClient(clientId: number, gatewayId: number, accepted?: boolean, alias?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
- public deleteGatewayFromClient(clientId: number, gatewayId: number, accepted?: boolean, alias?: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
- if (clientId === null || gatewayId === undefined) {
- throw new Error('Required parameters null or undefined when calling deleteGatewayFromClient.');
- }
- let headers = this.defaultHeaders;
- // to determine the Accept header
- const httpHeaderAccepts: string[] = [
- ];
- const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
- if (httpHeaderAcceptSelected != undefined) {
- headers = headers.set('Accept', httpHeaderAcceptSelected);
- }
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected != undefined) {
- headers = headers.set('Content-Type', httpContentTypeSelected);
- }
- return this.httpClient.delete<any>(`${this.basePath}/clients/${encodeURIComponent(String(clientId))}/gateways/${encodeURIComponent(String(gatewayId))}/`,
- {
- withCredentials: this.configuration.withCredentials,
- headers,
- observe,
- reportProgress
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement