class DeploymentTrackerClient::Server

Attributes

deployment_id[RW]
elapsed_seconds[RW]
hostname[RW]
ip_address[RW]
result[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/deployment-tracker-client/models/server.rb, line 6
def self.attribute_map
  {
    
    # Unique Identifier (UUID) of the deployment starting
    :'deployment_id' => :'deployment_id',
    
    # Fully qualified domain name of the server
    :'hostname' => :'hostname',
    
    # IP Address of the server
    :'ip_address' => :'ip_address',
    
    # The result of running the deployment on the server
    :'result' => :'result',
    
    # The elapsed time of the deployment, in seconds
    :'elapsed_seconds' => :'elapsed_seconds'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/deployment-tracker-client/models/server.rb, line 39
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'deployment_id']
    @deployment_id = attributes[:'deployment_id']
  end
  
  if attributes[:'hostname']
    @hostname = attributes[:'hostname']
  end
  
  if attributes[:'ip_address']
    @ip_address = attributes[:'ip_address']
  end
  
  if attributes[:'result']
    @result = attributes[:'result']
  end
  
  if attributes[:'elapsed_seconds']
    @elapsed_seconds = attributes[:'elapsed_seconds']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/deployment-tracker-client/models/server.rb, line 28
def self.swagger_types
  {
    :'deployment_id' => :'string',
    :'hostname' => :'string',
    :'ip_address' => :'string',
    :'result' => :'string',
    :'elapsed_seconds' => :'int'
    
  }
end