class Apcera::ServiceRequestObject
Attributes
description[RW]
fqn[RW]
name[RW]
parameters[RW]
provider_fqn[RW]
type[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# 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
new(attributes = {})
click to toggle source
# 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
swagger_types()
click to toggle source
attribute type
# 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