code: def create_hipersocket(self, properties):
          
          result = self.session.post(self.cpc.uri + '/adapters', body=properties)
          # There should not be overlaps, but just in case there are, the
          # returned props should overwrite the input props:
          props = copy.deepcopy(properties)
          props.update(result)
          name = props.get(self._name_prop, None)
          uri = props[self._uri_prop]
          adapter = Adapter(self, uri, name, props)
          self._name_uri_cache.update(name, uri)
          return adapter
docs: Create and configure a HiperSockets Adapter in this CPC.
  
          Authorization requirements:
  
          * Object-access permission to the scoping CPC.
          * Task permission to the "Create HiperSockets Adapter" task.
  
          Parameters:
  
            properties (dict): Initial property values.
              Allowable properties are defined in section 'Request body contents'
              in section 'Create Hipersocket' in the :term:`HMC API` book.
  
          Returns:
  
            :class:`~zhmcclient.Adapter`:
              The resource object for the new HiperSockets Adapter.
              The object will have its 'object-uri' property set as returned by
              the HMC, and will also have the input properties set.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.AuthError`
            :exc:`~zhmcclient.ConnectionError`