Class: Bmc::Sdk::ProvisionedServer

Inherits:
Object
  • Object
show all
Defined in:
lib/dtos.rb

Overview

ProvisionedServer is used to transmit details on CreateServer commands.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



51
52
53
# File 'lib/dtos.rb', line 51

def description
  @description
end

#hostnameObject

Returns the value of attribute hostname.



51
52
53
# File 'lib/dtos.rb', line 51

def hostname
  @hostname
end

#idObject

Returns the value of attribute id.



51
52
53
# File 'lib/dtos.rb', line 51

def id
  @id
end

#installDefaultSshKeysObject

Returns the value of attribute installDefaultSshKeys.



51
52
53
# File 'lib/dtos.rb', line 51

def installDefaultSshKeys
  @installDefaultSshKeys
end

#locationObject

Returns the value of attribute location.



51
52
53
# File 'lib/dtos.rb', line 51

def location
  @location
end

#networkTypeObject

Returns the value of attribute networkType.



51
52
53
# File 'lib/dtos.rb', line 51

def networkType
  @networkType
end

#osObject

Returns the value of attribute os.



51
52
53
# File 'lib/dtos.rb', line 51

def os
  @os
end

#pricingModelObject

Returns the value of attribute pricingModel.



51
52
53
# File 'lib/dtos.rb', line 51

def pricingModel
  @pricingModel
end

#reservationIdObject

Returns the value of attribute reservationId.



51
52
53
# File 'lib/dtos.rb', line 51

def reservationId
  @reservationId
end

#sshKeyIdsObject

Returns the value of attribute sshKeyIds.



51
52
53
# File 'lib/dtos.rb', line 51

def sshKeyIds
  @sshKeyIds
end

#sshKeysObject

Returns the value of attribute sshKeys.



51
52
53
# File 'lib/dtos.rb', line 51

def sshKeys
  @sshKeys
end

#statusObject

Returns the value of attribute status.



51
52
53
# File 'lib/dtos.rb', line 51

def status
  @status
end

#typeObject

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