Class: Apcera::DockerOrigin

Inherits:
BaseObject show all
Defined in:
lib/apcera/models/docker_origin.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, #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_nameObject

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_tagObject

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_urlObject

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

#volumesObject

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_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
# 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_typesObject

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