@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
25 lines (24 loc) • 947 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GceAccount = void 0;
const Mapper_1 = require("../common/Mapper");
const BitmovinResource_1 = require("./BitmovinResource");
/**
* GCE Cloud Connect Account. Configure either by passing a single service account credentials JSON string or by passing the service account email, private key and project ID individually.
* @export
* @class GceAccount
*/
class GceAccount extends BitmovinResource_1.default {
constructor(obj) {
super(obj);
if (!obj) {
return;
}
this.serviceAccountCredentials = (0, Mapper_1.map)(obj.serviceAccountCredentials);
this.serviceAccountEmail = (0, Mapper_1.map)(obj.serviceAccountEmail);
this.privateKey = (0, Mapper_1.map)(obj.privateKey);
this.projectId = (0, Mapper_1.map)(obj.projectId);
}
}
exports.GceAccount = GceAccount;
exports.default = GceAccount;