Class: Google::Apis::TranscoderV1beta1::Encryption
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::Encryption
- 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
Encryption settings.
Instance Attribute Summary collapse
-
#aes128 ⇒ Google::Apis::TranscoderV1beta1::Aes128Encryption
Configuration for AES-128 encryption.
-
#iv ⇒ String
Required.
-
#key ⇒ String
Required.
-
#mpeg_cenc ⇒ Google::Apis::TranscoderV1beta1::MpegCommonEncryption
Configuration for MPEG Common Encryption (MPEG-CENC).
-
#sample_aes ⇒ Google::Apis::TranscoderV1beta1::SampleAesEncryption
Configuration for SAMPLE-AES encryption.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Encryption
constructor
A new instance of Encryption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Encryption
Returns a new instance of Encryption.
615 616 617 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 615 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aes128 ⇒ Google::Apis::TranscoderV1beta1::Aes128Encryption
Configuration for AES-128 encryption.
Corresponds to the JSON property aes128
592 593 594 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 592 def aes128 @aes128 end |
#iv ⇒ String
Required. 128 bit Initialization Vector (IV) represented as lowercase
hexadecimal digits.
Corresponds to the JSON property iv
598 599 600 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 598 def iv @iv end |
#key ⇒ String
Required. 128 bit encryption key represented as lowercase hexadecimal digits.
Corresponds to the JSON property key
603 604 605 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 603 def key @key end |
#mpeg_cenc ⇒ Google::Apis::TranscoderV1beta1::MpegCommonEncryption
Configuration for MPEG Common Encryption (MPEG-CENC).
Corresponds to the JSON property mpegCenc
608 609 610 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 608 def mpeg_cenc @mpeg_cenc end |
#sample_aes ⇒ Google::Apis::TranscoderV1beta1::SampleAesEncryption
Configuration for SAMPLE-AES encryption.
Corresponds to the JSON property sampleAes
613 614 615 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 613 def sample_aes @sample_aes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
620 621 622 623 624 625 626 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 620 def update!(**args) @aes128 = args[:aes128] if args.key?(:aes128) @iv = args[:iv] if args.key?(:iv) @key = args[:key] if args.key?(:key) @mpeg_cenc = args[:mpeg_cenc] if args.key?(:mpeg_cenc) @sample_aes = args[:sample_aes] if args.key?(:sample_aes) end |