mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 19:58:28 +02:00
'/overview/public-frontends' and generated stubs (#996)
This commit is contained in:
@@ -38,6 +38,7 @@ models/ListOrganizationMembers200Response.ts
|
||||
models/ListOrganizationMembers200ResponseMembersInner.ts
|
||||
models/ListOrganizations200Response.ts
|
||||
models/ListOrganizations200ResponseOrganizationsInner.ts
|
||||
models/ListPublicFrontendsForAccount200Response.ts
|
||||
models/LoginRequest.ts
|
||||
models/Metrics.ts
|
||||
models/MetricsSample.ts
|
||||
|
@@ -23,6 +23,7 @@ import type {
|
||||
GetSparklinesRequest,
|
||||
ListMemberships200Response,
|
||||
ListOrganizationMembers200Response,
|
||||
ListPublicFrontendsForAccount200Response,
|
||||
Metrics,
|
||||
ModelConfiguration,
|
||||
Overview,
|
||||
@@ -46,6 +47,8 @@ import {
|
||||
ListMemberships200ResponseToJSON,
|
||||
ListOrganizationMembers200ResponseFromJSON,
|
||||
ListOrganizationMembers200ResponseToJSON,
|
||||
ListPublicFrontendsForAccount200ResponseFromJSON,
|
||||
ListPublicFrontendsForAccount200ResponseToJSON,
|
||||
MetricsFromJSON,
|
||||
MetricsToJSON,
|
||||
ModelConfigurationFromJSON,
|
||||
@@ -493,6 +496,34 @@ export class MetadataApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async listPublicFrontendsForAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPublicFrontendsForAccount200Response>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.apiKey) {
|
||||
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
|
||||
}
|
||||
|
||||
const response = await this.request({
|
||||
path: `/overview/public-frontends`,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ListPublicFrontendsForAccount200ResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async listPublicFrontendsForAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPublicFrontendsForAccount200Response> {
|
||||
const response = await this.listPublicFrontendsForAccountRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async orgAccountOverviewRaw(requestParameters: OrgAccountOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Overview>> {
|
||||
|
@@ -0,0 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* zrok
|
||||
* zrok client access
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ListPublicFrontendsForAccount200Response
|
||||
*/
|
||||
export interface ListPublicFrontendsForAccount200Response {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListPublicFrontendsForAccount200Response
|
||||
*/
|
||||
publicName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListPublicFrontendsForAccount200Response
|
||||
*/
|
||||
urlTemplate?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ListPublicFrontendsForAccount200Response interface.
|
||||
*/
|
||||
export function instanceOfListPublicFrontendsForAccount200Response(value: object): value is ListPublicFrontendsForAccount200Response {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ListPublicFrontendsForAccount200ResponseFromJSON(json: any): ListPublicFrontendsForAccount200Response {
|
||||
return ListPublicFrontendsForAccount200ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListPublicFrontendsForAccount200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPublicFrontendsForAccount200Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'publicName': json['publicName'] == null ? undefined : json['publicName'],
|
||||
'urlTemplate': json['urlTemplate'] == null ? undefined : json['urlTemplate'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ListPublicFrontendsForAccount200ResponseToJSON(json: any): ListPublicFrontendsForAccount200Response {
|
||||
return ListPublicFrontendsForAccount200ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListPublicFrontendsForAccount200ResponseToJSONTyped(value?: ListPublicFrontendsForAccount200Response | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'publicName': value['publicName'],
|
||||
'urlTemplate': value['urlTemplate'],
|
||||
};
|
||||
}
|
||||
|
@@ -31,6 +31,7 @@ export * from './ListOrganizationMembers200Response';
|
||||
export * from './ListOrganizationMembers200ResponseMembersInner';
|
||||
export * from './ListOrganizations200Response';
|
||||
export * from './ListOrganizations200ResponseOrganizationsInner';
|
||||
export * from './ListPublicFrontendsForAccount200Response';
|
||||
export * from './LoginRequest';
|
||||
export * from './Metrics';
|
||||
export * from './MetricsSample';
|
||||
|
Reference in New Issue
Block a user