Class: Google::Apis::TranscoderV1beta1::MpegCommonEncryption

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

Required. 128 bit Key ID represented as lowercase hexadecimal digits for use with common encryption. Corresponds to the JSON property keyId

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1026

def key_id
  @key_id
end

#schemeString

Required. Specify the encryption scheme. Supported encryption schemes: - 'cenc'

  • 'cbcs' Corresponds to the JSON property scheme

Returns:

  • (String)


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