Class: DeploymentTrackerClient::Server

Inherits:
BaseObject show all
Defined in:
lib/deployment-tracker-client/models/server.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash

Constructor Details

#initialize(attributes = {}) ⇒ Server

Returns a new instance of Server.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 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

Instance Attribute Details

#deployment_idObject

Returns the value of attribute deployment_id.



4
5
6
# File 'lib/deployment-tracker-client/models/server.rb', line 4

def deployment_id
  @deployment_id
end

#elapsed_secondsObject

Returns the value of attribute elapsed_seconds.



4
5
6
# File 'lib/deployment-tracker-client/models/server.rb', line 4

def elapsed_seconds
  @elapsed_seconds
end

#hostnameObject

Returns the value of attribute hostname.



4
5
6
# File 'lib/deployment-tracker-client/models/server.rb', line 4

def hostname
  @hostname
end

#ip_addressObject

Returns the value of attribute ip_address.



4
5
6
# File 'lib/deployment-tracker-client/models/server.rb', line 4

def ip_address
  @ip_address
end

#resultObject

Returns the value of attribute result.



4
5
6
# File 'lib/deployment-tracker-client/models/server.rb', line 4

def result
  @result
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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

.swagger_typesObject

attribute type



28
29
30
31
32
33
34
35
36
37
# 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