Class: Google::Apis::GenomicsV1alpha2::PipelineResources
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1alpha2::PipelineResources
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/genomics_v1alpha2/classes.rb,
generated/google/apis/genomics_v1alpha2/representations.rb,
generated/google/apis/genomics_v1alpha2/representations.rb
Overview
The system resources for the pipeline run.
Instance Attribute Summary collapse
-
#boot_disk_size_gb ⇒ Fixnum
The size of the boot disk.
-
#disks ⇒ Array<Google::Apis::GenomicsV1alpha2::Disk>
Disks to attach.
-
#minimum_cpu_cores ⇒ Fixnum
The minimum number of cores to use.
-
#minimum_ram_gb ⇒ Float
The minimum amount of RAM to use.
-
#no_address ⇒ Boolean
(also: #no_address?)
Whether to assign an external IP to the instance.
-
#preemptible ⇒ Boolean
(also: #preemptible?)
Whether to use preemptible VMs.
-
#zones ⇒ Array<String>
List of Google Compute Engine availability zones to which resource creation will restricted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PipelineResources
constructor
A new instance of PipelineResources.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PipelineResources
Returns a new instance of PipelineResources
845 846 847 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 845 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_disk_size_gb ⇒ Fixnum
The size of the boot disk. Defaults to 10 (GB).
Corresponds to the JSON property bootDiskSizeGb
796 797 798 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 796 def boot_disk_size_gb @boot_disk_size_gb end |
#disks ⇒ Array<Google::Apis::GenomicsV1alpha2::Disk>
Disks to attach.
Corresponds to the JSON property disks
801 802 803 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 801 def disks @disks end |
#minimum_cpu_cores ⇒ Fixnum
The minimum number of cores to use. Defaults to 1.
Corresponds to the JSON property minimumCpuCores
806 807 808 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 806 def minimum_cpu_cores @minimum_cpu_cores end |
#minimum_ram_gb ⇒ Float
The minimum amount of RAM to use. Defaults to 3.75 (GB)
Corresponds to the JSON property minimumRamGb
811 812 813 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 811 def minimum_ram_gb @minimum_ram_gb end |
#no_address ⇒ Boolean Also known as: no_address?
Whether to assign an external IP to the instance. This is an experimental
feature that may go away. Defaults to false.
Corresponds to --no_address
flag for gcloud compute instances create.
In order to use this, must be true for both create time and run time.
Cannot be true at run time if false at create time. If you need to ssh into
a private IP VM for debugging, you can ssh to a public VM and then ssh into
the private VM's Internal IP. If noAddress is set, this pipeline run may
only load docker images from Google Container Registry and not Docker Hub.
Before using this, you must
configure access to Google services from internal IPs.
Corresponds to the JSON property noAddress
828 829 830 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 828 def no_address @no_address end |
#preemptible ⇒ Boolean Also known as: preemptible?
Whether to use preemptible VMs. Defaults to false
. In order to use this,
must be true for both create time and run time. Cannot be true at run time
if false at create time.
Corresponds to the JSON property preemptible
836 837 838 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 836 def preemptible @preemptible end |
#zones ⇒ Array<String>
List of Google Compute Engine availability zones to which resource
creation will restricted. If empty, any zone may be chosen.
Corresponds to the JSON property zones
843 844 845 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 843 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
850 851 852 853 854 855 856 857 858 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 850 def update!(**args) @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) @disks = args[:disks] if args.key?(:disks) @minimum_cpu_cores = args[:minimum_cpu_cores] if args.key?(:minimum_cpu_cores) @minimum_ram_gb = args[:minimum_ram_gb] if args.key?(:minimum_ram_gb) @no_address = args[:no_address] if args.key?(:no_address) @preemptible = args[:preemptible] if args.key?(:preemptible) @zones = args[:zones] if args.key?(:zones) end |