Class: Google::Apis::TranscoderV1::Input

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb

Overview

Input asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Input

Returns a new instance of Input.



934
935
936
# File 'lib/google/apis/transcoder_v1/classes.rb', line 934

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

A unique key for this input. Must be specified when using advanced mapping and edit lists. Corresponds to the JSON property key

Returns:

  • (String)


920
921
922
# File 'lib/google/apis/transcoder_v1/classes.rb', line 920

def key
  @key
end

#preprocessing_configGoogle::Apis::TranscoderV1::PreprocessingConfig

Preprocessing configurations. Corresponds to the JSON property preprocessingConfig



925
926
927
# File 'lib/google/apis/transcoder_v1/classes.rb', line 925

def preprocessing_config
  @preprocessing_config
end

#uriString

URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, gs://bucket/inputs/file.mp4). If empty, the value will be populated from Job.input_uri. Corresponds to the JSON property uri

Returns:

  • (String)


932
933
934
# File 'lib/google/apis/transcoder_v1/classes.rb', line 932

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



939
940
941
942
943
# File 'lib/google/apis/transcoder_v1/classes.rb', line 939

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