Class: DeploymentTrackerClient::Deployment

Inherits:
BaseObject show all
Defined in:
lib/deployment-tracker-client/models/deployment.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 = {}) ⇒ Deployment

Returns a new instance of Deployment.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/deployment-tracker-client/models/deployment.rb', line 75

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[:'engine']
    @engine = attributes[:'engine']
  end
  
  if attributes[:'engine_version']
    @engine_version = attributes[:'engine_version']
  end
  
  if attributes[:'host']
    @host = attributes[:'host']
  end
  
  if attributes[:'user']
    @user = attributes[:'user']
  end
  
  if attributes[:'environment']
    @environment = attributes[:'environment']
  end
  
  if attributes[:'package']
    @package = attributes[:'package']
  end
  
  if attributes[:'package_url']
    @package_url = attributes[:'package_url']
  end
  
  if attributes[:'version']
    @version = attributes[:'version']
  end
  
  if attributes[:'arguments']
    @arguments = attributes[:'arguments']
  end
  
  if attributes[:'result']
    @result = attributes[:'result']
  end
  
  if attributes[:'elapsed_seconds']
    @elapsed_seconds = attributes[:'elapsed_seconds']
  end
  
  if attributes[:'assert_empty_server_result']
    @assert_empty_server_result = attributes[:'assert_empty_server_result']
  end
  
  if attributes[:'servers']
    if (value = attributes[:'servers']).is_a?(Array)
      @servers = value
    end
  end
  
end

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



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

def arguments
  @arguments
end

#assert_empty_server_resultObject

Returns the value of attribute assert_empty_server_result.



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

def assert_empty_server_result
  @assert_empty_server_result
end

#deployment_idObject

Returns the value of attribute deployment_id.



4
5
6
# File 'lib/deployment-tracker-client/models/deployment.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/deployment.rb', line 4

def elapsed_seconds
  @elapsed_seconds
end

#engineObject

Returns the value of attribute engine.



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

def engine
  @engine
end

#engine_versionObject

Returns the value of attribute engine_version.



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

def engine_version
  @engine_version
end

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#packageObject

Returns the value of attribute package.



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

def package
  @package
end

#package_urlObject

Returns the value of attribute package_url.



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

def package_url
  @package_url
end

#resultObject

Returns the value of attribute result.



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

def result
  @result
end

#serversObject

Returns the value of attribute servers.



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

def servers
  @servers
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/deployment-tracker-client/models/deployment.rb', line 6

def self.attribute_map
  {
    
    # Unique identifier of a deployment. UUID
    :'deployment_id' => :'deployment_id',
    
    # The execution engine of the deployment
    :'engine' => :'engine',
    
    # The version of the execution engine
    :'engine_version' => :'engine_version',
    
    # The host from which the deployment is being executed
    :'host' => :'host',
    
    # The user executing the deploymetn
    :'user' => :'user',
    
    # The target environment of the deployment
    :'environment' => :'environment',
    
    # The name of the software application or service being deployed
    :'package' => :'package',
    
    # A URL that points to more information about the package
    :'package_url' => :'package_url',
    
    # The version of the package being deployed
    :'version' => :'version',
    
    # Any arguments used for the deployment
    :'arguments' => :'arguments',
    
    # The result of running the deployment
    :'result' => :'result',
    
    # The elapsed time of the deployment, in seconds
    :'elapsed_seconds' => :'elapsed_seconds',
    
    # Whether or not to assert the result of a deployment to any server that doesn't have a result at the time the deployment is marked complete
    :'assert_empty_server_result' => :'assert_empty_server_result',
    
    # The servers that participated in the deployment
    :'servers' => :'servers'
    
  }
end

.swagger_typesObject

attribute type



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/deployment-tracker-client/models/deployment.rb', line 55

def self.swagger_types
  {
    :'deployment_id' => :'string',
    :'engine' => :'string',
    :'engine_version' => :'string',
    :'host' => :'string',
    :'user' => :'string',
    :'environment' => :'string',
    :'package' => :'string',
    :'package_url' => :'string',
    :'version' => :'string',
    :'arguments' => :'string',
    :'result' => :'string',
    :'elapsed_seconds' => :'int',
    :'assert_empty_server_result' => :'boolean',
    :'servers' => :'array[Server]'
    
  }
end