1package contentmoderatorapi
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20import (
21	"context"
22	"github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/contentmoderator"
23	"github.com/Azure/go-autorest/autorest"
24	"io"
25)
26
27// ImageModerationClientAPI contains the set of methods on the ImageModerationClient type.
28type ImageModerationClientAPI interface {
29	EvaluateFileInput(ctx context.Context, imageStream io.ReadCloser, cacheImage *bool) (result contentmoderator.Evaluate, err error)
30	EvaluateMethod(ctx context.Context, cacheImage *bool) (result contentmoderator.Evaluate, err error)
31	EvaluateURLInput(ctx context.Context, contentType string, imageURL contentmoderator.ImageURL, cacheImage *bool) (result contentmoderator.Evaluate, err error)
32	FindFaces(ctx context.Context, cacheImage *bool) (result contentmoderator.FoundFaces, err error)
33	FindFacesFileInput(ctx context.Context, imageStream io.ReadCloser, cacheImage *bool) (result contentmoderator.FoundFaces, err error)
34	FindFacesURLInput(ctx context.Context, contentType string, imageURL contentmoderator.ImageURL, cacheImage *bool) (result contentmoderator.FoundFaces, err error)
35	MatchFileInput(ctx context.Context, imageStream io.ReadCloser, listID string, cacheImage *bool) (result contentmoderator.MatchResponse, err error)
36	MatchMethod(ctx context.Context, listID string, cacheImage *bool) (result contentmoderator.MatchResponse, err error)
37	MatchURLInput(ctx context.Context, contentType string, imageURL contentmoderator.ImageURL, listID string, cacheImage *bool) (result contentmoderator.MatchResponse, err error)
38	OCRFileInput(ctx context.Context, language string, imageStream io.ReadCloser, cacheImage *bool, enhanced *bool) (result contentmoderator.OCR, err error)
39	OCRMethod(ctx context.Context, language string, cacheImage *bool, enhanced *bool) (result contentmoderator.OCR, err error)
40	OCRURLInput(ctx context.Context, language string, contentType string, imageURL contentmoderator.ImageURL, cacheImage *bool, enhanced *bool) (result contentmoderator.OCR, err error)
41}
42
43var _ ImageModerationClientAPI = (*contentmoderator.ImageModerationClient)(nil)
44
45// TextModerationClientAPI contains the set of methods on the TextModerationClient type.
46type TextModerationClientAPI interface {
47	DetectLanguage(ctx context.Context, textContentType string, textContent io.ReadCloser) (result contentmoderator.DetectedLanguage, err error)
48	ScreenText(ctx context.Context, textContentType string, textContent io.ReadCloser, language string, autocorrect *bool, pii *bool, listID string, classify *bool) (result contentmoderator.Screen, err error)
49}
50
51var _ TextModerationClientAPI = (*contentmoderator.TextModerationClient)(nil)
52
53// ListManagementImageListsClientAPI contains the set of methods on the ListManagementImageListsClient type.
54type ListManagementImageListsClientAPI interface {
55	Create(ctx context.Context, contentType string, body contentmoderator.Body) (result contentmoderator.ImageList, err error)
56	Delete(ctx context.Context, listID string) (result contentmoderator.String, err error)
57	GetAllImageLists(ctx context.Context) (result contentmoderator.ListImageList, err error)
58	GetDetails(ctx context.Context, listID string) (result contentmoderator.ImageList, err error)
59	RefreshIndexMethod(ctx context.Context, listID string) (result contentmoderator.RefreshIndex, err error)
60	Update(ctx context.Context, listID string, contentType string, body contentmoderator.Body) (result contentmoderator.ImageList, err error)
61}
62
63var _ ListManagementImageListsClientAPI = (*contentmoderator.ListManagementImageListsClient)(nil)
64
65// ListManagementTermListsClientAPI contains the set of methods on the ListManagementTermListsClient type.
66type ListManagementTermListsClientAPI interface {
67	Create(ctx context.Context, contentType string, body contentmoderator.Body) (result contentmoderator.TermList, err error)
68	Delete(ctx context.Context, listID string) (result contentmoderator.String, err error)
69	GetAllTermLists(ctx context.Context) (result contentmoderator.ListTermList, err error)
70	GetDetails(ctx context.Context, listID string) (result contentmoderator.TermList, err error)
71	RefreshIndexMethod(ctx context.Context, listID string, language string) (result contentmoderator.RefreshIndex, err error)
72	Update(ctx context.Context, listID string, contentType string, body contentmoderator.Body) (result contentmoderator.TermList, err error)
73}
74
75var _ ListManagementTermListsClientAPI = (*contentmoderator.ListManagementTermListsClient)(nil)
76
77// ListManagementImageClientAPI contains the set of methods on the ListManagementImageClient type.
78type ListManagementImageClientAPI interface {
79	AddImage(ctx context.Context, listID string, tag *int32, label string) (result contentmoderator.Image, err error)
80	AddImageFileInput(ctx context.Context, listID string, imageStream io.ReadCloser, tag *int32, label string) (result contentmoderator.Image, err error)
81	AddImageURLInput(ctx context.Context, listID string, contentType string, imageURL contentmoderator.ImageURL, tag *int32, label string) (result contentmoderator.Image, err error)
82	DeleteAllImages(ctx context.Context, listID string) (result contentmoderator.String, err error)
83	DeleteImage(ctx context.Context, listID string, imageID string) (result contentmoderator.String, err error)
84	GetAllImageIds(ctx context.Context, listID string) (result contentmoderator.ImageIds, err error)
85}
86
87var _ ListManagementImageClientAPI = (*contentmoderator.ListManagementImageClient)(nil)
88
89// ListManagementTermClientAPI contains the set of methods on the ListManagementTermClient type.
90type ListManagementTermClientAPI interface {
91	AddTerm(ctx context.Context, listID string, term string, language string) (result autorest.Response, err error)
92	DeleteAllTerms(ctx context.Context, listID string, language string) (result contentmoderator.String, err error)
93	DeleteTerm(ctx context.Context, listID string, term string, language string) (result contentmoderator.String, err error)
94	GetAllTerms(ctx context.Context, listID string, language string, offset *int32, limit *int32) (result contentmoderator.Terms, err error)
95}
96
97var _ ListManagementTermClientAPI = (*contentmoderator.ListManagementTermClient)(nil)
98
99// ReviewsClientAPI contains the set of methods on the ReviewsClient type.
100type ReviewsClientAPI interface {
101	AddVideoFrame(ctx context.Context, teamName string, reviewID string, timescale *int32) (result autorest.Response, err error)
102	AddVideoFrameStream(ctx context.Context, contentType string, teamName string, reviewID string, frameImageZip io.ReadCloser, frameMetadata string, timescale *int32) (result autorest.Response, err error)
103	AddVideoFrameURL(ctx context.Context, contentType string, teamName string, reviewID string, videoFrameBody []contentmoderator.VideoFrameBodyItem, timescale *int32) (result autorest.Response, err error)
104	AddVideoTranscript(ctx context.Context, teamName string, reviewID string, vttfile io.ReadCloser) (result autorest.Response, err error)
105	AddVideoTranscriptModerationResult(ctx context.Context, contentType string, teamName string, reviewID string, transcriptModerationBody []contentmoderator.TranscriptModerationBodyItem) (result autorest.Response, err error)
106	CreateJob(ctx context.Context, teamName string, contentType string, contentID string, workflowName string, jobContentType string, content contentmoderator.Content, callBackEndpoint string) (result contentmoderator.JobID, err error)
107	CreateReviews(ctx context.Context, URLContentType string, teamName string, createReviewBody []contentmoderator.CreateReviewBodyItem, subTeam string) (result contentmoderator.ListString, err error)
108	CreateVideoReviews(ctx context.Context, contentType string, teamName string, createVideoReviewsBody []contentmoderator.CreateVideoReviewsBodyItem, subTeam string) (result contentmoderator.ListString, err error)
109	GetJobDetails(ctx context.Context, teamName string, jobID string) (result contentmoderator.Job, err error)
110	GetReview(ctx context.Context, teamName string, reviewID string) (result contentmoderator.Review, err error)
111	GetVideoFrames(ctx context.Context, teamName string, reviewID string, startSeed *int32, noOfRecords *int32, filter string) (result contentmoderator.Frames, err error)
112	PublishVideoReview(ctx context.Context, teamName string, reviewID string) (result autorest.Response, err error)
113}
114
115var _ ReviewsClientAPI = (*contentmoderator.ReviewsClient)(nil)
116