Class: Google::Apis::TranscoderV1beta1::MpegCommonEncryption
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::MpegCommonEncryption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb
Overview
Configuration for MPEG Common Encryption (MPEG-CENC).
Instance Attribute Summary collapse
-
#key_id ⇒ String
Required.
-
#scheme ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MpegCommonEncryption
constructor
A new instance of MpegCommonEncryption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MpegCommonEncryption
Returns a new instance of MpegCommonEncryption.
1034 1035 1036 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1034 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_id ⇒ String
Required. 128 bit Key ID represented as lowercase hexadecimal digits for use
with common encryption.
Corresponds to the JSON property keyId
1026 1027 1028 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1026 def key_id @key_id end |
#scheme ⇒ String
Required. Specify the encryption scheme. Supported encryption schemes: - 'cenc'
- 'cbcs'
Corresponds to the JSON property
scheme
1032 1033 1034 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1032 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1039 1040 1041 1042 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1039 def update!(**args) @key_id = args[:key_id] if args.key?(:key_id) @scheme = args[:scheme] if args.key?(:scheme) end |