Class: Google::Apis::LifesciencesV2beta::Resources
- Inherits:
-
Object
- Object
- Google::Apis::LifesciencesV2beta::Resources
- 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
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
-
#regions ⇒ Array<String>
The list of regions allowed for VM allocation.
-
#virtual_machine ⇒ Google::Apis::LifesciencesV2beta::VirtualMachine
Carries information about a Compute Engine VM resource.
-
#zones ⇒ Array<String>
The list of zones allowed for VM allocation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resources
constructor
A new instance of Resources.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Resources
Returns a new instance of Resources.
969 970 971 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 969 def initialize(**args) update!(**args) end |
Instance Attribute Details
#regions ⇒ Array<String>
The list of regions allowed for VM allocation. If set, the zones
field
must not be set.
Corresponds to the JSON property regions
956 957 958 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 956 def regions @regions end |
#virtual_machine ⇒ Google::Apis::LifesciencesV2beta::VirtualMachine
Carries information about a Compute Engine VM resource.
Corresponds to the JSON property virtualMachine
961 962 963 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 961 def virtual_machine @virtual_machine end |
#zones ⇒ Array<String>
The list of zones allowed for VM allocation. If set, the regions
field
must not be set.
Corresponds to the JSON property zones
967 968 969 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 967 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
974 975 976 977 978 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 974 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 |