lib/deployment-tracker-client/models/deployment.rb in deployment-tracker-client-0.1.0 vs lib/deployment-tracker-client/models/deployment.rb in deployment-tracker-client-0.1.2
- old
+ new
@@ -1,9 +1,9 @@
module DeploymentTrackerClient
#
class Deployment < BaseObject
- attr_accessor :deployment_id, :engine, :engine_version, :host, :user, :environment, :package, :version, :result, :elapsed_seconds, :servers
+ attr_accessor :deployment_id, :engine, :engine_version, :host, :user, :environment, :package, :package_url, :version, :arguments, :result, :elapsed_seconds, :assert_empty_server_result, :servers
# attribute mapping from ruby-style variable name to JSON key
def self.attribute_map
{
# Unique identifier of a deployment. UUID
@@ -25,19 +25,28 @@
:'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
@@ -50,13 +59,16 @@
:'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
@@ -93,19 +105,31 @@
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