/** * Admin API * The Admin API is used to manage the ApeCloud platform. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { AggregationGroupType } from '../models'; import type { AggregationTimeType } from '../models'; import type { BasicTask } from '../models'; import type { BillList } from '../models'; /** * BillingApi - axios parameter creator * @export */ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary List bills * @param {AggregationTimeType} aggregationTime The type of aggregation time * @param {AggregationGroupType} aggregationGroup The type of aggregation group * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [billID] The ID of the bill * @param {string} [clusterID] The ID of the cluster * @param {string} [orgName] name of the organization * @param {string} [projectName] name of the project * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBills: (aggregationTime: AggregationTimeType, aggregationGroup: AggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, orgName?: string, projectName?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Refresh bill * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {*} [options] Override http request option. * @throws {RequiredError} */ refreshBills: (start: number, end: number, options?: RawAxiosRequestConfig) => Promise; }; /** * BillingApi - functional programming interface * @export */ export declare const BillingApiFp: (configuration?: Configuration) => { /** * * @summary List bills * @param {AggregationTimeType} aggregationTime The type of aggregation time * @param {AggregationGroupType} aggregationGroup The type of aggregation group * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [billID] The ID of the bill * @param {string} [clusterID] The ID of the cluster * @param {string} [orgName] name of the organization * @param {string} [projectName] name of the project * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBills(aggregationTime: AggregationTimeType, aggregationGroup: AggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, orgName?: string, projectName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Refresh bill * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {*} [options] Override http request option. * @throws {RequiredError} */ refreshBills(start: number, end: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * BillingApi - factory interface * @export */ export declare const BillingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary List bills * @param {BillingApiListBillsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBills(requestParameters: BillingApiListBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Refresh bill * @param {BillingApiRefreshBillsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ refreshBills(requestParameters: BillingApiRefreshBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * BillingApi - interface * @export * @interface BillingApi */ export interface BillingApiInterface { /** * * @summary List bills * @param {BillingApiListBillsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingApiInterface */ listBills(requestParameters: BillingApiListBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Refresh bill * @param {BillingApiRefreshBillsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingApiInterface */ refreshBills(requestParameters: BillingApiRefreshBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for listBills operation in BillingApi. * @export * @interface BillingApiListBillsRequest */ export interface BillingApiListBillsRequest { /** * The type of aggregation time * @type {AggregationTimeType} * @memberof BillingApiListBills */ readonly aggregationTime: AggregationTimeType; /** * The type of aggregation group * @type {AggregationGroupType} * @memberof BillingApiListBills */ readonly aggregationGroup: AggregationGroupType; /** * The start of the time range for the query, unit is seconds. * @type {number} * @memberof BillingApiListBills */ readonly start: number; /** * The end of the time range for the query, unit is seconds. * @type {number} * @memberof BillingApiListBills */ readonly end: number; /** * The ID of the bill * @type {string} * @memberof BillingApiListBills */ readonly billID?: string; /** * The ID of the cluster * @type {string} * @memberof BillingApiListBills */ readonly clusterID?: string; /** * name of the organization * @type {string} * @memberof BillingApiListBills */ readonly orgName?: string; /** * name of the project * @type {string} * @memberof BillingApiListBills */ readonly projectName?: string; } /** * Request parameters for refreshBills operation in BillingApi. * @export * @interface BillingApiRefreshBillsRequest */ export interface BillingApiRefreshBillsRequest { /** * The start of the time range for the query, unit is seconds. * @type {number} * @memberof BillingApiRefreshBills */ readonly start: number; /** * The end of the time range for the query, unit is seconds. * @type {number} * @memberof BillingApiRefreshBills */ readonly end: number; } /** * BillingApi - object-oriented interface * @export * @class BillingApi * @extends {BaseAPI} */ export declare class BillingApi extends BaseAPI implements BillingApiInterface { /** * * @summary List bills * @param {BillingApiListBillsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingApi */ listBills(requestParameters: BillingApiListBillsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Refresh bill * @param {BillingApiRefreshBillsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingApi */ refreshBills(requestParameters: BillingApiRefreshBillsRequest, options?: RawAxiosRequestConfig): Promise>; } //# sourceMappingURL=billing-api.d.ts.map