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) ⇒ 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

#descriptionObject

Returns the value of attribute description.



53
54
55
# File 'lib/dtos.rb', line 53

def description
  @description
end

#hostnameObject

Returns the value of attribute hostname.



53
54
55
# File 'lib/dtos.rb', line 53

def hostname
  @hostname
end

#idObject

Returns the value of attribute id.



53
54
55
# File 'lib/dtos.rb', line 53

def id
  @id
end

#locationObject

Returns the value of attribute location.



53
54
55
# File 'lib/dtos.rb', line 53

def location
  @location
end

#osObject

Returns the value of attribute os.



53
54
55
# File 'lib/dtos.rb', line 53

def os
  @os
end

#sshKeyIdsObject

Returns the value of attribute sshKeyIds.



53
54
55
# File 'lib/dtos.rb', line 53

def sshKeyIds
  @sshKeyIds
end

#sshKeysObject

Returns the value of attribute sshKeys.



53
54
55
# File 'lib/dtos.rb', line 53

def sshKeys
  @sshKeys
end

#statusObject

Returns the value of attribute status.



53
54
55
# File 'lib/dtos.rb', line 53

def status
  @status
end

#typeObject

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