lib/purecloud/models/edge_line.rb in purecloud-0.48.1 vs lib/purecloud/models/edge_line.rb in purecloud-0.49.1
- old
+ new
@@ -19,12 +19,33 @@
module PureCloud
class EdgeLine
# The globally unique identifier for the object.
attr_accessor :id
+ # The name of the entity.
attr_accessor :name
+ attr_accessor :description
+
+ attr_accessor :version
+
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :date_created
+
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :date_modified
+
+ attr_accessor :modified_by
+
+ attr_accessor :created_by
+
+ attr_accessor :state
+
+ attr_accessor :modified_by_app
+
+ attr_accessor :created_by_app
+
attr_accessor :schema
attr_accessor :properties
attr_accessor :edge
@@ -48,10 +69,28 @@
:'id' => :'id',
:'name' => :'name',
+ :'description' => :'description',
+
+ :'version' => :'version',
+
+ :'date_created' => :'dateCreated',
+
+ :'date_modified' => :'dateModified',
+
+ :'modified_by' => :'modifiedBy',
+
+ :'created_by' => :'createdBy',
+
+ :'state' => :'state',
+
+ :'modified_by_app' => :'modifiedByApp',
+
+ :'created_by_app' => :'createdByApp',
+
:'schema' => :'schema',
:'properties' => :'properties',
:'edge' => :'edge',
@@ -74,10 +113,19 @@
# Attribute type mapping.
def self.swagger_types
{
:'id' => :'String',
:'name' => :'String',
+ :'description' => :'String',
+ :'version' => :'Integer',
+ :'date_created' => :'DateTime',
+ :'date_modified' => :'DateTime',
+ :'modified_by' => :'String',
+ :'created_by' => :'String',
+ :'state' => :'String',
+ :'modified_by_app' => :'String',
+ :'created_by_app' => :'String',
:'schema' => :'UriReference',
:'properties' => :'Hash<String, Object>',
:'edge' => :'Edge',
:'edge_group' => :'EdgeGroup',
:'line_type' => :'String',
@@ -102,10 +150,46 @@
if attributes[:'name']
self.name = attributes[:'name']
end
+ if attributes[:'description']
+ self.description = attributes[:'description']
+ end
+
+ if attributes[:'version']
+ self.version = attributes[:'version']
+ end
+
+ if attributes[:'dateCreated']
+ self.date_created = attributes[:'dateCreated']
+ end
+
+ if attributes[:'dateModified']
+ self.date_modified = attributes[:'dateModified']
+ end
+
+ if attributes[:'modifiedBy']
+ self.modified_by = attributes[:'modifiedBy']
+ end
+
+ if attributes[:'createdBy']
+ self.created_by = attributes[:'createdBy']
+ end
+
+ if attributes[:'state']
+ self.state = attributes[:'state']
+ end
+
+ if attributes[:'modifiedByApp']
+ self.modified_by_app = attributes[:'modifiedByApp']
+ end
+
+ if attributes[:'createdByApp']
+ self.created_by_app = attributes[:'createdByApp']
+ end
+
if attributes[:'schema']
self.schema = attributes[:'schema']
end
if attributes[:'properties']
@@ -143,10 +227,19 @@
end
end
# Custom attribute writer method checking allowed values (enum).
+ def state=(state)
+ allowed_values = ["active", "inactive", "deleted"]
+ if state && !allowed_values.include?(state)
+ fail "invalid value for 'state', must be one of #{allowed_values}"
+ end
+ @state = state
+ end
+
+ # Custom attribute writer method checking allowed values (enum).
def line_type=(line_type)
allowed_values = ["TIE", "NETWORK", "TRUNK", "STATION"]
if line_type && !allowed_values.include?(line_type)
fail "invalid value for 'line_type', must be one of #{allowed_values}"
end
@@ -157,10 +250,19 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
name == o.name &&
+ description == o.description &&
+ version == o.version &&
+ date_created == o.date_created &&
+ date_modified == o.date_modified &&
+ modified_by == o.modified_by &&
+ created_by == o.created_by &&
+ state == o.state &&
+ modified_by_app == o.modified_by_app &&
+ created_by_app == o.created_by_app &&
schema == o.schema &&
properties == o.properties &&
edge == o.edge &&
edge_group == o.edge_group &&
line_type == o.line_type &&
@@ -175,10 +277,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, schema, properties, edge, edge_group, line_type, endpoint, ip_address, logical_interface_id, self_uri].hash
+ [id, name, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, schema, properties, edge, edge_group, line_type, endpoint, ip_address, logical_interface_id, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)