code: def _equals(self, b):
          '''Checks whether two records are equal by comparing all fields.
              :param b: Another _AzureRecord object
              :type  b: _AzureRecord
  
              :type return: bool
          '''
          def parse_dict(params):
              vals = []
              for char in params:
                  if char != 'ttl':
                      list_records = params[char]
                      try:
                          for record in list_records:
                              vals.append(record.__dict__)
                      except:
                          vals.append(list_records.__dict__)
              vals.sort()
              return vals
  
          return (self.resource_group == b.resource_group) & \
                 (self.zone_name == b.zone_name) & \
                 (self.record_type == b.record_type) & \
                 (self.params['ttl'] == b.params['ttl']) & \
                 (parse_dict(self.params) == parse_dict(b.params)) & \
                 (self.relative_record_set_name == b.relative_record_set_namef _equals(self, b):
          '''Checks whether two records are equal by comparing all fields.
              :param b: Another _AzureRecord object
              :type  b: _AzureRecord
  
              :type return: bool
          '''
          def parse_dict(params):
              vals = []
              for char in params:
                  if char != 'ttl':
                      list_records = params[char]
                      try:
                          for record in list_records:
                              vals.append(record.__dict__)
                      except:
                          vals.append(list_records.__dict__)
              vals.sort()
              return vals
  
          return (self.resource_group == b.resource_group) & \
                 (self.zone_name == b.zone_name) & \
                 (self.record_type == b.record_type) & \
                 (self.params['ttl'] == b.params['ttl']) & \
                 (parse_dict(self.params) == parse_dict(b.params)) & \
                 (self.relative_record_set_name == b.relative_record_set_name)
docs: Checks whether two records are equal by comparing all fields.
              :param b: Another _AzureRecord object
              :type  b: _AzureRecord
  
              :type return: bool