Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions src/api/api/authService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -18,6 +18,7 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

import { GrpcGatewayRuntimeError } from '../model/models';
import { IsAuthorized } from '../model/models';
import { IsAuthorizedResponse } from '../model/models';
import { IsValidTokenResponse } from '../model/models';
import { TokenWrapper } from '../model/models';
Expand Down Expand Up @@ -89,13 +90,17 @@ export class AuthServiceService {
}

/**
* @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 isAuthorized(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<IsAuthorizedResponse>;
public isAuthorized(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<IsAuthorizedResponse>>;
public isAuthorized(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<IsAuthorizedResponse>>;
public isAuthorized(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
public isAuthorized(body: IsAuthorized, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<IsAuthorizedResponse>;
public isAuthorized(body: IsAuthorized, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<IsAuthorizedResponse>>;
public isAuthorized(body: IsAuthorized, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<IsAuthorizedResponse>>;
public isAuthorized(body: IsAuthorized, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling isAuthorized.');
}

let headers = this.defaultHeaders;

Expand All @@ -120,13 +125,22 @@ export class AuthServiceService {
}


// 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);
}

let responseType: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
}

return this.httpClient.post<IsAuthorizedResponse>(`${this.configuration.basePath}/apis/v1beta1/auth`,
null,
body,
{
responseType: <any>responseType,
withCredentials: this.configuration.withCredentials,
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/cronWorkflowService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/labelService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/namespaceService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/secretService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workflowService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workflowTemplateService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workspaceService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workspaceTemplateService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/addSecretKeyValueResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/archiveWorkflowTemplateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/artifactResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/createWorkflowExecutionBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/createWorkspaceBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/cronWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/cronWorkflowStatisticsReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/deleteSecretKeyResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/deleteSecretResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getLabelsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getWorkflowExecutionMetricsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/googleProtobufAny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/grpcGatewayRuntimeError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/grpcGatewayRuntimeStreamError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
21 changes: 21 additions & 0 deletions src/api/model/isAuthorized.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface IsAuthorized {
namespace?: string;
verb?: string;
group?: string;
resource?: string;
resourceName?: string;
}

2 changes: 1 addition & 1 deletion src/api/model/isAuthorizedResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/isValidTokenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/keyValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listCronWorkflowsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listFilesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listNamespacesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listSecretsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listWorkflowExecutionsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listWorkflowTemplateVersionsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listWorkflowTemplatesResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/listWorkspaceResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.10.0
* The version of the OpenAPI document: 0.11.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading