@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
51 lines (50 loc) • 1.93 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.S3Output = void 0;
var Mapper_1 = require("../common/Mapper");
var Output_1 = require("./Output");
var OutputType_1 = require("./OutputType");
/**
* @export
* @class S3Output
*/
var S3Output = /** @class */ (function (_super) {
__extends(S3Output, _super);
function S3Output(obj) {
var _this = _super.call(this, obj) || this;
/**
* Discriminator property for Output
* @type {string}
* @memberof S3Output
*/
_this.type = OutputType_1.default.S3;
if (!obj) {
return _this;
}
_this.bucketName = (0, Mapper_1.map)(obj.bucketName);
_this.accessKey = (0, Mapper_1.map)(obj.accessKey);
_this.secretKey = (0, Mapper_1.map)(obj.secretKey);
_this.md5MetaTag = (0, Mapper_1.map)(obj.md5MetaTag);
_this.cloudRegion = (0, Mapper_1.map)(obj.cloudRegion);
_this.signatureVersion = (0, Mapper_1.map)(obj.signatureVersion);
return _this;
}
return S3Output;
}(Output_1.default));
exports.S3Output = S3Output;
exports.default = S3Output;