Class: Google::Apis::LifesciencesV2beta::Pipeline

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

Overview

Specifies a series of actions to execute, expressed as Docker containers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Pipeline

Returns a new instance of Pipeline



895
896
897
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 895

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

Instance Attribute Details

#actionsArray<Google::Apis::LifesciencesV2beta::Action>

The list of actions to execute, in the order they are specified. Corresponds to the JSON property actions



871
872
873
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 871

def actions
  @actions
end

#environmentHash<String,String>

The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value). Corresponds to the JSON property environment

Returns:

  • (Hash<String,String>)


878
879
880
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 878

def environment
  @environment
end

#resourcesGoogle::Apis::LifesciencesV2beta::Resources

The system resources for the pipeline run. At least one zone or region must be specified or the pipeline run will fail. Corresponds to the JSON property resources



884
885
886
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 884

def resources
  @resources
end

#timeoutString

The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days. Corresponds to the JSON property timeout

Returns:

  • (String)


893
894
895
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 893

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



900
901
902
903
904
905
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 900

def update!(**args)
  @actions = args[:actions] if args.key?(:actions)
  @environment = args[:environment] if args.key?(:environment)
  @resources = args[:resources] if args.key?(:resources)
  @timeout = args[:timeout] if args.key?(:timeout)
end