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]
installDefaultSshKeys[RW]
location[RW]
networkType[RW]
os[RW]
pricingModel[RW]
reservationId[RW]
sshKeyIds[RW]
sshKeys[RW]
status[RW]
type[RW]

Public Class Methods

new(id, status, hostname, description, os, type, location, sshKeys, sshKeyIds, installDefaultSshKeys, reservationId, pricingModel, networkType) click to toggle source
# 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

Public Instance Methods

to_json(*a) click to toggle source
# 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