class HammerCLIForeman::ComputeResources::GCE
Public Instance Methods
compute_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/gce.rb, line 8 def compute_attributes %w[machine_type network associate_external_ip] end
interfaces_attrs_name()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/gce.rb, line 12 def interfaces_attrs_name 'network_interfaces_nics_attributes' end
mandatory_resource_options()
click to toggle source
Calls superclass method
HammerCLIForeman::ComputeResources::Base#mandatory_resource_options
# File lib/hammer_cli_foreman/compute_resource/gce.rb, line 31 def mandatory_resource_options super + %I{project key_path zone} end
name()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/gce.rb, line 4 def name 'GCE' end
provider_specific_fields()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/gce.rb, line 22 def provider_specific_fields [ Fields::Field.new(:label => _('Project'), :path => [:project]), Fields::Field.new(:label => _('Email'), :path => [:email]), Fields::Field.new(:label => _('Key Path'), :path => [:key_path]), Fields::Field.new(:label => _('Zone'), :path => [:zone]) ] end
volume_attributes()
click to toggle source
# File lib/hammer_cli_foreman/compute_resource/gce.rb, line 16 def volume_attributes [ ['size_gb', _('Volume size in GB, integer value')] ] end