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,
:ipv4private,
:ipv4public,
:ipv6private,
:ipv6public,
:bitnami_password,
:bitnami_username,
:root_username,
:snapshot,
:snap_name]

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.



91
92
93
# File 'lib/megam/mixins/common_deployable.rb', line 91

def initialize(params)
    set_attributes(params)
end

Instance Attribute Details

#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

#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

#ipv4privateObject (readonly)

Returns the value of attribute ipv4private.



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

def ipv4private
  @ipv4private
end

#ipv4publicObject (readonly)

Returns the value of attribute ipv4public.



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

def ipv4public
  @ipv4public
end

#ipv6privateObject (readonly)

Returns the value of attribute ipv6private.



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

def ipv6private
  @ipv6private
end

#ipv6publicObject (readonly)

Returns the value of attribute ipv6public.



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

def ipv6public
  @ipv6public
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

#providerObject (readonly)

Returns the value of attribute provider.



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

def provider
  @provider
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

#snap_nameObject (readonly)

Returns the value of attribute snap_name.



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

def snap_name
  @snap_name
end

#snapshotObject (readonly)

Returns the value of attribute snapshot.



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

def snapshot
  @snapshot
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

Instance Method Details

#attributesObject



87
88
89
# File 'lib/megam/mixins/common_deployable.rb', line 87

def attributes
    ATTRIBUTES
end