From c50bf85c281ab2b00bd46d4740c73f67fb106252 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Thu, 16 Aug 2018 14:47:24 -0700 Subject: [PATCH] ContentModerator patched models (#3165) * ContentModerator patched * ContentModerator packaging --- .../HISTORY.rst | 8 + .../contentmoderator/models/__init__.py | 281 +-- ....py => _content_moderator_client_enums.py} | 0 .../vision/contentmoderator/models/_models.py | 1661 +++++++++++++++++ .../contentmoderator/models/_models_py3.py | 1661 +++++++++++++++++ .../models/{job_id.py => _paged_models.py} | 18 +- .../vision/contentmoderator/models/address.py | 32 - .../contentmoderator/models/api_error.py | 41 - .../vision/contentmoderator/models/body.py | 37 - .../contentmoderator/models/body_metadata.py | 32 - .../contentmoderator/models/body_model.py | 32 - .../contentmoderator/models/candidate.py | 32 - .../contentmoderator/models/classification.py | 43 - .../vision/contentmoderator/models/content.py | 32 - .../models/create_review_body_item.py | 52 - .../create_review_body_item_metadata_item.py | 37 - .../models/create_video_reviews_body_item.py | 71 - ...e_video_reviews_body_item_metadata_item.py | 37 - ...deo_reviews_body_item_video_frames_item.py | 52 - ...dy_item_video_frames_item_metadata_item.py | 37 - ...o_frames_item_reviewer_result_tags_item.py | 37 - .../models/detected_language.py | 37 - .../contentmoderator/models/detected_terms.py | 42 - .../vision/contentmoderator/models/email.py | 41 - .../vision/contentmoderator/models/error.py | 32 - .../contentmoderator/models/evaluate.py | 64 - .../vision/contentmoderator/models/face.py | 40 - .../contentmoderator/models/found_faces.py | 55 - .../vision/contentmoderator/models/frame.py | 42 - .../vision/contentmoderator/models/frames.py | 33 - .../vision/contentmoderator/models/image.py | 42 - .../models/image_additional_info_item.py | 32 - .../contentmoderator/models/image_ids.py | 41 - .../contentmoderator/models/image_list.py | 41 - .../models/image_list_metadata.py | 32 - .../vision/contentmoderator/models/ipa.py | 36 - .../vision/contentmoderator/models/job.py | 63 - .../models/job_execution_report_details.py | 32 - .../models/job_list_result.py | 28 - .../contentmoderator/models/key_value_pair.py | 32 - .../vision/contentmoderator/models/match.py | 44 - .../contentmoderator/models/match_response.py | 46 - .../vision/contentmoderator/models/ocr.py | 55 - .../vision/contentmoderator/models/phone.py | 37 - .../vision/contentmoderator/models/pii.py | 44 - .../contentmoderator/models/refresh_index.py | 46 - .../refresh_index_advanced_info_item.py | 32 - .../vision/contentmoderator/models/review.py | 66 - .../vision/contentmoderator/models/score.py | 30 - .../vision/contentmoderator/models/screen.py | 67 - .../vision/contentmoderator/models/status.py | 36 - .../vision/contentmoderator/models/tag.py | 32 - .../contentmoderator/models/term_list.py | 41 - .../models/term_list_metadata.py | 32 - .../vision/contentmoderator/models/terms.py | 34 - .../contentmoderator/models/terms_data.py | 42 - .../contentmoderator/models/terms_in_list.py | 28 - .../contentmoderator/models/terms_paging.py | 40 - .../models/transcript_moderation_body_item.py | 38 - ...nscript_moderation_body_item_terms_item.py | 37 - .../models/video_frame_body_item.py | 47 - .../video_frame_body_item_metadata_item.py | 37 - ...ame_body_item_reviewer_result_tags_item.py | 37 - .../vision/contentmoderator/version.py | 3 +- 64 files changed, 3504 insertions(+), 2445 deletions(-) rename azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/{content_moderator_client_enums.py => _content_moderator_client_enums.py} (100%) create mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models.py create mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models_py3.py rename azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/{job_id.py => _paged_models.py} (58%) delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/address.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/api_error.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_metadata.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_model.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/candidate.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/content.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item_metadata_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_metadata_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_language.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_terms.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/email.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/error.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/evaluate.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/face.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/found_faces.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frame.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frames.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_additional_info_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_ids.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list_metadata.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ipa.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_execution_report_details.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_list_result.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/key_value_pair.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match_response.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ocr.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/phone.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/pii.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index_advanced_info_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/review.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/screen.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/status.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/tag.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list_metadata.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_data.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_in_list.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_paging.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item_terms_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_metadata_item.py delete mode 100644 azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.py diff --git a/azure-cognitiveservices-vision-contentmoderator/HISTORY.rst b/azure-cognitiveservices-vision-contentmoderator/HISTORY.rst index 08363ec0cb0f..357583dc74ed 100644 --- a/azure-cognitiveservices-vision-contentmoderator/HISTORY.rst +++ b/azure-cognitiveservices-vision-contentmoderator/HISTORY.rst @@ -3,6 +3,14 @@ Release History =============== +0.2.0 (2018-XX-XX) +++++++++++++++++++ + +*Unreleased* + +- Models refactoring. More details to come. + + 0.1.0 (2018-02-06) ++++++++++++++++++ diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py index a56377ebc3b5..47f0599d7a68 100644 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py @@ -9,126 +9,189 @@ # regenerated. # -------------------------------------------------------------------------- -from .key_value_pair import KeyValuePair -from .tag import Tag -from .frame import Frame -from .frames import Frames -from .score import Score -from .classification import Classification -from .status import Status -from .email import Email -from .ipa import IPA -from .phone import Phone -from .address import Address -from .pii import PII -from .detected_terms import DetectedTerms -from .screen import Screen -from .face import Face -from .found_faces import FoundFaces -from .candidate import Candidate -from .ocr import OCR -from .evaluate import Evaluate -from .match import Match -from .match_response import MatchResponse -from .detected_language import DetectedLanguage -from .image_list_metadata import ImageListMetadata -from .image_list import ImageList -from .term_list_metadata import TermListMetadata -from .term_list import TermList -from .refresh_index_advanced_info_item import RefreshIndexAdvancedInfoItem -from .refresh_index import RefreshIndex -from .image_additional_info_item import ImageAdditionalInfoItem -from .image import Image -from .image_ids import ImageIds -from .terms_in_list import TermsInList -from .terms_data import TermsData -from .terms_paging import TermsPaging -from .terms import Terms -from .review import Review -from .job_execution_report_details import JobExecutionReportDetails -from .job import Job -from .job_list_result import JobListResult -from .job_id import JobId -from .error import Error -from .api_error import APIError, APIErrorException -from .body_metadata import BodyMetadata -from .body import Body -from .create_review_body_item_metadata_item import CreateReviewBodyItemMetadataItem -from .create_review_body_item import CreateReviewBodyItem -from .content import Content -from .transcript_moderation_body_item_terms_item import TranscriptModerationBodyItemTermsItem -from .transcript_moderation_body_item import TranscriptModerationBodyItem -from .body_model import BodyModel -from .create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item import CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem -from .create_video_reviews_body_item_video_frames_item_metadata_item import CreateVideoReviewsBodyItemVideoFramesItemMetadataItem -from .create_video_reviews_body_item_video_frames_item import CreateVideoReviewsBodyItemVideoFramesItem -from .create_video_reviews_body_item_metadata_item import CreateVideoReviewsBodyItemMetadataItem -from .create_video_reviews_body_item import CreateVideoReviewsBodyItem -from .video_frame_body_item_reviewer_result_tags_item import VideoFrameBodyItemReviewerResultTagsItem -from .video_frame_body_item_metadata_item import VideoFrameBodyItemMetadataItem -from .video_frame_body_item import VideoFrameBodyItem -from .content_moderator_client_enums import ( - AzureRegionBaseUrl, -) -__all__ = [ - 'KeyValuePair', - 'Tag', - 'Frame', - 'Frames', - 'Score', - 'Classification', - 'Status', - 'Email', - 'IPA', - 'Phone', +try: + from ._models_py3 import APIError + from ._models_py3 import Address + from ._models_py3 import Body + from ._models_py3 import BodyMetadata + from ._models_py3 import BodyModel + from ._models_py3 import Candidate + from ._models_py3 import Classification + from ._models_py3 import Content + from ._models_py3 import CreateReviewBodyItem + from ._models_py3 import CreateReviewBodyItemMetadataItem + from ._models_py3 import CreateVideoReviewsBodyItem + from ._models_py3 import CreateVideoReviewsBodyItemMetadataItem + from ._models_py3 import CreateVideoReviewsBodyItemVideoFramesItem + from ._models_py3 import CreateVideoReviewsBodyItemVideoFramesItemMetadataItem + from ._models_py3 import CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem + from ._models_py3 import DetectedLanguage + from ._models_py3 import DetectedTerms + from ._models_py3 import Email + from ._models_py3 import Error + from ._models_py3 import Evaluate + from ._models_py3 import Face + from ._models_py3 import FoundFaces + from ._models_py3 import Frame + from ._models_py3 import Frames + from ._models_py3 import IPA + from ._models_py3 import Image + from ._models_py3 import ImageAdditionalInfoItem + from ._models_py3 import ImageIds + from ._models_py3 import ImageList + from ._models_py3 import ImageListMetadata + from ._models_py3 import Job + from ._models_py3 import JobExecutionReportDetails + from ._models_py3 import JobId + from ._models_py3 import JobListResult + from ._models_py3 import KeyValuePair + from ._models_py3 import Match + from ._models_py3 import MatchResponse + from ._models_py3 import OCR + from ._models_py3 import PII + from ._models_py3 import Phone + from ._models_py3 import RefreshIndex + from ._models_py3 import RefreshIndexAdvancedInfoItem + from ._models_py3 import Review + from ._models_py3 import Score + from ._models_py3 import Screen + from ._models_py3 import Status + from ._models_py3 import Tag + from ._models_py3 import TermList + from ._models_py3 import TermListMetadata + from ._models_py3 import Terms + from ._models_py3 import TermsData + from ._models_py3 import TermsInList + from ._models_py3 import TermsPaging + from ._models_py3 import TranscriptModerationBodyItem + from ._models_py3 import TranscriptModerationBodyItemTermsItem + from ._models_py3 import VideoFrameBodyItem + from ._models_py3 import VideoFrameBodyItemMetadataItem + from ._models_py3 import VideoFrameBodyItemReviewerResultTagsItem + from ._models_py3 import APIErrorException +except (SyntaxError, ImportError): + from ._models import APIError + from ._models import Address + from ._models import Body + from ._models import BodyMetadata + from ._models import BodyModel + from ._models import Candidate + from ._models import Classification + from ._models import Content + from ._models import CreateReviewBodyItem + from ._models import CreateReviewBodyItemMetadataItem + from ._models import CreateVideoReviewsBodyItem + from ._models import CreateVideoReviewsBodyItemMetadataItem + from ._models import CreateVideoReviewsBodyItemVideoFramesItem + from ._models import CreateVideoReviewsBodyItemVideoFramesItemMetadataItem + from ._models import CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem + from ._models import DetectedLanguage + from ._models import DetectedTerms + from ._models import Email + from ._models import Error + from ._models import Evaluate + from ._models import Face + from ._models import FoundFaces + from ._models import Frame + from ._models import Frames + from ._models import IPA + from ._models import Image + from ._models import ImageAdditionalInfoItem + from ._models import ImageIds + from ._models import ImageList + from ._models import ImageListMetadata + from ._models import Job + from ._models import JobExecutionReportDetails + from ._models import JobId + from ._models import JobListResult + from ._models import KeyValuePair + from ._models import Match + from ._models import MatchResponse + from ._models import OCR + from ._models import PII + from ._models import Phone + from ._models import RefreshIndex + from ._models import RefreshIndexAdvancedInfoItem + from ._models import Review + from ._models import Score + from ._models import Screen + from ._models import Status + from ._models import Tag + from ._models import TermList + from ._models import TermListMetadata + from ._models import Terms + from ._models import TermsData + from ._models import TermsInList + from ._models import TermsPaging + from ._models import TranscriptModerationBodyItem + from ._models import TranscriptModerationBodyItemTermsItem + from ._models import VideoFrameBodyItem + from ._models import VideoFrameBodyItemMetadataItem + from ._models import VideoFrameBodyItemReviewerResultTagsItem + from ._models import APIErrorException +from ._content_moderator_client_enums import AzureRegionBaseUrl + + +__all__=[ + 'APIError', 'Address', - 'PII', + 'Body', + 'BodyMetadata', + 'BodyModel', + 'Candidate', + 'Classification', + 'Content', + 'CreateReviewBodyItem', + 'CreateReviewBodyItemMetadataItem', + 'CreateVideoReviewsBodyItem', + 'CreateVideoReviewsBodyItemMetadataItem', + 'CreateVideoReviewsBodyItemVideoFramesItem', + 'CreateVideoReviewsBodyItemVideoFramesItemMetadataItem', + 'CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem', + 'DetectedLanguage', 'DetectedTerms', - 'Screen', + 'Email', + 'Error', + 'Evaluate', 'Face', 'FoundFaces', - 'Candidate', - 'OCR', - 'Evaluate', + 'Frame', + 'Frames', + 'IPA', + 'Image', + 'ImageAdditionalInfoItem', + 'ImageIds', + 'ImageList', + 'ImageListMetadata', + 'Job', + 'JobExecutionReportDetails', + 'JobId', + 'JobListResult', + 'KeyValuePair', 'Match', 'MatchResponse', - 'DetectedLanguage', - 'ImageListMetadata', - 'ImageList', - 'TermListMetadata', - 'TermList', - 'RefreshIndexAdvancedInfoItem', + 'OCR', + 'PII', + 'Phone', 'RefreshIndex', - 'ImageAdditionalInfoItem', - 'Image', - 'ImageIds', - 'TermsInList', + 'RefreshIndexAdvancedInfoItem', + 'Review', + 'Score', + 'Screen', + 'Status', + 'Tag', + 'TermList', + 'TermListMetadata', + 'Terms', 'TermsData', + 'TermsInList', 'TermsPaging', - 'Terms', - 'Review', - 'JobExecutionReportDetails', - 'Job', - 'JobListResult', - 'JobId', - 'Error', - 'APIError', 'APIErrorException', - 'BodyMetadata', - 'Body', - 'CreateReviewBodyItemMetadataItem', - 'CreateReviewBodyItem', - 'Content', - 'TranscriptModerationBodyItemTermsItem', 'TranscriptModerationBodyItem', - 'BodyModel', - 'CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem', - 'CreateVideoReviewsBodyItemVideoFramesItemMetadataItem', - 'CreateVideoReviewsBodyItemVideoFramesItem', - 'CreateVideoReviewsBodyItemMetadataItem', - 'CreateVideoReviewsBodyItem', - 'VideoFrameBodyItemReviewerResultTagsItem', - 'VideoFrameBodyItemMetadataItem', + 'TranscriptModerationBodyItemTermsItem', 'VideoFrameBodyItem', + 'VideoFrameBodyItemMetadataItem', + 'VideoFrameBodyItemReviewerResultTagsItem', + 'APIErrorException', 'AzureRegionBaseUrl', ] diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/content_moderator_client_enums.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_content_moderator_client_enums.py similarity index 100% rename from azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/content_moderator_client_enums.py rename to azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_content_moderator_client_enums.py diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models.py new file mode 100644 index 000000000000..34182d72fdb9 --- /dev/null +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models.py @@ -0,0 +1,1661 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class APIError(Model): + """Error information returned by the API. + + :param error: + :type error: ~azure.cognitiveservices.vision.contentmoderator.models.Error + """ + + _attribute_map = { + 'error': {'key': 'Error', 'type': 'Error'}, + } + + def __init__(self, error=None): + super(APIError, self).__init__() + self.error = error + + +class APIErrorException(HttpOperationError): + """Server responsed with exception of type: 'APIError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(APIErrorException, self).__init__(deserialize, response, 'APIError', *args) + + +class Address(Model): + """Address details. + + :param text: Detected Address. + :type text: str + :param index: Index(Location) of the Address in the input text content. + :type index: int + """ + + _attribute_map = { + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, text=None, index=None): + super(Address, self).__init__() + self.text = text + self.index = index + + +class Body(Model): + """Body. + + :param name: Name of the list. + :type name: str + :param description: Description of the list. + :type description: str + :param metadata: Metadata of the list. + :type metadata: + ~azure.cognitiveservices.vision.contentmoderator.models.BodyMetadata + """ + + _attribute_map = { + 'name': {'key': 'Name', 'type': 'str'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': 'BodyMetadata'}, + } + + def __init__(self, name=None, description=None, metadata=None): + super(Body, self).__init__() + self.name = name + self.description = description + self.metadata = metadata + + +class BodyMetadata(Model): + """Metadata of the list. + + :param key_one: Optional key value pair to describe your list. + :type key_one: str + :param key_two: Optional key value pair to describe your list. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(BodyMetadata, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class BodyModel(Model): + """BodyModel. + + :param data_representation: Default value: "URL" . + :type data_representation: str + :param value: + :type value: str + """ + + _attribute_map = { + 'data_representation': {'key': 'DataRepresentation', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, data_representation="URL", value=None): + super(BodyModel, self).__init__() + self.data_representation = data_representation + self.value = value + + +class Candidate(Model): + """OCR candidate text. + + :param text: The text found. + :type text: str + :param confidence: The confidence level. + :type confidence: float + """ + + _attribute_map = { + 'text': {'key': 'Text', 'type': 'str'}, + 'confidence': {'key': 'Confidence', 'type': 'float'}, + } + + def __init__(self, text=None, confidence=None): + super(Candidate, self).__init__() + self.text = text + self.confidence = confidence + + +class Classification(Model): + """The classification details of the text. + + :param category1: + :type category1: + ~azure.cognitiveservices.vision.contentmoderator.models.Score + :param category2: + :type category2: + ~azure.cognitiveservices.vision.contentmoderator.models.Score + :param category3: + :type category3: + ~azure.cognitiveservices.vision.contentmoderator.models.Score + :param review_recommended: The review recommended flag. + :type review_recommended: bool + """ + + _attribute_map = { + 'category1': {'key': 'Category1', 'type': 'Score'}, + 'category2': {'key': 'Category2', 'type': 'Score'}, + 'category3': {'key': 'Category3', 'type': 'Score'}, + 'review_recommended': {'key': 'ReviewRecommended', 'type': 'bool'}, + } + + def __init__(self, category1=None, category2=None, category3=None, review_recommended=None): + super(Classification, self).__init__() + self.category1 = category1 + self.category2 = category2 + self.category3 = category3 + self.review_recommended = review_recommended + + +class Content(Model): + """Content. + + :param content_value: Content to evaluate for a job. + :type content_value: str + """ + + _validation = { + 'content_value': {'required': True}, + } + + _attribute_map = { + 'content_value': {'key': 'ContentValue', 'type': 'str'}, + } + + def __init__(self, content_value): + super(Content, self).__init__() + self.content_value = content_value + + +class CreateReviewBodyItem(Model): + """Schema items of the body. + + :param type: Type of the content. Possible values include: 'Image', 'Text' + :type type: str or + ~azure.cognitiveservices.vision.contentmoderator.models.enum + :param content: Content to review. + :type content: str + :param content_id: Content Identifier. + :type content_id: str + :param callback_endpoint: Optional CallbackEndpoint. + :type callback_endpoint: str + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateReviewBodyItemMetadataItem] + """ + + _validation = { + 'type': {'required': True}, + 'content': {'required': True}, + 'content_id': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'Type', 'type': 'str'}, + 'content': {'key': 'Content', 'type': 'str'}, + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': '[CreateReviewBodyItemMetadataItem]'}, + } + + def __init__(self, type, content, content_id, callback_endpoint=None, metadata=None): + super(CreateReviewBodyItem, self).__init__() + self.type = type + self.content = content + self.content_id = content_id + self.callback_endpoint = callback_endpoint + self.metadata = metadata + + +class CreateReviewBodyItemMetadataItem(Model): + """CreateReviewBodyItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateReviewBodyItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class CreateVideoReviewsBodyItem(Model): + """Schema items of the body. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param video_frames: Optional metadata details. + :type video_frames: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItem] + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemMetadataItem] + :ivar type: Type of the content. Default value: "Video" . + :vartype type: str + :param content: Video content url to review. + :type content: str + :param content_id: Content Identifier. + :type content_id: str + :param status: Status of the video(Complete,Unpublished,Pending). Possible + values include: 'Complete', 'Unpublished', 'Pending' + :type status: str or + ~azure.cognitiveservices.vision.contentmoderator.models.enum + :param timescale: Timescale of the video. + :type timescale: int + :param callback_endpoint: Optional CallbackEndpoint. + :type callback_endpoint: str + """ + + _validation = { + 'type': {'required': True, 'constant': True}, + 'content': {'required': True}, + 'content_id': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'video_frames': {'key': 'VideoFrames', 'type': '[CreateVideoReviewsBodyItemVideoFramesItem]'}, + 'metadata': {'key': 'Metadata', 'type': '[CreateVideoReviewsBodyItemMetadataItem]'}, + 'type': {'key': 'Type', 'type': 'str'}, + 'content': {'key': 'Content', 'type': 'str'}, + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'str'}, + 'timescale': {'key': 'Timescale', 'type': 'int'}, + 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, + } + + type = "Video" + + def __init__(self, content, content_id, status, video_frames=None, metadata=None, timescale=None, callback_endpoint=None): + super(CreateVideoReviewsBodyItem, self).__init__() + self.video_frames = video_frames + self.metadata = metadata + self.content = content + self.content_id = content_id + self.status = status + self.timescale = timescale + self.callback_endpoint = callback_endpoint + + +class CreateVideoReviewsBodyItemMetadataItem(Model): + """CreateVideoReviewsBodyItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateVideoReviewsBodyItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class CreateVideoReviewsBodyItemVideoFramesItem(Model): + """CreateVideoReviewsBodyItemVideoFramesItem. + + :param id: Id of the frame. + :type id: str + :param timestamp: Timestamp of the frame. + :type timestamp: int + :param frame_image: Frame image Url. + :type frame_image: str + :param reviewer_result_tags: + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem] + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItemMetadataItem] + """ + + _validation = { + 'id': {'required': True}, + 'timestamp': {'required': True}, + 'frame_image': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'str'}, + 'timestamp': {'key': 'Timestamp', 'type': 'int'}, + 'frame_image': {'key': 'FrameImage', 'type': 'str'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem]'}, + 'metadata': {'key': 'Metadata', 'type': '[CreateVideoReviewsBodyItemVideoFramesItemMetadataItem]'}, + } + + def __init__(self, id, timestamp, frame_image, reviewer_result_tags=None, metadata=None): + super(CreateVideoReviewsBodyItemVideoFramesItem, self).__init__() + self.id = id + self.timestamp = timestamp + self.frame_image = frame_image + self.reviewer_result_tags = reviewer_result_tags + self.metadata = metadata + + +class CreateVideoReviewsBodyItemVideoFramesItemMetadataItem(Model): + """CreateVideoReviewsBodyItemVideoFramesItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateVideoReviewsBodyItemVideoFramesItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem(Model): + """CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem, self).__init__() + self.key = key + self.value = value + + +class DetectedLanguage(Model): + """Detect language result. + + :param detected_language: The detected language. + :type detected_language: str + :param status: The detect language status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: The tracking id. + :type tracking_id: str + """ + + _attribute_map = { + 'detected_language': {'key': 'DetectedLanguage', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, detected_language=None, status=None, tracking_id=None): + super(DetectedLanguage, self).__init__() + self.detected_language = detected_language + self.status = status + self.tracking_id = tracking_id + + +class DetectedTerms(Model): + """Detected Terms details. + + :param index: Index(Location) of the detected profanity term in the input + text content. + :type index: int + :param original_index: Original Index(Location) of the detected profanity + term in the input text content. + :type original_index: int + :param list_id: Matched Terms list Id. + :type list_id: int + :param term: Detected profanity term. + :type term: str + """ + + _attribute_map = { + 'index': {'key': 'Index', 'type': 'int'}, + 'original_index': {'key': 'OriginalIndex', 'type': 'int'}, + 'list_id': {'key': 'ListId', 'type': 'int'}, + 'term': {'key': 'Term', 'type': 'str'}, + } + + def __init__(self, index=None, original_index=None, list_id=None, term=None): + super(DetectedTerms, self).__init__() + self.index = index + self.original_index = original_index + self.list_id = list_id + self.term = term + + +class Email(Model): + """Email Address details. + + :param detected: Detected Email Address from the input text content. + :type detected: str + :param sub_type: Subtype of the detected Email Address. + :type sub_type: str + :param text: Email Address in the input text content. + :type text: str + :param index: Index(Location) of the Email address in the input text + content. + :type index: int + """ + + _attribute_map = { + 'detected': {'key': 'Detected', 'type': 'str'}, + 'sub_type': {'key': 'SubType', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, detected=None, sub_type=None, text=None, index=None): + super(Email, self).__init__() + self.detected = detected + self.sub_type = sub_type + self.text = text + self.index = index + + +class Error(Model): + """Error body. + + :param code: + :type code: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'Code', 'type': 'str'}, + 'message': {'key': 'Message', 'type': 'str'}, + } + + def __init__(self, code=None, message=None): + super(Error, self).__init__() + self.code = code + self.message = message + + +class Evaluate(Model): + """Evaluate response object. + + :param cache_id: The cache id. + :type cache_id: str + :param result: Evaluate result. + :type result: bool + :param tracking_id: The tracking id. + :type tracking_id: str + :param adult_classification_score: The adult classification score. + :type adult_classification_score: float + :param is_image_adult_classified: Indicates if an image is classified as + adult. + :type is_image_adult_classified: bool + :param racy_classification_score: The racy classication score. + :type racy_classification_score: float + :param is_image_racy_classified: Indicates if the image is classified as + racy. + :type is_image_racy_classified: bool + :param advanced_info: The advanced info. + :type advanced_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + """ + + _attribute_map = { + 'cache_id': {'key': 'CacheID', 'type': 'str'}, + 'result': {'key': 'Result', 'type': 'bool'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'adult_classification_score': {'key': 'AdultClassificationScore', 'type': 'float'}, + 'is_image_adult_classified': {'key': 'IsImageAdultClassified', 'type': 'bool'}, + 'racy_classification_score': {'key': 'RacyClassificationScore', 'type': 'float'}, + 'is_image_racy_classified': {'key': 'IsImageRacyClassified', 'type': 'bool'}, + 'advanced_info': {'key': 'AdvancedInfo', 'type': '[KeyValuePair]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + } + + def __init__(self, cache_id=None, result=None, tracking_id=None, adult_classification_score=None, is_image_adult_classified=None, racy_classification_score=None, is_image_racy_classified=None, advanced_info=None, status=None): + super(Evaluate, self).__init__() + self.cache_id = cache_id + self.result = result + self.tracking_id = tracking_id + self.adult_classification_score = adult_classification_score + self.is_image_adult_classified = is_image_adult_classified + self.racy_classification_score = racy_classification_score + self.is_image_racy_classified = is_image_racy_classified + self.advanced_info = advanced_info + self.status = status + + +class Face(Model): + """Coordinates to the found face. + + :param bottom: The bottom coordinate. + :type bottom: int + :param left: The left coordinate. + :type left: int + :param right: The right coordinate. + :type right: int + :param top: The top coordinate. + :type top: int + """ + + _attribute_map = { + 'bottom': {'key': 'Bottom', 'type': 'int'}, + 'left': {'key': 'Left', 'type': 'int'}, + 'right': {'key': 'Right', 'type': 'int'}, + 'top': {'key': 'Top', 'type': 'int'}, + } + + def __init__(self, bottom=None, left=None, right=None, top=None): + super(Face, self).__init__() + self.bottom = bottom + self.left = left + self.right = right + self.top = top + + +class FoundFaces(Model): + """Request object the contains found faces. + + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: The tracking id. + :type tracking_id: str + :param cache_id: The cache id. + :type cache_id: str + :param result: True if result was found. + :type result: bool + :param count: Number of faces found. + :type count: int + :param advanced_info: The advanced info. + :type advanced_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param faces: The list of faces. + :type faces: + list[~azure.cognitiveservices.vision.contentmoderator.models.Face] + """ + + _attribute_map = { + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'cache_id': {'key': 'CacheId', 'type': 'str'}, + 'result': {'key': 'Result', 'type': 'bool'}, + 'count': {'key': 'Count', 'type': 'int'}, + 'advanced_info': {'key': 'AdvancedInfo', 'type': '[KeyValuePair]'}, + 'faces': {'key': 'Faces', 'type': '[Face]'}, + } + + def __init__(self, status=None, tracking_id=None, cache_id=None, result=None, count=None, advanced_info=None, faces=None): + super(FoundFaces, self).__init__() + self.status = status + self.tracking_id = tracking_id + self.cache_id = cache_id + self.result = result + self.count = count + self.advanced_info = advanced_info + self.faces = faces + + +class Frame(Model): + """Video frame property details. + + :param timestamp: Timestamp of the frame. + :type timestamp: str + :param frame_image: Frame image. + :type frame_image: str + :param metadata: Array of KeyValue. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param reviewer_result_tags: Reviewer result tags. + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.Tag] + """ + + _attribute_map = { + 'timestamp': {'key': 'Timestamp', 'type': 'str'}, + 'frame_image': {'key': 'FrameImage', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[Tag]'}, + } + + def __init__(self, timestamp=None, frame_image=None, metadata=None, reviewer_result_tags=None): + super(Frame, self).__init__() + self.timestamp = timestamp + self.frame_image = frame_image + self.metadata = metadata + self.reviewer_result_tags = reviewer_result_tags + + +class Frames(Model): + """The response for a Get Frames request. + + :param review_id: Id of the review. + :type review_id: str + :param video_frames: + :type video_frames: + list[~azure.cognitiveservices.vision.contentmoderator.models.Frame] + """ + + _attribute_map = { + 'review_id': {'key': 'ReviewId', 'type': 'str'}, + 'video_frames': {'key': 'VideoFrames', 'type': '[Frame]'}, + } + + def __init__(self, review_id=None, video_frames=None): + super(Frames, self).__init__() + self.review_id = review_id + self.video_frames = video_frames + + +class IPA(Model): + """IP Address details. + + :param sub_type: Subtype of the detected IP Address. + :type sub_type: str + :param text: Detected IP Address. + :type text: str + :param index: Index(Location) of the IP Address in the input text content. + :type index: int + """ + + _attribute_map = { + 'sub_type': {'key': 'SubType', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, sub_type=None, text=None, index=None): + super(IPA, self).__init__() + self.sub_type = sub_type + self.text = text + self.index = index + + +class Image(Model): + """Image Properties. + + :param content_id: Content Id. + :type content_id: str + :param additional_info: Advanced info list. + :type additional_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.ImageAdditionalInfoItem] + :param status: Status details. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'additional_info': {'key': 'AdditionalInfo', 'type': '[ImageAdditionalInfoItem]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, content_id=None, additional_info=None, status=None, tracking_id=None): + super(Image, self).__init__() + self.content_id = content_id + self.additional_info = additional_info + self.status = status + self.tracking_id = tracking_id + + +class ImageAdditionalInfoItem(Model): + """ImageAdditionalInfoItem. + + :param key: Key parameter. + :type key: str + :param value: Value parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key=None, value=None): + super(ImageAdditionalInfoItem, self).__init__() + self.key = key + self.value = value + + +class ImageIds(Model): + """Image Id properties. + + :param content_source: Source of the content. + :type content_source: str + :param content_ids: Id of the contents. + :type content_ids: list[int] + :param status: Get Image status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'content_source': {'key': 'ContentSource', 'type': 'str'}, + 'content_ids': {'key': 'ContentIds', 'type': '[int]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, content_source=None, content_ids=None, status=None, tracking_id=None): + super(ImageIds, self).__init__() + self.content_source = content_source + self.content_ids = content_ids + self.status = status + self.tracking_id = tracking_id + + +class ImageList(Model): + """Image List Properties. + + :param id: Image List Id. + :type id: int + :param name: Image List Name. + :type name: str + :param description: Description for image list. + :type description: str + :param metadata: Image List Metadata. + :type metadata: + ~azure.cognitiveservices.vision.contentmoderator.models.ImageListMetadata + """ + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'int'}, + 'name': {'key': 'Name', 'type': 'str'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': 'ImageListMetadata'}, + } + + def __init__(self, id=None, name=None, description=None, metadata=None): + super(ImageList, self).__init__() + self.id = id + self.name = name + self.description = description + self.metadata = metadata + + +class ImageListMetadata(Model): + """Image List Metadata. + + :param key_one: Optional Key value pair to describe your list. + :type key_one: str + :param key_two: Optional Key value pair to describe your list. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(ImageListMetadata, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class Job(Model): + """The Job object. + + :param id: The job id. + :type id: str + :param team_name: The team name associated with the job. + :type team_name: str + :param status: The status string (). + :type status: str + :param workflow_id: The Id of the workflow. + :type workflow_id: str + :param type: Type of the content. + :type type: str + :param call_back_endpoint: The callback endpoint. + :type call_back_endpoint: str + :param review_id: Review Id if one is created. + :type review_id: str + :param result_meta_data: Array of KeyValue pairs. + :type result_meta_data: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param job_execution_report: Job execution report- Array of KeyValue pairs + object. + :type job_execution_report: + list[~azure.cognitiveservices.vision.contentmoderator.models.JobExecutionReportDetails] + """ + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'str'}, + 'team_name': {'key': 'TeamName', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'str'}, + 'workflow_id': {'key': 'WorkflowId', 'type': 'str'}, + 'type': {'key': 'Type', 'type': 'str'}, + 'call_back_endpoint': {'key': 'CallBackEndpoint', 'type': 'str'}, + 'review_id': {'key': 'ReviewId', 'type': 'str'}, + 'result_meta_data': {'key': 'ResultMetaData', 'type': '[KeyValuePair]'}, + 'job_execution_report': {'key': 'JobExecutionReport', 'type': '[JobExecutionReportDetails]'}, + } + + def __init__(self, id=None, team_name=None, status=None, workflow_id=None, type=None, call_back_endpoint=None, review_id=None, result_meta_data=None, job_execution_report=None): + super(Job, self).__init__() + self.id = id + self.team_name = team_name + self.status = status + self.workflow_id = workflow_id + self.type = type + self.call_back_endpoint = call_back_endpoint + self.review_id = review_id + self.result_meta_data = result_meta_data + self.job_execution_report = job_execution_report + + +class JobExecutionReportDetails(Model): + """Job Execution Report Values. + + :param ts: Time details. + :type ts: str + :param msg: Message details. + :type msg: str + """ + + _attribute_map = { + 'ts': {'key': 'Ts', 'type': 'str'}, + 'msg': {'key': 'Msg', 'type': 'str'}, + } + + def __init__(self, ts=None, msg=None): + super(JobExecutionReportDetails, self).__init__() + self.ts = ts + self.msg = msg + + +class JobId(Model): + """JobId. + + :param job_id: Id of the created job. + :type job_id: str + """ + + _attribute_map = { + 'job_id': {'key': 'JobId', 'type': 'str'}, + } + + def __init__(self, job_id=None): + super(JobId, self).__init__() + self.job_id = job_id + + +class JobListResult(Model): + """The list of job ids. + + :param value: The job id. + :type value: list[str] + """ + + _attribute_map = { + 'value': {'key': 'Value', 'type': '[str]'}, + } + + def __init__(self, value=None): + super(JobListResult, self).__init__() + self.value = value + + +class KeyValuePair(Model): + """The key value pair object properties. + + :param key: The key parameter. + :type key: str + :param value: The value parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key=None, value=None): + super(KeyValuePair, self).__init__() + self.key = key + self.value = value + + +class Match(Model): + """The match details. + + :param score: Confidence score of the image match. + :type score: float + :param match_id: The match id. + :type match_id: int + :param source: The source. + :type source: str + :param tags: The tags for match details. + :type tags: list[int] + :param label: The label. + :type label: str + """ + + _attribute_map = { + 'score': {'key': 'Score', 'type': 'float'}, + 'match_id': {'key': 'MatchId', 'type': 'int'}, + 'source': {'key': 'Source', 'type': 'str'}, + 'tags': {'key': 'Tags', 'type': '[int]'}, + 'label': {'key': 'Label', 'type': 'str'}, + } + + def __init__(self, score=None, match_id=None, source=None, tags=None, label=None): + super(Match, self).__init__() + self.score = score + self.match_id = match_id + self.source = source + self.tags = tags + self.label = label + + +class MatchResponse(Model): + """The response for a Match request. + + :param tracking_id: The tracking id. + :type tracking_id: str + :param cache_id: The cache id. + :type cache_id: str + :param is_match: Indicates if there is a match. + :type is_match: bool + :param matches: The match details. + :type matches: + list[~azure.cognitiveservices.vision.contentmoderator.models.Match] + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + """ + + _attribute_map = { + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'cache_id': {'key': 'CacheID', 'type': 'str'}, + 'is_match': {'key': 'IsMatch', 'type': 'bool'}, + 'matches': {'key': 'Matches', 'type': '[Match]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + } + + def __init__(self, tracking_id=None, cache_id=None, is_match=None, matches=None, status=None): + super(MatchResponse, self).__init__() + self.tracking_id = tracking_id + self.cache_id = cache_id + self.is_match = is_match + self.matches = matches + self.status = status + + +class OCR(Model): + """Contains the text found in image for the language specified. + + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param metadata: Array of KeyValue. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param tracking_id: The tracking id. + :type tracking_id: str + :param cache_id: The cache id. + :type cache_id: str + :param language: The ISO 639-3 code. + :type language: str + :param text: The found text. + :type text: str + :param candidates: The list of candidate text. + :type candidates: + list[~azure.cognitiveservices.vision.contentmoderator.models.Candidate] + """ + + _attribute_map = { + 'status': {'key': 'Status', 'type': 'Status'}, + 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'cache_id': {'key': 'CacheId', 'type': 'str'}, + 'language': {'key': 'Language', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'candidates': {'key': 'Candidates', 'type': '[Candidate]'}, + } + + def __init__(self, status=None, metadata=None, tracking_id=None, cache_id=None, language=None, text=None, candidates=None): + super(OCR, self).__init__() + self.status = status + self.metadata = metadata + self.tracking_id = tracking_id + self.cache_id = cache_id + self.language = language + self.text = text + self.candidates = candidates + + +class PII(Model): + """Personal Identifier Information details. + + :param email: + :type email: + list[~azure.cognitiveservices.vision.contentmoderator.models.Email] + :param ipa: + :type ipa: + list[~azure.cognitiveservices.vision.contentmoderator.models.IPA] + :param phone: + :type phone: + list[~azure.cognitiveservices.vision.contentmoderator.models.Phone] + :param address: + :type address: + list[~azure.cognitiveservices.vision.contentmoderator.models.Address] + """ + + _attribute_map = { + 'email': {'key': 'Email', 'type': '[Email]'}, + 'ipa': {'key': 'IPA', 'type': '[IPA]'}, + 'phone': {'key': 'Phone', 'type': '[Phone]'}, + 'address': {'key': 'Address', 'type': '[Address]'}, + } + + def __init__(self, email=None, ipa=None, phone=None, address=None): + super(PII, self).__init__() + self.email = email + self.ipa = ipa + self.phone = phone + self.address = address + + +class Phone(Model): + """Phone Property details. + + :param country_code: CountryCode of the detected Phone number. + :type country_code: str + :param text: Detected Phone number. + :type text: str + :param index: Index(Location) of the Phone number in the input text + content. + :type index: int + """ + + _attribute_map = { + 'country_code': {'key': 'CountryCode', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, country_code=None, text=None, index=None): + super(Phone, self).__init__() + self.country_code = country_code + self.text = text + self.index = index + + +class RefreshIndex(Model): + """Refresh Index Response. + + :param content_source_id: Content source Id. + :type content_source_id: str + :param is_update_success: Update success status. + :type is_update_success: bool + :param advanced_info: Advanced info list. + :type advanced_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.RefreshIndexAdvancedInfoItem] + :param status: Refresh index status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'content_source_id': {'key': 'ContentSourceId', 'type': 'str'}, + 'is_update_success': {'key': 'IsUpdateSuccess', 'type': 'bool'}, + 'advanced_info': {'key': 'AdvancedInfo', 'type': '[RefreshIndexAdvancedInfoItem]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, content_source_id=None, is_update_success=None, advanced_info=None, status=None, tracking_id=None): + super(RefreshIndex, self).__init__() + self.content_source_id = content_source_id + self.is_update_success = is_update_success + self.advanced_info = advanced_info + self.status = status + self.tracking_id = tracking_id + + +class RefreshIndexAdvancedInfoItem(Model): + """RefreshIndexAdvancedInfoItem. + + :param key_one: Key parameter to describe advanced info. + :type key_one: str + :param key_two: Key parameter to describe advanced info. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(RefreshIndexAdvancedInfoItem, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class Review(Model): + """The Review object. + + :param review_id: Id of the review. + :type review_id: str + :param sub_team: Name of the subteam. + :type sub_team: str + :param status: The status string (). + :type status: str + :param reviewer_result_tags: Array of KeyValue with Reviewer set Tags. + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param created_by: The reviewer name. + :type created_by: str + :param metadata: Array of KeyValue. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param type: The type of content. + :type type: str + :param content: The content value. + :type content: str + :param content_id: Id of the content. + :type content_id: str + :param callback_endpoint: The callback endpoint. + :type callback_endpoint: str + """ + + _attribute_map = { + 'review_id': {'key': 'ReviewId', 'type': 'str'}, + 'sub_team': {'key': 'SubTeam', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'str'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[KeyValuePair]'}, + 'created_by': {'key': 'CreatedBy', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, + 'type': {'key': 'Type', 'type': 'str'}, + 'content': {'key': 'Content', 'type': 'str'}, + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, + } + + def __init__(self, review_id=None, sub_team=None, status=None, reviewer_result_tags=None, created_by=None, metadata=None, type=None, content=None, content_id=None, callback_endpoint=None): + super(Review, self).__init__() + self.review_id = review_id + self.sub_team = sub_team + self.status = status + self.reviewer_result_tags = reviewer_result_tags + self.created_by = created_by + self.metadata = metadata + self.type = type + self.content = content + self.content_id = content_id + self.callback_endpoint = callback_endpoint + + +class Score(Model): + """The classification score details of the text. Click here for more + details on category classification. + + :param score: The category score. + :type score: float + """ + + _attribute_map = { + 'score': {'key': 'Score', 'type': 'float'}, + } + + def __init__(self, score=None): + super(Score, self).__init__() + self.score = score + + +class Screen(Model): + """The response for a Screen text request. + + :param original_text: The original text. + :type original_text: str + :param normalized_text: The normalized text. + :type normalized_text: str + :param auto_corrected_text: The autocorrected text + :type auto_corrected_text: str + :param misrepresentation: The misrepresentation text. + :type misrepresentation: list[str] + :param classification: The classification details of the text. + :type classification: + ~azure.cognitiveservices.vision.contentmoderator.models.Classification + :param status: The evaluate status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param pii: Personal Identifier Information details. + :type pii: ~azure.cognitiveservices.vision.contentmoderator.models.PII + :param language: Language of the input text content. + :type language: str + :param terms: + :type terms: + list[~azure.cognitiveservices.vision.contentmoderator.models.DetectedTerms] + :param tracking_id: Unique Content Moderator transaction Id. + :type tracking_id: str + """ + + _attribute_map = { + 'original_text': {'key': 'OriginalText', 'type': 'str'}, + 'normalized_text': {'key': 'NormalizedText', 'type': 'str'}, + 'auto_corrected_text': {'key': 'AutoCorrectedText', 'type': 'str'}, + 'misrepresentation': {'key': 'Misrepresentation', 'type': '[str]'}, + 'classification': {'key': 'Classification', 'type': 'Classification'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'pii': {'key': 'PII', 'type': 'PII'}, + 'language': {'key': 'Language', 'type': 'str'}, + 'terms': {'key': 'Terms', 'type': '[DetectedTerms]'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, original_text=None, normalized_text=None, auto_corrected_text=None, misrepresentation=None, classification=None, status=None, pii=None, language=None, terms=None, tracking_id=None): + super(Screen, self).__init__() + self.original_text = original_text + self.normalized_text = normalized_text + self.auto_corrected_text = auto_corrected_text + self.misrepresentation = misrepresentation + self.classification = classification + self.status = status + self.pii = pii + self.language = language + self.terms = terms + self.tracking_id = tracking_id + + +class Status(Model): + """Status properties. + + :param code: Status code. + :type code: int + :param description: Status description. + :type description: str + :param exception: Exception status. + :type exception: str + """ + + _attribute_map = { + 'code': {'key': 'Code', 'type': 'int'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'exception': {'key': 'Exception', 'type': 'str'}, + } + + def __init__(self, code=None, description=None, exception=None): + super(Status, self).__init__() + self.code = code + self.description = description + self.exception = exception + + +class Tag(Model): + """Tag details. + + :param key: The key parameter. + :type key: str + :param value: The value parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key=None, value=None): + super(Tag, self).__init__() + self.key = key + self.value = value + + +class TermList(Model): + """Term List Properties. + + :param id: Term list Id. + :type id: int + :param name: Term list name. + :type name: str + :param description: Description for term list. + :type description: str + :param metadata: Term list metadata. + :type metadata: + ~azure.cognitiveservices.vision.contentmoderator.models.TermListMetadata + """ + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'int'}, + 'name': {'key': 'Name', 'type': 'str'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': 'TermListMetadata'}, + } + + def __init__(self, id=None, name=None, description=None, metadata=None): + super(TermList, self).__init__() + self.id = id + self.name = name + self.description = description + self.metadata = metadata + + +class TermListMetadata(Model): + """Term list metadata. + + :param key_one: Optional Key value pair to describe your list. + :type key_one: str + :param key_two: Optional Key value pair to describe your list. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(TermListMetadata, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class Terms(Model): + """Terms properties. + + :param data: Term data details. + :type data: + ~azure.cognitiveservices.vision.contentmoderator.models.TermsData + :param paging: Paging details. + :type paging: + ~azure.cognitiveservices.vision.contentmoderator.models.TermsPaging + """ + + _attribute_map = { + 'data': {'key': 'Data', 'type': 'TermsData'}, + 'paging': {'key': 'Paging', 'type': 'TermsPaging'}, + } + + def __init__(self, data=None, paging=None): + super(Terms, self).__init__() + self.data = data + self.paging = paging + + +class TermsData(Model): + """All term Id response properties. + + :param language: Language of the terms. + :type language: str + :param terms: List of terms. + :type terms: + list[~azure.cognitiveservices.vision.contentmoderator.models.TermsInList] + :param status: Term Status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'language': {'key': 'Language', 'type': 'str'}, + 'terms': {'key': 'Terms', 'type': '[TermsInList]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, language=None, terms=None, status=None, tracking_id=None): + super(TermsData, self).__init__() + self.language = language + self.terms = terms + self.status = status + self.tracking_id = tracking_id + + +class TermsInList(Model): + """Terms in list Id passed. + + :param term: Added term details. + :type term: str + """ + + _attribute_map = { + 'term': {'key': 'Term', 'type': 'str'}, + } + + def __init__(self, term=None): + super(TermsInList, self).__init__() + self.term = term + + +class TermsPaging(Model): + """Paging details. + + :param total: Total details. + :type total: int + :param limit: Limit details. + :type limit: int + :param offset: Offset details. + :type offset: int + :param returned: Returned text details. + :type returned: int + """ + + _attribute_map = { + 'total': {'key': 'Total', 'type': 'int'}, + 'limit': {'key': 'Limit', 'type': 'int'}, + 'offset': {'key': 'Offset', 'type': 'int'}, + 'returned': {'key': 'Returned', 'type': 'int'}, + } + + def __init__(self, total=None, limit=None, offset=None, returned=None): + super(TermsPaging, self).__init__() + self.total = total + self.limit = limit + self.offset = offset + self.returned = returned + + +class TranscriptModerationBodyItem(Model): + """Schema items of the body. + + :param timestamp: Timestamp of the image. + :type timestamp: str + :param terms: Optional metadata details. + :type terms: + list[~azure.cognitiveservices.vision.contentmoderator.models.TranscriptModerationBodyItemTermsItem] + """ + + _validation = { + 'timestamp': {'required': True}, + 'terms': {'required': True}, + } + + _attribute_map = { + 'timestamp': {'key': 'Timestamp', 'type': 'str'}, + 'terms': {'key': 'Terms', 'type': '[TranscriptModerationBodyItemTermsItem]'}, + } + + def __init__(self, timestamp, terms): + super(TranscriptModerationBodyItem, self).__init__() + self.timestamp = timestamp + self.terms = terms + + +class TranscriptModerationBodyItemTermsItem(Model): + """TranscriptModerationBodyItemTermsItem. + + :param index: Index of the word + :type index: int + :param term: Detected word. + :type term: str + """ + + _validation = { + 'index': {'required': True}, + 'term': {'required': True}, + } + + _attribute_map = { + 'index': {'key': 'Index', 'type': 'int'}, + 'term': {'key': 'Term', 'type': 'str'}, + } + + def __init__(self, index, term): + super(TranscriptModerationBodyItemTermsItem, self).__init__() + self.index = index + self.term = term + + +class VideoFrameBodyItem(Model): + """Schema items of the body. + + :param timestamp: Timestamp of the frame. + :type timestamp: str + :param frame_image: Content to review. + :type frame_image: str + :param reviewer_result_tags: + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.VideoFrameBodyItemReviewerResultTagsItem] + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.VideoFrameBodyItemMetadataItem] + """ + + _validation = { + 'timestamp': {'required': True}, + 'frame_image': {'required': True}, + } + + _attribute_map = { + 'timestamp': {'key': 'Timestamp', 'type': 'str'}, + 'frame_image': {'key': 'FrameImage', 'type': 'str'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[VideoFrameBodyItemReviewerResultTagsItem]'}, + 'metadata': {'key': 'Metadata', 'type': '[VideoFrameBodyItemMetadataItem]'}, + } + + def __init__(self, timestamp, frame_image, reviewer_result_tags=None, metadata=None): + super(VideoFrameBodyItem, self).__init__() + self.timestamp = timestamp + self.frame_image = frame_image + self.reviewer_result_tags = reviewer_result_tags + self.metadata = metadata + + +class VideoFrameBodyItemMetadataItem(Model): + """VideoFrameBodyItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(VideoFrameBodyItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class VideoFrameBodyItemReviewerResultTagsItem(Model): + """VideoFrameBodyItemReviewerResultTagsItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(VideoFrameBodyItemReviewerResultTagsItem, self).__init__() + self.key = key + self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models_py3.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models_py3.py new file mode 100644 index 000000000000..34182d72fdb9 --- /dev/null +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_models_py3.py @@ -0,0 +1,1661 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class APIError(Model): + """Error information returned by the API. + + :param error: + :type error: ~azure.cognitiveservices.vision.contentmoderator.models.Error + """ + + _attribute_map = { + 'error': {'key': 'Error', 'type': 'Error'}, + } + + def __init__(self, error=None): + super(APIError, self).__init__() + self.error = error + + +class APIErrorException(HttpOperationError): + """Server responsed with exception of type: 'APIError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(APIErrorException, self).__init__(deserialize, response, 'APIError', *args) + + +class Address(Model): + """Address details. + + :param text: Detected Address. + :type text: str + :param index: Index(Location) of the Address in the input text content. + :type index: int + """ + + _attribute_map = { + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, text=None, index=None): + super(Address, self).__init__() + self.text = text + self.index = index + + +class Body(Model): + """Body. + + :param name: Name of the list. + :type name: str + :param description: Description of the list. + :type description: str + :param metadata: Metadata of the list. + :type metadata: + ~azure.cognitiveservices.vision.contentmoderator.models.BodyMetadata + """ + + _attribute_map = { + 'name': {'key': 'Name', 'type': 'str'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': 'BodyMetadata'}, + } + + def __init__(self, name=None, description=None, metadata=None): + super(Body, self).__init__() + self.name = name + self.description = description + self.metadata = metadata + + +class BodyMetadata(Model): + """Metadata of the list. + + :param key_one: Optional key value pair to describe your list. + :type key_one: str + :param key_two: Optional key value pair to describe your list. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(BodyMetadata, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class BodyModel(Model): + """BodyModel. + + :param data_representation: Default value: "URL" . + :type data_representation: str + :param value: + :type value: str + """ + + _attribute_map = { + 'data_representation': {'key': 'DataRepresentation', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, data_representation="URL", value=None): + super(BodyModel, self).__init__() + self.data_representation = data_representation + self.value = value + + +class Candidate(Model): + """OCR candidate text. + + :param text: The text found. + :type text: str + :param confidence: The confidence level. + :type confidence: float + """ + + _attribute_map = { + 'text': {'key': 'Text', 'type': 'str'}, + 'confidence': {'key': 'Confidence', 'type': 'float'}, + } + + def __init__(self, text=None, confidence=None): + super(Candidate, self).__init__() + self.text = text + self.confidence = confidence + + +class Classification(Model): + """The classification details of the text. + + :param category1: + :type category1: + ~azure.cognitiveservices.vision.contentmoderator.models.Score + :param category2: + :type category2: + ~azure.cognitiveservices.vision.contentmoderator.models.Score + :param category3: + :type category3: + ~azure.cognitiveservices.vision.contentmoderator.models.Score + :param review_recommended: The review recommended flag. + :type review_recommended: bool + """ + + _attribute_map = { + 'category1': {'key': 'Category1', 'type': 'Score'}, + 'category2': {'key': 'Category2', 'type': 'Score'}, + 'category3': {'key': 'Category3', 'type': 'Score'}, + 'review_recommended': {'key': 'ReviewRecommended', 'type': 'bool'}, + } + + def __init__(self, category1=None, category2=None, category3=None, review_recommended=None): + super(Classification, self).__init__() + self.category1 = category1 + self.category2 = category2 + self.category3 = category3 + self.review_recommended = review_recommended + + +class Content(Model): + """Content. + + :param content_value: Content to evaluate for a job. + :type content_value: str + """ + + _validation = { + 'content_value': {'required': True}, + } + + _attribute_map = { + 'content_value': {'key': 'ContentValue', 'type': 'str'}, + } + + def __init__(self, content_value): + super(Content, self).__init__() + self.content_value = content_value + + +class CreateReviewBodyItem(Model): + """Schema items of the body. + + :param type: Type of the content. Possible values include: 'Image', 'Text' + :type type: str or + ~azure.cognitiveservices.vision.contentmoderator.models.enum + :param content: Content to review. + :type content: str + :param content_id: Content Identifier. + :type content_id: str + :param callback_endpoint: Optional CallbackEndpoint. + :type callback_endpoint: str + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateReviewBodyItemMetadataItem] + """ + + _validation = { + 'type': {'required': True}, + 'content': {'required': True}, + 'content_id': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'Type', 'type': 'str'}, + 'content': {'key': 'Content', 'type': 'str'}, + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': '[CreateReviewBodyItemMetadataItem]'}, + } + + def __init__(self, type, content, content_id, callback_endpoint=None, metadata=None): + super(CreateReviewBodyItem, self).__init__() + self.type = type + self.content = content + self.content_id = content_id + self.callback_endpoint = callback_endpoint + self.metadata = metadata + + +class CreateReviewBodyItemMetadataItem(Model): + """CreateReviewBodyItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateReviewBodyItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class CreateVideoReviewsBodyItem(Model): + """Schema items of the body. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param video_frames: Optional metadata details. + :type video_frames: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItem] + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemMetadataItem] + :ivar type: Type of the content. Default value: "Video" . + :vartype type: str + :param content: Video content url to review. + :type content: str + :param content_id: Content Identifier. + :type content_id: str + :param status: Status of the video(Complete,Unpublished,Pending). Possible + values include: 'Complete', 'Unpublished', 'Pending' + :type status: str or + ~azure.cognitiveservices.vision.contentmoderator.models.enum + :param timescale: Timescale of the video. + :type timescale: int + :param callback_endpoint: Optional CallbackEndpoint. + :type callback_endpoint: str + """ + + _validation = { + 'type': {'required': True, 'constant': True}, + 'content': {'required': True}, + 'content_id': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'video_frames': {'key': 'VideoFrames', 'type': '[CreateVideoReviewsBodyItemVideoFramesItem]'}, + 'metadata': {'key': 'Metadata', 'type': '[CreateVideoReviewsBodyItemMetadataItem]'}, + 'type': {'key': 'Type', 'type': 'str'}, + 'content': {'key': 'Content', 'type': 'str'}, + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'str'}, + 'timescale': {'key': 'Timescale', 'type': 'int'}, + 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, + } + + type = "Video" + + def __init__(self, content, content_id, status, video_frames=None, metadata=None, timescale=None, callback_endpoint=None): + super(CreateVideoReviewsBodyItem, self).__init__() + self.video_frames = video_frames + self.metadata = metadata + self.content = content + self.content_id = content_id + self.status = status + self.timescale = timescale + self.callback_endpoint = callback_endpoint + + +class CreateVideoReviewsBodyItemMetadataItem(Model): + """CreateVideoReviewsBodyItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateVideoReviewsBodyItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class CreateVideoReviewsBodyItemVideoFramesItem(Model): + """CreateVideoReviewsBodyItemVideoFramesItem. + + :param id: Id of the frame. + :type id: str + :param timestamp: Timestamp of the frame. + :type timestamp: int + :param frame_image: Frame image Url. + :type frame_image: str + :param reviewer_result_tags: + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem] + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItemMetadataItem] + """ + + _validation = { + 'id': {'required': True}, + 'timestamp': {'required': True}, + 'frame_image': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'str'}, + 'timestamp': {'key': 'Timestamp', 'type': 'int'}, + 'frame_image': {'key': 'FrameImage', 'type': 'str'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem]'}, + 'metadata': {'key': 'Metadata', 'type': '[CreateVideoReviewsBodyItemVideoFramesItemMetadataItem]'}, + } + + def __init__(self, id, timestamp, frame_image, reviewer_result_tags=None, metadata=None): + super(CreateVideoReviewsBodyItemVideoFramesItem, self).__init__() + self.id = id + self.timestamp = timestamp + self.frame_image = frame_image + self.reviewer_result_tags = reviewer_result_tags + self.metadata = metadata + + +class CreateVideoReviewsBodyItemVideoFramesItemMetadataItem(Model): + """CreateVideoReviewsBodyItemVideoFramesItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateVideoReviewsBodyItemVideoFramesItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem(Model): + """CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem, self).__init__() + self.key = key + self.value = value + + +class DetectedLanguage(Model): + """Detect language result. + + :param detected_language: The detected language. + :type detected_language: str + :param status: The detect language status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: The tracking id. + :type tracking_id: str + """ + + _attribute_map = { + 'detected_language': {'key': 'DetectedLanguage', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, detected_language=None, status=None, tracking_id=None): + super(DetectedLanguage, self).__init__() + self.detected_language = detected_language + self.status = status + self.tracking_id = tracking_id + + +class DetectedTerms(Model): + """Detected Terms details. + + :param index: Index(Location) of the detected profanity term in the input + text content. + :type index: int + :param original_index: Original Index(Location) of the detected profanity + term in the input text content. + :type original_index: int + :param list_id: Matched Terms list Id. + :type list_id: int + :param term: Detected profanity term. + :type term: str + """ + + _attribute_map = { + 'index': {'key': 'Index', 'type': 'int'}, + 'original_index': {'key': 'OriginalIndex', 'type': 'int'}, + 'list_id': {'key': 'ListId', 'type': 'int'}, + 'term': {'key': 'Term', 'type': 'str'}, + } + + def __init__(self, index=None, original_index=None, list_id=None, term=None): + super(DetectedTerms, self).__init__() + self.index = index + self.original_index = original_index + self.list_id = list_id + self.term = term + + +class Email(Model): + """Email Address details. + + :param detected: Detected Email Address from the input text content. + :type detected: str + :param sub_type: Subtype of the detected Email Address. + :type sub_type: str + :param text: Email Address in the input text content. + :type text: str + :param index: Index(Location) of the Email address in the input text + content. + :type index: int + """ + + _attribute_map = { + 'detected': {'key': 'Detected', 'type': 'str'}, + 'sub_type': {'key': 'SubType', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, detected=None, sub_type=None, text=None, index=None): + super(Email, self).__init__() + self.detected = detected + self.sub_type = sub_type + self.text = text + self.index = index + + +class Error(Model): + """Error body. + + :param code: + :type code: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'Code', 'type': 'str'}, + 'message': {'key': 'Message', 'type': 'str'}, + } + + def __init__(self, code=None, message=None): + super(Error, self).__init__() + self.code = code + self.message = message + + +class Evaluate(Model): + """Evaluate response object. + + :param cache_id: The cache id. + :type cache_id: str + :param result: Evaluate result. + :type result: bool + :param tracking_id: The tracking id. + :type tracking_id: str + :param adult_classification_score: The adult classification score. + :type adult_classification_score: float + :param is_image_adult_classified: Indicates if an image is classified as + adult. + :type is_image_adult_classified: bool + :param racy_classification_score: The racy classication score. + :type racy_classification_score: float + :param is_image_racy_classified: Indicates if the image is classified as + racy. + :type is_image_racy_classified: bool + :param advanced_info: The advanced info. + :type advanced_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + """ + + _attribute_map = { + 'cache_id': {'key': 'CacheID', 'type': 'str'}, + 'result': {'key': 'Result', 'type': 'bool'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'adult_classification_score': {'key': 'AdultClassificationScore', 'type': 'float'}, + 'is_image_adult_classified': {'key': 'IsImageAdultClassified', 'type': 'bool'}, + 'racy_classification_score': {'key': 'RacyClassificationScore', 'type': 'float'}, + 'is_image_racy_classified': {'key': 'IsImageRacyClassified', 'type': 'bool'}, + 'advanced_info': {'key': 'AdvancedInfo', 'type': '[KeyValuePair]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + } + + def __init__(self, cache_id=None, result=None, tracking_id=None, adult_classification_score=None, is_image_adult_classified=None, racy_classification_score=None, is_image_racy_classified=None, advanced_info=None, status=None): + super(Evaluate, self).__init__() + self.cache_id = cache_id + self.result = result + self.tracking_id = tracking_id + self.adult_classification_score = adult_classification_score + self.is_image_adult_classified = is_image_adult_classified + self.racy_classification_score = racy_classification_score + self.is_image_racy_classified = is_image_racy_classified + self.advanced_info = advanced_info + self.status = status + + +class Face(Model): + """Coordinates to the found face. + + :param bottom: The bottom coordinate. + :type bottom: int + :param left: The left coordinate. + :type left: int + :param right: The right coordinate. + :type right: int + :param top: The top coordinate. + :type top: int + """ + + _attribute_map = { + 'bottom': {'key': 'Bottom', 'type': 'int'}, + 'left': {'key': 'Left', 'type': 'int'}, + 'right': {'key': 'Right', 'type': 'int'}, + 'top': {'key': 'Top', 'type': 'int'}, + } + + def __init__(self, bottom=None, left=None, right=None, top=None): + super(Face, self).__init__() + self.bottom = bottom + self.left = left + self.right = right + self.top = top + + +class FoundFaces(Model): + """Request object the contains found faces. + + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: The tracking id. + :type tracking_id: str + :param cache_id: The cache id. + :type cache_id: str + :param result: True if result was found. + :type result: bool + :param count: Number of faces found. + :type count: int + :param advanced_info: The advanced info. + :type advanced_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param faces: The list of faces. + :type faces: + list[~azure.cognitiveservices.vision.contentmoderator.models.Face] + """ + + _attribute_map = { + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'cache_id': {'key': 'CacheId', 'type': 'str'}, + 'result': {'key': 'Result', 'type': 'bool'}, + 'count': {'key': 'Count', 'type': 'int'}, + 'advanced_info': {'key': 'AdvancedInfo', 'type': '[KeyValuePair]'}, + 'faces': {'key': 'Faces', 'type': '[Face]'}, + } + + def __init__(self, status=None, tracking_id=None, cache_id=None, result=None, count=None, advanced_info=None, faces=None): + super(FoundFaces, self).__init__() + self.status = status + self.tracking_id = tracking_id + self.cache_id = cache_id + self.result = result + self.count = count + self.advanced_info = advanced_info + self.faces = faces + + +class Frame(Model): + """Video frame property details. + + :param timestamp: Timestamp of the frame. + :type timestamp: str + :param frame_image: Frame image. + :type frame_image: str + :param metadata: Array of KeyValue. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param reviewer_result_tags: Reviewer result tags. + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.Tag] + """ + + _attribute_map = { + 'timestamp': {'key': 'Timestamp', 'type': 'str'}, + 'frame_image': {'key': 'FrameImage', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[Tag]'}, + } + + def __init__(self, timestamp=None, frame_image=None, metadata=None, reviewer_result_tags=None): + super(Frame, self).__init__() + self.timestamp = timestamp + self.frame_image = frame_image + self.metadata = metadata + self.reviewer_result_tags = reviewer_result_tags + + +class Frames(Model): + """The response for a Get Frames request. + + :param review_id: Id of the review. + :type review_id: str + :param video_frames: + :type video_frames: + list[~azure.cognitiveservices.vision.contentmoderator.models.Frame] + """ + + _attribute_map = { + 'review_id': {'key': 'ReviewId', 'type': 'str'}, + 'video_frames': {'key': 'VideoFrames', 'type': '[Frame]'}, + } + + def __init__(self, review_id=None, video_frames=None): + super(Frames, self).__init__() + self.review_id = review_id + self.video_frames = video_frames + + +class IPA(Model): + """IP Address details. + + :param sub_type: Subtype of the detected IP Address. + :type sub_type: str + :param text: Detected IP Address. + :type text: str + :param index: Index(Location) of the IP Address in the input text content. + :type index: int + """ + + _attribute_map = { + 'sub_type': {'key': 'SubType', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, sub_type=None, text=None, index=None): + super(IPA, self).__init__() + self.sub_type = sub_type + self.text = text + self.index = index + + +class Image(Model): + """Image Properties. + + :param content_id: Content Id. + :type content_id: str + :param additional_info: Advanced info list. + :type additional_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.ImageAdditionalInfoItem] + :param status: Status details. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'additional_info': {'key': 'AdditionalInfo', 'type': '[ImageAdditionalInfoItem]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, content_id=None, additional_info=None, status=None, tracking_id=None): + super(Image, self).__init__() + self.content_id = content_id + self.additional_info = additional_info + self.status = status + self.tracking_id = tracking_id + + +class ImageAdditionalInfoItem(Model): + """ImageAdditionalInfoItem. + + :param key: Key parameter. + :type key: str + :param value: Value parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key=None, value=None): + super(ImageAdditionalInfoItem, self).__init__() + self.key = key + self.value = value + + +class ImageIds(Model): + """Image Id properties. + + :param content_source: Source of the content. + :type content_source: str + :param content_ids: Id of the contents. + :type content_ids: list[int] + :param status: Get Image status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'content_source': {'key': 'ContentSource', 'type': 'str'}, + 'content_ids': {'key': 'ContentIds', 'type': '[int]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, content_source=None, content_ids=None, status=None, tracking_id=None): + super(ImageIds, self).__init__() + self.content_source = content_source + self.content_ids = content_ids + self.status = status + self.tracking_id = tracking_id + + +class ImageList(Model): + """Image List Properties. + + :param id: Image List Id. + :type id: int + :param name: Image List Name. + :type name: str + :param description: Description for image list. + :type description: str + :param metadata: Image List Metadata. + :type metadata: + ~azure.cognitiveservices.vision.contentmoderator.models.ImageListMetadata + """ + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'int'}, + 'name': {'key': 'Name', 'type': 'str'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': 'ImageListMetadata'}, + } + + def __init__(self, id=None, name=None, description=None, metadata=None): + super(ImageList, self).__init__() + self.id = id + self.name = name + self.description = description + self.metadata = metadata + + +class ImageListMetadata(Model): + """Image List Metadata. + + :param key_one: Optional Key value pair to describe your list. + :type key_one: str + :param key_two: Optional Key value pair to describe your list. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(ImageListMetadata, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class Job(Model): + """The Job object. + + :param id: The job id. + :type id: str + :param team_name: The team name associated with the job. + :type team_name: str + :param status: The status string (). + :type status: str + :param workflow_id: The Id of the workflow. + :type workflow_id: str + :param type: Type of the content. + :type type: str + :param call_back_endpoint: The callback endpoint. + :type call_back_endpoint: str + :param review_id: Review Id if one is created. + :type review_id: str + :param result_meta_data: Array of KeyValue pairs. + :type result_meta_data: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param job_execution_report: Job execution report- Array of KeyValue pairs + object. + :type job_execution_report: + list[~azure.cognitiveservices.vision.contentmoderator.models.JobExecutionReportDetails] + """ + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'str'}, + 'team_name': {'key': 'TeamName', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'str'}, + 'workflow_id': {'key': 'WorkflowId', 'type': 'str'}, + 'type': {'key': 'Type', 'type': 'str'}, + 'call_back_endpoint': {'key': 'CallBackEndpoint', 'type': 'str'}, + 'review_id': {'key': 'ReviewId', 'type': 'str'}, + 'result_meta_data': {'key': 'ResultMetaData', 'type': '[KeyValuePair]'}, + 'job_execution_report': {'key': 'JobExecutionReport', 'type': '[JobExecutionReportDetails]'}, + } + + def __init__(self, id=None, team_name=None, status=None, workflow_id=None, type=None, call_back_endpoint=None, review_id=None, result_meta_data=None, job_execution_report=None): + super(Job, self).__init__() + self.id = id + self.team_name = team_name + self.status = status + self.workflow_id = workflow_id + self.type = type + self.call_back_endpoint = call_back_endpoint + self.review_id = review_id + self.result_meta_data = result_meta_data + self.job_execution_report = job_execution_report + + +class JobExecutionReportDetails(Model): + """Job Execution Report Values. + + :param ts: Time details. + :type ts: str + :param msg: Message details. + :type msg: str + """ + + _attribute_map = { + 'ts': {'key': 'Ts', 'type': 'str'}, + 'msg': {'key': 'Msg', 'type': 'str'}, + } + + def __init__(self, ts=None, msg=None): + super(JobExecutionReportDetails, self).__init__() + self.ts = ts + self.msg = msg + + +class JobId(Model): + """JobId. + + :param job_id: Id of the created job. + :type job_id: str + """ + + _attribute_map = { + 'job_id': {'key': 'JobId', 'type': 'str'}, + } + + def __init__(self, job_id=None): + super(JobId, self).__init__() + self.job_id = job_id + + +class JobListResult(Model): + """The list of job ids. + + :param value: The job id. + :type value: list[str] + """ + + _attribute_map = { + 'value': {'key': 'Value', 'type': '[str]'}, + } + + def __init__(self, value=None): + super(JobListResult, self).__init__() + self.value = value + + +class KeyValuePair(Model): + """The key value pair object properties. + + :param key: The key parameter. + :type key: str + :param value: The value parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key=None, value=None): + super(KeyValuePair, self).__init__() + self.key = key + self.value = value + + +class Match(Model): + """The match details. + + :param score: Confidence score of the image match. + :type score: float + :param match_id: The match id. + :type match_id: int + :param source: The source. + :type source: str + :param tags: The tags for match details. + :type tags: list[int] + :param label: The label. + :type label: str + """ + + _attribute_map = { + 'score': {'key': 'Score', 'type': 'float'}, + 'match_id': {'key': 'MatchId', 'type': 'int'}, + 'source': {'key': 'Source', 'type': 'str'}, + 'tags': {'key': 'Tags', 'type': '[int]'}, + 'label': {'key': 'Label', 'type': 'str'}, + } + + def __init__(self, score=None, match_id=None, source=None, tags=None, label=None): + super(Match, self).__init__() + self.score = score + self.match_id = match_id + self.source = source + self.tags = tags + self.label = label + + +class MatchResponse(Model): + """The response for a Match request. + + :param tracking_id: The tracking id. + :type tracking_id: str + :param cache_id: The cache id. + :type cache_id: str + :param is_match: Indicates if there is a match. + :type is_match: bool + :param matches: The match details. + :type matches: + list[~azure.cognitiveservices.vision.contentmoderator.models.Match] + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + """ + + _attribute_map = { + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'cache_id': {'key': 'CacheID', 'type': 'str'}, + 'is_match': {'key': 'IsMatch', 'type': 'bool'}, + 'matches': {'key': 'Matches', 'type': '[Match]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + } + + def __init__(self, tracking_id=None, cache_id=None, is_match=None, matches=None, status=None): + super(MatchResponse, self).__init__() + self.tracking_id = tracking_id + self.cache_id = cache_id + self.is_match = is_match + self.matches = matches + self.status = status + + +class OCR(Model): + """Contains the text found in image for the language specified. + + :param status: The evaluate status + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param metadata: Array of KeyValue. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param tracking_id: The tracking id. + :type tracking_id: str + :param cache_id: The cache id. + :type cache_id: str + :param language: The ISO 639-3 code. + :type language: str + :param text: The found text. + :type text: str + :param candidates: The list of candidate text. + :type candidates: + list[~azure.cognitiveservices.vision.contentmoderator.models.Candidate] + """ + + _attribute_map = { + 'status': {'key': 'Status', 'type': 'Status'}, + 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + 'cache_id': {'key': 'CacheId', 'type': 'str'}, + 'language': {'key': 'Language', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'candidates': {'key': 'Candidates', 'type': '[Candidate]'}, + } + + def __init__(self, status=None, metadata=None, tracking_id=None, cache_id=None, language=None, text=None, candidates=None): + super(OCR, self).__init__() + self.status = status + self.metadata = metadata + self.tracking_id = tracking_id + self.cache_id = cache_id + self.language = language + self.text = text + self.candidates = candidates + + +class PII(Model): + """Personal Identifier Information details. + + :param email: + :type email: + list[~azure.cognitiveservices.vision.contentmoderator.models.Email] + :param ipa: + :type ipa: + list[~azure.cognitiveservices.vision.contentmoderator.models.IPA] + :param phone: + :type phone: + list[~azure.cognitiveservices.vision.contentmoderator.models.Phone] + :param address: + :type address: + list[~azure.cognitiveservices.vision.contentmoderator.models.Address] + """ + + _attribute_map = { + 'email': {'key': 'Email', 'type': '[Email]'}, + 'ipa': {'key': 'IPA', 'type': '[IPA]'}, + 'phone': {'key': 'Phone', 'type': '[Phone]'}, + 'address': {'key': 'Address', 'type': '[Address]'}, + } + + def __init__(self, email=None, ipa=None, phone=None, address=None): + super(PII, self).__init__() + self.email = email + self.ipa = ipa + self.phone = phone + self.address = address + + +class Phone(Model): + """Phone Property details. + + :param country_code: CountryCode of the detected Phone number. + :type country_code: str + :param text: Detected Phone number. + :type text: str + :param index: Index(Location) of the Phone number in the input text + content. + :type index: int + """ + + _attribute_map = { + 'country_code': {'key': 'CountryCode', 'type': 'str'}, + 'text': {'key': 'Text', 'type': 'str'}, + 'index': {'key': 'Index', 'type': 'int'}, + } + + def __init__(self, country_code=None, text=None, index=None): + super(Phone, self).__init__() + self.country_code = country_code + self.text = text + self.index = index + + +class RefreshIndex(Model): + """Refresh Index Response. + + :param content_source_id: Content source Id. + :type content_source_id: str + :param is_update_success: Update success status. + :type is_update_success: bool + :param advanced_info: Advanced info list. + :type advanced_info: + list[~azure.cognitiveservices.vision.contentmoderator.models.RefreshIndexAdvancedInfoItem] + :param status: Refresh index status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'content_source_id': {'key': 'ContentSourceId', 'type': 'str'}, + 'is_update_success': {'key': 'IsUpdateSuccess', 'type': 'bool'}, + 'advanced_info': {'key': 'AdvancedInfo', 'type': '[RefreshIndexAdvancedInfoItem]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, content_source_id=None, is_update_success=None, advanced_info=None, status=None, tracking_id=None): + super(RefreshIndex, self).__init__() + self.content_source_id = content_source_id + self.is_update_success = is_update_success + self.advanced_info = advanced_info + self.status = status + self.tracking_id = tracking_id + + +class RefreshIndexAdvancedInfoItem(Model): + """RefreshIndexAdvancedInfoItem. + + :param key_one: Key parameter to describe advanced info. + :type key_one: str + :param key_two: Key parameter to describe advanced info. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(RefreshIndexAdvancedInfoItem, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class Review(Model): + """The Review object. + + :param review_id: Id of the review. + :type review_id: str + :param sub_team: Name of the subteam. + :type sub_team: str + :param status: The status string (). + :type status: str + :param reviewer_result_tags: Array of KeyValue with Reviewer set Tags. + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param created_by: The reviewer name. + :type created_by: str + :param metadata: Array of KeyValue. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] + :param type: The type of content. + :type type: str + :param content: The content value. + :type content: str + :param content_id: Id of the content. + :type content_id: str + :param callback_endpoint: The callback endpoint. + :type callback_endpoint: str + """ + + _attribute_map = { + 'review_id': {'key': 'ReviewId', 'type': 'str'}, + 'sub_team': {'key': 'SubTeam', 'type': 'str'}, + 'status': {'key': 'Status', 'type': 'str'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[KeyValuePair]'}, + 'created_by': {'key': 'CreatedBy', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, + 'type': {'key': 'Type', 'type': 'str'}, + 'content': {'key': 'Content', 'type': 'str'}, + 'content_id': {'key': 'ContentId', 'type': 'str'}, + 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, + } + + def __init__(self, review_id=None, sub_team=None, status=None, reviewer_result_tags=None, created_by=None, metadata=None, type=None, content=None, content_id=None, callback_endpoint=None): + super(Review, self).__init__() + self.review_id = review_id + self.sub_team = sub_team + self.status = status + self.reviewer_result_tags = reviewer_result_tags + self.created_by = created_by + self.metadata = metadata + self.type = type + self.content = content + self.content_id = content_id + self.callback_endpoint = callback_endpoint + + +class Score(Model): + """The classification score details of the text. Click here for more + details on category classification. + + :param score: The category score. + :type score: float + """ + + _attribute_map = { + 'score': {'key': 'Score', 'type': 'float'}, + } + + def __init__(self, score=None): + super(Score, self).__init__() + self.score = score + + +class Screen(Model): + """The response for a Screen text request. + + :param original_text: The original text. + :type original_text: str + :param normalized_text: The normalized text. + :type normalized_text: str + :param auto_corrected_text: The autocorrected text + :type auto_corrected_text: str + :param misrepresentation: The misrepresentation text. + :type misrepresentation: list[str] + :param classification: The classification details of the text. + :type classification: + ~azure.cognitiveservices.vision.contentmoderator.models.Classification + :param status: The evaluate status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param pii: Personal Identifier Information details. + :type pii: ~azure.cognitiveservices.vision.contentmoderator.models.PII + :param language: Language of the input text content. + :type language: str + :param terms: + :type terms: + list[~azure.cognitiveservices.vision.contentmoderator.models.DetectedTerms] + :param tracking_id: Unique Content Moderator transaction Id. + :type tracking_id: str + """ + + _attribute_map = { + 'original_text': {'key': 'OriginalText', 'type': 'str'}, + 'normalized_text': {'key': 'NormalizedText', 'type': 'str'}, + 'auto_corrected_text': {'key': 'AutoCorrectedText', 'type': 'str'}, + 'misrepresentation': {'key': 'Misrepresentation', 'type': '[str]'}, + 'classification': {'key': 'Classification', 'type': 'Classification'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'pii': {'key': 'PII', 'type': 'PII'}, + 'language': {'key': 'Language', 'type': 'str'}, + 'terms': {'key': 'Terms', 'type': '[DetectedTerms]'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, original_text=None, normalized_text=None, auto_corrected_text=None, misrepresentation=None, classification=None, status=None, pii=None, language=None, terms=None, tracking_id=None): + super(Screen, self).__init__() + self.original_text = original_text + self.normalized_text = normalized_text + self.auto_corrected_text = auto_corrected_text + self.misrepresentation = misrepresentation + self.classification = classification + self.status = status + self.pii = pii + self.language = language + self.terms = terms + self.tracking_id = tracking_id + + +class Status(Model): + """Status properties. + + :param code: Status code. + :type code: int + :param description: Status description. + :type description: str + :param exception: Exception status. + :type exception: str + """ + + _attribute_map = { + 'code': {'key': 'Code', 'type': 'int'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'exception': {'key': 'Exception', 'type': 'str'}, + } + + def __init__(self, code=None, description=None, exception=None): + super(Status, self).__init__() + self.code = code + self.description = description + self.exception = exception + + +class Tag(Model): + """Tag details. + + :param key: The key parameter. + :type key: str + :param value: The value parameter. + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key=None, value=None): + super(Tag, self).__init__() + self.key = key + self.value = value + + +class TermList(Model): + """Term List Properties. + + :param id: Term list Id. + :type id: int + :param name: Term list name. + :type name: str + :param description: Description for term list. + :type description: str + :param metadata: Term list metadata. + :type metadata: + ~azure.cognitiveservices.vision.contentmoderator.models.TermListMetadata + """ + + _attribute_map = { + 'id': {'key': 'Id', 'type': 'int'}, + 'name': {'key': 'Name', 'type': 'str'}, + 'description': {'key': 'Description', 'type': 'str'}, + 'metadata': {'key': 'Metadata', 'type': 'TermListMetadata'}, + } + + def __init__(self, id=None, name=None, description=None, metadata=None): + super(TermList, self).__init__() + self.id = id + self.name = name + self.description = description + self.metadata = metadata + + +class TermListMetadata(Model): + """Term list metadata. + + :param key_one: Optional Key value pair to describe your list. + :type key_one: str + :param key_two: Optional Key value pair to describe your list. + :type key_two: str + """ + + _attribute_map = { + 'key_one': {'key': 'Key One', 'type': 'str'}, + 'key_two': {'key': 'Key Two', 'type': 'str'}, + } + + def __init__(self, key_one=None, key_two=None): + super(TermListMetadata, self).__init__() + self.key_one = key_one + self.key_two = key_two + + +class Terms(Model): + """Terms properties. + + :param data: Term data details. + :type data: + ~azure.cognitiveservices.vision.contentmoderator.models.TermsData + :param paging: Paging details. + :type paging: + ~azure.cognitiveservices.vision.contentmoderator.models.TermsPaging + """ + + _attribute_map = { + 'data': {'key': 'Data', 'type': 'TermsData'}, + 'paging': {'key': 'Paging', 'type': 'TermsPaging'}, + } + + def __init__(self, data=None, paging=None): + super(Terms, self).__init__() + self.data = data + self.paging = paging + + +class TermsData(Model): + """All term Id response properties. + + :param language: Language of the terms. + :type language: str + :param terms: List of terms. + :type terms: + list[~azure.cognitiveservices.vision.contentmoderator.models.TermsInList] + :param status: Term Status. + :type status: + ~azure.cognitiveservices.vision.contentmoderator.models.Status + :param tracking_id: Tracking Id. + :type tracking_id: str + """ + + _attribute_map = { + 'language': {'key': 'Language', 'type': 'str'}, + 'terms': {'key': 'Terms', 'type': '[TermsInList]'}, + 'status': {'key': 'Status', 'type': 'Status'}, + 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, + } + + def __init__(self, language=None, terms=None, status=None, tracking_id=None): + super(TermsData, self).__init__() + self.language = language + self.terms = terms + self.status = status + self.tracking_id = tracking_id + + +class TermsInList(Model): + """Terms in list Id passed. + + :param term: Added term details. + :type term: str + """ + + _attribute_map = { + 'term': {'key': 'Term', 'type': 'str'}, + } + + def __init__(self, term=None): + super(TermsInList, self).__init__() + self.term = term + + +class TermsPaging(Model): + """Paging details. + + :param total: Total details. + :type total: int + :param limit: Limit details. + :type limit: int + :param offset: Offset details. + :type offset: int + :param returned: Returned text details. + :type returned: int + """ + + _attribute_map = { + 'total': {'key': 'Total', 'type': 'int'}, + 'limit': {'key': 'Limit', 'type': 'int'}, + 'offset': {'key': 'Offset', 'type': 'int'}, + 'returned': {'key': 'Returned', 'type': 'int'}, + } + + def __init__(self, total=None, limit=None, offset=None, returned=None): + super(TermsPaging, self).__init__() + self.total = total + self.limit = limit + self.offset = offset + self.returned = returned + + +class TranscriptModerationBodyItem(Model): + """Schema items of the body. + + :param timestamp: Timestamp of the image. + :type timestamp: str + :param terms: Optional metadata details. + :type terms: + list[~azure.cognitiveservices.vision.contentmoderator.models.TranscriptModerationBodyItemTermsItem] + """ + + _validation = { + 'timestamp': {'required': True}, + 'terms': {'required': True}, + } + + _attribute_map = { + 'timestamp': {'key': 'Timestamp', 'type': 'str'}, + 'terms': {'key': 'Terms', 'type': '[TranscriptModerationBodyItemTermsItem]'}, + } + + def __init__(self, timestamp, terms): + super(TranscriptModerationBodyItem, self).__init__() + self.timestamp = timestamp + self.terms = terms + + +class TranscriptModerationBodyItemTermsItem(Model): + """TranscriptModerationBodyItemTermsItem. + + :param index: Index of the word + :type index: int + :param term: Detected word. + :type term: str + """ + + _validation = { + 'index': {'required': True}, + 'term': {'required': True}, + } + + _attribute_map = { + 'index': {'key': 'Index', 'type': 'int'}, + 'term': {'key': 'Term', 'type': 'str'}, + } + + def __init__(self, index, term): + super(TranscriptModerationBodyItemTermsItem, self).__init__() + self.index = index + self.term = term + + +class VideoFrameBodyItem(Model): + """Schema items of the body. + + :param timestamp: Timestamp of the frame. + :type timestamp: str + :param frame_image: Content to review. + :type frame_image: str + :param reviewer_result_tags: + :type reviewer_result_tags: + list[~azure.cognitiveservices.vision.contentmoderator.models.VideoFrameBodyItemReviewerResultTagsItem] + :param metadata: Optional metadata details. + :type metadata: + list[~azure.cognitiveservices.vision.contentmoderator.models.VideoFrameBodyItemMetadataItem] + """ + + _validation = { + 'timestamp': {'required': True}, + 'frame_image': {'required': True}, + } + + _attribute_map = { + 'timestamp': {'key': 'Timestamp', 'type': 'str'}, + 'frame_image': {'key': 'FrameImage', 'type': 'str'}, + 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[VideoFrameBodyItemReviewerResultTagsItem]'}, + 'metadata': {'key': 'Metadata', 'type': '[VideoFrameBodyItemMetadataItem]'}, + } + + def __init__(self, timestamp, frame_image, reviewer_result_tags=None, metadata=None): + super(VideoFrameBodyItem, self).__init__() + self.timestamp = timestamp + self.frame_image = frame_image + self.reviewer_result_tags = reviewer_result_tags + self.metadata = metadata + + +class VideoFrameBodyItemMetadataItem(Model): + """VideoFrameBodyItemMetadataItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(VideoFrameBodyItemMetadataItem, self).__init__() + self.key = key + self.value = value + + +class VideoFrameBodyItemReviewerResultTagsItem(Model): + """VideoFrameBodyItemReviewerResultTagsItem. + + :param key: Your key parameter. + :type key: str + :param value: Your value parameter. + :type value: str + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'key': {'key': 'Key', 'type': 'str'}, + 'value': {'key': 'Value', 'type': 'str'}, + } + + def __init__(self, key, value): + super(VideoFrameBodyItemReviewerResultTagsItem, self).__init__() + self.key = key + self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_id.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_paged_models.py similarity index 58% rename from azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_id.py rename to azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_paged_models.py index 1120d01066d3..adde32e93411 100644 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_id.py +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/_paged_models.py @@ -9,20 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model - - -class JobId(Model): - """JobId. - - :param job_id: Id of the created job. - :type job_id: str - """ - - _attribute_map = { - 'job_id': {'key': 'JobId', 'type': 'str'}, - } - - def __init__(self, job_id=None): - super(JobId, self).__init__() - self.job_id = job_id +from msrest.paging import Paged diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/address.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/address.py deleted file mode 100644 index 3037809412f7..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/address.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Address(Model): - """Address details. - - :param text: Detected Address. - :type text: str - :param index: Index(Location) of the Address in the input text content. - :type index: int - """ - - _attribute_map = { - 'text': {'key': 'Text', 'type': 'str'}, - 'index': {'key': 'Index', 'type': 'int'}, - } - - def __init__(self, text=None, index=None): - super(Address, self).__init__() - self.text = text - self.index = index diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/api_error.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/api_error.py deleted file mode 100644 index ccbeacbd15d5..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/api_error.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class APIError(Model): - """Error information returned by the API. - - :param error: - :type error: ~azure.cognitiveservices.vision.contentmoderator.models.Error - """ - - _attribute_map = { - 'error': {'key': 'Error', 'type': 'Error'}, - } - - def __init__(self, error=None): - super(APIError, self).__init__() - self.error = error - - -class APIErrorException(HttpOperationError): - """Server responsed with exception of type: 'APIError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(APIErrorException, self).__init__(deserialize, response, 'APIError', *args) diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body.py deleted file mode 100644 index becfe670d3f8..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Body(Model): - """Body. - - :param name: Name of the list. - :type name: str - :param description: Description of the list. - :type description: str - :param metadata: Metadata of the list. - :type metadata: - ~azure.cognitiveservices.vision.contentmoderator.models.BodyMetadata - """ - - _attribute_map = { - 'name': {'key': 'Name', 'type': 'str'}, - 'description': {'key': 'Description', 'type': 'str'}, - 'metadata': {'key': 'Metadata', 'type': 'BodyMetadata'}, - } - - def __init__(self, name=None, description=None, metadata=None): - super(Body, self).__init__() - self.name = name - self.description = description - self.metadata = metadata diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_metadata.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_metadata.py deleted file mode 100644 index 709a31ac4493..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_metadata.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BodyMetadata(Model): - """Metadata of the list. - - :param key_one: Optional key value pair to describe your list. - :type key_one: str - :param key_two: Optional key value pair to describe your list. - :type key_two: str - """ - - _attribute_map = { - 'key_one': {'key': 'Key One', 'type': 'str'}, - 'key_two': {'key': 'Key Two', 'type': 'str'}, - } - - def __init__(self, key_one=None, key_two=None): - super(BodyMetadata, self).__init__() - self.key_one = key_one - self.key_two = key_two diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_model.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_model.py deleted file mode 100644 index e41232904e3f..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/body_model.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BodyModel(Model): - """BodyModel. - - :param data_representation: Default value: "URL" . - :type data_representation: str - :param value: - :type value: str - """ - - _attribute_map = { - 'data_representation': {'key': 'DataRepresentation', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, data_representation="URL", value=None): - super(BodyModel, self).__init__() - self.data_representation = data_representation - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/candidate.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/candidate.py deleted file mode 100644 index b6f85ebb6265..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/candidate.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Candidate(Model): - """OCR candidate text. - - :param text: The text found. - :type text: str - :param confidence: The confidence level. - :type confidence: float - """ - - _attribute_map = { - 'text': {'key': 'Text', 'type': 'str'}, - 'confidence': {'key': 'Confidence', 'type': 'float'}, - } - - def __init__(self, text=None, confidence=None): - super(Candidate, self).__init__() - self.text = text - self.confidence = confidence diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py deleted file mode 100644 index 059f395b3e68..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Classification(Model): - """The classification details of the text. - - :param category1: - :type category1: - ~azure.cognitiveservices.vision.contentmoderator.models.Score - :param category2: - :type category2: - ~azure.cognitiveservices.vision.contentmoderator.models.Score - :param category3: - :type category3: - ~azure.cognitiveservices.vision.contentmoderator.models.Score - :param review_recommended: The review recommended flag. - :type review_recommended: bool - """ - - _attribute_map = { - 'category1': {'key': 'Category1', 'type': 'Score'}, - 'category2': {'key': 'Category2', 'type': 'Score'}, - 'category3': {'key': 'Category3', 'type': 'Score'}, - 'review_recommended': {'key': 'ReviewRecommended', 'type': 'bool'}, - } - - def __init__(self, category1=None, category2=None, category3=None, review_recommended=None): - super(Classification, self).__init__() - self.category1 = category1 - self.category2 = category2 - self.category3 = category3 - self.review_recommended = review_recommended diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/content.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/content.py deleted file mode 100644 index 6b67c7ad1ec4..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/content.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Content(Model): - """Content. - - :param content_value: Content to evaluate for a job. - :type content_value: str - """ - - _validation = { - 'content_value': {'required': True}, - } - - _attribute_map = { - 'content_value': {'key': 'ContentValue', 'type': 'str'}, - } - - def __init__(self, content_value): - super(Content, self).__init__() - self.content_value = content_value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item.py deleted file mode 100644 index a22e75d3e70b..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateReviewBodyItem(Model): - """Schema items of the body. - - :param type: Type of the content. Possible values include: 'Image', 'Text' - :type type: str or - ~azure.cognitiveservices.vision.contentmoderator.models.enum - :param content: Content to review. - :type content: str - :param content_id: Content Identifier. - :type content_id: str - :param callback_endpoint: Optional CallbackEndpoint. - :type callback_endpoint: str - :param metadata: Optional metadata details. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.CreateReviewBodyItemMetadataItem] - """ - - _validation = { - 'type': {'required': True}, - 'content': {'required': True}, - 'content_id': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'Type', 'type': 'str'}, - 'content': {'key': 'Content', 'type': 'str'}, - 'content_id': {'key': 'ContentId', 'type': 'str'}, - 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, - 'metadata': {'key': 'Metadata', 'type': '[CreateReviewBodyItemMetadataItem]'}, - } - - def __init__(self, type, content, content_id, callback_endpoint=None, metadata=None): - super(CreateReviewBodyItem, self).__init__() - self.type = type - self.content = content - self.content_id = content_id - self.callback_endpoint = callback_endpoint - self.metadata = metadata diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item_metadata_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item_metadata_item.py deleted file mode 100644 index 25ca5626be5f..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_review_body_item_metadata_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateReviewBodyItemMetadataItem(Model): - """CreateReviewBodyItemMetadataItem. - - :param key: Your key parameter. - :type key: str - :param value: Your value parameter. - :type value: str - """ - - _validation = { - 'key': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key, value): - super(CreateReviewBodyItemMetadataItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item.py deleted file mode 100644 index afcdef3988f2..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateVideoReviewsBodyItem(Model): - """Schema items of the body. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param video_frames: Optional metadata details. - :type video_frames: - list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItem] - :param metadata: Optional metadata details. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemMetadataItem] - :ivar type: Type of the content. Default value: "Video" . - :vartype type: str - :param content: Video content url to review. - :type content: str - :param content_id: Content Identifier. - :type content_id: str - :param status: Status of the video(Complete,Unpublished,Pending). Possible - values include: 'Complete', 'Unpublished', 'Pending' - :type status: str or - ~azure.cognitiveservices.vision.contentmoderator.models.enum - :param timescale: Timescale of the video. - :type timescale: int - :param callback_endpoint: Optional CallbackEndpoint. - :type callback_endpoint: str - """ - - _validation = { - 'type': {'required': True, 'constant': True}, - 'content': {'required': True}, - 'content_id': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'video_frames': {'key': 'VideoFrames', 'type': '[CreateVideoReviewsBodyItemVideoFramesItem]'}, - 'metadata': {'key': 'Metadata', 'type': '[CreateVideoReviewsBodyItemMetadataItem]'}, - 'type': {'key': 'Type', 'type': 'str'}, - 'content': {'key': 'Content', 'type': 'str'}, - 'content_id': {'key': 'ContentId', 'type': 'str'}, - 'status': {'key': 'Status', 'type': 'str'}, - 'timescale': {'key': 'Timescale', 'type': 'int'}, - 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, - } - - type = "Video" - - def __init__(self, content, content_id, status, video_frames=None, metadata=None, timescale=None, callback_endpoint=None): - super(CreateVideoReviewsBodyItem, self).__init__() - self.video_frames = video_frames - self.metadata = metadata - self.content = content - self.content_id = content_id - self.status = status - self.timescale = timescale - self.callback_endpoint = callback_endpoint diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_metadata_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_metadata_item.py deleted file mode 100644 index 60503508d87d..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_metadata_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateVideoReviewsBodyItemMetadataItem(Model): - """CreateVideoReviewsBodyItemMetadataItem. - - :param key: Your key parameter. - :type key: str - :param value: Your value parameter. - :type value: str - """ - - _validation = { - 'key': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key, value): - super(CreateVideoReviewsBodyItemMetadataItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item.py deleted file mode 100644 index b5bd95f0a119..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateVideoReviewsBodyItemVideoFramesItem(Model): - """CreateVideoReviewsBodyItemVideoFramesItem. - - :param id: Id of the frame. - :type id: str - :param timestamp: Timestamp of the frame. - :type timestamp: int - :param frame_image: Frame image Url. - :type frame_image: str - :param reviewer_result_tags: - :type reviewer_result_tags: - list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem] - :param metadata: Optional metadata details. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.CreateVideoReviewsBodyItemVideoFramesItemMetadataItem] - """ - - _validation = { - 'id': {'required': True}, - 'timestamp': {'required': True}, - 'frame_image': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'Id', 'type': 'str'}, - 'timestamp': {'key': 'Timestamp', 'type': 'int'}, - 'frame_image': {'key': 'FrameImage', 'type': 'str'}, - 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem]'}, - 'metadata': {'key': 'Metadata', 'type': '[CreateVideoReviewsBodyItemVideoFramesItemMetadataItem]'}, - } - - def __init__(self, id, timestamp, frame_image, reviewer_result_tags=None, metadata=None): - super(CreateVideoReviewsBodyItemVideoFramesItem, self).__init__() - self.id = id - self.timestamp = timestamp - self.frame_image = frame_image - self.reviewer_result_tags = reviewer_result_tags - self.metadata = metadata diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.py deleted file mode 100644 index f23a804b45b7..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_metadata_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateVideoReviewsBodyItemVideoFramesItemMetadataItem(Model): - """CreateVideoReviewsBodyItemVideoFramesItemMetadataItem. - - :param key: Your key parameter. - :type key: str - :param value: Your value parameter. - :type value: str - """ - - _validation = { - 'key': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key, value): - super(CreateVideoReviewsBodyItemVideoFramesItemMetadataItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.py deleted file mode 100644 index 7833a14c927b..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem(Model): - """CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem. - - :param key: Your key parameter. - :type key: str - :param value: Your value parameter. - :type value: str - """ - - _validation = { - 'key': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key, value): - super(CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_language.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_language.py deleted file mode 100644 index 2ab022cabdff..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_language.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DetectedLanguage(Model): - """Detect language result. - - :param detected_language: The detected language. - :type detected_language: str - :param status: The detect language status - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param tracking_id: The tracking id. - :type tracking_id: str - """ - - _attribute_map = { - 'detected_language': {'key': 'DetectedLanguage', 'type': 'str'}, - 'status': {'key': 'Status', 'type': 'Status'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - } - - def __init__(self, detected_language=None, status=None, tracking_id=None): - super(DetectedLanguage, self).__init__() - self.detected_language = detected_language - self.status = status - self.tracking_id = tracking_id diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_terms.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_terms.py deleted file mode 100644 index 324de7af18b2..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/detected_terms.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DetectedTerms(Model): - """Detected Terms details. - - :param index: Index(Location) of the detected profanity term in the input - text content. - :type index: int - :param original_index: Original Index(Location) of the detected profanity - term in the input text content. - :type original_index: int - :param list_id: Matched Terms list Id. - :type list_id: int - :param term: Detected profanity term. - :type term: str - """ - - _attribute_map = { - 'index': {'key': 'Index', 'type': 'int'}, - 'original_index': {'key': 'OriginalIndex', 'type': 'int'}, - 'list_id': {'key': 'ListId', 'type': 'int'}, - 'term': {'key': 'Term', 'type': 'str'}, - } - - def __init__(self, index=None, original_index=None, list_id=None, term=None): - super(DetectedTerms, self).__init__() - self.index = index - self.original_index = original_index - self.list_id = list_id - self.term = term diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/email.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/email.py deleted file mode 100644 index 4ab796f2c415..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/email.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Email(Model): - """Email Address details. - - :param detected: Detected Email Address from the input text content. - :type detected: str - :param sub_type: Subtype of the detected Email Address. - :type sub_type: str - :param text: Email Address in the input text content. - :type text: str - :param index: Index(Location) of the Email address in the input text - content. - :type index: int - """ - - _attribute_map = { - 'detected': {'key': 'Detected', 'type': 'str'}, - 'sub_type': {'key': 'SubType', 'type': 'str'}, - 'text': {'key': 'Text', 'type': 'str'}, - 'index': {'key': 'Index', 'type': 'int'}, - } - - def __init__(self, detected=None, sub_type=None, text=None, index=None): - super(Email, self).__init__() - self.detected = detected - self.sub_type = sub_type - self.text = text - self.index = index diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/error.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/error.py deleted file mode 100644 index 0e351dadac5a..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/error.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Error(Model): - """Error body. - - :param code: - :type code: str - :param message: - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'Code', 'type': 'str'}, - 'message': {'key': 'Message', 'type': 'str'}, - } - - def __init__(self, code=None, message=None): - super(Error, self).__init__() - self.code = code - self.message = message diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/evaluate.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/evaluate.py deleted file mode 100644 index 90cdddf04c22..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/evaluate.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Evaluate(Model): - """Evaluate response object. - - :param cache_id: The cache id. - :type cache_id: str - :param result: Evaluate result. - :type result: bool - :param tracking_id: The tracking id. - :type tracking_id: str - :param adult_classification_score: The adult classification score. - :type adult_classification_score: float - :param is_image_adult_classified: Indicates if an image is classified as - adult. - :type is_image_adult_classified: bool - :param racy_classification_score: The racy classication score. - :type racy_classification_score: float - :param is_image_racy_classified: Indicates if the image is classified as - racy. - :type is_image_racy_classified: bool - :param advanced_info: The advanced info. - :type advanced_info: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param status: The evaluate status - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - """ - - _attribute_map = { - 'cache_id': {'key': 'CacheID', 'type': 'str'}, - 'result': {'key': 'Result', 'type': 'bool'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - 'adult_classification_score': {'key': 'AdultClassificationScore', 'type': 'float'}, - 'is_image_adult_classified': {'key': 'IsImageAdultClassified', 'type': 'bool'}, - 'racy_classification_score': {'key': 'RacyClassificationScore', 'type': 'float'}, - 'is_image_racy_classified': {'key': 'IsImageRacyClassified', 'type': 'bool'}, - 'advanced_info': {'key': 'AdvancedInfo', 'type': '[KeyValuePair]'}, - 'status': {'key': 'Status', 'type': 'Status'}, - } - - def __init__(self, cache_id=None, result=None, tracking_id=None, adult_classification_score=None, is_image_adult_classified=None, racy_classification_score=None, is_image_racy_classified=None, advanced_info=None, status=None): - super(Evaluate, self).__init__() - self.cache_id = cache_id - self.result = result - self.tracking_id = tracking_id - self.adult_classification_score = adult_classification_score - self.is_image_adult_classified = is_image_adult_classified - self.racy_classification_score = racy_classification_score - self.is_image_racy_classified = is_image_racy_classified - self.advanced_info = advanced_info - self.status = status diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/face.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/face.py deleted file mode 100644 index b72c59ffe70e..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/face.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Face(Model): - """Coordinates to the found face. - - :param bottom: The bottom coordinate. - :type bottom: int - :param left: The left coordinate. - :type left: int - :param right: The right coordinate. - :type right: int - :param top: The top coordinate. - :type top: int - """ - - _attribute_map = { - 'bottom': {'key': 'Bottom', 'type': 'int'}, - 'left': {'key': 'Left', 'type': 'int'}, - 'right': {'key': 'Right', 'type': 'int'}, - 'top': {'key': 'Top', 'type': 'int'}, - } - - def __init__(self, bottom=None, left=None, right=None, top=None): - super(Face, self).__init__() - self.bottom = bottom - self.left = left - self.right = right - self.top = top diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/found_faces.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/found_faces.py deleted file mode 100644 index c99f73e23d70..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/found_faces.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FoundFaces(Model): - """Request object the contains found faces. - - :param status: The evaluate status - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param tracking_id: The tracking id. - :type tracking_id: str - :param cache_id: The cache id. - :type cache_id: str - :param result: True if result was found. - :type result: bool - :param count: Number of faces found. - :type count: int - :param advanced_info: The advanced info. - :type advanced_info: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param faces: The list of faces. - :type faces: - list[~azure.cognitiveservices.vision.contentmoderator.models.Face] - """ - - _attribute_map = { - 'status': {'key': 'Status', 'type': 'Status'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - 'cache_id': {'key': 'CacheId', 'type': 'str'}, - 'result': {'key': 'Result', 'type': 'bool'}, - 'count': {'key': 'Count', 'type': 'int'}, - 'advanced_info': {'key': 'AdvancedInfo', 'type': '[KeyValuePair]'}, - 'faces': {'key': 'Faces', 'type': '[Face]'}, - } - - def __init__(self, status=None, tracking_id=None, cache_id=None, result=None, count=None, advanced_info=None, faces=None): - super(FoundFaces, self).__init__() - self.status = status - self.tracking_id = tracking_id - self.cache_id = cache_id - self.result = result - self.count = count - self.advanced_info = advanced_info - self.faces = faces diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frame.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frame.py deleted file mode 100644 index b3e155c1c2d6..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frame.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Frame(Model): - """Video frame property details. - - :param timestamp: Timestamp of the frame. - :type timestamp: str - :param frame_image: Frame image. - :type frame_image: str - :param metadata: Array of KeyValue. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param reviewer_result_tags: Reviewer result tags. - :type reviewer_result_tags: - list[~azure.cognitiveservices.vision.contentmoderator.models.Tag] - """ - - _attribute_map = { - 'timestamp': {'key': 'Timestamp', 'type': 'str'}, - 'frame_image': {'key': 'FrameImage', 'type': 'str'}, - 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, - 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[Tag]'}, - } - - def __init__(self, timestamp=None, frame_image=None, metadata=None, reviewer_result_tags=None): - super(Frame, self).__init__() - self.timestamp = timestamp - self.frame_image = frame_image - self.metadata = metadata - self.reviewer_result_tags = reviewer_result_tags diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frames.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frames.py deleted file mode 100644 index 724a54ce61cf..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/frames.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Frames(Model): - """The response for a Get Frames request. - - :param review_id: Id of the review. - :type review_id: str - :param video_frames: - :type video_frames: - list[~azure.cognitiveservices.vision.contentmoderator.models.Frame] - """ - - _attribute_map = { - 'review_id': {'key': 'ReviewId', 'type': 'str'}, - 'video_frames': {'key': 'VideoFrames', 'type': '[Frame]'}, - } - - def __init__(self, review_id=None, video_frames=None): - super(Frames, self).__init__() - self.review_id = review_id - self.video_frames = video_frames diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image.py deleted file mode 100644 index d5caeefd5ff7..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Image(Model): - """Image Properties. - - :param content_id: Content Id. - :type content_id: str - :param additional_info: Advanced info list. - :type additional_info: - list[~azure.cognitiveservices.vision.contentmoderator.models.ImageAdditionalInfoItem] - :param status: Status details. - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param tracking_id: Tracking Id. - :type tracking_id: str - """ - - _attribute_map = { - 'content_id': {'key': 'ContentId', 'type': 'str'}, - 'additional_info': {'key': 'AdditionalInfo', 'type': '[ImageAdditionalInfoItem]'}, - 'status': {'key': 'Status', 'type': 'Status'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - } - - def __init__(self, content_id=None, additional_info=None, status=None, tracking_id=None): - super(Image, self).__init__() - self.content_id = content_id - self.additional_info = additional_info - self.status = status - self.tracking_id = tracking_id diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_additional_info_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_additional_info_item.py deleted file mode 100644 index 61b7678fc3ec..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_additional_info_item.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImageAdditionalInfoItem(Model): - """ImageAdditionalInfoItem. - - :param key: Key parameter. - :type key: str - :param value: Value parameter. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key=None, value=None): - super(ImageAdditionalInfoItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_ids.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_ids.py deleted file mode 100644 index 93afe9bb7c05..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_ids.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImageIds(Model): - """Image Id properties. - - :param content_source: Source of the content. - :type content_source: str - :param content_ids: Id of the contents. - :type content_ids: list[int] - :param status: Get Image status. - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param tracking_id: Tracking Id. - :type tracking_id: str - """ - - _attribute_map = { - 'content_source': {'key': 'ContentSource', 'type': 'str'}, - 'content_ids': {'key': 'ContentIds', 'type': '[int]'}, - 'status': {'key': 'Status', 'type': 'Status'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - } - - def __init__(self, content_source=None, content_ids=None, status=None, tracking_id=None): - super(ImageIds, self).__init__() - self.content_source = content_source - self.content_ids = content_ids - self.status = status - self.tracking_id = tracking_id diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list.py deleted file mode 100644 index 57ef6b03606f..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImageList(Model): - """Image List Properties. - - :param id: Image List Id. - :type id: int - :param name: Image List Name. - :type name: str - :param description: Description for image list. - :type description: str - :param metadata: Image List Metadata. - :type metadata: - ~azure.cognitiveservices.vision.contentmoderator.models.ImageListMetadata - """ - - _attribute_map = { - 'id': {'key': 'Id', 'type': 'int'}, - 'name': {'key': 'Name', 'type': 'str'}, - 'description': {'key': 'Description', 'type': 'str'}, - 'metadata': {'key': 'Metadata', 'type': 'ImageListMetadata'}, - } - - def __init__(self, id=None, name=None, description=None, metadata=None): - super(ImageList, self).__init__() - self.id = id - self.name = name - self.description = description - self.metadata = metadata diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list_metadata.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list_metadata.py deleted file mode 100644 index 8888a4738054..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/image_list_metadata.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImageListMetadata(Model): - """Image List Metadata. - - :param key_one: Optional Key value pair to describe your list. - :type key_one: str - :param key_two: Optional Key value pair to describe your list. - :type key_two: str - """ - - _attribute_map = { - 'key_one': {'key': 'Key One', 'type': 'str'}, - 'key_two': {'key': 'Key Two', 'type': 'str'}, - } - - def __init__(self, key_one=None, key_two=None): - super(ImageListMetadata, self).__init__() - self.key_one = key_one - self.key_two = key_two diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ipa.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ipa.py deleted file mode 100644 index 3b14113efd77..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ipa.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IPA(Model): - """IP Address details. - - :param sub_type: Subtype of the detected IP Address. - :type sub_type: str - :param text: Detected IP Address. - :type text: str - :param index: Index(Location) of the IP Address in the input text content. - :type index: int - """ - - _attribute_map = { - 'sub_type': {'key': 'SubType', 'type': 'str'}, - 'text': {'key': 'Text', 'type': 'str'}, - 'index': {'key': 'Index', 'type': 'int'}, - } - - def __init__(self, sub_type=None, text=None, index=None): - super(IPA, self).__init__() - self.sub_type = sub_type - self.text = text - self.index = index diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job.py deleted file mode 100644 index 6375fec27321..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Job(Model): - """The Job object. - - :param id: The job id. - :type id: str - :param team_name: The team name associated with the job. - :type team_name: str - :param status: The status string (). - :type status: str - :param workflow_id: The Id of the workflow. - :type workflow_id: str - :param type: Type of the content. - :type type: str - :param call_back_endpoint: The callback endpoint. - :type call_back_endpoint: str - :param review_id: Review Id if one is created. - :type review_id: str - :param result_meta_data: Array of KeyValue pairs. - :type result_meta_data: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param job_execution_report: Job execution report- Array of KeyValue pairs - object. - :type job_execution_report: - list[~azure.cognitiveservices.vision.contentmoderator.models.JobExecutionReportDetails] - """ - - _attribute_map = { - 'id': {'key': 'Id', 'type': 'str'}, - 'team_name': {'key': 'TeamName', 'type': 'str'}, - 'status': {'key': 'Status', 'type': 'str'}, - 'workflow_id': {'key': 'WorkflowId', 'type': 'str'}, - 'type': {'key': 'Type', 'type': 'str'}, - 'call_back_endpoint': {'key': 'CallBackEndpoint', 'type': 'str'}, - 'review_id': {'key': 'ReviewId', 'type': 'str'}, - 'result_meta_data': {'key': 'ResultMetaData', 'type': '[KeyValuePair]'}, - 'job_execution_report': {'key': 'JobExecutionReport', 'type': '[JobExecutionReportDetails]'}, - } - - def __init__(self, id=None, team_name=None, status=None, workflow_id=None, type=None, call_back_endpoint=None, review_id=None, result_meta_data=None, job_execution_report=None): - super(Job, self).__init__() - self.id = id - self.team_name = team_name - self.status = status - self.workflow_id = workflow_id - self.type = type - self.call_back_endpoint = call_back_endpoint - self.review_id = review_id - self.result_meta_data = result_meta_data - self.job_execution_report = job_execution_report diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_execution_report_details.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_execution_report_details.py deleted file mode 100644 index 0c35b83c34de..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_execution_report_details.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobExecutionReportDetails(Model): - """Job Execution Report Values. - - :param ts: Time details. - :type ts: str - :param msg: Message details. - :type msg: str - """ - - _attribute_map = { - 'ts': {'key': 'Ts', 'type': 'str'}, - 'msg': {'key': 'Msg', 'type': 'str'}, - } - - def __init__(self, ts=None, msg=None): - super(JobExecutionReportDetails, self).__init__() - self.ts = ts - self.msg = msg diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_list_result.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_list_result.py deleted file mode 100644 index ca7042d20cb6..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/job_list_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobListResult(Model): - """The list of job ids. - - :param value: The job id. - :type value: list[str] - """ - - _attribute_map = { - 'value': {'key': 'Value', 'type': '[str]'}, - } - - def __init__(self, value=None): - super(JobListResult, self).__init__() - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/key_value_pair.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/key_value_pair.py deleted file mode 100644 index 04a557da8ba6..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/key_value_pair.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KeyValuePair(Model): - """The key value pair object properties. - - :param key: The key parameter. - :type key: str - :param value: The value parameter. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key=None, value=None): - super(KeyValuePair, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match.py deleted file mode 100644 index 6a9c84cc3792..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Match(Model): - """The match details. - - :param score: Confidence score of the image match. - :type score: float - :param match_id: The match id. - :type match_id: int - :param source: The source. - :type source: str - :param tags: The tags for match details. - :type tags: list[int] - :param label: The label. - :type label: str - """ - - _attribute_map = { - 'score': {'key': 'Score', 'type': 'float'}, - 'match_id': {'key': 'MatchId', 'type': 'int'}, - 'source': {'key': 'Source', 'type': 'str'}, - 'tags': {'key': 'Tags', 'type': '[int]'}, - 'label': {'key': 'Label', 'type': 'str'}, - } - - def __init__(self, score=None, match_id=None, source=None, tags=None, label=None): - super(Match, self).__init__() - self.score = score - self.match_id = match_id - self.source = source - self.tags = tags - self.label = label diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match_response.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match_response.py deleted file mode 100644 index 34798ee56439..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/match_response.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MatchResponse(Model): - """The response for a Match request. - - :param tracking_id: The tracking id. - :type tracking_id: str - :param cache_id: The cache id. - :type cache_id: str - :param is_match: Indicates if there is a match. - :type is_match: bool - :param matches: The match details. - :type matches: - list[~azure.cognitiveservices.vision.contentmoderator.models.Match] - :param status: The evaluate status - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - """ - - _attribute_map = { - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - 'cache_id': {'key': 'CacheID', 'type': 'str'}, - 'is_match': {'key': 'IsMatch', 'type': 'bool'}, - 'matches': {'key': 'Matches', 'type': '[Match]'}, - 'status': {'key': 'Status', 'type': 'Status'}, - } - - def __init__(self, tracking_id=None, cache_id=None, is_match=None, matches=None, status=None): - super(MatchResponse, self).__init__() - self.tracking_id = tracking_id - self.cache_id = cache_id - self.is_match = is_match - self.matches = matches - self.status = status diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ocr.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ocr.py deleted file mode 100644 index 193730ff7633..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/ocr.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OCR(Model): - """Contains the text found in image for the language specified. - - :param status: The evaluate status - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param metadata: Array of KeyValue. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param tracking_id: The tracking id. - :type tracking_id: str - :param cache_id: The cache id. - :type cache_id: str - :param language: The ISO 639-3 code. - :type language: str - :param text: The found text. - :type text: str - :param candidates: The list of candidate text. - :type candidates: - list[~azure.cognitiveservices.vision.contentmoderator.models.Candidate] - """ - - _attribute_map = { - 'status': {'key': 'Status', 'type': 'Status'}, - 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - 'cache_id': {'key': 'CacheId', 'type': 'str'}, - 'language': {'key': 'Language', 'type': 'str'}, - 'text': {'key': 'Text', 'type': 'str'}, - 'candidates': {'key': 'Candidates', 'type': '[Candidate]'}, - } - - def __init__(self, status=None, metadata=None, tracking_id=None, cache_id=None, language=None, text=None, candidates=None): - super(OCR, self).__init__() - self.status = status - self.metadata = metadata - self.tracking_id = tracking_id - self.cache_id = cache_id - self.language = language - self.text = text - self.candidates = candidates diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/phone.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/phone.py deleted file mode 100644 index 7369f634e83b..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/phone.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Phone(Model): - """Phone Property details. - - :param country_code: CountryCode of the detected Phone number. - :type country_code: str - :param text: Detected Phone number. - :type text: str - :param index: Index(Location) of the Phone number in the input text - content. - :type index: int - """ - - _attribute_map = { - 'country_code': {'key': 'CountryCode', 'type': 'str'}, - 'text': {'key': 'Text', 'type': 'str'}, - 'index': {'key': 'Index', 'type': 'int'}, - } - - def __init__(self, country_code=None, text=None, index=None): - super(Phone, self).__init__() - self.country_code = country_code - self.text = text - self.index = index diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/pii.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/pii.py deleted file mode 100644 index 148f8da31034..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/pii.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PII(Model): - """Personal Identifier Information details. - - :param email: - :type email: - list[~azure.cognitiveservices.vision.contentmoderator.models.Email] - :param ipa: - :type ipa: - list[~azure.cognitiveservices.vision.contentmoderator.models.IPA] - :param phone: - :type phone: - list[~azure.cognitiveservices.vision.contentmoderator.models.Phone] - :param address: - :type address: - list[~azure.cognitiveservices.vision.contentmoderator.models.Address] - """ - - _attribute_map = { - 'email': {'key': 'Email', 'type': '[Email]'}, - 'ipa': {'key': 'IPA', 'type': '[IPA]'}, - 'phone': {'key': 'Phone', 'type': '[Phone]'}, - 'address': {'key': 'Address', 'type': '[Address]'}, - } - - def __init__(self, email=None, ipa=None, phone=None, address=None): - super(PII, self).__init__() - self.email = email - self.ipa = ipa - self.phone = phone - self.address = address diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index.py deleted file mode 100644 index e11d028b8b53..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RefreshIndex(Model): - """Refresh Index Response. - - :param content_source_id: Content source Id. - :type content_source_id: str - :param is_update_success: Update success status. - :type is_update_success: bool - :param advanced_info: Advanced info list. - :type advanced_info: - list[~azure.cognitiveservices.vision.contentmoderator.models.RefreshIndexAdvancedInfoItem] - :param status: Refresh index status. - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param tracking_id: Tracking Id. - :type tracking_id: str - """ - - _attribute_map = { - 'content_source_id': {'key': 'ContentSourceId', 'type': 'str'}, - 'is_update_success': {'key': 'IsUpdateSuccess', 'type': 'bool'}, - 'advanced_info': {'key': 'AdvancedInfo', 'type': '[RefreshIndexAdvancedInfoItem]'}, - 'status': {'key': 'Status', 'type': 'Status'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - } - - def __init__(self, content_source_id=None, is_update_success=None, advanced_info=None, status=None, tracking_id=None): - super(RefreshIndex, self).__init__() - self.content_source_id = content_source_id - self.is_update_success = is_update_success - self.advanced_info = advanced_info - self.status = status - self.tracking_id = tracking_id diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index_advanced_info_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index_advanced_info_item.py deleted file mode 100644 index 9140f0066ecf..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/refresh_index_advanced_info_item.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RefreshIndexAdvancedInfoItem(Model): - """RefreshIndexAdvancedInfoItem. - - :param key_one: Key parameter to describe advanced info. - :type key_one: str - :param key_two: Key parameter to describe advanced info. - :type key_two: str - """ - - _attribute_map = { - 'key_one': {'key': 'Key One', 'type': 'str'}, - 'key_two': {'key': 'Key Two', 'type': 'str'}, - } - - def __init__(self, key_one=None, key_two=None): - super(RefreshIndexAdvancedInfoItem, self).__init__() - self.key_one = key_one - self.key_two = key_two diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/review.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/review.py deleted file mode 100644 index ee32bfbcdc2e..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/review.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Review(Model): - """The Review object. - - :param review_id: Id of the review. - :type review_id: str - :param sub_team: Name of the subteam. - :type sub_team: str - :param status: The status string (). - :type status: str - :param reviewer_result_tags: Array of KeyValue with Reviewer set Tags. - :type reviewer_result_tags: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param created_by: The reviewer name. - :type created_by: str - :param metadata: Array of KeyValue. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.KeyValuePair] - :param type: The type of content. - :type type: str - :param content: The content value. - :type content: str - :param content_id: Id of the content. - :type content_id: str - :param callback_endpoint: The callback endpoint. - :type callback_endpoint: str - """ - - _attribute_map = { - 'review_id': {'key': 'ReviewId', 'type': 'str'}, - 'sub_team': {'key': 'SubTeam', 'type': 'str'}, - 'status': {'key': 'Status', 'type': 'str'}, - 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[KeyValuePair]'}, - 'created_by': {'key': 'CreatedBy', 'type': 'str'}, - 'metadata': {'key': 'Metadata', 'type': '[KeyValuePair]'}, - 'type': {'key': 'Type', 'type': 'str'}, - 'content': {'key': 'Content', 'type': 'str'}, - 'content_id': {'key': 'ContentId', 'type': 'str'}, - 'callback_endpoint': {'key': 'CallbackEndpoint', 'type': 'str'}, - } - - def __init__(self, review_id=None, sub_team=None, status=None, reviewer_result_tags=None, created_by=None, metadata=None, type=None, content=None, content_id=None, callback_endpoint=None): - super(Review, self).__init__() - self.review_id = review_id - self.sub_team = sub_team - self.status = status - self.reviewer_result_tags = reviewer_result_tags - self.created_by = created_by - self.metadata = metadata - self.type = type - self.content = content - self.content_id = content_id - self.callback_endpoint = callback_endpoint diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py deleted file mode 100644 index 4ed9e7e12641..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Score(Model): - """The classification score details of the text. Click here for more - details on category classification. - - :param score: The category score. - :type score: float - """ - - _attribute_map = { - 'score': {'key': 'Score', 'type': 'float'}, - } - - def __init__(self, score=None): - super(Score, self).__init__() - self.score = score diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/screen.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/screen.py deleted file mode 100644 index 62ea694f24f8..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/screen.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Screen(Model): - """The response for a Screen text request. - - :param original_text: The original text. - :type original_text: str - :param normalized_text: The normalized text. - :type normalized_text: str - :param auto_corrected_text: The autocorrected text - :type auto_corrected_text: str - :param misrepresentation: The misrepresentation text. - :type misrepresentation: list[str] - :param classification: The classification details of the text. - :type classification: - ~azure.cognitiveservices.vision.contentmoderator.models.Classification - :param status: The evaluate status. - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param pii: Personal Identifier Information details. - :type pii: ~azure.cognitiveservices.vision.contentmoderator.models.PII - :param language: Language of the input text content. - :type language: str - :param terms: - :type terms: - list[~azure.cognitiveservices.vision.contentmoderator.models.DetectedTerms] - :param tracking_id: Unique Content Moderator transaction Id. - :type tracking_id: str - """ - - _attribute_map = { - 'original_text': {'key': 'OriginalText', 'type': 'str'}, - 'normalized_text': {'key': 'NormalizedText', 'type': 'str'}, - 'auto_corrected_text': {'key': 'AutoCorrectedText', 'type': 'str'}, - 'misrepresentation': {'key': 'Misrepresentation', 'type': '[str]'}, - 'classification': {'key': 'Classification', 'type': 'Classification'}, - 'status': {'key': 'Status', 'type': 'Status'}, - 'pii': {'key': 'PII', 'type': 'PII'}, - 'language': {'key': 'Language', 'type': 'str'}, - 'terms': {'key': 'Terms', 'type': '[DetectedTerms]'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - } - - def __init__(self, original_text=None, normalized_text=None, auto_corrected_text=None, misrepresentation=None, classification=None, status=None, pii=None, language=None, terms=None, tracking_id=None): - super(Screen, self).__init__() - self.original_text = original_text - self.normalized_text = normalized_text - self.auto_corrected_text = auto_corrected_text - self.misrepresentation = misrepresentation - self.classification = classification - self.status = status - self.pii = pii - self.language = language - self.terms = terms - self.tracking_id = tracking_id diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/status.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/status.py deleted file mode 100644 index 6c311d678cc4..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/status.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Status(Model): - """Status properties. - - :param code: Status code. - :type code: int - :param description: Status description. - :type description: str - :param exception: Exception status. - :type exception: str - """ - - _attribute_map = { - 'code': {'key': 'Code', 'type': 'int'}, - 'description': {'key': 'Description', 'type': 'str'}, - 'exception': {'key': 'Exception', 'type': 'str'}, - } - - def __init__(self, code=None, description=None, exception=None): - super(Status, self).__init__() - self.code = code - self.description = description - self.exception = exception diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/tag.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/tag.py deleted file mode 100644 index 97f93efe611e..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/tag.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Tag(Model): - """Tag details. - - :param key: The key parameter. - :type key: str - :param value: The value parameter. - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key=None, value=None): - super(Tag, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list.py deleted file mode 100644 index e663034f4217..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TermList(Model): - """Term List Properties. - - :param id: Term list Id. - :type id: int - :param name: Term list name. - :type name: str - :param description: Description for term list. - :type description: str - :param metadata: Term list metadata. - :type metadata: - ~azure.cognitiveservices.vision.contentmoderator.models.TermListMetadata - """ - - _attribute_map = { - 'id': {'key': 'Id', 'type': 'int'}, - 'name': {'key': 'Name', 'type': 'str'}, - 'description': {'key': 'Description', 'type': 'str'}, - 'metadata': {'key': 'Metadata', 'type': 'TermListMetadata'}, - } - - def __init__(self, id=None, name=None, description=None, metadata=None): - super(TermList, self).__init__() - self.id = id - self.name = name - self.description = description - self.metadata = metadata diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list_metadata.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list_metadata.py deleted file mode 100644 index 28e3266b2231..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/term_list_metadata.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TermListMetadata(Model): - """Term list metadata. - - :param key_one: Optional Key value pair to describe your list. - :type key_one: str - :param key_two: Optional Key value pair to describe your list. - :type key_two: str - """ - - _attribute_map = { - 'key_one': {'key': 'Key One', 'type': 'str'}, - 'key_two': {'key': 'Key Two', 'type': 'str'}, - } - - def __init__(self, key_one=None, key_two=None): - super(TermListMetadata, self).__init__() - self.key_one = key_one - self.key_two = key_two diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms.py deleted file mode 100644 index 39d33d08a203..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Terms(Model): - """Terms properties. - - :param data: Term data details. - :type data: - ~azure.cognitiveservices.vision.contentmoderator.models.TermsData - :param paging: Paging details. - :type paging: - ~azure.cognitiveservices.vision.contentmoderator.models.TermsPaging - """ - - _attribute_map = { - 'data': {'key': 'Data', 'type': 'TermsData'}, - 'paging': {'key': 'Paging', 'type': 'TermsPaging'}, - } - - def __init__(self, data=None, paging=None): - super(Terms, self).__init__() - self.data = data - self.paging = paging diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_data.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_data.py deleted file mode 100644 index 0c0637c5d7b2..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_data.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TermsData(Model): - """All term Id response properties. - - :param language: Language of the terms. - :type language: str - :param terms: List of terms. - :type terms: - list[~azure.cognitiveservices.vision.contentmoderator.models.TermsInList] - :param status: Term Status. - :type status: - ~azure.cognitiveservices.vision.contentmoderator.models.Status - :param tracking_id: Tracking Id. - :type tracking_id: str - """ - - _attribute_map = { - 'language': {'key': 'Language', 'type': 'str'}, - 'terms': {'key': 'Terms', 'type': '[TermsInList]'}, - 'status': {'key': 'Status', 'type': 'Status'}, - 'tracking_id': {'key': 'TrackingId', 'type': 'str'}, - } - - def __init__(self, language=None, terms=None, status=None, tracking_id=None): - super(TermsData, self).__init__() - self.language = language - self.terms = terms - self.status = status - self.tracking_id = tracking_id diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_in_list.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_in_list.py deleted file mode 100644 index ad38ca340003..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_in_list.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TermsInList(Model): - """Terms in list Id passed. - - :param term: Added term details. - :type term: str - """ - - _attribute_map = { - 'term': {'key': 'Term', 'type': 'str'}, - } - - def __init__(self, term=None): - super(TermsInList, self).__init__() - self.term = term diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_paging.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_paging.py deleted file mode 100644 index 9bf0131ba40c..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/terms_paging.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TermsPaging(Model): - """Paging details. - - :param total: Total details. - :type total: int - :param limit: Limit details. - :type limit: int - :param offset: Offset details. - :type offset: int - :param returned: Returned text details. - :type returned: int - """ - - _attribute_map = { - 'total': {'key': 'Total', 'type': 'int'}, - 'limit': {'key': 'Limit', 'type': 'int'}, - 'offset': {'key': 'Offset', 'type': 'int'}, - 'returned': {'key': 'Returned', 'type': 'int'}, - } - - def __init__(self, total=None, limit=None, offset=None, returned=None): - super(TermsPaging, self).__init__() - self.total = total - self.limit = limit - self.offset = offset - self.returned = returned diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item.py deleted file mode 100644 index 0518d781bf1d..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TranscriptModerationBodyItem(Model): - """Schema items of the body. - - :param timestamp: Timestamp of the image. - :type timestamp: str - :param terms: Optional metadata details. - :type terms: - list[~azure.cognitiveservices.vision.contentmoderator.models.TranscriptModerationBodyItemTermsItem] - """ - - _validation = { - 'timestamp': {'required': True}, - 'terms': {'required': True}, - } - - _attribute_map = { - 'timestamp': {'key': 'Timestamp', 'type': 'str'}, - 'terms': {'key': 'Terms', 'type': '[TranscriptModerationBodyItemTermsItem]'}, - } - - def __init__(self, timestamp, terms): - super(TranscriptModerationBodyItem, self).__init__() - self.timestamp = timestamp - self.terms = terms diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item_terms_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item_terms_item.py deleted file mode 100644 index 22cf169e0b49..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/transcript_moderation_body_item_terms_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TranscriptModerationBodyItemTermsItem(Model): - """TranscriptModerationBodyItemTermsItem. - - :param index: Index of the word - :type index: int - :param term: Detected word. - :type term: str - """ - - _validation = { - 'index': {'required': True}, - 'term': {'required': True}, - } - - _attribute_map = { - 'index': {'key': 'Index', 'type': 'int'}, - 'term': {'key': 'Term', 'type': 'str'}, - } - - def __init__(self, index, term): - super(TranscriptModerationBodyItemTermsItem, self).__init__() - self.index = index - self.term = term diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item.py deleted file mode 100644 index 8ae0e83b771c..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VideoFrameBodyItem(Model): - """Schema items of the body. - - :param timestamp: Timestamp of the frame. - :type timestamp: str - :param frame_image: Content to review. - :type frame_image: str - :param reviewer_result_tags: - :type reviewer_result_tags: - list[~azure.cognitiveservices.vision.contentmoderator.models.VideoFrameBodyItemReviewerResultTagsItem] - :param metadata: Optional metadata details. - :type metadata: - list[~azure.cognitiveservices.vision.contentmoderator.models.VideoFrameBodyItemMetadataItem] - """ - - _validation = { - 'timestamp': {'required': True}, - 'frame_image': {'required': True}, - } - - _attribute_map = { - 'timestamp': {'key': 'Timestamp', 'type': 'str'}, - 'frame_image': {'key': 'FrameImage', 'type': 'str'}, - 'reviewer_result_tags': {'key': 'ReviewerResultTags', 'type': '[VideoFrameBodyItemReviewerResultTagsItem]'}, - 'metadata': {'key': 'Metadata', 'type': '[VideoFrameBodyItemMetadataItem]'}, - } - - def __init__(self, timestamp, frame_image, reviewer_result_tags=None, metadata=None): - super(VideoFrameBodyItem, self).__init__() - self.timestamp = timestamp - self.frame_image = frame_image - self.reviewer_result_tags = reviewer_result_tags - self.metadata = metadata diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_metadata_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_metadata_item.py deleted file mode 100644 index 356ff20ffb0d..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_metadata_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VideoFrameBodyItemMetadataItem(Model): - """VideoFrameBodyItemMetadataItem. - - :param key: Your key parameter. - :type key: str - :param value: Your value parameter. - :type value: str - """ - - _validation = { - 'key': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key, value): - super(VideoFrameBodyItemMetadataItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.py deleted file mode 100644 index 3f56d657a727..000000000000 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/video_frame_body_item_reviewer_result_tags_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VideoFrameBodyItemReviewerResultTagsItem(Model): - """VideoFrameBodyItemReviewerResultTagsItem. - - :param key: Your key parameter. - :type key: str - :param value: Your value parameter. - :type value: str - """ - - _validation = { - 'key': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'Key', 'type': 'str'}, - 'value': {'key': 'Value', 'type': 'str'}, - } - - def __init__(self, key, value): - super(VideoFrameBodyItemReviewerResultTagsItem, self).__init__() - self.key = key - self.value = value diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/version.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/version.py index e0ec669828cb..c995f7836cef 100644 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/version.py +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/version.py @@ -9,5 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" - +VERSION = "0.2.0"