...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/contentmoderator/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/contentmoderator

     1  // Package contentmoderator implements the Azure ARM Contentmoderator service API version 1.0.
     2  //
     3  // You use the API to scan your content as it is generated. Content Moderator then processes your content and sends the
     4  // results along with relevant information either back to your systems or to the built-in review tool. You can use this
     5  // information to take decisions e.g. take it down, send to human judge, etc.
     6  //
     7  // When using the API, images need to have a minimum of 128 pixels and a maximum file size of 4MB.
     8  // Text can be at most 1024 characters long.
     9  // If the content passed to the text API or the image API exceeds the size limits, the API will return an error code
    10  // that informs about the issue.
    11  package contentmoderator
    12  
    13  // Copyright (c) Microsoft Corporation. All rights reserved.
    14  // Licensed under the MIT License. See License.txt in the project root for license information.
    15  //
    16  // Code generated by Microsoft (R) AutoRest Code Generator.
    17  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
    18  
    19  import (
    20  	"github.com/Azure/go-autorest/autorest"
    21  )
    22  
    23  // BaseClient is the base client for Contentmoderator.
    24  type BaseClient struct {
    25  	autorest.Client
    26  	Endpoint string
    27  }
    28  
    29  // New creates an instance of the BaseClient client.
    30  func New(endpoint string) BaseClient {
    31  	return NewWithoutDefaults(endpoint)
    32  }
    33  
    34  // NewWithoutDefaults creates an instance of the BaseClient client.
    35  func NewWithoutDefaults(endpoint string) BaseClient {
    36  	return BaseClient{
    37  		Client:   autorest.NewClientWithUserAgent(UserAgent()),
    38  		Endpoint: endpoint,
    39  	}
    40  }
    41  

View as plain text