Class: Apcera::DockerOrigin
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::DockerOrigin
- Defined in:
- lib/apcera/models/docker_origin.rb
Instance Attribute Summary collapse
-
#image_name ⇒ Object
Returns the value of attribute image_name.
-
#image_tag ⇒ Object
Returns the value of attribute image_tag.
-
#registry_url ⇒ Object
Returns the value of attribute registry_url.
-
#volumes ⇒ Object
Returns the value of attribute volumes.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DockerOrigin
constructor
A new instance of DockerOrigin.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ DockerOrigin
Returns a new instance of DockerOrigin.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/apcera/models/docker_origin.rb', line 35 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[:'ImageName'] self.image_name = attributes[:'ImageName'] end if attributes[:'ImageTag'] self.image_tag = attributes[:'ImageTag'] end if attributes[:'RegistryURL'] self.registry_url = attributes[:'RegistryURL'] end if attributes[:'Volumes'] if (value = attributes[:'Volumes']).is_a?(Array) self.volumes = value end end end |
Instance Attribute Details
#image_name ⇒ Object
Returns the value of attribute image_name.
4 5 6 |
# File 'lib/apcera/models/docker_origin.rb', line 4 def image_name @image_name end |
#image_tag ⇒ Object
Returns the value of attribute image_tag.
4 5 6 |
# File 'lib/apcera/models/docker_origin.rb', line 4 def image_tag @image_tag end |
#registry_url ⇒ Object
Returns the value of attribute registry_url.
4 5 6 |
# File 'lib/apcera/models/docker_origin.rb', line 4 def registry_url @registry_url end |
#volumes ⇒ Object
Returns the value of attribute volumes.
4 5 6 |
# File 'lib/apcera/models/docker_origin.rb', line 4 def volumes @volumes end |
Class Method Details
.attribute_map ⇒ Object
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 |
# File 'lib/apcera/models/docker_origin.rb', line 6 def self.attribute_map { # Name of Docker image used to create the job. :'image_name' => :'ImageName', # Tag assigned to the Docker image used to create the job. :'image_tag' => :'ImageTag', # URL of private Docker registry used to create the job. Empty for if the Docker public registry (a.k.a. DockerHub) was used. :'registry_url' => :'RegistryURL', # Volumes defined by the Docker image used to create the job. :'volumes' => :'Volumes' } end |
.swagger_types ⇒ Object
attribute type
25 26 27 28 29 30 31 32 33 |
# File 'lib/apcera/models/docker_origin.rb', line 25 def self.swagger_types { :'image_name' => :'String', :'image_tag' => :'String', :'registry_url' => :'String', :'volumes' => :'Array<String>' } end |