Class: Google::Apis::TranscoderV1beta1::Encryption

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

Encryption settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aes128Google::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

#ivString

Required. 128 bit Initialization Vector (IV) represented as lowercase hexadecimal digits. Corresponds to the JSON property iv

Returns:

  • (String)


598
599
600
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 598

def iv
  @iv
end

#keyString

Required. 128 bit encryption key represented as lowercase hexadecimal digits. Corresponds to the JSON property key

Returns:

  • (String)


603
604
605
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 603

def key
  @key
end

#mpeg_cencGoogle::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_aesGoogle::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