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
2 changes: 1 addition & 1 deletion 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.19.0
* The version of the OpenAPI document: 1.0.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/configService.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.19.0
* The version of the OpenAPI document: 1.0.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/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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
56 changes: 55 additions & 1 deletion src/api/api/serviceService.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.19.0
* The version of the OpenAPI document: 1.0.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 { GoogleRpcStatus } from '../model/models';
import { HasServiceResponse } from '../model/models';
import { ListServicesResponse } from '../model/models';
import { Service } from '../model/models';

Expand Down Expand Up @@ -144,6 +145,59 @@ export class ServiceServiceService {
);
}

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

let headers = this.defaultHeaders;

// authentication (Bearer) required
if (this.configuration.apiKeys) {
const key: string | undefined = this.configuration.apiKeys["Bearer"] || this.configuration.apiKeys["authorization"];
if (key) {
headers = headers.set('authorization', key);
}
}

let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (httpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/json',
'application/octet-stream'
];
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}


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

return this.httpClient.get<HasServiceResponse>(`${this.configuration.basePath}/apis/v1beta/service/${encodeURIComponent(String(name))}`,
{
responseType: <any>responseType,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}

/**
* @param namespace
* @param pageSize
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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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/addWorkflowExecutionsMetricsRequest.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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/getAccessTokenRequest.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.19.0
* The version of the OpenAPI document: 1.0.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/getAccessTokenResponse.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.19.0
* The version of the OpenAPI document: 1.0.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/getConfigResponse.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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/getNamespaceConfigResponse.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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
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.19.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
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.19.0
* The version of the OpenAPI document: 1.0.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.19.0
* The version of the OpenAPI document: 1.0.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/googleRpcStatus.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.19.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
17 changes: 17 additions & 0 deletions src/api/model/hasServiceResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 1.0.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 HasServiceResponse {
hasService?: boolean;
}

2 changes: 1 addition & 1 deletion src/api/model/isAuthorized.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.19.0
* The version of the OpenAPI document: 1.0.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/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.19.0
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading