Class: Google::Apis::GenomicsV1alpha2::PipelineResources

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PipelineResources

Returns a new instance of PipelineResources



861
862
863
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 861

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

Instance Attribute Details

#accelerator_countFixnum

Optional. The number of accelerators of the specified type to attach. By specifying this parameter, you will download and install the following third-party software onto your managed GCE instances: NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


799
800
801
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 799

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

Optional. The GCE defined accelerator type. By specifying this parameter, you will download and install the following third-party software onto your managed GCE instances: NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit. Corresponds to the JSON property acceleratorType

Returns:

  • (String)


807
808
809
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 807

def accelerator_type
  @accelerator_type
end

#boot_disk_size_gbFixnum

The size of the boot disk. Defaults to 10 (GB). Corresponds to the JSON property bootDiskSizeGb

Returns:

  • (Fixnum)


812
813
814
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 812

def boot_disk_size_gb
  @boot_disk_size_gb
end

#disksArray<Google::Apis::GenomicsV1alpha2::Disk>

Disks to attach. Corresponds to the JSON property disks



817
818
819
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 817

def disks
  @disks
end

#minimum_cpu_coresFixnum

The minimum number of cores to use. Defaults to 1. Corresponds to the JSON property minimumCpuCores

Returns:

  • (Fixnum)


822
823
824
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 822

def minimum_cpu_cores
  @minimum_cpu_cores
end

#minimum_ram_gbFloat

The minimum amount of RAM to use. Defaults to 3.75 (GB) Corresponds to the JSON property minimumRamGb

Returns:

  • (Float)


827
828
829
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 827

def minimum_ram_gb
  @minimum_ram_gb
end

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

Returns:

  • (Boolean)


844
845
846
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 844

def no_address
  @no_address
end

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

Returns:

  • (Boolean)


852
853
854
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 852

def preemptible
  @preemptible
end

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

Returns:

  • (Array<String>)


859
860
861
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 859

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



866
867
868
869
870
871
872
873
874
875
876
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 866

def update!(**args)
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
  @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