Class: Google::Apis::GenomicsV1::Resources

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resources

Returns a new instance of Resources.



746
747
748
# File 'lib/google/apis/genomics_v1/classes.rb', line 746

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

Instance Attribute Details

#project_idString

The project ID to allocate resources in. Corresponds to the JSON property projectId

Returns:

  • (String)


727
728
729
# File 'lib/google/apis/genomics_v1/classes.rb', line 727

def project_id
  @project_id
end

#regionsArray<String>

The list of regions allowed for VM allocation. If set, the zones field must not be set. Corresponds to the JSON property regions

Returns:

  • (Array<String>)


733
734
735
# File 'lib/google/apis/genomics_v1/classes.rb', line 733

def regions
  @regions
end

#virtual_machineGoogle::Apis::GenomicsV1::VirtualMachine

Carries information about a Compute Engine VM resource. Corresponds to the JSON property virtualMachine



738
739
740
# File 'lib/google/apis/genomics_v1/classes.rb', line 738

def virtual_machine
  @virtual_machine
end

#zonesArray<String>

The list of zones allowed for VM allocation. If set, the regions field must not be set. Corresponds to the JSON property zones

Returns:

  • (Array<String>)


744
745
746
# File 'lib/google/apis/genomics_v1/classes.rb', line 744

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



751
752
753
754
755
756
# File 'lib/google/apis/genomics_v1/classes.rb', line 751

def update!(**args)
  @project_id = args[:project_id] if args.key?(:project_id)
  @regions = args[:regions] if args.key?(:regions)
  @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
  @zones = args[:zones] if args.key?(:zones)
end