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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/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.



1032
1033
1034
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1032

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)


1024
1025
1026
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1024

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)


1030
1031
1032
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1030

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1037
1038
1039
1040
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1037

def update!(**args)
  @key_id = args[:key_id] if args.key?(:key_id)
  @scheme = args[:scheme] if args.key?(:scheme)
end