Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
:param face_ids: Array of candidate faceId created by Face - Detect.
The maximum is 1000 faces
:type face_ids: list[str]
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
:return: GroupResult or ClientRawResponse if raw=true
:rtype: ~azure.cognitiveservices.vision.face.models.GroupResult or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`APIErrorException`
"""
body = models.GroupRequest(face_ids=face_ids)
# Construct URL
url = self.group.metadata['url']
path_format_arguments = {
'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True)
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers: