Versions in this module Expand all Collapse all v48 v48.2.2 Nov 27, 2020 v48.2.1 Nov 27, 2020 Changes in this version + func UserAgent() string + func Version() string + type BaseClient struct + func New() BaseClient + func NewWithoutDefaults() BaseClient + type BatchRequest struct + Source *SourceInput + StorageType StorageType + Targets *[]TargetInput + type BatchStatusDetail struct + CreatedDateTimeUtc *date.Time + ID *uuid.UUID + LastActionDateTimeUtc *date.Time + Status Status + Summary *StatusSummary + type BatchStatusResponse struct + NextLink *string + Value *[]BatchStatusDetail + type BatchSubmissionRequest struct + Inputs *[]BatchRequest + type Code string + const InternalServerError + const InvalidArgument + const InvalidRequest + const RequestRateTooHigh + const ResourceNotFound + const ServiceUnavailable + const Unauthorized + func PossibleCodeValues() []Code + type DocumentFilter struct + Prefix *string + Suffix *string + type DocumentStatusDetail struct + CreatedDateTimeUtc *date.Time + DetectedLanguage *string + Error *ErrorV2 + ID *uuid.UUID + LastActionDateTimeUtc *date.Time + Path *string + Progress *float64 + Status Status1 + To *string + type DocumentStatusResponse struct + NextLink *string + Value *[]DocumentStatusDetail + type ErrorResponseV2 struct + Error *ErrorV2 + type ErrorV2 struct + Code Code + InnerError *InnerErrorV2 + Message *string + Target *string + func (ev ErrorV2) MarshalJSON() ([]byte, error) + type FileFormat struct + ContentTypes *[]string + FileExtensions *[]string + Format *string + Versions *[]string + type FileFormatListResult struct + Value *[]FileFormat + type Glossary struct + Format *string + GlossaryURL *string + Version *string + type InnerErrorV2 struct + Code *int32 + Error *string + InnerError *InnerErrorV2 + Message *string + Target *string + func (iev InnerErrorV2) MarshalJSON() ([]byte, error) + type SetObject struct + Value interface{} + type SourceInput struct + Filter *DocumentFilter + Language *string + SourceURL *string + StorageSource StorageSource + type Status string + const Cancelled + const Cancelling + const Failed + const NotStarted + const Running + const Succeeded + func PossibleStatusValues() []Status + type Status1 string + const Status1Cancelled + const Status1Cancelling + const Status1Failed + const Status1NotStarted + const Status1Running + const Status1Succeeded + func PossibleStatus1Values() []Status1 + type StatusSummary struct + Cancelled *int32 + Failed *int32 + InProgress *int32 + NotYetStarted *int32 + Success *int32 + Total *int32 + type StorageSource string + const AzureBlob + func PossibleStorageSourceValues() []StorageSource + type StorageSource1 string + const StorageSource1AzureBlob + func PossibleStorageSource1Values() []StorageSource1 + type StorageSourceListResult struct + Value *[]string + type StorageType string + const File + const Folder + func PossibleStorageTypeValues() []StorageType + type TargetInput struct + Category *string + Glossaries *[]Glossary + Language *string + StorageSource StorageSource1 + TargetURL *string + type TranslationClient struct + func NewTranslationClient() TranslationClient + func (client TranslationClient) CancelOperation(ctx context.Context, endpoint string, ID uuid.UUID) (result SetObject, err error) + func (client TranslationClient) CancelOperationPreparer(ctx context.Context, endpoint string, ID uuid.UUID) (*http.Request, error) + func (client TranslationClient) CancelOperationResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) CancelOperationSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetDocumentFormats(ctx context.Context, endpoint string) (result SetObject, err error) + func (client TranslationClient) GetDocumentFormatsPreparer(ctx context.Context, endpoint string) (*http.Request, error) + func (client TranslationClient) GetDocumentFormatsResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetDocumentFormatsSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetDocumentStatus(ctx context.Context, endpoint string, ID uuid.UUID, documentID uuid.UUID) (result SetObject, err error) + func (client TranslationClient) GetDocumentStatusPreparer(ctx context.Context, endpoint string, ID uuid.UUID, documentID uuid.UUID) (*http.Request, error) + func (client TranslationClient) GetDocumentStatusResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetDocumentStatusSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetDocumentStorageSource(ctx context.Context, endpoint string) (result SetObject, err error) + func (client TranslationClient) GetDocumentStorageSourcePreparer(ctx context.Context, endpoint string) (*http.Request, error) + func (client TranslationClient) GetDocumentStorageSourceResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetDocumentStorageSourceSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetGlossaryFormats(ctx context.Context, endpoint string) (result SetObject, err error) + func (client TranslationClient) GetGlossaryFormatsPreparer(ctx context.Context, endpoint string) (*http.Request, error) + func (client TranslationClient) GetGlossaryFormatsResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetGlossaryFormatsSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetOperationDocumentsStatus(ctx context.Context, endpoint string, ID uuid.UUID, top *int32, skip *int32) (result SetObject, err error) + func (client TranslationClient) GetOperationDocumentsStatusPreparer(ctx context.Context, endpoint string, ID uuid.UUID, top *int32, skip *int32) (*http.Request, error) + func (client TranslationClient) GetOperationDocumentsStatusResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetOperationDocumentsStatusSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetOperationStatus(ctx context.Context, endpoint string, ID uuid.UUID) (result SetObject, err error) + func (client TranslationClient) GetOperationStatusPreparer(ctx context.Context, endpoint string, ID uuid.UUID) (*http.Request, error) + func (client TranslationClient) GetOperationStatusResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetOperationStatusSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) GetOperations(ctx context.Context, endpoint string, top *int32, skip *int32) (result SetObject, err error) + func (client TranslationClient) GetOperationsPreparer(ctx context.Context, endpoint string, top *int32, skip *int32) (*http.Request, error) + func (client TranslationClient) GetOperationsResponder(resp *http.Response) (result SetObject, err error) + func (client TranslationClient) GetOperationsSender(req *http.Request) (*http.Response, error) + func (client TranslationClient) SubmitBatchRequest(ctx context.Context, endpoint string, body *BatchSubmissionRequest) (result ErrorResponseV2, err error) + func (client TranslationClient) SubmitBatchRequestPreparer(ctx context.Context, endpoint string, body *BatchSubmissionRequest) (*http.Request, error) + func (client TranslationClient) SubmitBatchRequestResponder(resp *http.Response) (result ErrorResponseV2, err error) + func (client TranslationClient) SubmitBatchRequestSender(req *http.Request) (*http.Response, error)