Class: Apcera::Service

Inherits:
BaseObject show all
Defined in:
lib/apcera/models/service.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_atObject

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_byObject

Returns the value of attribute created_by.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def created_by
  @created_by
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def description
  @description
end

#extended_statusObject

Returns the value of attribute extended_status.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def extended_status
  @extended_status
end

#fqnObject

Returns the value of attribute fqn.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def fqn
  @fqn
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def name
  @name
end

#provider_fqnObject

Returns the value of attribute provider_fqn.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def provider_fqn
  @provider_fqn
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def status
  @status
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/apcera/models/service.rb', line 4

def type
  @type
end

#uuidObject

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_mapObject

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_typesObject

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