Class: Bmc::Sdk::ProvisionedServer
- Inherits:
-
Object
- Object
- Bmc::Sdk::ProvisionedServer
- Defined in:
- lib/dtos.rb
Overview
ProvisionedServer is used to transmit details on CreateServer commands.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#os ⇒ Object
Returns the value of attribute os.
-
#sshKeyIds ⇒ Object
Returns the value of attribute sshKeyIds.
-
#sshKeys ⇒ Object
Returns the value of attribute sshKeys.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds) ⇒ ProvisionedServer
constructor
A new instance of ProvisionedServer.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds) ⇒ ProvisionedServer
Returns a new instance of ProvisionedServer.
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/dtos.rb', line 54 def initialize(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds) @id = id @status = status @hostname = hostname @description = description @os = os @type = type @location = location @sshKeys = sshKeys @sshKeyIds = sshKeyIds end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
53 54 55 |
# File 'lib/dtos.rb', line 53 def description @description end |
#hostname ⇒ Object
Returns the value of attribute hostname.
53 54 55 |
# File 'lib/dtos.rb', line 53 def hostname @hostname end |
#id ⇒ Object
Returns the value of attribute id.
53 54 55 |
# File 'lib/dtos.rb', line 53 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
53 54 55 |
# File 'lib/dtos.rb', line 53 def location @location end |
#os ⇒ Object
Returns the value of attribute os.
53 54 55 |
# File 'lib/dtos.rb', line 53 def os @os end |
#sshKeyIds ⇒ Object
Returns the value of attribute sshKeyIds.
53 54 55 |
# File 'lib/dtos.rb', line 53 def sshKeyIds @sshKeyIds end |
#sshKeys ⇒ Object
Returns the value of attribute sshKeys.
53 54 55 |
# File 'lib/dtos.rb', line 53 def sshKeys @sshKeys end |
#status ⇒ Object
Returns the value of attribute status.
53 54 55 |
# File 'lib/dtos.rb', line 53 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
53 54 55 |
# File 'lib/dtos.rb', line 53 def type @type end |
Instance Method Details
#to_json(*a) ⇒ Object
65 66 67 |
# File 'lib/dtos.rb', line 65 def to_json(*a) {id: @id, status: @status, hostname: @hostname, description: @description, os: @os, type: @type, location: @location, sshKeys: @sshKeys, sshKeyIds: @sshKeyIds}.to_json(*a) end |