Class: Apcera::Provider
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::Provider
- Defined in:
- lib/apcera/models/provider.rb
Instance Attribute Summary collapse
-
#backing_job_fqn ⇒ Object
Returns the value of attribute backing_job_fqn.
-
#backing_job_port ⇒ Object
Returns the value of attribute backing_job_port.
-
#description ⇒ Object
Returns the value of attribute description.
-
#fqn ⇒ Object
Returns the value of attribute fqn.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
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 = {}) ⇒ Provider
constructor
A new instance of Provider.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ Provider
Returns a new instance of Provider.
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 |
# File 'lib/apcera/models/provider.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[:'backing_job_fqn'] self.backing_job_fqn = attributes[:'backing_job_fqn'] end if attributes[:'backing_job_port'] self.backing_job_port = attributes[:'backing_job_port'] end if attributes[:'description'] self.description = attributes[:'description'] end if attributes[:'fqn'] self.fqn = attributes[:'fqn'] end if attributes[:'name'] self.name = attributes[:'name'] end if attributes[:'type'] self.type = attributes[:'type'] end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end end |
Instance Attribute Details
#backing_job_fqn ⇒ Object
Returns the value of attribute backing_job_fqn.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def backing_job_fqn @backing_job_fqn end |
#backing_job_port ⇒ Object
Returns the value of attribute backing_job_port.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def backing_job_port @backing_job_port end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def description @description end |
#fqn ⇒ Object
Returns the value of attribute fqn.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def fqn @fqn end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def type @type end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/apcera/models/provider.rb', line 4 def uuid @uuid 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 23 24 25 26 27 28 29 30 31 |
# File 'lib/apcera/models/provider.rb', line 6 def self.attribute_map { # Backing job's FQN. :'backing_job_fqn' => :'backing_job_fqn', # Backing job's port. :'backing_job_port' => :'backing_job_port', # Provider description. :'description' => :'description', # Provider FQN (Fully Qualified Name). :'fqn' => :'fqn', # Provider name. :'name' => :'name', # Provider type (e.g. mysql, posgres). :'type' => :'type', # Provider UUID. :'uuid' => :'uuid' } end |
.swagger_types ⇒ Object
attribute type
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/apcera/models/provider.rb', line 34 def self.swagger_types { :'backing_job_fqn' => :'String', :'backing_job_port' => :'String', :'description' => :'String', :'fqn' => :'String', :'name' => :'String', :'type' => :'String', :'uuid' => :'String' } end |