Class: Apcera::Service
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::Service
- Defined in:
- lib/apcera/models/service.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_by ⇒ Object
Returns the value of attribute created_by.
-
#description ⇒ Object
Returns the value of attribute description.
-
#extended_status ⇒ Object
Returns the value of attribute extended_status.
-
#fqn ⇒ Object
Returns the value of attribute fqn.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#provider_fqn ⇒ Object
Returns the value of attribute provider_fqn.
-
#status ⇒ Object
Returns the value of attribute status.
-
#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 = {}) ⇒ Service
constructor
A new instance of Service.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ Service
Returns a new instance of Service.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/apcera/models/service.rb', line 63 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[:'created_at'] self.created_at = attributes[:'created_at'] end if attributes[:'created_by'] self.created_by = attributes[:'created_by'] end if attributes[:'description'] self.description = attributes[:'description'] end if attributes[:'extended_status'] if (value = attributes[:'extended_status']).is_a?(Array) self.extended_status = value end end if attributes[:'fqn'] self.fqn = attributes[:'fqn'] end if attributes[:'name'] self.name = attributes[:'name'] end if attributes[:'parameters'] self.parameters = attributes[:'parameters'] end if attributes[:'provider_fqn'] self.provider_fqn = attributes[:'provider_fqn'] end if attributes[:'status'] self.status = attributes[:'status'] end if attributes[:'type'] self.type = attributes[:'type'] end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def created_at @created_at end |
#created_by ⇒ Object
Returns the value of attribute created_by.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def created_by @created_by end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def description @description end |
#extended_status ⇒ Object
Returns the value of attribute extended_status.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def extended_status @extended_status end |
#fqn ⇒ Object
Returns the value of attribute fqn.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def fqn @fqn end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def parameters @parameters end |
#provider_fqn ⇒ Object
Returns the value of attribute provider_fqn.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def provider_fqn @provider_fqn end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/apcera/models/service.rb', line 4 def type @type end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/apcera/models/service.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 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/apcera/models/service.rb', line 6 def self.attribute_map { # UNIX timestamp when service was created. :'created_at' => :'created_at', # Principal name of the user who created the service. :'created_by' => :'created_by', # A human-readable description of the service. :'description' => :'description', # A map of custom binding parameter names to their values. :'extended_status' => :'extended_status', # Service's fully-qualified name. :'fqn' => :'fqn', # The base name of the binding. :'name' => :'name', # A map of service parameter names to values. :'parameters' => :'parameters', # Fully-qualified name of provider used to create service. :'provider_fqn' => :'provider_fqn', # The status of service. :'status' => :'status', # A service type ('mysql', 'postgres', 'mongodb', etc.) that corresponds to a service gateway of that type. :'type' => :'type', # Service's unique identifer :'uuid' => :'uuid' } end |
.swagger_types ⇒ Object
attribute type
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/apcera/models/service.rb', line 46 def self.swagger_types { :'created_at' => :'DateTime', :'created_by' => :'String', :'description' => :'String', :'extended_status' => :'Hash<String, String>', :'fqn' => :'String', :'name' => :'String', :'parameters' => :'Object', :'provider_fqn' => :'String', :'status' => :'String', :'type' => :'String', :'uuid' => :'String' } end |