operations

package
v0.0.0-...-7278ba6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2019 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for operations API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new operations API client.

func (*Client) DetectLanguage

func (a *Client) DetectLanguage(params *DetectLanguageParams) (*DetectLanguageOK, error)

DetectLanguage The API returns the detected language and a numeric score between 0 and 1.

Scores close to 1 indicate 100% certainty that the identified language is true.
A total of 120 languages are supported.

func (*Client) DetectTopics

func (a *Client) DetectTopics(params *DetectTopicsParams) (*DetectTopicsAccepted, error)

DetectTopics The API returns the top detected topics for a list of submitted text documents.

A topic is identified with a key phrase, which can be one or more related words.
Use the URL parameters and stop word list to control which words or documents are filtered out.
You can also supply a list of topics to exclude from the response.
At least 100 text documents must be submitted, however it is designed to detect topics across hundreds to thousands of documents.
Note that one transaction is charged per text document submitted.
For best performance, limit each document to a short, human written text paragraph such as review, conversation or user feedback.

func (*Client) KeyPhrases

func (a *Client) KeyPhrases(params *KeyPhrasesParams) (*KeyPhrasesOK, error)

KeyPhrases The API returns a list of strings denoting the key talking points in the input text.

We employ techniques from Microsoft Office's sophisticated Natural Language Processing toolkit.
Currently, the following languages are supported: English, German, Spanish and Japanese.

func (*Client) OperationStatus

func (a *Client) OperationStatus(params *OperationStatusParams) (*OperationStatusOK, error)

OperationStatus Get the status of an operation submitted for processing. If the the operation has reached a 'Succeeded' state, will also return the result.

func (*Client) Sentiment

func (a *Client) Sentiment(params *SentimentParams) (*SentimentOK, error)

Sentiment The API returns a numeric score between 0 and 1.

Scores close to 1 indicate positive sentiment, while scores close to 0 indicate negative sentiment.
Sentiment score is generated using classification techniques.
The input features to the classifier include n-grams, features generated from part-of-speech tags, and word embeddings.
Currently, the following languages are supported: English, Spanish, French, Portuguese.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DetectLanguageBadRequest

type DetectLanguageBadRequest struct {
	Payload *models.ErrorResponse
}

DetectLanguageBadRequest handles this case with default header values.

BadRequest

func NewDetectLanguageBadRequest

func NewDetectLanguageBadRequest() *DetectLanguageBadRequest

NewDetectLanguageBadRequest creates a DetectLanguageBadRequest with default headers values

func (*DetectLanguageBadRequest) Error

func (o *DetectLanguageBadRequest) Error() string

type DetectLanguageOK

type DetectLanguageOK struct {
	Payload *models.LanguageBatchResultV2
}

DetectLanguageOK handles this case with default header values.

OK

func NewDetectLanguageOK

func NewDetectLanguageOK() *DetectLanguageOK

NewDetectLanguageOK creates a DetectLanguageOK with default headers values

func (*DetectLanguageOK) Error

func (o *DetectLanguageOK) Error() string

type DetectLanguageParams

type DetectLanguageParams struct {

	/*OcpApimSubscriptionKey
	  subscription key in header

	*/
	OcpApimSubscriptionKey *string
	/*BatchInputV2*/
	BatchInputV2 *models.BatchInputV2
	/*NumberOfLanguagesToDetect
	  Format - int32. (Optional) Number of languages to detect. Set to 1 by default.

	*/
	NumberOfLanguagesToDetect *int64
	/*SubscriptionKey
	  subscription key in url

	*/
	SubscriptionKey *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DetectLanguageParams contains all the parameters to send to the API endpoint for the detect language operation typically these are written to a http.Request

func NewDetectLanguageParams

func NewDetectLanguageParams() *DetectLanguageParams

NewDetectLanguageParams creates a new DetectLanguageParams object with the default values initialized.

func NewDetectLanguageParamsWithContext

func NewDetectLanguageParamsWithContext(ctx context.Context) *DetectLanguageParams

NewDetectLanguageParamsWithContext creates a new DetectLanguageParams object with the default values initialized, and the ability to set a context for a request

func NewDetectLanguageParamsWithTimeout

func NewDetectLanguageParamsWithTimeout(timeout time.Duration) *DetectLanguageParams

NewDetectLanguageParamsWithTimeout creates a new DetectLanguageParams object with the default values initialized, and the ability to set a timeout on a request

func (*DetectLanguageParams) SetBatchInputV2

func (o *DetectLanguageParams) SetBatchInputV2(batchInputV2 *models.BatchInputV2)

SetBatchInputV2 adds the batchInputV2 to the detect language params

func (*DetectLanguageParams) SetContext

func (o *DetectLanguageParams) SetContext(ctx context.Context)

SetContext adds the context to the detect language params

func (*DetectLanguageParams) SetNumberOfLanguagesToDetect

func (o *DetectLanguageParams) SetNumberOfLanguagesToDetect(numberOfLanguagesToDetect *int64)

SetNumberOfLanguagesToDetect adds the numberOfLanguagesToDetect to the detect language params

func (*DetectLanguageParams) SetOcpApimSubscriptionKey

func (o *DetectLanguageParams) SetOcpApimSubscriptionKey(ocpApimSubscriptionKey *string)

SetOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the detect language params

func (*DetectLanguageParams) SetSubscriptionKey

func (o *DetectLanguageParams) SetSubscriptionKey(subscriptionKey *string)

SetSubscriptionKey adds the subscriptionKey to the detect language params

func (*DetectLanguageParams) SetTimeout

func (o *DetectLanguageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the detect language params

func (*DetectLanguageParams) WithBatchInputV2

func (o *DetectLanguageParams) WithBatchInputV2(batchInputV2 *models.BatchInputV2) *DetectLanguageParams

WithBatchInputV2 adds the batchInputV2 to the detect language params

func (*DetectLanguageParams) WithContext

WithContext adds the context to the detect language params

func (*DetectLanguageParams) WithNumberOfLanguagesToDetect

func (o *DetectLanguageParams) WithNumberOfLanguagesToDetect(numberOfLanguagesToDetect *int64) *DetectLanguageParams

WithNumberOfLanguagesToDetect adds the numberOfLanguagesToDetect to the detect language params

func (*DetectLanguageParams) WithOcpApimSubscriptionKey

func (o *DetectLanguageParams) WithOcpApimSubscriptionKey(ocpApimSubscriptionKey *string) *DetectLanguageParams

WithOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the detect language params

func (*DetectLanguageParams) WithSubscriptionKey

func (o *DetectLanguageParams) WithSubscriptionKey(subscriptionKey *string) *DetectLanguageParams

WithSubscriptionKey adds the subscriptionKey to the detect language params

func (*DetectLanguageParams) WithTimeout

func (o *DetectLanguageParams) WithTimeout(timeout time.Duration) *DetectLanguageParams

WithTimeout adds the timeout to the detect language params

func (*DetectLanguageParams) WriteToRequest

func (o *DetectLanguageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DetectLanguageReader

type DetectLanguageReader struct {
	// contains filtered or unexported fields
}

DetectLanguageReader is a Reader for the DetectLanguage structure.

func (*DetectLanguageReader) ReadResponse

func (o *DetectLanguageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DetectTopicsAccepted

type DetectTopicsAccepted struct {
	/*URL of the created operation. Invoke a GET HTTP request to retrieve the operation status.
	 */
	OperationLocation string
}

DetectTopicsAccepted handles this case with default header values.

Accepted

func NewDetectTopicsAccepted

func NewDetectTopicsAccepted() *DetectTopicsAccepted

NewDetectTopicsAccepted creates a DetectTopicsAccepted with default headers values

func (*DetectTopicsAccepted) Error

func (o *DetectTopicsAccepted) Error() string

type DetectTopicsBadRequest

type DetectTopicsBadRequest struct {
	Payload *models.ErrorResponse
}

DetectTopicsBadRequest handles this case with default header values.

BadRequest

func NewDetectTopicsBadRequest

func NewDetectTopicsBadRequest() *DetectTopicsBadRequest

NewDetectTopicsBadRequest creates a DetectTopicsBadRequest with default headers values

func (*DetectTopicsBadRequest) Error

func (o *DetectTopicsBadRequest) Error() string

type DetectTopicsParams

type DetectTopicsParams struct {

	/*OcpApimSubscriptionKey
	  subscription key in header

	*/
	OcpApimSubscriptionKey *string
	/*MaxDocumentsPerWord
	  Format - int32. (optional) Words that occur in more than this many documents are ignored.
	            Use this parameter to help exclude ubiquitous document topics.
	            Omit to let the service choose appropriate value.

	*/
	MaxDocumentsPerWord *int64
	/*MinDocumentsPerWord
	  Format - int32. (optional) Words that occur in less than this many documents are ignored.
	            Use this parameter to help exclude rare document topics.
	            Omit to let the service choose appropriate value.

	*/
	MinDocumentsPerWord *int64
	/*SubscriptionKey
	  subscription key in url

	*/
	SubscriptionKey *string
	/*TopicDetectionInputV2*/
	TopicDetectionInputV2 *models.TopicDetectionInputV2

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DetectTopicsParams contains all the parameters to send to the API endpoint for the detect topics operation typically these are written to a http.Request

func NewDetectTopicsParams

func NewDetectTopicsParams() *DetectTopicsParams

NewDetectTopicsParams creates a new DetectTopicsParams object with the default values initialized.

func NewDetectTopicsParamsWithContext

func NewDetectTopicsParamsWithContext(ctx context.Context) *DetectTopicsParams

NewDetectTopicsParamsWithContext creates a new DetectTopicsParams object with the default values initialized, and the ability to set a context for a request

func NewDetectTopicsParamsWithTimeout

func NewDetectTopicsParamsWithTimeout(timeout time.Duration) *DetectTopicsParams

NewDetectTopicsParamsWithTimeout creates a new DetectTopicsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DetectTopicsParams) SetContext

func (o *DetectTopicsParams) SetContext(ctx context.Context)

SetContext adds the context to the detect topics params

func (*DetectTopicsParams) SetMaxDocumentsPerWord

func (o *DetectTopicsParams) SetMaxDocumentsPerWord(maxDocumentsPerWord *int64)

SetMaxDocumentsPerWord adds the maxDocumentsPerWord to the detect topics params

func (*DetectTopicsParams) SetMinDocumentsPerWord

func (o *DetectTopicsParams) SetMinDocumentsPerWord(minDocumentsPerWord *int64)

SetMinDocumentsPerWord adds the minDocumentsPerWord to the detect topics params

func (*DetectTopicsParams) SetOcpApimSubscriptionKey

func (o *DetectTopicsParams) SetOcpApimSubscriptionKey(ocpApimSubscriptionKey *string)

SetOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the detect topics params

func (*DetectTopicsParams) SetSubscriptionKey

func (o *DetectTopicsParams) SetSubscriptionKey(subscriptionKey *string)

SetSubscriptionKey adds the subscriptionKey to the detect topics params

func (*DetectTopicsParams) SetTimeout

func (o *DetectTopicsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the detect topics params

func (*DetectTopicsParams) SetTopicDetectionInputV2

func (o *DetectTopicsParams) SetTopicDetectionInputV2(topicDetectionInputV2 *models.TopicDetectionInputV2)

SetTopicDetectionInputV2 adds the topicDetectionInputV2 to the detect topics params

func (*DetectTopicsParams) WithContext

WithContext adds the context to the detect topics params

func (*DetectTopicsParams) WithMaxDocumentsPerWord

func (o *DetectTopicsParams) WithMaxDocumentsPerWord(maxDocumentsPerWord *int64) *DetectTopicsParams

WithMaxDocumentsPerWord adds the maxDocumentsPerWord to the detect topics params

func (*DetectTopicsParams) WithMinDocumentsPerWord

func (o *DetectTopicsParams) WithMinDocumentsPerWord(minDocumentsPerWord *int64) *DetectTopicsParams

WithMinDocumentsPerWord adds the minDocumentsPerWord to the detect topics params

func (*DetectTopicsParams) WithOcpApimSubscriptionKey

func (o *DetectTopicsParams) WithOcpApimSubscriptionKey(ocpApimSubscriptionKey *string) *DetectTopicsParams

WithOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the detect topics params

func (*DetectTopicsParams) WithSubscriptionKey

func (o *DetectTopicsParams) WithSubscriptionKey(subscriptionKey *string) *DetectTopicsParams

WithSubscriptionKey adds the subscriptionKey to the detect topics params

func (*DetectTopicsParams) WithTimeout

func (o *DetectTopicsParams) WithTimeout(timeout time.Duration) *DetectTopicsParams

WithTimeout adds the timeout to the detect topics params

func (*DetectTopicsParams) WithTopicDetectionInputV2

func (o *DetectTopicsParams) WithTopicDetectionInputV2(topicDetectionInputV2 *models.TopicDetectionInputV2) *DetectTopicsParams

WithTopicDetectionInputV2 adds the topicDetectionInputV2 to the detect topics params

func (*DetectTopicsParams) WriteToRequest

func (o *DetectTopicsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DetectTopicsReader

type DetectTopicsReader struct {
	// contains filtered or unexported fields
}

DetectTopicsReader is a Reader for the DetectTopics structure.

func (*DetectTopicsReader) ReadResponse

func (o *DetectTopicsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type KeyPhrasesBadRequest

type KeyPhrasesBadRequest struct {
	Payload *models.ErrorResponse
}

KeyPhrasesBadRequest handles this case with default header values.

BadRequest

func NewKeyPhrasesBadRequest

func NewKeyPhrasesBadRequest() *KeyPhrasesBadRequest

NewKeyPhrasesBadRequest creates a KeyPhrasesBadRequest with default headers values

func (*KeyPhrasesBadRequest) Error

func (o *KeyPhrasesBadRequest) Error() string

type KeyPhrasesOK

type KeyPhrasesOK struct {
	Payload *models.KeyPhraseBatchResultV2
}

KeyPhrasesOK handles this case with default header values.

OK

func NewKeyPhrasesOK

func NewKeyPhrasesOK() *KeyPhrasesOK

NewKeyPhrasesOK creates a KeyPhrasesOK with default headers values

func (*KeyPhrasesOK) Error

func (o *KeyPhrasesOK) Error() string

type KeyPhrasesParams

type KeyPhrasesParams struct {

	/*OcpApimSubscriptionKey
	  subscription key in header

	*/
	OcpApimSubscriptionKey *string
	/*MultiLanguageBatchInputV2*/
	MultiLanguageBatchInputV2 *models.MultiLanguageBatchInputV2
	/*SubscriptionKey
	  subscription key in url

	*/
	SubscriptionKey *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

KeyPhrasesParams contains all the parameters to send to the API endpoint for the key phrases operation typically these are written to a http.Request

func NewKeyPhrasesParams

func NewKeyPhrasesParams() *KeyPhrasesParams

NewKeyPhrasesParams creates a new KeyPhrasesParams object with the default values initialized.

func NewKeyPhrasesParamsWithContext

func NewKeyPhrasesParamsWithContext(ctx context.Context) *KeyPhrasesParams

NewKeyPhrasesParamsWithContext creates a new KeyPhrasesParams object with the default values initialized, and the ability to set a context for a request

func NewKeyPhrasesParamsWithTimeout

func NewKeyPhrasesParamsWithTimeout(timeout time.Duration) *KeyPhrasesParams

NewKeyPhrasesParamsWithTimeout creates a new KeyPhrasesParams object with the default values initialized, and the ability to set a timeout on a request

func (*KeyPhrasesParams) SetContext

func (o *KeyPhrasesParams) SetContext(ctx context.Context)

SetContext adds the context to the key phrases params

func (*KeyPhrasesParams) SetMultiLanguageBatchInputV2

func (o *KeyPhrasesParams) SetMultiLanguageBatchInputV2(multiLanguageBatchInputV2 *models.MultiLanguageBatchInputV2)

SetMultiLanguageBatchInputV2 adds the multiLanguageBatchInputV2 to the key phrases params

func (*KeyPhrasesParams) SetOcpApimSubscriptionKey

func (o *KeyPhrasesParams) SetOcpApimSubscriptionKey(ocpApimSubscriptionKey *string)

SetOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the key phrases params

func (*KeyPhrasesParams) SetSubscriptionKey

func (o *KeyPhrasesParams) SetSubscriptionKey(subscriptionKey *string)

SetSubscriptionKey adds the subscriptionKey to the key phrases params

func (*KeyPhrasesParams) SetTimeout

func (o *KeyPhrasesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the key phrases params

func (*KeyPhrasesParams) WithContext

func (o *KeyPhrasesParams) WithContext(ctx context.Context) *KeyPhrasesParams

WithContext adds the context to the key phrases params

func (*KeyPhrasesParams) WithMultiLanguageBatchInputV2

func (o *KeyPhrasesParams) WithMultiLanguageBatchInputV2(multiLanguageBatchInputV2 *models.MultiLanguageBatchInputV2) *KeyPhrasesParams

WithMultiLanguageBatchInputV2 adds the multiLanguageBatchInputV2 to the key phrases params

func (*KeyPhrasesParams) WithOcpApimSubscriptionKey

func (o *KeyPhrasesParams) WithOcpApimSubscriptionKey(ocpApimSubscriptionKey *string) *KeyPhrasesParams

WithOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the key phrases params

func (*KeyPhrasesParams) WithSubscriptionKey

func (o *KeyPhrasesParams) WithSubscriptionKey(subscriptionKey *string) *KeyPhrasesParams

WithSubscriptionKey adds the subscriptionKey to the key phrases params

func (*KeyPhrasesParams) WithTimeout

func (o *KeyPhrasesParams) WithTimeout(timeout time.Duration) *KeyPhrasesParams

WithTimeout adds the timeout to the key phrases params

func (*KeyPhrasesParams) WriteToRequest

func (o *KeyPhrasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type KeyPhrasesReader

type KeyPhrasesReader struct {
	// contains filtered or unexported fields
}

KeyPhrasesReader is a Reader for the KeyPhrases structure.

func (*KeyPhrasesReader) ReadResponse

func (o *KeyPhrasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OperationStatusBadRequest

type OperationStatusBadRequest struct {
	Payload *models.ErrorResponse
}

OperationStatusBadRequest handles this case with default header values.

BadRequest

func NewOperationStatusBadRequest

func NewOperationStatusBadRequest() *OperationStatusBadRequest

NewOperationStatusBadRequest creates a OperationStatusBadRequest with default headers values

func (*OperationStatusBadRequest) Error

func (o *OperationStatusBadRequest) Error() string

type OperationStatusOK

type OperationStatusOK struct {
	Payload *models.OperationResult
}

OperationStatusOK handles this case with default header values.

OK

func NewOperationStatusOK

func NewOperationStatusOK() *OperationStatusOK

NewOperationStatusOK creates a OperationStatusOK with default headers values

func (*OperationStatusOK) Error

func (o *OperationStatusOK) Error() string

type OperationStatusParams

type OperationStatusParams struct {

	/*OcpApimSubscriptionKey
	  subscription key in header

	*/
	OcpApimSubscriptionKey *string
	/*OperationID
	  A unique id for the submitted operation.

	*/
	OperationID string
	/*SubscriptionKey
	  subscription key in url

	*/
	SubscriptionKey *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OperationStatusParams contains all the parameters to send to the API endpoint for the operation status operation typically these are written to a http.Request

func NewOperationStatusParams

func NewOperationStatusParams() *OperationStatusParams

NewOperationStatusParams creates a new OperationStatusParams object with the default values initialized.

func NewOperationStatusParamsWithContext

func NewOperationStatusParamsWithContext(ctx context.Context) *OperationStatusParams

NewOperationStatusParamsWithContext creates a new OperationStatusParams object with the default values initialized, and the ability to set a context for a request

func NewOperationStatusParamsWithTimeout

func NewOperationStatusParamsWithTimeout(timeout time.Duration) *OperationStatusParams

NewOperationStatusParamsWithTimeout creates a new OperationStatusParams object with the default values initialized, and the ability to set a timeout on a request

func (*OperationStatusParams) SetContext

func (o *OperationStatusParams) SetContext(ctx context.Context)

SetContext adds the context to the operation status params

func (*OperationStatusParams) SetOcpApimSubscriptionKey

func (o *OperationStatusParams) SetOcpApimSubscriptionKey(ocpApimSubscriptionKey *string)

SetOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the operation status params

func (*OperationStatusParams) SetOperationID

func (o *OperationStatusParams) SetOperationID(operationID string)

SetOperationID adds the operationId to the operation status params

func (*OperationStatusParams) SetSubscriptionKey

func (o *OperationStatusParams) SetSubscriptionKey(subscriptionKey *string)

SetSubscriptionKey adds the subscriptionKey to the operation status params

func (*OperationStatusParams) SetTimeout

func (o *OperationStatusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the operation status params

func (*OperationStatusParams) WithContext

WithContext adds the context to the operation status params

func (*OperationStatusParams) WithOcpApimSubscriptionKey

func (o *OperationStatusParams) WithOcpApimSubscriptionKey(ocpApimSubscriptionKey *string) *OperationStatusParams

WithOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the operation status params

func (*OperationStatusParams) WithOperationID

func (o *OperationStatusParams) WithOperationID(operationID string) *OperationStatusParams

WithOperationID adds the operationID to the operation status params

func (*OperationStatusParams) WithSubscriptionKey

func (o *OperationStatusParams) WithSubscriptionKey(subscriptionKey *string) *OperationStatusParams

WithSubscriptionKey adds the subscriptionKey to the operation status params

func (*OperationStatusParams) WithTimeout

func (o *OperationStatusParams) WithTimeout(timeout time.Duration) *OperationStatusParams

WithTimeout adds the timeout to the operation status params

func (*OperationStatusParams) WriteToRequest

func (o *OperationStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OperationStatusReader

type OperationStatusReader struct {
	// contains filtered or unexported fields
}

OperationStatusReader is a Reader for the OperationStatus structure.

func (*OperationStatusReader) ReadResponse

func (o *OperationStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SentimentBadRequest

type SentimentBadRequest struct {
	Payload *models.ErrorResponse
}

SentimentBadRequest handles this case with default header values.

BadRequest

func NewSentimentBadRequest

func NewSentimentBadRequest() *SentimentBadRequest

NewSentimentBadRequest creates a SentimentBadRequest with default headers values

func (*SentimentBadRequest) Error

func (o *SentimentBadRequest) Error() string

type SentimentOK

type SentimentOK struct {
	Payload *models.SentimentBatchResultV2
}

SentimentOK handles this case with default header values.

OK

func NewSentimentOK

func NewSentimentOK() *SentimentOK

NewSentimentOK creates a SentimentOK with default headers values

func (*SentimentOK) Error

func (o *SentimentOK) Error() string

type SentimentParams

type SentimentParams struct {

	/*OcpApimSubscriptionKey
	  subscription key in header

	*/
	OcpApimSubscriptionKey *string
	/*MultiLanguageBatchInputV2*/
	MultiLanguageBatchInputV2 *models.MultiLanguageBatchInputV2
	/*SubscriptionKey
	  subscription key in url

	*/
	SubscriptionKey *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SentimentParams contains all the parameters to send to the API endpoint for the sentiment operation typically these are written to a http.Request

func NewSentimentParams

func NewSentimentParams() *SentimentParams

NewSentimentParams creates a new SentimentParams object with the default values initialized.

func NewSentimentParamsWithContext

func NewSentimentParamsWithContext(ctx context.Context) *SentimentParams

NewSentimentParamsWithContext creates a new SentimentParams object with the default values initialized, and the ability to set a context for a request

func NewSentimentParamsWithTimeout

func NewSentimentParamsWithTimeout(timeout time.Duration) *SentimentParams

NewSentimentParamsWithTimeout creates a new SentimentParams object with the default values initialized, and the ability to set a timeout on a request

func (*SentimentParams) SetContext

func (o *SentimentParams) SetContext(ctx context.Context)

SetContext adds the context to the sentiment params

func (*SentimentParams) SetMultiLanguageBatchInputV2

func (o *SentimentParams) SetMultiLanguageBatchInputV2(multiLanguageBatchInputV2 *models.MultiLanguageBatchInputV2)

SetMultiLanguageBatchInputV2 adds the multiLanguageBatchInputV2 to the sentiment params

func (*SentimentParams) SetOcpApimSubscriptionKey

func (o *SentimentParams) SetOcpApimSubscriptionKey(ocpApimSubscriptionKey *string)

SetOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the sentiment params

func (*SentimentParams) SetSubscriptionKey

func (o *SentimentParams) SetSubscriptionKey(subscriptionKey *string)

SetSubscriptionKey adds the subscriptionKey to the sentiment params

func (*SentimentParams) SetTimeout

func (o *SentimentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the sentiment params

func (*SentimentParams) WithContext

func (o *SentimentParams) WithContext(ctx context.Context) *SentimentParams

WithContext adds the context to the sentiment params

func (*SentimentParams) WithMultiLanguageBatchInputV2

func (o *SentimentParams) WithMultiLanguageBatchInputV2(multiLanguageBatchInputV2 *models.MultiLanguageBatchInputV2) *SentimentParams

WithMultiLanguageBatchInputV2 adds the multiLanguageBatchInputV2 to the sentiment params

func (*SentimentParams) WithOcpApimSubscriptionKey

func (o *SentimentParams) WithOcpApimSubscriptionKey(ocpApimSubscriptionKey *string) *SentimentParams

WithOcpApimSubscriptionKey adds the ocpApimSubscriptionKey to the sentiment params

func (*SentimentParams) WithSubscriptionKey

func (o *SentimentParams) WithSubscriptionKey(subscriptionKey *string) *SentimentParams

WithSubscriptionKey adds the subscriptionKey to the sentiment params

func (*SentimentParams) WithTimeout

func (o *SentimentParams) WithTimeout(timeout time.Duration) *SentimentParams

WithTimeout adds the timeout to the sentiment params

func (*SentimentParams) WriteToRequest

func (o *SentimentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SentimentReader

type SentimentReader struct {
	// contains filtered or unexported fields
}

SentimentReader is a Reader for the Sentiment structure.

func (*SentimentReader) ReadResponse

func (o *SentimentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL