Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR cognitiveservices/data-plane/ContentModerator] update output folder of content moderator sdk #2205

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def find_faces(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/FindFaces'
url = self.find_faces.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -87,6 +87,7 @@ def find_faces(
return client_raw_response

return deserialized
find_faces.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/FindFaces'}

def ocr_method(
self, language, cache_image=None, enhanced=False, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -115,7 +116,7 @@ def ocr_method(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/OCR'
url = self.ocr_method.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -152,6 +153,7 @@ def ocr_method(
return client_raw_response

return deserialized
ocr_method.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/OCR'}

def evaluate_method(
self, cache_image=None, custom_headers=None, raw=False, **operation_config):
Expand All @@ -173,7 +175,7 @@ def evaluate_method(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/Evaluate'
url = self.evaluate_method.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -207,6 +209,7 @@ def evaluate_method(
return client_raw_response

return deserialized
evaluate_method.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/Evaluate'}

def match_method(
self, list_id=None, cache_image=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -237,7 +240,7 @@ def match_method(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/Match'
url = self.match_method.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -273,6 +276,7 @@ def match_method(
return client_raw_response

return deserialized
match_method.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/Match'}

def find_faces_file_input(
self, image_stream, cache_image=None, custom_headers=None, raw=False, callback=None, **operation_config):
Expand Down Expand Up @@ -301,7 +305,7 @@ def find_faces_file_input(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/FindFaces'
url = self.find_faces_file_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -339,6 +343,7 @@ def find_faces_file_input(
return client_raw_response

return deserialized
find_faces_file_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/FindFaces'}

def find_faces_url_input(
self, content_type, cache_image=None, data_representation="URL", value=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -368,7 +373,7 @@ def find_faces_url_input(
image_url = models.BodyModel(data_representation=data_representation, value=value)

# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/FindFaces'
url = self.find_faces_url_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -407,6 +412,7 @@ def find_faces_url_input(
return client_raw_response

return deserialized
find_faces_url_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/FindFaces'}

def ocr_url_input(
self, language, content_type, cache_image=None, enhanced=False, data_representation="URL", value=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -443,7 +449,7 @@ def ocr_url_input(
image_url = models.BodyModel(data_representation=data_representation, value=value)

# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/OCR'
url = self.ocr_url_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -485,6 +491,7 @@ def ocr_url_input(
return client_raw_response

return deserialized
ocr_url_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/OCR'}

def ocr_file_input(
self, language, image_stream, cache_image=None, enhanced=False, custom_headers=None, raw=False, callback=None, **operation_config):
Expand Down Expand Up @@ -520,7 +527,7 @@ def ocr_file_input(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/OCR'
url = self.ocr_file_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -561,6 +568,7 @@ def ocr_file_input(
return client_raw_response

return deserialized
ocr_file_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/OCR'}

def evaluate_file_input(
self, image_stream, cache_image=None, custom_headers=None, raw=False, callback=None, **operation_config):
Expand Down Expand Up @@ -589,7 +597,7 @@ def evaluate_file_input(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/Evaluate'
url = self.evaluate_file_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -627,6 +635,7 @@ def evaluate_file_input(
return client_raw_response

return deserialized
evaluate_file_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/Evaluate'}

def evaluate_url_input(
self, content_type, cache_image=None, data_representation="URL", value=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -656,7 +665,7 @@ def evaluate_url_input(
image_url = models.BodyModel(data_representation=data_representation, value=value)

# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/Evaluate'
url = self.evaluate_url_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -695,6 +704,7 @@ def evaluate_url_input(
return client_raw_response

return deserialized
evaluate_url_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/Evaluate'}

def match_url_input(
self, content_type, list_id=None, cache_image=None, data_representation="URL", value=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -733,7 +743,7 @@ def match_url_input(
image_url = models.BodyModel(data_representation=data_representation, value=value)

# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/Match'
url = self.match_url_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -774,6 +784,7 @@ def match_url_input(
return client_raw_response

return deserialized
match_url_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/Match'}

def match_file_input(
self, image_stream, list_id=None, cache_image=None, custom_headers=None, raw=False, callback=None, **operation_config):
Expand Down Expand Up @@ -811,7 +822,7 @@ def match_file_input(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/moderate/v1.0/ProcessImage/Match'
url = self.match_file_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -851,3 +862,4 @@ def match_file_input(
return client_raw_response

return deserialized
match_file_input.metadata = {'url': '/contentmoderator/moderate/v1.0/ProcessImage/Match'}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_details(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}'
url = self.get_details.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -86,6 +86,7 @@ def get_details(
return client_raw_response

return deserialized
get_details.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}'}

def delete(
self, list_id, custom_headers=None, raw=False, **operation_config):
Expand All @@ -104,7 +105,7 @@ def delete(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}'
url = self.delete.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -137,6 +138,7 @@ def delete(
return client_raw_response

return deserialized
delete.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}'}

def update(
self, list_id, content_type, body, custom_headers=None, raw=False, **operation_config):
Expand All @@ -162,7 +164,7 @@ def update(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}'
url = self.update.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -200,6 +202,7 @@ def update(
return client_raw_response

return deserialized
update.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}'}

def create(
self, content_type, body, custom_headers=None, raw=False, **operation_config):
Expand All @@ -223,7 +226,7 @@ def create(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists'
url = self.create.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -260,6 +263,7 @@ def create(
return client_raw_response

return deserialized
create.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists'}

def get_all_image_lists(
self, custom_headers=None, raw=False, **operation_config):
Expand All @@ -278,7 +282,7 @@ def get_all_image_lists(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists'
url = self.get_all_image_lists.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True)
}
Expand Down Expand Up @@ -310,6 +314,7 @@ def get_all_image_lists(
return client_raw_response

return deserialized
get_all_image_lists.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists'}

def refresh_index_method(
self, list_id, custom_headers=None, raw=False, **operation_config):
Expand All @@ -330,7 +335,7 @@ def refresh_index_method(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/RefreshIndex'
url = self.refresh_index_method.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -363,3 +368,4 @@ def refresh_index_method(
return client_raw_response

return deserialized
refresh_index_method.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/RefreshIndex'}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def add_image(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/images'
url = self.add_image.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -92,6 +92,7 @@ def add_image(
return client_raw_response

return deserialized
add_image.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/images'}

def delete_all_images(
self, list_id, custom_headers=None, raw=False, **operation_config):
Expand All @@ -110,7 +111,7 @@ def delete_all_images(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/images'
url = self.delete_all_images.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -143,6 +144,7 @@ def delete_all_images(
return client_raw_response

return deserialized
delete_all_images.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/images'}

def get_all_image_ids(
self, list_id, custom_headers=None, raw=False, **operation_config):
Expand All @@ -163,7 +165,7 @@ def get_all_image_ids(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/images'
url = self.get_all_image_ids.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -196,6 +198,7 @@ def get_all_image_ids(
return client_raw_response

return deserialized
get_all_image_ids.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/images'}

def delete_image(
self, list_id, image_id, custom_headers=None, raw=False, **operation_config):
Expand All @@ -216,7 +219,7 @@ def delete_image(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/images/{ImageId}'
url = self.delete_image.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str'),
Expand Down Expand Up @@ -250,6 +253,7 @@ def delete_image(
return client_raw_response

return deserialized
delete_image.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/images/{ImageId}'}

def add_image_url_input(
self, list_id, content_type, tag=None, label=None, data_representation="URL", value=None, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -281,7 +285,7 @@ def add_image_url_input(
image_url = models.BodyModel(data_representation=data_representation, value=value)

# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/images'
url = self.add_image_url_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -323,6 +327,7 @@ def add_image_url_input(
return client_raw_response

return deserialized
add_image_url_input.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/images'}

def add_image_file_input(
self, list_id, image_stream, tag=None, label=None, custom_headers=None, raw=False, callback=None, **operation_config):
Expand Down Expand Up @@ -353,7 +358,7 @@ def add_image_file_input(
:class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>`
"""
# Construct URL
url = '/contentmoderator/lists/v1.0/imagelists/{listId}/images'
url = self.add_image_file_input.metadata['url']
path_format_arguments = {
'baseUrl': self._serialize.url("self.config.base_url_parameter", self.config.base_url_parameter, 'str', skip_quote=True),
'listId': self._serialize.url("list_id", list_id, 'str')
Expand Down Expand Up @@ -394,3 +399,4 @@ def add_image_file_input(
return client_raw_response

return deserialized
add_image_file_input.metadata = {'url': '/contentmoderator/lists/v1.0/imagelists/{listId}/images'}
Loading