def deactivate_au_by_id(host, auth, auid):
  '''
  Performs a deactivateAuById operation (which deactivates a single AU on a
  single host, by AUID), and returns a record with these fields:
  - Id (string): the AUID
  - IsSuccess (boolean): a success flag
  - Message (string): an error message
  - Name (string): the AU name

  Parameters:
  - host (string): a host:port pair
  - auth (ZSI authentication object): an authentication object
  - auid (string): an AUID
  '''
  req = ContentConfigurationServiceImplService_client.deactivateAuById()
  req.AuId = auid
  return _ws_port(host, auth).deactivateAuById(req).Return
def add_aus_by_id_list(host, auth, auids):
  '''
  Performs an addAusByIdList operation (which adds all given AUs on a single
  host, by AUID), and returns a list of records with these fields:
  - Id (string): the AUID
  - IsSuccess (boolean): a success flag
  - Message (string): an error message
  - Name (string): the AU name

  Parameters:
  - host (string): a host:port pair
  - auth (ZSI authentication object): an authentication object
  - auids (list of strings): a list of AUIDs
  '''
  req = ContentConfigurationServiceImplService_client.addAusByIdList()
  req.AuIds = auids
  return _ws_port(host, auth).addAusByIdList(req).Return
def add_aus_by_id_list(host, auth, auids):
    '''
  Performs an addAusByIdList operation (which adds all given AUs on a single
  host, by AUID), and returns a list of records with these fields:
  - Id (string): the AUID
  - IsSuccess (boolean): a success flag
  - Message (string): an error message
  - Name (string): the AU name

  Parameters:
  - host (string): a host:port pair
  - auth (ZSI authentication object): an authentication object
  - auids (list of strings): a list of AUIDs
  '''
    req = ContentConfigurationServiceImplService_client.addAusByIdList()
    req.AuIds = auids
    return _ws_port(host, auth).addAusByIdList(req).Return
def deactivate_au_by_id(host, auth, auid):
    '''
  Performs a deactivateAuById operation (which deactivates a single AU on a
  single host, by AUID), and returns a record with these fields:
  - Id (string): the AUID
  - IsSuccess (boolean): a success flag
  - Message (string): an error message
  - Name (string): the AU name

  Parameters:
  - host (string): a host:port pair
  - auth (ZSI authentication object): an authentication object
  - auid (string): an AUID
  '''
    req = ContentConfigurationServiceImplService_client.deactivateAuById()
    req.AuId = auid
    return _ws_port(host, auth).deactivateAuById(req).Return
def _ws_port(host, auth, tracefile=None):
    '''
  Internal convenience method used to set up a Web Services Port.

  Parameters:
  - host (string): a host:port pair
  - auth (ZSI authentication object): an authentication object
  - tracefile (file object): an optional trace file (default None for no trace)
  '''
    url = 'http://%s/ws/ContentConfigurationService' % (host, )
    locator = ContentConfigurationServiceImplService_client.ContentConfigurationServiceImplServiceLocator(
    )
    if tracefile is None:
        return locator.getContentConfigurationServiceImplPort(url=url,
                                                              auth=auth)
    else:
        return locator.getContentConfigurationServiceImplPort(
            url=url, auth=auth, tracefile=tracefile)