Class: Apcera::ServiceRequestObject
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::ServiceRequestObject
- Defined in:
- lib/apcera/models/service_request_object.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#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.
-
#type ⇒ Object
Returns the value of attribute type.
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 = {}) ⇒ ServiceRequestObject
constructor
A new instance of ServiceRequestObject.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ ServiceRequestObject
Returns a new instance of ServiceRequestObject.
43 44 45 46 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 |
# File 'lib/apcera/models/service_request_object.rb', line 43 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[:'description'] self.description = attributes[:'description'] 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[:'type'] self.type = attributes[:'type'] end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/apcera/models/service_request_object.rb', line 4 def description @description end |
#fqn ⇒ Object
Returns the value of attribute fqn.
4 5 6 |
# File 'lib/apcera/models/service_request_object.rb', line 4 def fqn @fqn end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/apcera/models/service_request_object.rb', line 4 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/apcera/models/service_request_object.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_request_object.rb', line 4 def provider_fqn @provider_fqn end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/apcera/models/service_request_object.rb', line 4 def type @type 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 |
# File 'lib/apcera/models/service_request_object.rb', line 6 def self.attribute_map { # A description of the service. :'description' => :'description', # The service's fully-qualified name. :'fqn' => :'fqn', # A human-readable description of the service. :'name' => :'name', # A map of service parameter names to values. :'parameters' => :'parameters', # The fully-qualified name of provider used to create service. :'provider_fqn' => :'provider_fqn', # A service type ('mysql', 'postgres', 'mongodb', etc.) that corresponds to a service gateway of that type. :'type' => :'type' } end |
.swagger_types ⇒ Object
attribute type
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/apcera/models/service_request_object.rb', line 31 def self.swagger_types { :'description' => :'String', :'fqn' => :'String', :'name' => :'String', :'parameters' => :'Object', :'provider_fqn' => :'String', :'type' => :'String' } end |