Class: Google::Apis::GenomicsV2alpha1::Resources

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v2alpha1/classes.rb,
generated/google/apis/genomics_v2alpha1/representations.rb,
generated/google/apis/genomics_v2alpha1/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Resources

Returns a new instance of Resources



1023
1024
1025
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1023

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

Instance Attribute Details

#project_idString

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

Returns:

  • (String)


1004
1005
1006
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1004

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>)


1010
1011
1012
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1010

def regions
  @regions
end

#virtual_machineGoogle::Apis::GenomicsV2alpha1::VirtualMachine

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



1015
1016
1017
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1015

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>)


1021
1022
1023
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1021

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
1032
1033
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1028

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