Support sort parameter when listing extensions (#4274)

#### What type of PR is this?

/kind feature
/area core

#### What this PR does / why we need it:

Currently, we cannot pass a sort parameter into extensions' list API, so the result of the API is unsortable.

This PR add the support for that API. e.g.:

```bash
curl -X 'GET' \
  'http://localhost:8090/api/v1alpha1/annotationsettings?sort=metadata.name,desc' \
  -H 'accept: */*'
```

#### Does this PR introduce a user-facing change?

```release-note
Extension 查询接口支持排序参数。
```
pull/4253/head^2
John Niang 2023-07-24 15:02:23 +08:00 committed by GitHub
parent e98aec32ca
commit fdfaa53614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 588 additions and 35 deletions

View File

@ -1,5 +1,8 @@
package run.halo.app.theme.endpoint;
package run.halo.app.extension.router;
import static run.halo.app.extension.Comparators.compareCreationTimestamp;
import static run.halo.app.extension.Comparators.compareName;
import static run.halo.app.extension.Comparators.nullsComparator;
import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToPredicate;
import io.swagger.v3.oas.annotations.media.ArraySchema;
@ -13,9 +16,7 @@ import org.springframework.beans.BeanWrapperImpl;
import org.springframework.data.domain.Sort;
import org.springframework.web.server.ServerWebExchange;
import run.halo.app.core.extension.endpoint.SortResolver;
import run.halo.app.extension.Comparators;
import run.halo.app.extension.Extension;
import run.halo.app.extension.router.IListRequest;
public class SortableRequest extends IListRequest.QueryListRequest {
@ -55,24 +56,24 @@ public class SortableRequest extends IListRequest.QueryListRequest {
*/
public <T extends Extension> Comparator<T> toComparator() {
var sort = getSort();
Stream<Comparator<T>> fallbackComparator =
Stream.of(run.halo.app.extension.Comparators.compareCreationTimestamp(false),
run.halo.app.extension.Comparators.compareName(true));
var comparatorStream = sort.stream()
.map(order -> {
String property = order.getProperty();
Sort.Direction direction = order.getDirection();
Function<T, Object> function = extension -> {
BeanWrapper beanWrapper = new BeanWrapperImpl(extension);
return beanWrapper.getPropertyValue(property);
};
Comparator<T> comparator = Comparator.comparing(function,
Comparators.nullsComparator(direction.isAscending()));
if (direction.isDescending()) {
comparator = comparator.reversed();
}
return comparator;
});
var fallbackComparator = Stream.<Comparator<T>>of(
compareCreationTimestamp(false),
compareName(true)
);
var comparatorStream = sort.stream().map(order -> {
var property = order.getProperty();
var direction = order.getDirection();
Function<T, Object> function = extension -> {
BeanWrapper beanWrapper = new BeanWrapperImpl(extension);
return beanWrapper.getPropertyValue(property);
};
var comparator =
Comparator.comparing(function, nullsComparator(direction.isAscending()));
if (direction.isDescending()) {
comparator = comparator.reversed();
}
return comparator;
});
return Stream.concat(comparatorStream, fallbackComparator)
.reduce(Comparator::thenComparing)
.orElse(null);

View File

@ -1,7 +1,6 @@
package run.halo.app.extension.router;
import static run.halo.app.extension.router.ExtensionRouterFunctionFactory.PathPatternGenerator.buildExtensionPathPattern;
import static run.halo.app.extension.router.selector.SelectorUtil.labelAndFieldSelectorToPredicate;
import org.springframework.http.MediaType;
import org.springframework.lang.NonNull;
@ -11,7 +10,6 @@ import reactor.core.publisher.Mono;
import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.extension.Scheme;
import run.halo.app.extension.router.ExtensionRouterFunctionFactory.ListHandler;
import run.halo.app.extension.router.IListRequest.QueryListRequest;
class ExtensionListHandler implements ListHandler {
private final Scheme scheme;
@ -26,14 +24,12 @@ class ExtensionListHandler implements ListHandler {
@Override
@NonNull
public Mono<ServerResponse> handle(@NonNull ServerRequest request) {
var listRequest = new QueryListRequest(request.queryParams());
// TODO Resolve comparator from request
var queryParams = new SortableRequest(request.exchange());
return client.list(scheme.type(),
labelAndFieldSelectorToPredicate(listRequest.getLabelSelector(),
listRequest.getFieldSelector()),
null,
listRequest.getPage(),
listRequest.getSize())
queryParams.toPredicate(),
queryParams.toComparator(),
queryParams.getPage(),
queryParams.getSize())
.flatMap(listResult -> ServerResponse
.ok()
.contentType(MediaType.APPLICATION_JSON)

View File

@ -13,7 +13,6 @@ import org.springframework.web.reactive.function.server.ServerResponse;
import run.halo.app.extension.ListResult;
import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.extension.Scheme;
import run.halo.app.extension.router.IListRequest.QueryListRequest;
public class ExtensionRouterFunctionFactory {
@ -55,7 +54,7 @@ public class ExtensionRouterFunctionFactory {
.response(responseBuilder().responseCode("200")
.description("Response " + scheme.plural())
.implementation(ListResult.generateGenericClass(scheme)));
QueryParamBuildUtil.buildParametersFromType(builder, QueryListRequest.class);
QueryParamBuildUtil.buildParametersFromType(builder, SortableRequest.class);
})
.POST(createHandler.pathPattern(), createHandler,
builder -> builder.operationId("Create" + gvk)

View File

@ -23,6 +23,7 @@ import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.ListResult;
import run.halo.app.extension.ReactiveExtensionClient;
import run.halo.app.extension.router.QueryParamBuildUtil;
import run.halo.app.extension.router.SortableRequest;
import run.halo.app.theme.finders.PostPublicQueryService;
import run.halo.app.theme.finders.vo.CategoryVo;
import run.halo.app.theme.finders.vo.ListedPostVo;

View File

@ -1,6 +1,7 @@
package run.halo.app.theme.endpoint;
import org.springframework.web.server.ServerWebExchange;
import run.halo.app.extension.router.SortableRequest;
/**
* Query parameters for post public APIs.

View File

@ -18,6 +18,7 @@ import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.ListResult;
import run.halo.app.extension.router.QueryParamBuildUtil;
import run.halo.app.extension.router.SortableRequest;
import run.halo.app.theme.finders.SinglePageFinder;
import run.halo.app.theme.finders.vo.ListedSinglePageVo;
import run.halo.app.theme.finders.vo.SinglePageVo;

View File

@ -21,6 +21,7 @@ import run.halo.app.core.extension.endpoint.CustomEndpoint;
import run.halo.app.extension.GroupVersion;
import run.halo.app.extension.ListResult;
import run.halo.app.extension.router.QueryParamBuildUtil;
import run.halo.app.extension.router.SortableRequest;
import run.halo.app.theme.finders.PostPublicQueryService;
import run.halo.app.theme.finders.TagFinder;
import run.halo.app.theme.finders.vo.ListedPostVo;

View File

@ -4,17 +4,23 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.ArgumentMatchers.same;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.List;
import java.util.Objects;
import java.util.stream.Stream;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.mock.http.server.reactive.MockServerHttpRequest;
import org.springframework.mock.web.reactive.function.server.MockServerRequest;
import org.springframework.mock.web.server.MockServerWebExchange;
import org.springframework.web.reactive.function.server.EntityResponse;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
@ -41,9 +47,12 @@ class ExtensionListHandlerTest {
void shouldHandleCorrectly() {
var scheme = Scheme.buildFromType(FakeExtension.class);
var listHandler = new ExtensionListHandler(scheme, client);
var serverRequest = MockServerRequest.builder().build();
final var fake = new FakeExtension();
var fakeListResult = new ListResult<>(0, 0, 1, List.of(fake));
var exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/fake")
.queryParam("sort", "metadata.name,desc"));
var serverRequest = MockServerRequest.builder().exchange(exchange).build();
final var fake01 = FakeExtension.createFake("fake01");
final var fake02 = FakeExtension.createFake("fake02");
var fakeListResult = new ListResult<>(0, 0, 2, List.of(fake01, fake02));
when(client.list(same(FakeExtension.class), any(), any(), anyInt(), anyInt()))
.thenReturn(Mono.just(fakeListResult));
@ -57,6 +66,10 @@ class ExtensionListHandlerTest {
assertEquals(fakeListResult, ((EntityResponse<?>) response).entity());
})
.verifyComplete();
verify(client).list(same(FakeExtension.class), any(), argThat(comp -> {
var sortedFakes = Stream.of(fake01, fake02).sorted(comp).toList();
return Objects.equals(List.of(fake02, fake01), sortedFakes);
}), anyInt(), anyInt());
}
}

View File

@ -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}
*/
@ -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`;
@ -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 : {};
@ -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}
*/
@ -444,6 +451,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -457,6 +465,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -568,6 +577,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -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>;
}
/**
@ -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));

View File

@ -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}
*/
@ -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`;
@ -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 : {};
@ -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}
*/
@ -452,6 +459,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -465,6 +473,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -579,6 +588,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -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>;
}
/**
@ -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));

View File

@ -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}
*/
@ -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`;
@ -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 : {};
@ -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}
*/
@ -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>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -565,6 +574,7 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -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>;
}
/**
@ -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));

View File

@ -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}
*/
@ -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`;
@ -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 : {};
@ -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}
*/
@ -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>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -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>;
}
/**
@ -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));

View File

@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/posts`;
@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1PostApiFp = 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}
*/
@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1PostApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostList>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1PostApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequ
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/replies`;
@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1ReplyApiFp = 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}
*/
@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyList>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRe
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = 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}
*/
@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePageList>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -565,6 +574,7 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -665,6 +675,13 @@ export interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1Si
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly sort?: Array<string>;
}
/**
@ -763,6 +780,7 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`;
@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = 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}
*/
@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnapshotList>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -565,6 +574,7 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -665,6 +675,13 @@ export interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snap
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly sort?: Array<string>;
}
/**
@ -760,6 +777,7 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/tags`;
@ -268,6 +270,10 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const ContentHaloRunV1alpha1TagApiFp = 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}
*/
@ -444,6 +451,7 @@ export const ContentHaloRunV1alpha1TagApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagList>
@ -454,6 +462,7 @@ export const ContentHaloRunV1alpha1TagApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagReques
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
@ -268,6 +270,10 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const MetricsHaloRunV1alpha1CounterApiFp = 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}
*/
@ -444,6 +451,7 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CounterList>
@ -454,6 +462,7 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Count
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -225,6 +225,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator =
* @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}
*/
@ -233,6 +234,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator =
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`;
@ -275,6 +277,10 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator =
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -453,6 +459,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = 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}
*/
@ -461,6 +468,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -474,6 +482,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -595,6 +604,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -695,6 +705,13 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1a
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly sort?: Array<string>;
}
/**
@ -799,6 +816,7 @@ export class PluginHaloRunV1alpha1ExtensionDefinitionApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -225,6 +225,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator =
* @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}
*/
@ -233,6 +234,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator =
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`;
@ -275,6 +277,10 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator =
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -455,6 +461,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = 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}
*/
@ -463,6 +470,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -476,6 +484,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -598,6 +607,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFactory =
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -698,6 +708,13 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloR
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly sort?: Array<string>;
}
/**
@ -810,6 +827,7 @@ export class PluginHaloRunV1alpha1ExtensionPointDefinitionApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`;
@ -268,6 +270,10 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const PluginHaloRunV1alpha1PluginApiFp = 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}
*/
@ -444,6 +451,7 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>
@ -454,6 +462,7 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRe
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -222,6 +222,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = 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}
*/
@ -230,6 +231,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`;
@ -272,6 +274,10 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -444,6 +450,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = 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}
*/
@ -452,6 +459,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -465,6 +473,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -579,6 +588,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -679,6 +689,13 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1Re
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly sort?: Array<string>;
}
/**
@ -777,6 +794,7 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -222,6 +222,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = 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}
*/
@ -230,6 +231,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`;
@ -272,6 +274,10 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -444,6 +450,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = 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}
*/
@ -452,6 +459,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -465,6 +473,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -579,6 +588,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -679,6 +689,13 @@ export interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1Se
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly sort?: Array<string>;
}
/**
@ -777,6 +794,7 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`;
@ -268,6 +270,10 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = 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}
*/
@ -444,6 +451,7 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>
@ -454,6 +462,7 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -565,6 +574,7 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -665,6 +675,13 @@ export interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1At
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly sort?: Array<string>;
}
/**
@ -763,6 +780,7 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`;
@ -268,6 +270,10 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const StorageHaloRunV1alpha1GroupApiFp = 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}
*/
@ -444,6 +451,7 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupList>
@ -454,6 +462,7 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRe
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`;
@ -268,6 +270,10 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const StorageHaloRunV1alpha1PolicyApiFp = 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}
*/
@ -444,6 +451,7 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyList>
@ -454,6 +462,7 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -225,6 +225,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator =
* @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}
*/
@ -233,6 +234,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator =
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`;
@ -275,6 +277,10 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator =
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -447,6 +453,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = 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}
*/
@ -455,6 +462,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -468,6 +476,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -585,6 +594,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -685,6 +695,13 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alph
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly sort?: Array<string>;
}
/**
@ -786,6 +803,7 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,6 +218,7 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = 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}
*/
@ -226,6 +227,7 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`;
@ -268,6 +270,10 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -436,6 +442,7 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = 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}
*/
@ -444,6 +451,7 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ThemeList>
@ -454,6 +462,7 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -562,6 +571,7 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -662,6 +672,13 @@ export interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeReques
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly sort?: Array<string>;
}
/**
@ -757,6 +774,7 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/annotationsettings`;
@ -266,6 +268,10 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -439,6 +445,7 @@ export const V1alpha1AnnotationSettingApiFp = 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}
*/
@ -447,6 +454,7 @@ export const V1alpha1AnnotationSettingApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -460,6 +468,7 @@ export const V1alpha1AnnotationSettingApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -574,6 +583,7 @@ export const V1alpha1AnnotationSettingApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -674,6 +684,13 @@ export interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingReques
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly sort?: Array<string>;
}
/**
@ -772,6 +789,7 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/configmaps`;
@ -266,6 +268,10 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -425,6 +431,7 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -433,6 +440,7 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMapList>
@ -443,6 +451,7 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -551,6 +560,7 @@ export const V1alpha1ConfigMapApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -651,6 +661,13 @@ export interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest {
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly sort?: Array<string>;
}
/**
@ -746,6 +763,7 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1MenuApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1MenuApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/menus`;
@ -266,6 +268,10 @@ export const V1alpha1MenuApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -424,6 +430,7 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -432,6 +439,7 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuList>
@ -442,6 +450,7 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -546,6 +555,7 @@ export const V1alpha1MenuApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -646,6 +656,13 @@ export interface V1alpha1MenuApiListv1alpha1MenuRequest {
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly sort?: Array<string>;
}
/**
@ -741,6 +758,7 @@ export class V1alpha1MenuApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1MenuItemApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/menuitems`;
@ -266,6 +268,10 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -425,6 +431,7 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -433,6 +440,7 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItemList>
@ -443,6 +451,7 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -551,6 +560,7 @@ export const V1alpha1MenuItemApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -651,6 +661,13 @@ export interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest {
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly sort?: Array<string>;
}
/**
@ -746,6 +763,7 @@ export class V1alpha1MenuItemApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/personalaccesstokens`;
@ -266,6 +268,10 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -439,6 +445,7 @@ export const V1alpha1PersonalAccessTokenApiFp = 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}
*/
@ -447,6 +454,7 @@ export const V1alpha1PersonalAccessTokenApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -460,6 +468,7 @@ export const V1alpha1PersonalAccessTokenApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -574,6 +583,7 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -674,6 +684,13 @@ export interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRe
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly sort?: Array<string>;
}
/**
@ -772,6 +789,7 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1RoleApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1RoleApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/roles`;
@ -266,6 +268,10 @@ export const V1alpha1RoleApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -424,6 +430,7 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -432,6 +439,7 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleList>
@ -442,6 +450,7 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -546,6 +555,7 @@ export const V1alpha1RoleApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -646,6 +656,13 @@ export interface V1alpha1RoleApiListv1alpha1RoleRequest {
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly sort?: Array<string>;
}
/**
@ -741,6 +758,7 @@ export class V1alpha1RoleApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/rolebindings`;
@ -266,6 +268,10 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -430,6 +436,7 @@ export const V1alpha1RoleBindingApiFp = 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}
*/
@ -438,6 +445,7 @@ export const V1alpha1RoleBindingApiFp = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -451,6 +459,7 @@ export const V1alpha1RoleBindingApiFp = function (
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -559,6 +568,7 @@ export const V1alpha1RoleBindingApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -659,6 +669,13 @@ export interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest {
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly sort?: Array<string>;
}
/**
@ -754,6 +771,7 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1SecretApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1SecretApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/secrets`;
@ -266,6 +268,10 @@ export const V1alpha1SecretApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -422,6 +428,7 @@ export const V1alpha1SecretApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -430,6 +437,7 @@ export const V1alpha1SecretApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretList>
@ -440,6 +448,7 @@ export const V1alpha1SecretApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -548,6 +557,7 @@ export const V1alpha1SecretApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -648,6 +658,13 @@ export interface V1alpha1SecretApiListv1alpha1SecretRequest {
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly sort?: Array<string>;
}
/**
@ -743,6 +760,7 @@ export class V1alpha1SecretApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1SettingApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1SettingApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/settings`;
@ -266,6 +268,10 @@ export const V1alpha1SettingApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -422,6 +428,7 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -430,6 +437,7 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SettingList>
@ -440,6 +448,7 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -548,6 +557,7 @@ export const V1alpha1SettingApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -648,6 +658,13 @@ export interface V1alpha1SettingApiListv1alpha1SettingRequest {
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly sort?: Array<string>;
}
/**
@ -743,6 +760,7 @@ export class V1alpha1SettingApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -216,6 +216,7 @@ export const V1alpha1UserApiAxiosParamCreator = 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}
*/
@ -224,6 +225,7 @@ export const V1alpha1UserApiAxiosParamCreator = function (
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/users`;
@ -266,6 +268,10 @@ export const V1alpha1UserApiAxiosParamCreator = function (
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -424,6 +430,7 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
* @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}
*/
@ -432,6 +439,7 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>
@ -442,6 +450,7 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
@ -546,6 +555,7 @@ export const V1alpha1UserApiFactory = function (
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -646,6 +656,13 @@ export interface V1alpha1UserApiListv1alpha1UserRequest {
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly sort?: Array<string>;
}
/**
@ -741,6 +758,7 @@ export class V1alpha1UserApi extends BaseAPI {
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));