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.
-
#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.
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/apcera/models/service.rb', line 59 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[:'extended_status'] if (value = attributes[:'extended_status']).is_a?(Array) self.extended_status = value end 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[:'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 |
#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 |
# File 'lib/apcera/models/service.rb', line 6 def self.attribute_map { # The date and time when the staging pipeline was created. :'created_at' => :'created_at', # Principal name of the user who created the staging pipeline. :'created_by' => :'created_by', # A map of custom binding parameter names to their values. :'extended_status' => :'extended_status', # The description of the service. :'description' => :'description', # The services's fully-qualified name. :'fqn' => :'fqn', # The base name of the binding. :'name' => :'name', # Fully-qualified name of the provider used to create the service. :'provider_fqn' => :'provider_fqn', # The status of service. :'status' => :'status', # The Type of service. :'type' => :'type', # The Service's unique identifier. :'uuid' => :'uuid' } end |
.swagger_types ⇒ Object
attribute type
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/apcera/models/service.rb', line 43 def self.swagger_types { :'created_at' => :'DateTime', :'created_by' => :'String', :'extended_status' => :'Hash<String, String>', :'description' => :'String', :'fqn' => :'String', :'name' => :'String', :'provider_fqn' => :'String', :'status' => :'String', :'type' => :'String', :'uuid' => :'String' } end |