class Bmc::Sdk::ProvisionedServer
ProvisionedServer
is used to transmit details on CreateServer
commands.
@see developers.phoenixnap.com/docs/bmc/1/types/ServerCreate
Attributes
description[RW]
hostname[RW]
id[RW]
location[RW]
os[RW]
sshKeyIds[RW]
sshKeys[RW]
status[RW]
type[RW]
Public Class Methods
new(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds)
click to toggle source
# 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
Public Instance Methods
to_json(*a)
click to toggle source
# 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