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.



101
102
103
# File 'lib/megam/mixins/common_deployable.rb', line 101

def initialize(params)
    set_attributes(params)
end

Instance Attribute Details

#app_passwordObject (readonly)

Returns the value of attribute app_password.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def app_password
  @app_password
end

#app_usernameObject (readonly)

Returns the value of attribute app_username.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def app_username
  @app_username
end

#backupObject (readonly)

Returns the value of attribute backup.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def backup
  @backup
end

#backup_nameObject (readonly)

Returns the value of attribute backup_name.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def backup_name
  @backup_name
end

#bitnami_passwordObject (readonly)

Returns the value of attribute bitnami_password.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def bitnami_password
  @bitnami_password
end

#bitnami_usernameObject (readonly)

Returns the value of attribute bitnami_username.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def bitnami_username
  @bitnami_username
end

#container_cpu_cost_per_hourObject (readonly)

Returns the value of attribute container_cpu_cost_per_hour.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

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.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def container_memory_cost_per_hour
  @container_memory_cost_per_hour
end

#cpuObject (readonly)

Returns the value of attribute cpu.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def cpu
  @cpu
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def display_name
  @display_name
end

#domainObject (readonly)

Returns the value of attribute domain.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def domain
  @domain
end

#hddObject (readonly)

Returns the value of attribute hdd.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def hdd
  @hdd
end

#keypairoptionObject (readonly)

Returns the value of attribute keypairoption.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def keypairoption
  @keypairoption
end

#passwordObject (readonly)

Returns the value of attribute password.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def password
  @password
end

#private_ipv4Object (readonly)

Returns the value of attribute private_ipv4.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def private_ipv4
  @private_ipv4
end

#private_ipv6Object (readonly)

Returns the value of attribute private_ipv6.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def private_ipv6
  @private_ipv6
end

#providerObject (readonly)

Returns the value of attribute provider.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def provider
  @provider
end

#public_ipv4Object (readonly)

Returns the value of attribute public_ipv4.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def public_ipv4
  @public_ipv4
end

#public_ipv6Object (readonly)

Returns the value of attribute public_ipv6.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def public_ipv6
  @public_ipv6
end

#quota_idsObject (readonly)

Returns the value of attribute quota_ids.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def quota_ids
  @quota_ids
end

#ramObject (readonly)

Returns the value of attribute ram.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def ram
  @ram
end

#regionObject (readonly)

Returns the value of attribute region.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def region
  @region
end

#resourceObject (readonly)

Returns the value of attribute resource.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def resource
  @resource
end

#root_passwordObject (readonly)

Returns the value of attribute root_password.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def root_password
  @root_password
end

#root_usernameObject (readonly)

Returns the value of attribute root_username.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def root_username
  @root_username
end

#sshkeyObject (readonly)

Returns the value of attribute sshkey.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def sshkey
  @sshkey
end

#storage_hddtypeObject (readonly)

Returns the value of attribute storage_hddtype.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def storage_hddtype
  @storage_hddtype
end

#versionObject (readonly)

Returns the value of attribute version.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def version
  @version
end

#vm_cpu_cost_per_hourObject (readonly)

Returns the value of attribute vm_cpu_cost_per_hour.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

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.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

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.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def vm_ram_cost_per_hour
  @vm_ram_cost_per_hour
end

Instance Method Details

#attributesObject



97
98
99
# File 'lib/megam/mixins/common_deployable.rb', line 97

def attributes
    ATTRIBUTES
end