lib/purecloudplatformclientv2/models/agent.rb in purecloudplatformclientv2-57.0.0 vs lib/purecloudplatformclientv2/models/agent.rb in purecloudplatformclientv2-58.0.0
- old
+ new
@@ -16,28 +16,33 @@
require 'date'
module PureCloud
class Agent
- # The current stage for this agent
- attr_accessor :stage
+ attr_accessor :id
+ attr_accessor :self_uri
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'stage' => :'stage'
+ :'id' => :'id',
+ :'self_uri' => :'selfUri'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'stage' => :'String'
+ :'id' => :'String',
+ :'self_uri' => :'String'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -46,19 +51,28 @@
# convert string to symbol for hash key
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
- if attributes.has_key?(:'stage')
+ if attributes.has_key?(:'id')
- self.stage = attributes[:'stage']
+ self.id = attributes[:'id']
end
+ if attributes.has_key?(:'selfUri')
+
+
+ self.self_uri = attributes[:'selfUri']
+
+
+ end
+
+
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properies with the reasons
def list_invalid_properties
@@ -74,24 +88,34 @@
+
+
+
+
end
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- stage == o.stage
+ id == o.id &&
+ self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -99,10 +123,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [stage].hash
+ [id, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)