Skip to content

Commit

Permalink
Sync api client
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <i@ryanc.cc>
  • Loading branch information
ruibaby committed Jul 24, 2023
1 parent 8f7c05e commit 77ddc6a
Show file tree
Hide file tree
Showing 30 changed files with 540 additions and 0 deletions.
Expand Up @@ -218,6 +218,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -226,6 +227,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`;
Expand Down Expand Up @@ -268,6 +270,10 @@ export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}

if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand Down Expand Up @@ -436,6 +442,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -444,6 +451,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
Expand All @@ -457,6 +465,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -568,6 +577,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
Expand Down Expand Up @@ -668,6 +678,13 @@ export interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthPr
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly size?: number;

/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly sort?: Array<string>;
}

/**
Expand Down Expand Up @@ -766,6 +783,7 @@ export class AuthHaloRunV1alpha1AuthProviderApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
Expand Down
Expand Up @@ -222,6 +222,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -230,6 +231,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections`;
Expand Down Expand Up @@ -272,6 +274,10 @@ export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}

if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand Down Expand Up @@ -444,6 +450,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -452,6 +459,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
Expand All @@ -465,6 +473,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -579,6 +588,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
Expand Down Expand Up @@ -679,6 +689,13 @@ export interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1User
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly size?: number;

/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly sort?: Array<string>;
}

/**
Expand Down Expand Up @@ -777,6 +794,7 @@ export class AuthHaloRunV1alpha1UserConnectionApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
Expand Down
Expand Up @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/categories`;
Expand Down Expand Up @@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}

if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand Down Expand Up @@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryList>
Expand All @@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -565,6 +574,7 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
Expand Down Expand Up @@ -665,6 +675,13 @@ export interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Cate
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly size?: number;

/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly sort?: Array<string>;
}

/**
Expand Down Expand Up @@ -760,6 +777,7 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
Expand Down
Expand Up @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/comments`;
Expand Down Expand Up @@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}

if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand Down Expand Up @@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand All @@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentList>
Expand All @@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -562,6 +571,7 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
Expand Down Expand Up @@ -662,6 +672,13 @@ export interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comme
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly size?: number;

/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly sort?: Array<string>;
}

/**
Expand Down Expand Up @@ -757,6 +774,7 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
Expand Down

0 comments on commit 77ddc6a

Please sign in to comment.