Class: Apcera::VersionInfo

Inherits:
BaseObject show all
Defined in:
lib/apcera/models/version_info.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 = {}) ⇒ VersionInfo

Returns a new instance of VersionInfo.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/apcera/models/version_info.rb', line 47

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[:'build_id']
    self.build_id = attributes[:'build_id']
  end
  
  if attributes[:'build_number']
    self.build_number = attributes[:'build_number']
  end
  
  if attributes[:'download_urls']
    if (value = attributes[:'download_urls']).is_a?(Array)
      self.download_urls = value
    end
  end
  
  if attributes[:'major']
    self.major = attributes[:'major']
  end
  
  if attributes[:'minor']
    self.minor = attributes[:'minor']
  end
  
  if attributes[:'patch']
    self.patch = attributes[:'patch']
  end
  
  if attributes[:'version']
    self.version = attributes[:'version']
  end
  
end

Instance Attribute Details

#build_idObject

Returns the value of attribute build_id.



4
5
6
# File 'lib/apcera/models/version_info.rb', line 4

def build_id
  @build_id
end

#build_numberObject

Returns the value of attribute build_number.



4
5
6
# File 'lib/apcera/models/version_info.rb', line 4

def build_number
  @build_number
end

#download_urlsObject

Returns the value of attribute download_urls.



4
5
6
# File 'lib/apcera/models/version_info.rb', line 4

def download_urls
  @download_urls
end

#majorObject

Returns the value of attribute major.



4
5
6
# File 'lib/apcera/models/version_info.rb', line 4

def major
  @major
end

#minorObject

Returns the value of attribute minor.



4
5
6
# File 'lib/apcera/models/version_info.rb', line 4

def minor
  @minor
end

#patchObject

Returns the value of attribute patch.



4
5
6
# File 'lib/apcera/models/version_info.rb', line 4

def patch
  @patch
end

#versionObject

Returns the value of attribute version.



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

def self.attribute_map
  {
    
    # Cluster's build ID.
    :'build_id' => :'build_id',
    
    # Cluster build number composed of the cluster's major, minor and patch version numbers (for example, \"2.2.0\").
    :'build_number' => :'build_number',
    
    # Provides download links for versions of APC compatible this cluster.
    :'download_urls' => :'download_urls',
    
    # Major Apcera cluster version number.
    :'major' => :'major',
    
    # Minor Apcera cluster version number.
    :'minor' => :'minor',
    
    # Cluster patch number.
    :'patch' => :'patch',
    
    # Cluster version string composed of the cluster's major, minor and patch version numbers (for example, \"2.2.0\").
    :'version' => :'version'
    
  }
end

.swagger_typesObject

attribute type



34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/apcera/models/version_info.rb', line 34

def self.swagger_types
  {
    :'build_id' => :'String',
    :'build_number' => :'String',
    :'download_urls' => :'Hash<String, APCDownloadURL>',
    :'major' => :'Integer',
    :'minor' => :'Integer',
    :'patch' => :'Integer',
    :'version' => :'String'
    
  }
end