code: def update_attributes(self, updates):
          
          if not isinstance(updates, dict):
              updates = updates.to_dict()
          for sdk_key, spec_key in self._get_attributes_map().items():
              attr = '_%s' % sdk_key
              if spec_key in updates and not hasattr(self, attr):
                  setattr(self, attr, updates[spec_key])
docs: Update attributes.