Class: Google::Apis::LifesciencesV2beta::Resources

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



1055
1056
1057
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 1055

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

Instance Attribute Details

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


1042
1043
1044
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 1042

def regions
  @regions
end

#virtual_machineGoogle::Apis::LifesciencesV2beta::VirtualMachine

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



1047
1048
1049
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 1047

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


1053
1054
1055
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 1053

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1060
1061
1062
1063
1064
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 1060

def update!(**args)
  @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