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.
-
#installDefaultSshKeys ⇒ Object
Returns the value of attribute installDefaultSshKeys.
-
#location ⇒ Object
Returns the value of attribute location.
-
#networkType ⇒ Object
Returns the value of attribute networkType.
-
#os ⇒ Object
Returns the value of attribute os.
-
#pricingModel ⇒ Object
Returns the value of attribute pricingModel.
-
#reservationId ⇒ Object
Returns the value of attribute reservationId.
-
#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, installDefaultSshKeys, reservationId, pricingModel, networkType) ⇒ ProvisionedServer
constructor
A new instance of ProvisionedServer.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds, installDefaultSshKeys, reservationId, pricingModel, networkType) ⇒ ProvisionedServer
Returns a new instance of ProvisionedServer.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/dtos.rb', line 52 def initialize(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds, installDefaultSshKeys, reservationId, pricingModel, networkType) @id = id @status = status @hostname = hostname @description = description @os = os @type = type @location = location @sshKeys = sshKeys @sshKeyIds = sshKeyIds @installDefaultSshKeys = installDefaultSshKeys, @reservationId = reservationId, @pricingModel = pricingModel @networkType = networkType @osConfiguration = osConfiguration end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
51 52 53 |
# File 'lib/dtos.rb', line 51 def description @description end |
#hostname ⇒ Object
Returns the value of attribute hostname.
51 52 53 |
# File 'lib/dtos.rb', line 51 def hostname @hostname end |
#id ⇒ Object
Returns the value of attribute id.
51 52 53 |
# File 'lib/dtos.rb', line 51 def id @id end |
#installDefaultSshKeys ⇒ Object
Returns the value of attribute installDefaultSshKeys.
51 52 53 |
# File 'lib/dtos.rb', line 51 def installDefaultSshKeys @installDefaultSshKeys end |
#location ⇒ Object
Returns the value of attribute location.
51 52 53 |
# File 'lib/dtos.rb', line 51 def location @location end |
#networkType ⇒ Object
Returns the value of attribute networkType.
51 52 53 |
# File 'lib/dtos.rb', line 51 def networkType @networkType end |
#os ⇒ Object
Returns the value of attribute os.
51 52 53 |
# File 'lib/dtos.rb', line 51 def os @os end |
#pricingModel ⇒ Object
Returns the value of attribute pricingModel.
51 52 53 |
# File 'lib/dtos.rb', line 51 def pricingModel @pricingModel end |
#reservationId ⇒ Object
Returns the value of attribute reservationId.
51 52 53 |
# File 'lib/dtos.rb', line 51 def reservationId @reservationId end |
#sshKeyIds ⇒ Object
Returns the value of attribute sshKeyIds.
51 52 53 |
# File 'lib/dtos.rb', line 51 def sshKeyIds @sshKeyIds end |
#sshKeys ⇒ Object
Returns the value of attribute sshKeys.
51 52 53 |
# File 'lib/dtos.rb', line 51 def sshKeys @sshKeys end |
#status ⇒ Object
Returns the value of attribute status.
51 52 53 |
# File 'lib/dtos.rb', line 51 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
51 52 53 |
# File 'lib/dtos.rb', line 51 def type @type end |
Instance Method Details
#to_json(*a) ⇒ Object
68 69 70 |
# File 'lib/dtos.rb', line 68 def to_json(*a) {id: @id, status: @status, hostname: @hostname, description: @description, os: @os, type: @type, location: @location, sshKeys: @sshKeys, sshKeyIds: @sshKeyIds, installDefaultSshKeys: @installDefaultSshKeys, reservationId: @reservationId, pricingModel: @pricingModel, networkType: @networkType, osConfiguration: @osConfiguration}.to_json(*a) end |