lib/docusign_esign/models/group.rb in docusign_esign-3.26.0 vs lib/docusign_esign/models/group.rb in docusign_esign-3.27.0.rc1

- old
+ new

@@ -13,10 +13,13 @@ module DocuSign_eSign # This object contains information about a group. class Group # + attr_accessor :access_type + + # attr_accessor :ds_group_id # Array or errors. attr_accessor :error_details @@ -39,10 +42,11 @@ attr_accessor :users_count # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'access_type' => :'accessType', :'ds_group_id' => :'dsGroupId', :'error_details' => :'errorDetails', :'group_id' => :'groupId', :'group_name' => :'groupName', :'group_type' => :'groupType', @@ -53,10 +57,11 @@ end # Attribute type mapping. def self.swagger_types { + :'access_type' => :'String', :'ds_group_id' => :'String', :'error_details' => :'ErrorDetails', :'group_id' => :'String', :'group_name' => :'String', :'group_type' => :'String', @@ -72,10 +77,14 @@ return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + if attributes.has_key?(:'accessType') + self.access_type = attributes[:'accessType'] + end + if attributes.has_key?(:'dsGroupId') self.ds_group_id = attributes[:'dsGroupId'] end if attributes.has_key?(:'errorDetails') @@ -125,10 +134,11 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && + access_type == o.access_type && ds_group_id == o.ds_group_id && error_details == o.error_details && group_id == o.group_id && group_name == o.group_name && group_type == o.group_type && @@ -144,10 +154,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [ds_group_id, error_details, group_id, group_name, group_type, permission_profile_id, users, users_count].hash + [access_type, ds_group_id, error_details, group_id, group_name, group_type, permission_profile_id, users, users_count].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself