Class: Megam::Mixins::InputGroupData

Inherits:
Object
  • Object
show all
Includes:
Nilavu::MegamAttributes
Defined in:
lib/megam/mixins/common_deployable.rb

Constant Summary collapse

ATTRIBUTES =
[
    :domain,
    :keypairoption,
    :root_password,
    :sshkey,
    :provider,
    :cpu,
    :ram,
    :hdd,
    :version,
    :display_name,
    :password,
    :region,
    :resource,
    :storage_hddtype,
    :private_ipv4,
    :public_ipv4,
    :private_ipv6,
    :public_ipv6,
    :bitnami_password,
    :bitnami_username,
    :app_username,
    :app_password,
    :root_username,
    :backup,
    :backup_name,
    :quota_ids,
    :vm_cpu_cost_per_hour,
    :vm_ram_cost_per_hour,
    :vm_disk_cost_per_hour,
    :container_cpu_cost_per_hour,
:container_memory_cost_per_hour]

Constants included from Nilavu::MegamAttributes

Nilavu::MegamAttributes::KEY, Nilavu::MegamAttributes::VALUE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Nilavu::MegamAttributes

#set_attributes, #to_hash

Constructor Details

#initialize(params) ⇒ InputGroupData

Returns a new instance of InputGroupData.



80
81
82
# File 'lib/megam/mixins/common_deployable.rb', line 80

def initialize(params)
    set_attributes(params)
end

Instance Attribute Details

#app_passwordObject (readonly)

Returns the value of attribute app_password.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def app_password
  @app_password
end

#app_usernameObject (readonly)

Returns the value of attribute app_username.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def app_username
  @app_username
end

#backupObject (readonly)

Returns the value of attribute backup.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def backup
  @backup
end

#backup_nameObject (readonly)

Returns the value of attribute backup_name.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def backup_name
  @backup_name
end

#bitnami_passwordObject (readonly)

Returns the value of attribute bitnami_password.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def bitnami_password
  @bitnami_password
end

#bitnami_usernameObject (readonly)

Returns the value of attribute bitnami_username.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def bitnami_username
  @bitnami_username
end

#container_cpu_cost_per_hourObject (readonly)

Returns the value of attribute container_cpu_cost_per_hour.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def container_cpu_cost_per_hour
  @container_cpu_cost_per_hour
end

#container_memory_cost_per_hourObject (readonly)

Returns the value of attribute container_memory_cost_per_hour.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def container_memory_cost_per_hour
  @container_memory_cost_per_hour
end

#cpuObject (readonly)

Returns the value of attribute cpu.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def cpu
  @cpu
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def display_name
  @display_name
end

#domainObject (readonly)

Returns the value of attribute domain.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def domain
  @domain
end

#hddObject (readonly)

Returns the value of attribute hdd.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def hdd
  @hdd
end

#keypairoptionObject (readonly)

Returns the value of attribute keypairoption.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def keypairoption
  @keypairoption
end

#passwordObject (readonly)

Returns the value of attribute password.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def password
  @password
end

#private_ipv4Object (readonly)

Returns the value of attribute private_ipv4.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def private_ipv4
  @private_ipv4
end

#private_ipv6Object (readonly)

Returns the value of attribute private_ipv6.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def private_ipv6
  @private_ipv6
end

#providerObject (readonly)

Returns the value of attribute provider.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def provider
  @provider
end

#public_ipv4Object (readonly)

Returns the value of attribute public_ipv4.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def public_ipv4
  @public_ipv4
end

#public_ipv6Object (readonly)

Returns the value of attribute public_ipv6.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def public_ipv6
  @public_ipv6
end

#quota_idsObject (readonly)

Returns the value of attribute quota_ids.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def quota_ids
  @quota_ids
end

#ramObject (readonly)

Returns the value of attribute ram.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def ram
  @ram
end

#regionObject (readonly)

Returns the value of attribute region.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def region
  @region
end

#resourceObject (readonly)

Returns the value of attribute resource.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def resource
  @resource
end

#root_passwordObject (readonly)

Returns the value of attribute root_password.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def root_password
  @root_password
end

#root_usernameObject (readonly)

Returns the value of attribute root_username.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def root_username
  @root_username
end

#sshkeyObject (readonly)

Returns the value of attribute sshkey.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def sshkey
  @sshkey
end

#storage_hddtypeObject (readonly)

Returns the value of attribute storage_hddtype.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def storage_hddtype
  @storage_hddtype
end

#versionObject (readonly)

Returns the value of attribute version.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def version
  @version
end

#vm_cpu_cost_per_hourObject (readonly)

Returns the value of attribute vm_cpu_cost_per_hour.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def vm_cpu_cost_per_hour
  @vm_cpu_cost_per_hour
end

#vm_disk_cost_per_hourObject (readonly)

Returns the value of attribute vm_disk_cost_per_hour.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def vm_disk_cost_per_hour
  @vm_disk_cost_per_hour
end

#vm_ram_cost_per_hourObject (readonly)

Returns the value of attribute vm_ram_cost_per_hour.



37
38
39
# File 'lib/megam/mixins/common_deployable.rb', line 37

def vm_ram_cost_per_hour
  @vm_ram_cost_per_hour
end

Instance Method Details

#attributesObject



76
77
78
# File 'lib/megam/mixins/common_deployable.rb', line 76

def attributes
    ATTRIBUTES
end