From fdfaa536146f691e4d9610bc06b1db3310c74877 Mon Sep 17 00:00:00 2001 From: John Niang Date: Mon, 24 Jul 2023 15:02:23 +0800 Subject: [PATCH] Support sort parameter when listing extensions (#4274) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### 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 查询接口支持排序参数。 ``` --- .../run/halo/app/extension/Comparators.java | 0 .../extension/router}/SortableRequest.java | 43 ++++++++++--------- .../router/ExtensionListHandler.java | 14 +++--- .../ExtensionRouterFunctionFactory.java | 3 +- .../theme/endpoint/CategoryQueryEndpoint.java | 1 + .../app/theme/endpoint/PostPublicQuery.java | 1 + .../endpoint/SinglePageQueryEndpoint.java | 1 + .../app/theme/endpoint/TagQueryEndpoint.java | 1 + .../router/ExtensionListHandlerTest.java | 19 ++++++-- ...uth-halo-run-v1alpha1-auth-provider-api.ts | 18 ++++++++ ...h-halo-run-v1alpha1-user-connection-api.ts | 18 ++++++++ .../content-halo-run-v1alpha1-category-api.ts | 18 ++++++++ .../content-halo-run-v1alpha1-comment-api.ts | 18 ++++++++ .../api/content-halo-run-v1alpha1-post-api.ts | 18 ++++++++ .../content-halo-run-v1alpha1-reply-api.ts | 18 ++++++++ ...ntent-halo-run-v1alpha1-single-page-api.ts | 18 ++++++++ .../content-halo-run-v1alpha1-snapshot-api.ts | 18 ++++++++ .../api/content-halo-run-v1alpha1-tag-api.ts | 18 ++++++++ .../metrics-halo-run-v1alpha1-counter-api.ts | 18 ++++++++ ...o-run-v1alpha1-extension-definition-api.ts | 18 ++++++++ ...v1alpha1-extension-point-definition-api.ts | 18 ++++++++ .../plugin-halo-run-v1alpha1-plugin-api.ts | 18 ++++++++ ...gin-halo-run-v1alpha1-reverse-proxy-api.ts | 18 ++++++++ ...gin-halo-run-v1alpha1-search-engine-api.ts | 18 ++++++++ ...torage-halo-run-v1alpha1-attachment-api.ts | 18 ++++++++ .../storage-halo-run-v1alpha1-group-api.ts | 18 ++++++++ .../storage-halo-run-v1alpha1-policy-api.ts | 18 ++++++++ ...e-halo-run-v1alpha1-policy-template-api.ts | 18 ++++++++ .../api/theme-halo-run-v1alpha1-theme-api.ts | 18 ++++++++ .../api/v1alpha1-annotation-setting-api.ts | 18 ++++++++ .../src/api/v1alpha1-config-map-api.ts | 18 ++++++++ .../api-client/src/api/v1alpha1-menu-api.ts | 18 ++++++++ .../src/api/v1alpha1-menu-item-api.ts | 18 ++++++++ .../api/v1alpha1-personal-access-token-api.ts | 18 ++++++++ .../api-client/src/api/v1alpha1-role-api.ts | 18 ++++++++ .../src/api/v1alpha1-role-binding-api.ts | 18 ++++++++ .../api-client/src/api/v1alpha1-secret-api.ts | 18 ++++++++ .../src/api/v1alpha1-setting-api.ts | 18 ++++++++ .../api-client/src/api/v1alpha1-user-api.ts | 18 ++++++++ 39 files changed, 588 insertions(+), 35 deletions(-) rename {application => api}/src/main/java/run/halo/app/extension/Comparators.java (100%) rename {application/src/main/java/run/halo/app/theme/endpoint => api/src/main/java/run/halo/app/extension/router}/SortableRequest.java (66%) diff --git a/application/src/main/java/run/halo/app/extension/Comparators.java b/api/src/main/java/run/halo/app/extension/Comparators.java similarity index 100% rename from application/src/main/java/run/halo/app/extension/Comparators.java rename to api/src/main/java/run/halo/app/extension/Comparators.java diff --git a/application/src/main/java/run/halo/app/theme/endpoint/SortableRequest.java b/api/src/main/java/run/halo/app/extension/router/SortableRequest.java similarity index 66% rename from application/src/main/java/run/halo/app/theme/endpoint/SortableRequest.java rename to api/src/main/java/run/halo/app/extension/router/SortableRequest.java index 74073d59e..ce1d71074 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/SortableRequest.java +++ b/api/src/main/java/run/halo/app/extension/router/SortableRequest.java @@ -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 Comparator toComparator() { var sort = getSort(); - Stream> 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 function = extension -> { - BeanWrapper beanWrapper = new BeanWrapperImpl(extension); - return beanWrapper.getPropertyValue(property); - }; - Comparator comparator = Comparator.comparing(function, - Comparators.nullsComparator(direction.isAscending())); - if (direction.isDescending()) { - comparator = comparator.reversed(); - } - return comparator; - }); + var fallbackComparator = Stream.>of( + compareCreationTimestamp(false), + compareName(true) + ); + var comparatorStream = sort.stream().map(order -> { + var property = order.getProperty(); + var direction = order.getDirection(); + Function 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); diff --git a/application/src/main/java/run/halo/app/extension/router/ExtensionListHandler.java b/application/src/main/java/run/halo/app/extension/router/ExtensionListHandler.java index 840184f2c..4603801f7 100644 --- a/application/src/main/java/run/halo/app/extension/router/ExtensionListHandler.java +++ b/application/src/main/java/run/halo/app/extension/router/ExtensionListHandler.java @@ -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 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) diff --git a/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java b/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java index 6cce85da8..8232034af 100644 --- a/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java +++ b/application/src/main/java/run/halo/app/extension/router/ExtensionRouterFunctionFactory.java @@ -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) diff --git a/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java index 7a294939d..de9831b79 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/CategoryQueryEndpoint.java @@ -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; diff --git a/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java b/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java index c6c518143..3c775191e 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/PostPublicQuery.java @@ -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. diff --git a/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java index 5874b404b..97a3e794d 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/SinglePageQueryEndpoint.java @@ -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; diff --git a/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java b/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java index c15ac8a1a..c9f1e086e 100644 --- a/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java +++ b/application/src/main/java/run/halo/app/theme/endpoint/TagQueryEndpoint.java @@ -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; diff --git a/application/src/test/java/run/halo/app/extension/router/ExtensionListHandlerTest.java b/application/src/test/java/run/halo/app/extension/router/ExtensionListHandlerTest.java index a121920d7..8e5e5e2c2 100644 --- a/application/src/test/java/run/halo/app/extension/router/ExtensionListHandlerTest.java +++ b/application/src/test/java/run/halo/app/extension/router/ExtensionListHandlerTest.java @@ -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()); } } diff --git a/console/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts b/console/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts index 735214c7a..59e7178f5 100644 --- a/console/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts +++ b/console/packages/api-client/src/api/auth-halo-run-v1alpha1-auth-provider-api.ts @@ -218,6 +218,7 @@ export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts b/console/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts index ac43c6810..55c88ce60 100644 --- a/console/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts +++ b/console/packages/api-client/src/api/auth-halo-run-v1alpha1-user-connection-api.ts @@ -222,6 +222,7 @@ export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts index 5884bb93a..08c6f7f1d 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-category-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts index 0787967b7..4f8ccea4b 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-comment-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts index b7df72c1f..440756f00 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-post-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts index 347da1300..8cd0c2b0c 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-reply-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts index f31365532..88048d616 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-single-page-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts index 58f6f14de..5b96541b7 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-snapshot-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts b/console/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts index 8b72870de..94e8b9b29 100644 --- a/console/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts +++ b/console/packages/api-client/src/api/content-halo-run-v1alpha1-tag-api.ts @@ -218,6 +218,7 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts b/console/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts index 6add9886c..9b6f85129 100644 --- a/console/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts +++ b/console/packages/api-client/src/api/metrics-halo-run-v1alpha1-counter-api.ts @@ -218,6 +218,7 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts index c9e953a3a..afe9e9ef0 100644 --- a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts +++ b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-definition-api.ts @@ -225,6 +225,7 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator = * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts index c9db7b307..fb9cd5aaf 100644 --- a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts +++ b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-extension-point-definition-api.ts @@ -225,6 +225,7 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator = * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts index f0ee5d038..7b077bd54 100644 --- a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts +++ b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-plugin-api.ts @@ -218,6 +218,7 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts index 449fb8bee..22de8c1a0 100644 --- a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts +++ b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-reverse-proxy-api.ts @@ -222,6 +222,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts index a618ef712..662ee77fd 100644 --- a/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts +++ b/console/packages/api-client/src/api/plugin-halo-run-v1alpha1-search-engine-api.ts @@ -222,6 +222,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts index 984f42787..db7ee159a 100644 --- a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts +++ b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-attachment-api.ts @@ -218,6 +218,7 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts index e0dad239e..ae4548eb3 100644 --- a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts +++ b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-group-api.ts @@ -218,6 +218,7 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts index c44a941f6..5164735e7 100644 --- a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts +++ b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-api.ts @@ -218,6 +218,7 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts index f9b54abfc..417abf850 100644 --- a/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts +++ b/console/packages/api-client/src/api/storage-halo-run-v1alpha1-policy-template-api.ts @@ -225,6 +225,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator = * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts b/console/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts index 7444a15b0..663ec08a4 100644 --- a/console/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts +++ b/console/packages/api-client/src/api/theme-halo-run-v1alpha1-theme-api.ts @@ -218,6 +218,7 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts b/console/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts index cc684a1c8..1e9f73fa8 100644 --- a/console/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-annotation-setting-api.ts @@ -216,6 +216,7 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-config-map-api.ts b/console/packages/api-client/src/api/v1alpha1-config-map-api.ts index 44b47da32..f82f519dc 100644 --- a/console/packages/api-client/src/api/v1alpha1-config-map-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-config-map-api.ts @@ -216,6 +216,7 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-menu-api.ts b/console/packages/api-client/src/api/v1alpha1-menu-api.ts index c55232475..f50396345 100644 --- a/console/packages/api-client/src/api/v1alpha1-menu-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-menu-api.ts @@ -216,6 +216,7 @@ export const V1alpha1MenuApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1MenuApiListv1alpha1Menu + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-menu-item-api.ts b/console/packages/api-client/src/api/v1alpha1-menu-item-api.ts index 47ae84781..5f1a3459f 100644 --- a/console/packages/api-client/src/api/v1alpha1-menu-item-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-menu-item-api.ts @@ -216,6 +216,7 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1MenuItemApiListv1alpha1MenuItem + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts b/console/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts index fafd86994..ad0db22c1 100644 --- a/console/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-personal-access-token-api.ts @@ -216,6 +216,7 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-role-api.ts b/console/packages/api-client/src/api/v1alpha1-role-api.ts index 6b453be43..fe37c9ede 100644 --- a/console/packages/api-client/src/api/v1alpha1-role-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-role-api.ts @@ -216,6 +216,7 @@ export const V1alpha1RoleApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1RoleApiListv1alpha1Role + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-role-binding-api.ts b/console/packages/api-client/src/api/v1alpha1-role-binding-api.ts index 3736bca6c..99d14b899 100644 --- a/console/packages/api-client/src/api/v1alpha1-role-binding-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-role-binding-api.ts @@ -216,6 +216,7 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, 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} + * @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-secret-api.ts b/console/packages/api-client/src/api/v1alpha1-secret-api.ts index 37f218124..37dad7204 100644 --- a/console/packages/api-client/src/api/v1alpha1-secret-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-secret-api.ts @@ -216,6 +216,7 @@ export const V1alpha1SecretApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1SecretApiListv1alpha1Secret + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-setting-api.ts b/console/packages/api-client/src/api/v1alpha1-setting-api.ts index f1cbc6aa3..ee7dd9313 100644 --- a/console/packages/api-client/src/api/v1alpha1-setting-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-setting-api.ts @@ -216,6 +216,7 @@ export const V1alpha1SettingApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1SettingApiListv1alpha1Setting + */ + readonly sort?: Array; } /** @@ -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)); diff --git a/console/packages/api-client/src/api/v1alpha1-user-api.ts b/console/packages/api-client/src/api/v1alpha1-user-api.ts index 775649baa..6ca28a1e2 100644 --- a/console/packages/api-client/src/api/v1alpha1-user-api.ts +++ b/console/packages/api-client/src/api/v1alpha1-user-api.ts @@ -216,6 +216,7 @@ export const V1alpha1UserApiAxiosParamCreator = function ( * @param {Array} [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} [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, page?: number, size?: number, + sort?: Array, options: AxiosRequestConfig = {} ): Promise => { 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} [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} [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, page?: number, size?: number, + sort?: Array, options?: AxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -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} + * @memberof V1alpha1UserApiListv1alpha1User + */ + readonly sort?: Array; } /** @@ -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));