lib/purecloud/models/trunk.rb in purecloud-0.68.1 vs lib/purecloud/models/trunk.rb in purecloud-0.69.1
- old
+ new
@@ -58,10 +58,13 @@
# The edge group associated with this trunk.
attr_accessor :edge_group
# True if this trunk is in-service. This comes from the trunk_enabled property of the referenced trunk base.
+ attr_accessor :in_service
+
+ # True if the Edge used by this trunk is in-service
attr_accessor :enabled
# The URI for this object
attr_accessor :self_uri
@@ -99,10 +102,12 @@
:'trunk_metabase' => :'trunkMetabase',
:'edge_group' => :'edgeGroup',
+ :'in_service' => :'inService',
+
:'enabled' => :'enabled',
:'self_uri' => :'selfUri'
}
@@ -125,10 +130,11 @@
:'trunk_type' => :'String',
:'edge' => :'UriReference',
:'trunk_base' => :'UriReference',
:'trunk_metabase' => :'UriReference',
:'edge_group' => :'UriReference',
+ :'in_service' => :'BOOLEAN',
:'enabled' => :'BOOLEAN',
:'self_uri' => :'String'
}
end
@@ -202,10 +208,14 @@
if attributes[:'edgeGroup']
self.edge_group = attributes[:'edgeGroup']
end
+ if attributes[:'inService']
+ self.in_service = attributes[:'inService']
+ end
+
if attributes[:'enabled']
self.enabled = attributes[:'enabled']
end
if attributes[:'selfUri']
@@ -250,10 +260,11 @@
trunk_type == o.trunk_type &&
edge == o.edge &&
trunk_base == o.trunk_base &&
trunk_metabase == o.trunk_metabase &&
edge_group == o.edge_group &&
+ in_service == o.in_service &&
enabled == o.enabled &&
self_uri == o.self_uri
end
# @see the `==` method
@@ -261,10 +272,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, trunk_type, edge, trunk_base, trunk_metabase, edge_group, enabled, self_uri].hash
+ [id, name, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, trunk_type, edge, trunk_base, trunk_metabase, edge_group, in_service, enabled, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)