UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

45 lines (44 loc) 1.65 kB
import { BaseAPI } from '../../../common/BaseAPI'; import Configuration from '../../../common/Configuration'; import RegionsApi from './regions/RegionsApi'; import GceAccount from '../../../models/GceAccount'; import PaginationResponse from '../../../models/PaginationResponse'; import { GceAccountListQueryParams, GceAccountListQueryParamsBuilder } from './GceAccountListQueryParams'; /** * GceApi - object-oriented interface * @export * @class GceApi * @extends {BaseAPI} */ export default class GceApi extends BaseAPI { regions: RegionsApi; constructor(configuration: Configuration); /** * @summary Add GCE Account * @param {GceAccount} gceAccount The GCE Account to be added * @throws {BitmovinError} * @memberof GceApi */ create(gceAccount?: GceAccount): Promise<GceAccount>; /** * @summary Delete GCE Account * @param {string} infrastructureId Id of the GCE account * @throws {BitmovinError} * @memberof GceApi */ delete(infrastructureId: string): Promise<GceAccount>; /** * @summary GCE Account Details * @param {string} infrastructureId Id of the GCE account * @throws {BitmovinError} * @memberof GceApi */ get(infrastructureId: string): Promise<GceAccount>; /** * @summary List GCE Accounts * @param {*} [queryParameters] query parameters for filtering, sorting and pagination * @throws {BitmovinError} * @memberof GceApi */ list(queryParameters?: GceAccountListQueryParams | ((q: GceAccountListQueryParamsBuilder) => GceAccountListQueryParamsBuilder)): Promise<PaginationResponse<GceAccount>>; }