@@ -31,7 +31,7 @@ import {
3131// @ts -ignore
3232import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from '../base' ;
3333// @ts -ignore
34- import { HTTPValidationError } from '../types' ;
34+ import { HTTPValidationError , PaginatedResultResourceRead } from '../types' ;
3535// @ts -ignore
3636import { ResourceCreate } from '../types' ;
3737// @ts -ignore
@@ -219,6 +219,7 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
219219 * @param {boolean } [includeBuiltIn] Whether to include or exclude built-in resources, default is False
220220 * @param {number } [page] Page number of the results to fetch, starting at 1.
221221 * @param {number } [perPage] The number of results per page (max 100).
222+ * @param {includeTotalCount } [includeTotalCount] Include the total count of resources in the response, default is False
222223 * @param {* } [options] Override http request option.
223224 * @throws {RequiredError }
224225 */
@@ -228,6 +229,7 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
228229 includeBuiltIn ?: boolean ,
229230 page ?: number ,
230231 perPage ?: number ,
232+ includeTotalCount ?: boolean ,
231233 options : AxiosRequestConfig = { } ,
232234 ) : Promise < RequestArgs > => {
233235 // verify required parameter 'projId' is not null or undefined
@@ -264,6 +266,10 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
264266 localVarQueryParameter [ 'per_page' ] = perPage ;
265267 }
266268
269+ if ( includeTotalCount !== undefined ) {
270+ localVarQueryParameter [ 'include_total_count' ] = includeTotalCount ;
271+ }
272+
267273 setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
268274 let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
269275 localVarRequestOptions . headers = {
@@ -492,6 +498,7 @@ export const ResourcesApiFp = function (configuration?: Configuration) {
492498 * @param {boolean } [includeBuiltIn] Whether to include or exclude built-in resources, default is False
493499 * @param {number } [page] Page number of the results to fetch, starting at 1.
494500 * @param {number } [perPage] The number of results per page (max 100).
501+ * @param {includeTotalCount } [includeTotalCount] Include the total count of resources in the response, default is False
495502 * @param {* } [options] Override http request option.
496503 * @throws {RequiredError }
497504 */
@@ -501,14 +508,21 @@ export const ResourcesApiFp = function (configuration?: Configuration) {
501508 includeBuiltIn ?: boolean ,
502509 page ?: number ,
503510 perPage ?: number ,
511+ includeTotalCount ?: boolean ,
504512 options ?: AxiosRequestConfig ,
505- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < Array < ResourceRead > > > {
513+ ) : Promise <
514+ (
515+ axios ?: AxiosInstance ,
516+ basePath ?: string ,
517+ ) => AxiosPromise < Array < ResourceRead > | PaginatedResultResourceRead >
518+ > {
506519 const localVarAxiosArgs = await localVarAxiosParamCreator . listResources (
507520 projId ,
508521 envId ,
509522 includeBuiltIn ,
510523 page ,
511524 perPage ,
525+ includeTotalCount ,
512526 options ,
513527 ) ;
514528 return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
@@ -644,6 +658,7 @@ export const ResourcesApiFactory = function (
644658 * @param {boolean } [includeBuiltIn] Whether to include or exclude built-in resources, default is False
645659 * @param {number } [page] Page number of the results to fetch, starting at 1.
646660 * @param {number } [perPage] The number of results per page (max 100).
661+ * @param {includeTotalCount } [includeTotalCount] Include the total count of resources in the response, default is False
647662 * @param {* } [options] Override http request option.
648663 * @throws {RequiredError }
649664 */
@@ -653,10 +668,11 @@ export const ResourcesApiFactory = function (
653668 includeBuiltIn ?: boolean ,
654669 page ?: number ,
655670 perPage ?: number ,
671+ includeTotalCount ?: boolean ,
656672 options ?: any ,
657- ) : AxiosPromise < Array < ResourceRead > > {
673+ ) : AxiosPromise < Array < ResourceRead > | PaginatedResultResourceRead > {
658674 return localVarFp
659- . listResources ( projId , envId , includeBuiltIn , page , perPage , options )
675+ . listResources ( projId , envId , includeBuiltIn , page , perPage , includeTotalCount , options )
660676 . then ( ( request ) => request ( axios , basePath ) ) ;
661677 } ,
662678 /**
@@ -828,6 +844,14 @@ export interface ResourcesApiListResourcesRequest {
828844 * @memberof ResourcesApiListResources
829845 */
830846 readonly perPage ?: number ;
847+
848+ /**
849+ * Include total count in response
850+ * @type {boolean }
851+ * @memberof RolesApiListRoles
852+ * @default false
853+ */
854+ readonly includeTotalCount ?: boolean ;
831855}
832856
833857/**
@@ -992,6 +1016,7 @@ export class ResourcesApi extends BaseAPI {
9921016 requestParameters . includeBuiltIn ,
9931017 requestParameters . page ,
9941018 requestParameters . perPage ,
1019+ requestParameters . includeTotalCount ,
9951020 options ,
9961021 )
9971022 . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
0 commit comments