Class: Google::Apis::GenomicsV2alpha1::Resources
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV2alpha1::Resources
- 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
-
#project_id ⇒ String
The project ID to allocate resources in.
-
#regions ⇒ Array<String>
The list of regions allowed for VM allocation.
-
#virtual_machine ⇒ Google::Apis::GenomicsV2alpha1::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
1117 1118 1119 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_id ⇒ String
The project ID to allocate resources in.
Corresponds to the JSON property projectId
1098 1099 1100 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1098 def project_id @project_id end |
#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
1104 1105 1106 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1104 def regions @regions end |
#virtual_machine ⇒ Google::Apis::GenomicsV2alpha1::VirtualMachine
Carries information about a Compute Engine VM resource.
Corresponds to the JSON property virtualMachine
1109 1110 1111 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1109 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
1115 1116 1117 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1115 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1122 1123 1124 1125 1126 1127 |
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1122 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 |