UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

32 lines (31 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseAPI_1 = require("../../../common/BaseAPI"); const TenantWithGroups_1 = require("../../../models/TenantWithGroups"); const PaginationResponse_1 = require("../../../models/PaginationResponse"); /** * TenantsApi - object-oriented interface * @export * @class TenantsApi * @extends {BaseAPI} */ class TenantsApi extends BaseAPI_1.BaseAPI { constructor(configuration) { super(configuration); } /** * @summary List all Tenants with their groups for a given organization * @param {string} organizationId Id of the organization * @throws {BitmovinError} * @memberof TenantsApi */ list(organizationId) { const pathParamMap = { organization_id: organizationId }; return this.restClient.get('/account/organizations/{organization_id}/tenants', pathParamMap).then((response) => { return new PaginationResponse_1.default(response, TenantWithGroups_1.default); }); } } exports.default = TenantsApi;