Documentation
¶
Overview ¶
Package langsync provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.
Index ¶
- func NewAddLanguageRequest(server string, namespaceName string, body AddLanguageJSONRequestBody) (*http.Request, error)
- func NewAddLanguageRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddTermRequest(server string, namespaceName string, body AddTermJSONRequestBody) (*http.Request, error)
- func NewAddTermRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddTranslationToGlossaryItemRequest(server string, itemId string, body AddTranslationToGlossaryItemJSONRequestBody) (*http.Request, error)
- func NewAddTranslationToGlossaryItemRequestWithBody(server string, itemId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAttachLanguageToGlossaryRequest(server string) (*http.Request, error)
- func NewCreateAPIKeyRequest(server string, body CreateAPIKeyJSONRequestBody) (*http.Request, error)
- func NewCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCustomLanguageRequest(server string, body CreateCustomLanguageJSONRequestBody) (*http.Request, error)
- func NewCreateCustomLanguageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCustomPromptRequest(server string, body CreateCustomPromptJSONRequestBody) (*http.Request, error)
- func NewCreateCustomPromptRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateGlossaryItemRequest(server string, body CreateGlossaryItemJSONRequestBody) (*http.Request, error)
- func NewCreateGlossaryItemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateGlossaryRequest(server string, body CreateGlossaryJSONRequestBody) (*http.Request, error)
- func NewCreateGlossaryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateImportRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNamespaceRequest(server string, body CreateNamespaceJSONRequestBody) (*http.Request, error)
- func NewCreateNamespaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAPIKeyRequest(server string, id string) (*http.Request, error)
- func NewDeleteCustomLanguageRequest(server string, id int) (*http.Request, error)
- func NewDeleteCustomPromptRequest(server string, promptId string) (*http.Request, error)
- func NewDeleteGlossaryItemRequest(server string, itemId string) (*http.Request, error)
- func NewDeleteNamespaceRequest(server string, namespaceName string) (*http.Request, error)
- func NewDeleteTermRequest(server string, namespaceName string, termId int) (*http.Request, error)
- func NewGetGlossaryItemRequest(server string, itemId string) (*http.Request, error)
- func NewGetGlossaryRequest(server string) (*http.Request, error)
- func NewGetLanguagesByNamespaceRequest(server string, namespaceName string) (*http.Request, error)
- func NewGetNamespaceByNameAndOrgRequest(server string, namespaceName string) (*http.Request, error)
- func NewGetNamespacesNamespaceNameSyncJobIdRequest(server string, namespaceName string, jobId string) (*http.Request, error)
- func NewGetProjectsRequest(server string, body GetProjectsJSONRequestBody) (*http.Request, error)
- func NewGetProjectsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewImportFinishRequest(server string, namespaceName string, importId string, ...) (*http.Request, error)
- func NewImportFinishRequestWithBody(server string, namespaceName string, importId string, contentType string, ...) (*http.Request, error)
- func NewListAPIKeysRequest(server string) (*http.Request, error)
- func NewListAuditLogActorsRequest(server string) (*http.Request, error)
- func NewListAuditLogsRequest(server string, params *ListAuditLogsParams) (*http.Request, error)
- func NewListByNamespaceRequest(server string, namespaceName string, params *ListByNamespaceParams) (*http.Request, error)
- func NewListCustomPromptsRequest(server string) (*http.Request, error)
- func NewListGlossaryItemsRequest(server string, params *ListGlossaryItemsParams) (*http.Request, error)
- func NewListLanguagesForOrgRequest(server string) (*http.Request, error)
- func NewListNamespacesRequest(server string) (*http.Request, error)
- func NewMigrateRequest(server string, body MigrateJSONRequestBody) (*http.Request, error)
- func NewMigrateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostNamespacesNamespaceNameSyncRequest(server string, namespaceName string, ...) (*http.Request, error)
- func NewPostNamespacesNamespaceNameSyncRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostTranslationsTranslateRequest(server string, body PostTranslationsTranslateJSONRequestBody) (*http.Request, error)
- func NewPostTranslationsTranslateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRecommendMagicTranslationRequest(server string, namespaceName string, termId int, languageId int, ...) (*http.Request, error)
- func NewRecommendMagicTranslationRequestWithBody(server string, namespaceName string, termId int, languageId int, ...) (*http.Request, error)
- func NewRemoveLanguageRequest(server string, namespaceName string, languageId int) (*http.Request, error)
- func NewTranslateMissingTranslationsRequest(server string, namespaceName string, ...) (*http.Request, error)
- func NewTranslateMissingTranslationsRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateCustomPromptRequest(server string, promptId string, body UpdateCustomPromptJSONRequestBody) (*http.Request, error)
- func NewUpdateCustomPromptRequestWithBody(server string, promptId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateGlossaryItemTranslationRequest(server string, itemId string, languageId int, ...) (*http.Request, error)
- func NewUpdateGlossaryItemTranslationRequestWithBody(server string, itemId string, languageId int, contentType string, ...) (*http.Request, error)
- func NewUpdateNamespaceRequest(server string, namespaceName string, body UpdateNamespaceJSONRequestBody) (*http.Request, error)
- func NewUpdateNamespaceRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTermRequest(server string, namespaceName string, termId int, ...) (*http.Request, error)
- func NewUpdateTermRequestWithBody(server string, namespaceName string, termId int, contentType string, ...) (*http.Request, error)
- func NewUpdateTermTranslationRequest(server string, namespaceName string, termId int, languageToNamespaceId int, ...) (*http.Request, error)
- func NewUpdateTermTranslationRequestWithBody(server string, namespaceName string, termId int, languageToNamespaceId int, ...) (*http.Request, error)
- type AddLanguageJSONRequestBody
- type AddLanguageResponse
- type AddTermJSONRequestBody
- type AddTermResponse
- type AddTranslationToGlossaryItemJSONRequestBody
- type AddTranslationToGlossaryItemResponse
- type ApikeyPayloadCreateRequest
- type ApikeyPayloadCreateResponse
- type AttachLanguageToGlossaryResponse
- type AuditPayloadActor
- type AuditPayloadAuditLogEntry
- type AuditPayloadListResponse
- type Client
- func (c *Client) AddLanguage(ctx context.Context, namespaceName string, body AddLanguageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddLanguageWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddTerm(ctx context.Context, namespaceName string, body AddTermJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddTermWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddTranslationToGlossaryItem(ctx context.Context, itemId string, ...) (*http.Response, error)
- func (c *Client) AddTranslationToGlossaryItemWithBody(ctx context.Context, itemId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AttachLanguageToGlossary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCustomLanguage(ctx context.Context, body CreateCustomLanguageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCustomLanguageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCustomPrompt(ctx context.Context, body CreateCustomPromptJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCustomPromptWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateGlossary(ctx context.Context, body CreateGlossaryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateGlossaryItem(ctx context.Context, body CreateGlossaryItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateGlossaryItemWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateGlossaryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateImportWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNamespace(ctx context.Context, body CreateNamespaceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNamespaceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAPIKey(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteCustomLanguage(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteCustomPrompt(ctx context.Context, promptId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteGlossaryItem(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteNamespace(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteTerm(ctx context.Context, namespaceName string, termId int, ...) (*http.Response, error)
- func (c *Client) GetGlossary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGlossaryItem(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLanguagesByNamespace(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNamespaceByNameAndOrg(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNamespacesNamespaceNameSyncJobId(ctx context.Context, namespaceName string, jobId string, ...) (*http.Response, error)
- func (c *Client) GetProjects(ctx context.Context, body GetProjectsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetProjectsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ImportFinish(ctx context.Context, namespaceName string, importId string, ...) (*http.Response, error)
- func (c *Client) ImportFinishWithBody(ctx context.Context, namespaceName string, importId string, contentType string, ...) (*http.Response, error)
- func (c *Client) ListAPIKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAuditLogActors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, ...) (*http.Response, error)
- func (c *Client) ListByNamespace(ctx context.Context, namespaceName string, params *ListByNamespaceParams, ...) (*http.Response, error)
- func (c *Client) ListCustomPrompts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListGlossaryItems(ctx context.Context, params *ListGlossaryItemsParams, ...) (*http.Response, error)
- func (c *Client) ListLanguagesForOrg(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNamespaces(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Migrate(ctx context.Context, body MigrateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MigrateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostNamespacesNamespaceNameSync(ctx context.Context, namespaceName string, ...) (*http.Response, error)
- func (c *Client) PostNamespacesNamespaceNameSyncWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostTranslationsTranslate(ctx context.Context, body PostTranslationsTranslateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostTranslationsTranslateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RecommendMagicTranslation(ctx context.Context, namespaceName string, termId int, languageId int, ...) (*http.Response, error)
- func (c *Client) RecommendMagicTranslationWithBody(ctx context.Context, namespaceName string, termId int, languageId int, ...) (*http.Response, error)
- func (c *Client) RemoveLanguage(ctx context.Context, namespaceName string, languageId int, ...) (*http.Response, error)
- func (c *Client) TranslateMissingTranslations(ctx context.Context, namespaceName string, ...) (*http.Response, error)
- func (c *Client) TranslateMissingTranslationsWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateCustomPrompt(ctx context.Context, promptId string, body UpdateCustomPromptJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateCustomPromptWithBody(ctx context.Context, promptId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateGlossaryItemTranslation(ctx context.Context, itemId string, languageId int, ...) (*http.Response, error)
- func (c *Client) UpdateGlossaryItemTranslationWithBody(ctx context.Context, itemId string, languageId int, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateNamespace(ctx context.Context, namespaceName string, body UpdateNamespaceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateNamespaceWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateTerm(ctx context.Context, namespaceName string, termId int, ...) (*http.Response, error)
- func (c *Client) UpdateTermTranslation(ctx context.Context, namespaceName string, termId int, ...) (*http.Response, error)
- func (c *Client) UpdateTermTranslationWithBody(ctx context.Context, namespaceName string, termId int, ...) (*http.Response, error)
- func (c *Client) UpdateTermWithBody(ctx context.Context, namespaceName string, termId int, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddLanguageWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*AddLanguageResponse, error)
- func (c *ClientWithResponses) AddLanguageWithResponse(ctx context.Context, namespaceName string, body AddLanguageJSONRequestBody, ...) (*AddLanguageResponse, error)
- func (c *ClientWithResponses) AddTermWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*AddTermResponse, error)
- func (c *ClientWithResponses) AddTermWithResponse(ctx context.Context, namespaceName string, body AddTermJSONRequestBody, ...) (*AddTermResponse, error)
- func (c *ClientWithResponses) AddTranslationToGlossaryItemWithBodyWithResponse(ctx context.Context, itemId string, contentType string, body io.Reader, ...) (*AddTranslationToGlossaryItemResponse, error)
- func (c *ClientWithResponses) AddTranslationToGlossaryItemWithResponse(ctx context.Context, itemId string, ...) (*AddTranslationToGlossaryItemResponse, error)
- func (c *ClientWithResponses) AttachLanguageToGlossaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AttachLanguageToGlossaryResponse, error)
- func (c *ClientWithResponses) CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAPIKeyResponse, error)
- func (c *ClientWithResponses) CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, ...) (*CreateAPIKeyResponse, error)
- func (c *ClientWithResponses) CreateCustomLanguageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCustomLanguageResponse, error)
- func (c *ClientWithResponses) CreateCustomLanguageWithResponse(ctx context.Context, body CreateCustomLanguageJSONRequestBody, ...) (*CreateCustomLanguageResponse, error)
- func (c *ClientWithResponses) CreateCustomPromptWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCustomPromptResponse, error)
- func (c *ClientWithResponses) CreateCustomPromptWithResponse(ctx context.Context, body CreateCustomPromptJSONRequestBody, ...) (*CreateCustomPromptResponse, error)
- func (c *ClientWithResponses) CreateGlossaryItemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateGlossaryItemResponse, error)
- func (c *ClientWithResponses) CreateGlossaryItemWithResponse(ctx context.Context, body CreateGlossaryItemJSONRequestBody, ...) (*CreateGlossaryItemResponse, error)
- func (c *ClientWithResponses) CreateGlossaryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateGlossaryResponse, error)
- func (c *ClientWithResponses) CreateGlossaryWithResponse(ctx context.Context, body CreateGlossaryJSONRequestBody, ...) (*CreateGlossaryResponse, error)
- func (c *ClientWithResponses) CreateImportWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*CreateImportResponse, error)
- func (c *ClientWithResponses) CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNamespaceResponse, error)
- func (c *ClientWithResponses) CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, ...) (*CreateNamespaceResponse, error)
- func (c *ClientWithResponses) DeleteAPIKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error)
- func (c *ClientWithResponses) DeleteCustomLanguageWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteCustomLanguageResponse, error)
- func (c *ClientWithResponses) DeleteCustomPromptWithResponse(ctx context.Context, promptId string, reqEditors ...RequestEditorFn) (*DeleteCustomPromptResponse, error)
- func (c *ClientWithResponses) DeleteGlossaryItemWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*DeleteGlossaryItemResponse, error)
- func (c *ClientWithResponses) DeleteNamespaceWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*DeleteNamespaceResponse, error)
- func (c *ClientWithResponses) DeleteTermWithResponse(ctx context.Context, namespaceName string, termId int, ...) (*DeleteTermResponse, error)
- func (c *ClientWithResponses) GetGlossaryItemWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*GetGlossaryItemResponse, error)
- func (c *ClientWithResponses) GetGlossaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlossaryResponse, error)
- func (c *ClientWithResponses) GetLanguagesByNamespaceWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*GetLanguagesByNamespaceResponse, error)
- func (c *ClientWithResponses) GetNamespaceByNameAndOrgWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*GetNamespaceByNameAndOrgResponse, error)
- func (c *ClientWithResponses) GetNamespacesNamespaceNameSyncJobIdWithResponse(ctx context.Context, namespaceName string, jobId string, ...) (*GetNamespacesNamespaceNameSyncJobIdResponse, error)
- func (c *ClientWithResponses) GetProjectsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, body GetProjectsJSONRequestBody, ...) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) ImportFinishWithBodyWithResponse(ctx context.Context, namespaceName string, importId string, contentType string, ...) (*ImportFinishResponse, error)
- func (c *ClientWithResponses) ImportFinishWithResponse(ctx context.Context, namespaceName string, importId string, ...) (*ImportFinishResponse, error)
- func (c *ClientWithResponses) ListAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)
- func (c *ClientWithResponses) ListAuditLogActorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditLogActorsResponse, error)
- func (c *ClientWithResponses) ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, ...) (*ListAuditLogsResponse, error)
- func (c *ClientWithResponses) ListByNamespaceWithResponse(ctx context.Context, namespaceName string, params *ListByNamespaceParams, ...) (*ListByNamespaceResponse, error)
- func (c *ClientWithResponses) ListCustomPromptsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCustomPromptsResponse, error)
- func (c *ClientWithResponses) ListGlossaryItemsWithResponse(ctx context.Context, params *ListGlossaryItemsParams, ...) (*ListGlossaryItemsResponse, error)
- func (c *ClientWithResponses) ListLanguagesForOrgWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLanguagesForOrgResponse, error)
- func (c *ClientWithResponses) ListNamespacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNamespacesResponse, error)
- func (c *ClientWithResponses) MigrateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MigrateResponse, error)
- func (c *ClientWithResponses) MigrateWithResponse(ctx context.Context, body MigrateJSONRequestBody, ...) (*MigrateResponse, error)
- func (c *ClientWithResponses) PostNamespacesNamespaceNameSyncWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*PostNamespacesNamespaceNameSyncResponse, error)
- func (c *ClientWithResponses) PostNamespacesNamespaceNameSyncWithResponse(ctx context.Context, namespaceName string, ...) (*PostNamespacesNamespaceNameSyncResponse, error)
- func (c *ClientWithResponses) PostTranslationsTranslateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostTranslationsTranslateResponse, error)
- func (c *ClientWithResponses) PostTranslationsTranslateWithResponse(ctx context.Context, body PostTranslationsTranslateJSONRequestBody, ...) (*PostTranslationsTranslateResponse, error)
- func (c *ClientWithResponses) RecommendMagicTranslationWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, languageId int, ...) (*RecommendMagicTranslationResponse, error)
- func (c *ClientWithResponses) RecommendMagicTranslationWithResponse(ctx context.Context, namespaceName string, termId int, languageId int, ...) (*RecommendMagicTranslationResponse, error)
- func (c *ClientWithResponses) RemoveLanguageWithResponse(ctx context.Context, namespaceName string, languageId int, ...) (*RemoveLanguageResponse, error)
- func (c *ClientWithResponses) TranslateMissingTranslationsWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*TranslateMissingTranslationsResponse, error)
- func (c *ClientWithResponses) TranslateMissingTranslationsWithResponse(ctx context.Context, namespaceName string, ...) (*TranslateMissingTranslationsResponse, error)
- func (c *ClientWithResponses) UpdateCustomPromptWithBodyWithResponse(ctx context.Context, promptId string, contentType string, body io.Reader, ...) (*UpdateCustomPromptResponse, error)
- func (c *ClientWithResponses) UpdateCustomPromptWithResponse(ctx context.Context, promptId string, body UpdateCustomPromptJSONRequestBody, ...) (*UpdateCustomPromptResponse, error)
- func (c *ClientWithResponses) UpdateGlossaryItemTranslationWithBodyWithResponse(ctx context.Context, itemId string, languageId int, contentType string, ...) (*UpdateGlossaryItemTranslationResponse, error)
- func (c *ClientWithResponses) UpdateGlossaryItemTranslationWithResponse(ctx context.Context, itemId string, languageId int, ...) (*UpdateGlossaryItemTranslationResponse, error)
- func (c *ClientWithResponses) UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, ...) (*UpdateNamespaceResponse, error)
- func (c *ClientWithResponses) UpdateNamespaceWithResponse(ctx context.Context, namespaceName string, body UpdateNamespaceJSONRequestBody, ...) (*UpdateNamespaceResponse, error)
- func (c *ClientWithResponses) UpdateTermTranslationWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, ...) (*UpdateTermTranslationResponse, error)
- func (c *ClientWithResponses) UpdateTermTranslationWithResponse(ctx context.Context, namespaceName string, termId int, ...) (*UpdateTermTranslationResponse, error)
- func (c *ClientWithResponses) UpdateTermWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, contentType string, ...) (*UpdateTermResponse, error)
- func (c *ClientWithResponses) UpdateTermWithResponse(ctx context.Context, namespaceName string, termId int, ...) (*UpdateTermResponse, error)
- type ClientWithResponsesInterface
- type ConstantsAuditAction
- type ConstantsAuditTargetType
- type ConstantsGlossaryItemType
- type ConstantsTermBulkImportStatus
- type ConstantsTermImportCSVColumnSetupType
- type ConstantsTermImportFormat
- type CreateAPIKeyJSONRequestBody
- type CreateAPIKeyResponse
- type CreateCustomLanguageJSONRequestBody
- type CreateCustomLanguageResponse
- type CreateCustomPromptJSONRequestBody
- type CreateCustomPromptResponse
- type CreateGlossaryItemJSONRequestBody
- type CreateGlossaryItemResponse
- type CreateGlossaryJSONRequestBody
- type CreateGlossaryResponse
- type CreateImportMultipartBody
- type CreateImportMultipartRequestBody
- type CreateImportResponse
- type CreateNamespaceJSONRequestBody
- type CreateNamespaceResponse
- type DeleteAPIKeyResponse
- type DeleteCustomLanguageResponse
- type DeleteCustomPromptResponse
- type DeleteGlossaryItemResponse
- type DeleteNamespaceResponse
- type DeleteTermResponse
- type DtoAPIKey
- type DtoCustomPrompt
- type DtoDTOLanguage
- type DtoDTOLanguageConnection
- type DtoDTONamespace
- type DtoDTOSyncJob
- type DtoDTOSyncJobCreateResponse
- type DtoDTOSyncJobFailure
- type DtoDTOSyncJobOp
- type DtoDTOTerm
- type DtoDTOTermDetail
- type DtoGlossary
- type DtoGlossaryItem
- type DtoGlossaryItemTranslation
- type DtoLangInfo
- type DtoTranslationInfo
- type GetGlossaryItemResponse
- type GetGlossaryResponse
- type GetLanguagesByNamespaceResponse
- type GetNamespaceByNameAndOrgResponse
- type GetNamespacesNamespaceNameSyncJobIdResponse
- type GetProjectsJSONRequestBody
- type GetProjectsResponse
- type GlossaryAddTranslationRequest
- type GlossaryCreateGlossaryRequest
- type GlossaryCreateGlossaryResponse
- type GlossaryCreateItemRequest
- type GlossaryCreateItemResponse
- type GlossaryPayloadGetItemResponse
- type GlossaryUpdateTranslationRequest
- type HttpRequestDoer
- type ImportFinishJSONRequestBody
- type ImportFinishResponse
- type LanguagePayloadCreateLanguageRequest
- type ListAPIKeysResponse
- type ListAuditLogActorsResponse
- type ListAuditLogsParams
- type ListAuditLogsResponse
- type ListByNamespaceParams
- type ListByNamespaceResponse
- type ListCustomPromptsResponse
- type ListGlossaryItemsParams
- type ListGlossaryItemsResponse
- type ListLanguagesForOrgResponse
- type ListNamespacesResponse
- type MigrateJSONRequestBody
- type MigrateResponse
- type MigratorPayloadGetProjectsRequest
- type MigratorPayloadGetProjectsResponse
- type MigratorPayloadMigrateRequest
- type MigratorPayloadMigrateResponse
- type NamespacePayloadAddLanguageRequest
- type NamespacePayloadAddLanguageResponse
- type NamespacePayloadCreateNamespaceRequest
- type NamespacePayloadUpdateNamespaceRequest
- type PoeditorPOEditorTime
- type PoeditorProject
- type PostNamespacesNamespaceNameSyncJSONRequestBody
- type PostNamespacesNamespaceNameSyncResponse
- type PostTranslationsTranslateJSONRequestBody
- type PostTranslationsTranslateResponse
- type RecommendMagicTranslationJSONRequestBody
- type RecommendMagicTranslationResponse
- type RemoveLanguageResponse
- type RequestEditorFn
- type ResponseAPIError
- type ResponseAPIResponseEmpty
- type ResponseAPIResponsePaginationCursors
- type ResponseAPIResponsePaginationMeta
- type ResponseAPIResponseWithPagination
- type ResponseType
- type SharedTermBulkImportPrecheckData
- type SharedTermBulkImportPrecheckDataCSV
- type SharedTermImportCSVColumnSetup
- type SharedTermImportCSVColumnSetupTranslation
- type SharedTermImportCSVSetup
- type SharedTermImportSetup
- type SyncjobCreateSyncRequest
- type TermImportFinishRequest
- type TermImportFinishResponse
- type TermImportPrecheckResponse
- type TermPayloadAddRequest
- type TermPayloadRecommendMagicTranslationRequest
- type TermPayloadRecommendMagicTranslationResponse
- type TermPayloadUpdateRequest
- type TermPayloadUpdateResponse
- type TermPayloadUpdateTranslationRequest
- type TermTranslateMissingTranslationsRequest
- type TermTranslateMissingTranslationsResponse
- type TranslateMissingTranslationsJSONRequestBody
- type TranslateMissingTranslationsResponse
- type TranslationCreateCustomPromptInput
- type TranslationCreateCustomPromptResponse
- type TranslationPatchCustomPromptInput
- type TranslationTranslateTextBody
- type TranslationTranslateTextResponse
- type TypesLanguageRef
- type UpdateCustomPromptJSONRequestBody
- type UpdateCustomPromptResponse
- type UpdateGlossaryItemTranslationJSONRequestBody
- type UpdateGlossaryItemTranslationResponse
- type UpdateNamespaceJSONRequestBody
- type UpdateNamespaceResponse
- type UpdateTermJSONRequestBody
- type UpdateTermResponse
- type UpdateTermTranslationJSONRequestBody
- type UpdateTermTranslationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddLanguageRequest ¶
func NewAddLanguageRequest(server string, namespaceName string, body AddLanguageJSONRequestBody) (*http.Request, error)
NewAddLanguageRequest calls the generic AddLanguage builder with application/json body
func NewAddLanguageRequestWithBody ¶
func NewAddLanguageRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
NewAddLanguageRequestWithBody generates requests for AddLanguage with any type of body
func NewAddTermRequest ¶
func NewAddTermRequest(server string, namespaceName string, body AddTermJSONRequestBody) (*http.Request, error)
NewAddTermRequest calls the generic AddTerm builder with application/json body
func NewAddTermRequestWithBody ¶
func NewAddTermRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
NewAddTermRequestWithBody generates requests for AddTerm with any type of body
func NewAddTranslationToGlossaryItemRequest ¶
func NewAddTranslationToGlossaryItemRequest(server string, itemId string, body AddTranslationToGlossaryItemJSONRequestBody) (*http.Request, error)
NewAddTranslationToGlossaryItemRequest calls the generic AddTranslationToGlossaryItem builder with application/json body
func NewAddTranslationToGlossaryItemRequestWithBody ¶
func NewAddTranslationToGlossaryItemRequestWithBody(server string, itemId string, contentType string, body io.Reader) (*http.Request, error)
NewAddTranslationToGlossaryItemRequestWithBody generates requests for AddTranslationToGlossaryItem with any type of body
func NewAttachLanguageToGlossaryRequest ¶
NewAttachLanguageToGlossaryRequest generates requests for AttachLanguageToGlossary
func NewCreateAPIKeyRequest ¶
func NewCreateAPIKeyRequest(server string, body CreateAPIKeyJSONRequestBody) (*http.Request, error)
NewCreateAPIKeyRequest calls the generic CreateAPIKey builder with application/json body
func NewCreateAPIKeyRequestWithBody ¶
func NewCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAPIKeyRequestWithBody generates requests for CreateAPIKey with any type of body
func NewCreateCustomLanguageRequest ¶
func NewCreateCustomLanguageRequest(server string, body CreateCustomLanguageJSONRequestBody) (*http.Request, error)
NewCreateCustomLanguageRequest calls the generic CreateCustomLanguage builder with application/json body
func NewCreateCustomLanguageRequestWithBody ¶
func NewCreateCustomLanguageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomLanguageRequestWithBody generates requests for CreateCustomLanguage with any type of body
func NewCreateCustomPromptRequest ¶
func NewCreateCustomPromptRequest(server string, body CreateCustomPromptJSONRequestBody) (*http.Request, error)
NewCreateCustomPromptRequest calls the generic CreateCustomPrompt builder with application/json body
func NewCreateCustomPromptRequestWithBody ¶
func NewCreateCustomPromptRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomPromptRequestWithBody generates requests for CreateCustomPrompt with any type of body
func NewCreateGlossaryItemRequest ¶
func NewCreateGlossaryItemRequest(server string, body CreateGlossaryItemJSONRequestBody) (*http.Request, error)
NewCreateGlossaryItemRequest calls the generic CreateGlossaryItem builder with application/json body
func NewCreateGlossaryItemRequestWithBody ¶
func NewCreateGlossaryItemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateGlossaryItemRequestWithBody generates requests for CreateGlossaryItem with any type of body
func NewCreateGlossaryRequest ¶
func NewCreateGlossaryRequest(server string, body CreateGlossaryJSONRequestBody) (*http.Request, error)
NewCreateGlossaryRequest calls the generic CreateGlossary builder with application/json body
func NewCreateGlossaryRequestWithBody ¶
func NewCreateGlossaryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateGlossaryRequestWithBody generates requests for CreateGlossary with any type of body
func NewCreateImportRequestWithBody ¶
func NewCreateImportRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
NewCreateImportRequestWithBody generates requests for CreateImport with any type of body
func NewCreateNamespaceRequest ¶
func NewCreateNamespaceRequest(server string, body CreateNamespaceJSONRequestBody) (*http.Request, error)
NewCreateNamespaceRequest calls the generic CreateNamespace builder with application/json body
func NewCreateNamespaceRequestWithBody ¶
func NewCreateNamespaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNamespaceRequestWithBody generates requests for CreateNamespace with any type of body
func NewDeleteAPIKeyRequest ¶
NewDeleteAPIKeyRequest generates requests for DeleteAPIKey
func NewDeleteCustomLanguageRequest ¶
NewDeleteCustomLanguageRequest generates requests for DeleteCustomLanguage
func NewDeleteCustomPromptRequest ¶
NewDeleteCustomPromptRequest generates requests for DeleteCustomPrompt
func NewDeleteGlossaryItemRequest ¶
NewDeleteGlossaryItemRequest generates requests for DeleteGlossaryItem
func NewDeleteNamespaceRequest ¶
NewDeleteNamespaceRequest generates requests for DeleteNamespace
func NewDeleteTermRequest ¶
NewDeleteTermRequest generates requests for DeleteTerm
func NewGetGlossaryItemRequest ¶
NewGetGlossaryItemRequest generates requests for GetGlossaryItem
func NewGetGlossaryRequest ¶
NewGetGlossaryRequest generates requests for GetGlossary
func NewGetLanguagesByNamespaceRequest ¶
NewGetLanguagesByNamespaceRequest generates requests for GetLanguagesByNamespace
func NewGetNamespaceByNameAndOrgRequest ¶
NewGetNamespaceByNameAndOrgRequest generates requests for GetNamespaceByNameAndOrg
func NewGetNamespacesNamespaceNameSyncJobIdRequest ¶
func NewGetNamespacesNamespaceNameSyncJobIdRequest(server string, namespaceName string, jobId string) (*http.Request, error)
NewGetNamespacesNamespaceNameSyncJobIdRequest generates requests for GetNamespacesNamespaceNameSyncJobId
func NewGetProjectsRequest ¶
func NewGetProjectsRequest(server string, body GetProjectsJSONRequestBody) (*http.Request, error)
NewGetProjectsRequest calls the generic GetProjects builder with application/json body
func NewGetProjectsRequestWithBody ¶
func NewGetProjectsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetProjectsRequestWithBody generates requests for GetProjects with any type of body
func NewImportFinishRequest ¶
func NewImportFinishRequest(server string, namespaceName string, importId string, body ImportFinishJSONRequestBody) (*http.Request, error)
NewImportFinishRequest calls the generic ImportFinish builder with application/json body
func NewImportFinishRequestWithBody ¶
func NewImportFinishRequestWithBody(server string, namespaceName string, importId string, contentType string, body io.Reader) (*http.Request, error)
NewImportFinishRequestWithBody generates requests for ImportFinish with any type of body
func NewListAPIKeysRequest ¶
NewListAPIKeysRequest generates requests for ListAPIKeys
func NewListAuditLogActorsRequest ¶ added in v0.17.0
NewListAuditLogActorsRequest generates requests for ListAuditLogActors
func NewListAuditLogsRequest ¶ added in v0.17.0
func NewListAuditLogsRequest(server string, params *ListAuditLogsParams) (*http.Request, error)
NewListAuditLogsRequest generates requests for ListAuditLogs
func NewListByNamespaceRequest ¶
func NewListByNamespaceRequest(server string, namespaceName string, params *ListByNamespaceParams) (*http.Request, error)
NewListByNamespaceRequest generates requests for ListByNamespace
func NewListCustomPromptsRequest ¶
NewListCustomPromptsRequest generates requests for ListCustomPrompts
func NewListGlossaryItemsRequest ¶
func NewListGlossaryItemsRequest(server string, params *ListGlossaryItemsParams) (*http.Request, error)
NewListGlossaryItemsRequest generates requests for ListGlossaryItems
func NewListLanguagesForOrgRequest ¶
NewListLanguagesForOrgRequest generates requests for ListLanguagesForOrg
func NewListNamespacesRequest ¶
NewListNamespacesRequest generates requests for ListNamespaces
func NewMigrateRequest ¶
func NewMigrateRequest(server string, body MigrateJSONRequestBody) (*http.Request, error)
NewMigrateRequest calls the generic Migrate builder with application/json body
func NewMigrateRequestWithBody ¶
func NewMigrateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMigrateRequestWithBody generates requests for Migrate with any type of body
func NewPostNamespacesNamespaceNameSyncRequest ¶
func NewPostNamespacesNamespaceNameSyncRequest(server string, namespaceName string, body PostNamespacesNamespaceNameSyncJSONRequestBody) (*http.Request, error)
NewPostNamespacesNamespaceNameSyncRequest calls the generic PostNamespacesNamespaceNameSync builder with application/json body
func NewPostNamespacesNamespaceNameSyncRequestWithBody ¶
func NewPostNamespacesNamespaceNameSyncRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
NewPostNamespacesNamespaceNameSyncRequestWithBody generates requests for PostNamespacesNamespaceNameSync with any type of body
func NewPostTranslationsTranslateRequest ¶
func NewPostTranslationsTranslateRequest(server string, body PostTranslationsTranslateJSONRequestBody) (*http.Request, error)
NewPostTranslationsTranslateRequest calls the generic PostTranslationsTranslate builder with application/json body
func NewPostTranslationsTranslateRequestWithBody ¶
func NewPostTranslationsTranslateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostTranslationsTranslateRequestWithBody generates requests for PostTranslationsTranslate with any type of body
func NewRecommendMagicTranslationRequest ¶
func NewRecommendMagicTranslationRequest(server string, namespaceName string, termId int, languageId int, body RecommendMagicTranslationJSONRequestBody) (*http.Request, error)
NewRecommendMagicTranslationRequest calls the generic RecommendMagicTranslation builder with application/json body
func NewRecommendMagicTranslationRequestWithBody ¶
func NewRecommendMagicTranslationRequestWithBody(server string, namespaceName string, termId int, languageId int, contentType string, body io.Reader) (*http.Request, error)
NewRecommendMagicTranslationRequestWithBody generates requests for RecommendMagicTranslation with any type of body
func NewRemoveLanguageRequest ¶
func NewRemoveLanguageRequest(server string, namespaceName string, languageId int) (*http.Request, error)
NewRemoveLanguageRequest generates requests for RemoveLanguage
func NewTranslateMissingTranslationsRequest ¶
func NewTranslateMissingTranslationsRequest(server string, namespaceName string, body TranslateMissingTranslationsJSONRequestBody) (*http.Request, error)
NewTranslateMissingTranslationsRequest calls the generic TranslateMissingTranslations builder with application/json body
func NewTranslateMissingTranslationsRequestWithBody ¶
func NewTranslateMissingTranslationsRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
NewTranslateMissingTranslationsRequestWithBody generates requests for TranslateMissingTranslations with any type of body
func NewUpdateCustomPromptRequest ¶
func NewUpdateCustomPromptRequest(server string, promptId string, body UpdateCustomPromptJSONRequestBody) (*http.Request, error)
NewUpdateCustomPromptRequest calls the generic UpdateCustomPrompt builder with application/json body
func NewUpdateCustomPromptRequestWithBody ¶
func NewUpdateCustomPromptRequestWithBody(server string, promptId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCustomPromptRequestWithBody generates requests for UpdateCustomPrompt with any type of body
func NewUpdateGlossaryItemTranslationRequest ¶
func NewUpdateGlossaryItemTranslationRequest(server string, itemId string, languageId int, body UpdateGlossaryItemTranslationJSONRequestBody) (*http.Request, error)
NewUpdateGlossaryItemTranslationRequest calls the generic UpdateGlossaryItemTranslation builder with application/json body
func NewUpdateGlossaryItemTranslationRequestWithBody ¶
func NewUpdateGlossaryItemTranslationRequestWithBody(server string, itemId string, languageId int, contentType string, body io.Reader) (*http.Request, error)
NewUpdateGlossaryItemTranslationRequestWithBody generates requests for UpdateGlossaryItemTranslation with any type of body
func NewUpdateNamespaceRequest ¶
func NewUpdateNamespaceRequest(server string, namespaceName string, body UpdateNamespaceJSONRequestBody) (*http.Request, error)
NewUpdateNamespaceRequest calls the generic UpdateNamespace builder with application/json body
func NewUpdateNamespaceRequestWithBody ¶
func NewUpdateNamespaceRequestWithBody(server string, namespaceName string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNamespaceRequestWithBody generates requests for UpdateNamespace with any type of body
func NewUpdateTermRequest ¶
func NewUpdateTermRequest(server string, namespaceName string, termId int, body UpdateTermJSONRequestBody) (*http.Request, error)
NewUpdateTermRequest calls the generic UpdateTerm builder with application/json body
func NewUpdateTermRequestWithBody ¶
func NewUpdateTermRequestWithBody(server string, namespaceName string, termId int, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTermRequestWithBody generates requests for UpdateTerm with any type of body
func NewUpdateTermTranslationRequest ¶
func NewUpdateTermTranslationRequest(server string, namespaceName string, termId int, languageToNamespaceId int, body UpdateTermTranslationJSONRequestBody) (*http.Request, error)
NewUpdateTermTranslationRequest calls the generic UpdateTermTranslation builder with application/json body
func NewUpdateTermTranslationRequestWithBody ¶
func NewUpdateTermTranslationRequestWithBody(server string, namespaceName string, termId int, languageToNamespaceId int, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTermTranslationRequestWithBody generates requests for UpdateTermTranslation with any type of body
Types ¶
type AddLanguageJSONRequestBody ¶
type AddLanguageJSONRequestBody = NamespacePayloadAddLanguageRequest
AddLanguageJSONRequestBody defines body for AddLanguage for application/json ContentType.
type AddLanguageResponse ¶
type AddLanguageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NamespacePayloadAddLanguageResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseAddLanguageResponse ¶
func ParseAddLanguageResponse(rsp *http.Response) (*AddLanguageResponse, error)
ParseAddLanguageResponse parses an HTTP response from a AddLanguageWithResponse call
func (AddLanguageResponse) ContentType ¶
func (r AddLanguageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddLanguageResponse) Status ¶
func (r AddLanguageResponse) Status() string
Status returns HTTPResponse.Status
func (AddLanguageResponse) StatusCode ¶
func (r AddLanguageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddTermJSONRequestBody ¶
type AddTermJSONRequestBody = TermPayloadAddRequest
AddTermJSONRequestBody defines body for AddTerm for application/json ContentType.
type AddTermResponse ¶
type AddTermResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoDTOTerm
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseAddTermResponse ¶
func ParseAddTermResponse(rsp *http.Response) (*AddTermResponse, error)
ParseAddTermResponse parses an HTTP response from a AddTermWithResponse call
func (AddTermResponse) ContentType ¶
func (r AddTermResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddTermResponse) Status ¶
func (r AddTermResponse) Status() string
Status returns HTTPResponse.Status
func (AddTermResponse) StatusCode ¶
func (r AddTermResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddTranslationToGlossaryItemJSONRequestBody ¶
type AddTranslationToGlossaryItemJSONRequestBody = GlossaryAddTranslationRequest
AddTranslationToGlossaryItemJSONRequestBody defines body for AddTranslationToGlossaryItem for application/json ContentType.
type AddTranslationToGlossaryItemResponse ¶
type AddTranslationToGlossaryItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseAddTranslationToGlossaryItemResponse ¶
func ParseAddTranslationToGlossaryItemResponse(rsp *http.Response) (*AddTranslationToGlossaryItemResponse, error)
ParseAddTranslationToGlossaryItemResponse parses an HTTP response from a AddTranslationToGlossaryItemWithResponse call
func (AddTranslationToGlossaryItemResponse) ContentType ¶
func (r AddTranslationToGlossaryItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddTranslationToGlossaryItemResponse) Status ¶
func (r AddTranslationToGlossaryItemResponse) Status() string
Status returns HTTPResponse.Status
func (AddTranslationToGlossaryItemResponse) StatusCode ¶
func (r AddTranslationToGlossaryItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApikeyPayloadCreateRequest ¶
type ApikeyPayloadCreateRequest struct {
Name *string `json:"name,omitempty"`
}
ApikeyPayloadCreateRequest defines model for apikey.payloadCreateRequest.
type ApikeyPayloadCreateResponse ¶
type ApikeyPayloadCreateResponse struct {
Id *string `json:"id,omitempty"`
Value *string `json:"value,omitempty"`
}
ApikeyPayloadCreateResponse defines model for apikey.payloadCreateResponse.
type AttachLanguageToGlossaryResponse ¶
type AttachLanguageToGlossaryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseAttachLanguageToGlossaryResponse ¶
func ParseAttachLanguageToGlossaryResponse(rsp *http.Response) (*AttachLanguageToGlossaryResponse, error)
ParseAttachLanguageToGlossaryResponse parses an HTTP response from a AttachLanguageToGlossaryWithResponse call
func (AttachLanguageToGlossaryResponse) ContentType ¶
func (r AttachLanguageToGlossaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AttachLanguageToGlossaryResponse) Status ¶
func (r AttachLanguageToGlossaryResponse) Status() string
Status returns HTTPResponse.Status
func (AttachLanguageToGlossaryResponse) StatusCode ¶
func (r AttachLanguageToGlossaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuditPayloadActor ¶ added in v0.17.0
type AuditPayloadActor struct {
Email *string `json:"email,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
AuditPayloadActor defines model for audit.payloadActor.
type AuditPayloadAuditLogEntry ¶ added in v0.17.0
type AuditPayloadAuditLogEntry struct {
Action *ConstantsAuditAction `json:"action,omitempty"`
ActorEmail *string `json:"actorEmail,omitempty"`
ActorId *string `json:"actorId,omitempty"`
ActorName *string `json:"actorName,omitempty"`
ActorType *string `json:"actorType,omitempty"`
CreatedAt *string `json:"createdAt,omitempty"`
Id *string `json:"id,omitempty"`
Ip *string `json:"ip,omitempty"`
Metadata *map[string]interface{} `json:"metadata,omitempty"`
OrganizationId *string `json:"organizationId,omitempty"`
TargetId *string `json:"targetId,omitempty"`
TargetType *ConstantsAuditTargetType `json:"targetType,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
}
AuditPayloadAuditLogEntry defines model for audit.payloadAuditLogEntry.
type AuditPayloadListResponse ¶ added in v0.17.0
type AuditPayloadListResponse struct {
List *[]AuditPayloadAuditLogEntry `json:"list,omitempty"`
NextCursorCreatedAt *string `json:"nextCursorCreatedAt,omitempty"`
NextCursorId *string `json:"nextCursorId,omitempty"`
}
AuditPayloadListResponse defines model for audit.payloadListResponse.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddLanguage ¶
func (c *Client) AddLanguage(ctx context.Context, namespaceName string, body AddLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddLanguageWithBody ¶
func (*Client) AddTerm ¶
func (c *Client) AddTerm(ctx context.Context, namespaceName string, body AddTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddTermWithBody ¶
func (*Client) AddTranslationToGlossaryItem ¶
func (c *Client) AddTranslationToGlossaryItem(ctx context.Context, itemId string, body AddTranslationToGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddTranslationToGlossaryItemWithBody ¶
func (*Client) AttachLanguageToGlossary ¶
func (*Client) CreateAPIKey ¶
func (c *Client) CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAPIKeyWithBody ¶
func (*Client) CreateCustomLanguage ¶
func (c *Client) CreateCustomLanguage(ctx context.Context, body CreateCustomLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomLanguageWithBody ¶
func (*Client) CreateCustomPrompt ¶
func (c *Client) CreateCustomPrompt(ctx context.Context, body CreateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomPromptWithBody ¶
func (*Client) CreateGlossary ¶
func (c *Client) CreateGlossary(ctx context.Context, body CreateGlossaryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGlossaryItem ¶
func (c *Client) CreateGlossaryItem(ctx context.Context, body CreateGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGlossaryItemWithBody ¶
func (*Client) CreateGlossaryWithBody ¶
func (*Client) CreateImportWithBody ¶
func (*Client) CreateNamespace ¶
func (c *Client) CreateNamespace(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNamespaceWithBody ¶
func (*Client) DeleteAPIKey ¶
func (*Client) DeleteCustomLanguage ¶
func (*Client) DeleteCustomPrompt ¶
func (*Client) DeleteGlossaryItem ¶
func (*Client) DeleteNamespace ¶
func (*Client) DeleteTerm ¶
func (*Client) GetGlossary ¶
func (*Client) GetGlossaryItem ¶
func (*Client) GetLanguagesByNamespace ¶
func (*Client) GetNamespaceByNameAndOrg ¶
func (*Client) GetNamespacesNamespaceNameSyncJobId ¶
func (*Client) GetProjects ¶
func (c *Client) GetProjects(ctx context.Context, body GetProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjectsWithBody ¶
func (*Client) ImportFinish ¶
func (c *Client) ImportFinish(ctx context.Context, namespaceName string, importId string, body ImportFinishJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ImportFinishWithBody ¶
func (*Client) ListAPIKeys ¶
func (*Client) ListAuditLogActors ¶ added in v0.17.0
func (*Client) ListAuditLogs ¶ added in v0.17.0
func (c *Client) ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListByNamespace ¶
func (c *Client) ListByNamespace(ctx context.Context, namespaceName string, params *ListByNamespaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCustomPrompts ¶
func (*Client) ListGlossaryItems ¶
func (c *Client) ListGlossaryItems(ctx context.Context, params *ListGlossaryItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListLanguagesForOrg ¶
func (*Client) ListNamespaces ¶
func (*Client) Migrate ¶
func (c *Client) Migrate(ctx context.Context, body MigrateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MigrateWithBody ¶
func (*Client) PostNamespacesNamespaceNameSync ¶
func (c *Client) PostNamespacesNamespaceNameSync(ctx context.Context, namespaceName string, body PostNamespacesNamespaceNameSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostNamespacesNamespaceNameSyncWithBody ¶
func (*Client) PostTranslationsTranslate ¶
func (c *Client) PostTranslationsTranslate(ctx context.Context, body PostTranslationsTranslateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostTranslationsTranslateWithBody ¶
func (*Client) RecommendMagicTranslation ¶
func (*Client) RecommendMagicTranslationWithBody ¶
func (*Client) RemoveLanguage ¶
func (*Client) TranslateMissingTranslations ¶
func (c *Client) TranslateMissingTranslations(ctx context.Context, namespaceName string, body TranslateMissingTranslationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TranslateMissingTranslationsWithBody ¶
func (*Client) UpdateCustomPrompt ¶
func (c *Client) UpdateCustomPrompt(ctx context.Context, promptId string, body UpdateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCustomPromptWithBody ¶
func (*Client) UpdateGlossaryItemTranslation ¶
func (c *Client) UpdateGlossaryItemTranslation(ctx context.Context, itemId string, languageId int, body UpdateGlossaryItemTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateGlossaryItemTranslationWithBody ¶
func (*Client) UpdateNamespace ¶
func (c *Client) UpdateNamespace(ctx context.Context, namespaceName string, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNamespaceWithBody ¶
func (*Client) UpdateTerm ¶
func (c *Client) UpdateTerm(ctx context.Context, namespaceName string, termId int, body UpdateTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTermTranslation ¶
func (*Client) UpdateTermTranslationWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// ListAPIKeys request
ListAPIKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAPIKeyWithBody request with any body
CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAPIKey request
DeleteAPIKey(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAuditLogs request
ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAuditLogActors request
ListAuditLogActors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGlossary request
GetGlossary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGlossaryWithBody request with any body
CreateGlossaryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGlossary(ctx context.Context, body CreateGlossaryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGlossaryItems request
ListGlossaryItems(ctx context.Context, params *ListGlossaryItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGlossaryItemWithBody request with any body
CreateGlossaryItemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGlossaryItem(ctx context.Context, body CreateGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteGlossaryItem request
DeleteGlossaryItem(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGlossaryItem request
GetGlossaryItem(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddTranslationToGlossaryItemWithBody request with any body
AddTranslationToGlossaryItemWithBody(ctx context.Context, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddTranslationToGlossaryItem(ctx context.Context, itemId string, body AddTranslationToGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGlossaryItemTranslationWithBody request with any body
UpdateGlossaryItemTranslationWithBody(ctx context.Context, itemId string, languageId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGlossaryItemTranslation(ctx context.Context, itemId string, languageId int, body UpdateGlossaryItemTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AttachLanguageToGlossary request
AttachLanguageToGlossary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLanguagesForOrg request
ListLanguagesForOrg(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomLanguageWithBody request with any body
CreateCustomLanguageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomLanguage(ctx context.Context, body CreateCustomLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCustomLanguage request
DeleteCustomLanguage(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProjectsWithBody request with any body
GetProjectsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProjects(ctx context.Context, body GetProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MigrateWithBody request with any body
MigrateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
Migrate(ctx context.Context, body MigrateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNamespaces request
ListNamespaces(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNamespaceWithBody request with any body
CreateNamespaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNamespace(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNamespace request
DeleteNamespace(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNamespaceByNameAndOrg request
GetNamespaceByNameAndOrg(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateNamespaceWithBody request with any body
UpdateNamespaceWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateNamespace(ctx context.Context, namespaceName string, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLanguagesByNamespace request
GetLanguagesByNamespace(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddLanguageWithBody request with any body
AddLanguageWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddLanguage(ctx context.Context, namespaceName string, body AddLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveLanguage request
RemoveLanguage(ctx context.Context, namespaceName string, languageId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostNamespacesNamespaceNameSyncWithBody request with any body
PostNamespacesNamespaceNameSyncWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostNamespacesNamespaceNameSync(ctx context.Context, namespaceName string, body PostNamespacesNamespaceNameSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNamespacesNamespaceNameSyncJobId request
GetNamespacesNamespaceNameSyncJobId(ctx context.Context, namespaceName string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListByNamespace request
ListByNamespace(ctx context.Context, namespaceName string, params *ListByNamespaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddTermWithBody request with any body
AddTermWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddTerm(ctx context.Context, namespaceName string, body AddTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateImportWithBody request with any body
CreateImportWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImportFinishWithBody request with any body
ImportFinishWithBody(ctx context.Context, namespaceName string, importId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ImportFinish(ctx context.Context, namespaceName string, importId string, body ImportFinishJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TranslateMissingTranslationsWithBody request with any body
TranslateMissingTranslationsWithBody(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TranslateMissingTranslations(ctx context.Context, namespaceName string, body TranslateMissingTranslationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteTerm request
DeleteTerm(ctx context.Context, namespaceName string, termId int, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTermWithBody request with any body
UpdateTermWithBody(ctx context.Context, namespaceName string, termId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTerm(ctx context.Context, namespaceName string, termId int, body UpdateTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecommendMagicTranslationWithBody request with any body
RecommendMagicTranslationWithBody(ctx context.Context, namespaceName string, termId int, languageId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RecommendMagicTranslation(ctx context.Context, namespaceName string, termId int, languageId int, body RecommendMagicTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTermTranslationWithBody request with any body
UpdateTermTranslationWithBody(ctx context.Context, namespaceName string, termId int, languageToNamespaceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTermTranslation(ctx context.Context, namespaceName string, termId int, languageToNamespaceId int, body UpdateTermTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomPrompts request
ListCustomPrompts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomPromptWithBody request with any body
CreateCustomPromptWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomPrompt(ctx context.Context, body CreateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCustomPrompt request
DeleteCustomPrompt(ctx context.Context, promptId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCustomPromptWithBody request with any body
UpdateCustomPromptWithBody(ctx context.Context, promptId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCustomPrompt(ctx context.Context, promptId string, body UpdateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostTranslationsTranslateWithBody request with any body
PostTranslationsTranslateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostTranslationsTranslate(ctx context.Context, body PostTranslationsTranslateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddLanguageWithBodyWithResponse ¶
func (c *ClientWithResponses) AddLanguageWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLanguageResponse, error)
AddLanguageWithBodyWithResponse request with arbitrary body returning *AddLanguageResponse
func (*ClientWithResponses) AddLanguageWithResponse ¶
func (c *ClientWithResponses) AddLanguageWithResponse(ctx context.Context, namespaceName string, body AddLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLanguageResponse, error)
func (*ClientWithResponses) AddTermWithBodyWithResponse ¶
func (c *ClientWithResponses) AddTermWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTermResponse, error)
AddTermWithBodyWithResponse request with arbitrary body returning *AddTermResponse
func (*ClientWithResponses) AddTermWithResponse ¶
func (c *ClientWithResponses) AddTermWithResponse(ctx context.Context, namespaceName string, body AddTermJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTermResponse, error)
func (*ClientWithResponses) AddTranslationToGlossaryItemWithBodyWithResponse ¶
func (c *ClientWithResponses) AddTranslationToGlossaryItemWithBodyWithResponse(ctx context.Context, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTranslationToGlossaryItemResponse, error)
AddTranslationToGlossaryItemWithBodyWithResponse request with arbitrary body returning *AddTranslationToGlossaryItemResponse
func (*ClientWithResponses) AddTranslationToGlossaryItemWithResponse ¶
func (c *ClientWithResponses) AddTranslationToGlossaryItemWithResponse(ctx context.Context, itemId string, body AddTranslationToGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTranslationToGlossaryItemResponse, error)
func (*ClientWithResponses) AttachLanguageToGlossaryWithResponse ¶
func (c *ClientWithResponses) AttachLanguageToGlossaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AttachLanguageToGlossaryResponse, error)
AttachLanguageToGlossaryWithResponse request returning *AttachLanguageToGlossaryResponse
func (*ClientWithResponses) CreateAPIKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
CreateAPIKeyWithBodyWithResponse request with arbitrary body returning *CreateAPIKeyResponse
func (*ClientWithResponses) CreateAPIKeyWithResponse ¶
func (c *ClientWithResponses) CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
func (*ClientWithResponses) CreateCustomLanguageWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomLanguageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomLanguageResponse, error)
CreateCustomLanguageWithBodyWithResponse request with arbitrary body returning *CreateCustomLanguageResponse
func (*ClientWithResponses) CreateCustomLanguageWithResponse ¶
func (c *ClientWithResponses) CreateCustomLanguageWithResponse(ctx context.Context, body CreateCustomLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomLanguageResponse, error)
func (*ClientWithResponses) CreateCustomPromptWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomPromptWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomPromptResponse, error)
CreateCustomPromptWithBodyWithResponse request with arbitrary body returning *CreateCustomPromptResponse
func (*ClientWithResponses) CreateCustomPromptWithResponse ¶
func (c *ClientWithResponses) CreateCustomPromptWithResponse(ctx context.Context, body CreateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomPromptResponse, error)
func (*ClientWithResponses) CreateGlossaryItemWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGlossaryItemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlossaryItemResponse, error)
CreateGlossaryItemWithBodyWithResponse request with arbitrary body returning *CreateGlossaryItemResponse
func (*ClientWithResponses) CreateGlossaryItemWithResponse ¶
func (c *ClientWithResponses) CreateGlossaryItemWithResponse(ctx context.Context, body CreateGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlossaryItemResponse, error)
func (*ClientWithResponses) CreateGlossaryWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGlossaryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlossaryResponse, error)
CreateGlossaryWithBodyWithResponse request with arbitrary body returning *CreateGlossaryResponse
func (*ClientWithResponses) CreateGlossaryWithResponse ¶
func (c *ClientWithResponses) CreateGlossaryWithResponse(ctx context.Context, body CreateGlossaryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlossaryResponse, error)
func (*ClientWithResponses) CreateImportWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateImportWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImportResponse, error)
CreateImportWithBodyWithResponse request with arbitrary body returning *CreateImportResponse
func (*ClientWithResponses) CreateNamespaceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceResponse, error)
CreateNamespaceWithBodyWithResponse request with arbitrary body returning *CreateNamespaceResponse
func (*ClientWithResponses) CreateNamespaceWithResponse ¶
func (c *ClientWithResponses) CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceResponse, error)
func (*ClientWithResponses) DeleteAPIKeyWithResponse ¶
func (c *ClientWithResponses) DeleteAPIKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error)
DeleteAPIKeyWithResponse request returning *DeleteAPIKeyResponse
func (*ClientWithResponses) DeleteCustomLanguageWithResponse ¶
func (c *ClientWithResponses) DeleteCustomLanguageWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteCustomLanguageResponse, error)
DeleteCustomLanguageWithResponse request returning *DeleteCustomLanguageResponse
func (*ClientWithResponses) DeleteCustomPromptWithResponse ¶
func (c *ClientWithResponses) DeleteCustomPromptWithResponse(ctx context.Context, promptId string, reqEditors ...RequestEditorFn) (*DeleteCustomPromptResponse, error)
DeleteCustomPromptWithResponse request returning *DeleteCustomPromptResponse
func (*ClientWithResponses) DeleteGlossaryItemWithResponse ¶
func (c *ClientWithResponses) DeleteGlossaryItemWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*DeleteGlossaryItemResponse, error)
DeleteGlossaryItemWithResponse request returning *DeleteGlossaryItemResponse
func (*ClientWithResponses) DeleteNamespaceWithResponse ¶
func (c *ClientWithResponses) DeleteNamespaceWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*DeleteNamespaceResponse, error)
DeleteNamespaceWithResponse request returning *DeleteNamespaceResponse
func (*ClientWithResponses) DeleteTermWithResponse ¶
func (c *ClientWithResponses) DeleteTermWithResponse(ctx context.Context, namespaceName string, termId int, reqEditors ...RequestEditorFn) (*DeleteTermResponse, error)
DeleteTermWithResponse request returning *DeleteTermResponse
func (*ClientWithResponses) GetGlossaryItemWithResponse ¶
func (c *ClientWithResponses) GetGlossaryItemWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*GetGlossaryItemResponse, error)
GetGlossaryItemWithResponse request returning *GetGlossaryItemResponse
func (*ClientWithResponses) GetGlossaryWithResponse ¶
func (c *ClientWithResponses) GetGlossaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlossaryResponse, error)
GetGlossaryWithResponse request returning *GetGlossaryResponse
func (*ClientWithResponses) GetLanguagesByNamespaceWithResponse ¶
func (c *ClientWithResponses) GetLanguagesByNamespaceWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*GetLanguagesByNamespaceResponse, error)
GetLanguagesByNamespaceWithResponse request returning *GetLanguagesByNamespaceResponse
func (*ClientWithResponses) GetNamespaceByNameAndOrgWithResponse ¶
func (c *ClientWithResponses) GetNamespaceByNameAndOrgWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*GetNamespaceByNameAndOrgResponse, error)
GetNamespaceByNameAndOrgWithResponse request returning *GetNamespaceByNameAndOrgResponse
func (*ClientWithResponses) GetNamespacesNamespaceNameSyncJobIdWithResponse ¶
func (c *ClientWithResponses) GetNamespacesNamespaceNameSyncJobIdWithResponse(ctx context.Context, namespaceName string, jobId string, reqEditors ...RequestEditorFn) (*GetNamespacesNamespaceNameSyncJobIdResponse, error)
GetNamespacesNamespaceNameSyncJobIdWithResponse request returning *GetNamespacesNamespaceNameSyncJobIdResponse
func (*ClientWithResponses) GetProjectsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithBodyWithResponse request with arbitrary body returning *GetProjectsResponse
func (*ClientWithResponses) GetProjectsWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, body GetProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
func (*ClientWithResponses) ImportFinishWithBodyWithResponse ¶
func (c *ClientWithResponses) ImportFinishWithBodyWithResponse(ctx context.Context, namespaceName string, importId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportFinishResponse, error)
ImportFinishWithBodyWithResponse request with arbitrary body returning *ImportFinishResponse
func (*ClientWithResponses) ImportFinishWithResponse ¶
func (c *ClientWithResponses) ImportFinishWithResponse(ctx context.Context, namespaceName string, importId string, body ImportFinishJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportFinishResponse, error)
func (*ClientWithResponses) ListAPIKeysWithResponse ¶
func (c *ClientWithResponses) ListAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)
ListAPIKeysWithResponse request returning *ListAPIKeysResponse
func (*ClientWithResponses) ListAuditLogActorsWithResponse ¶ added in v0.17.0
func (c *ClientWithResponses) ListAuditLogActorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditLogActorsResponse, error)
ListAuditLogActorsWithResponse request returning *ListAuditLogActorsResponse
func (*ClientWithResponses) ListAuditLogsWithResponse ¶ added in v0.17.0
func (c *ClientWithResponses) ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error)
ListAuditLogsWithResponse request returning *ListAuditLogsResponse
func (*ClientWithResponses) ListByNamespaceWithResponse ¶
func (c *ClientWithResponses) ListByNamespaceWithResponse(ctx context.Context, namespaceName string, params *ListByNamespaceParams, reqEditors ...RequestEditorFn) (*ListByNamespaceResponse, error)
ListByNamespaceWithResponse request returning *ListByNamespaceResponse
func (*ClientWithResponses) ListCustomPromptsWithResponse ¶
func (c *ClientWithResponses) ListCustomPromptsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCustomPromptsResponse, error)
ListCustomPromptsWithResponse request returning *ListCustomPromptsResponse
func (*ClientWithResponses) ListGlossaryItemsWithResponse ¶
func (c *ClientWithResponses) ListGlossaryItemsWithResponse(ctx context.Context, params *ListGlossaryItemsParams, reqEditors ...RequestEditorFn) (*ListGlossaryItemsResponse, error)
ListGlossaryItemsWithResponse request returning *ListGlossaryItemsResponse
func (*ClientWithResponses) ListLanguagesForOrgWithResponse ¶
func (c *ClientWithResponses) ListLanguagesForOrgWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLanguagesForOrgResponse, error)
ListLanguagesForOrgWithResponse request returning *ListLanguagesForOrgResponse
func (*ClientWithResponses) ListNamespacesWithResponse ¶
func (c *ClientWithResponses) ListNamespacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNamespacesResponse, error)
ListNamespacesWithResponse request returning *ListNamespacesResponse
func (*ClientWithResponses) MigrateWithBodyWithResponse ¶
func (c *ClientWithResponses) MigrateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateResponse, error)
MigrateWithBodyWithResponse request with arbitrary body returning *MigrateResponse
func (*ClientWithResponses) MigrateWithResponse ¶
func (c *ClientWithResponses) MigrateWithResponse(ctx context.Context, body MigrateJSONRequestBody, reqEditors ...RequestEditorFn) (*MigrateResponse, error)
func (*ClientWithResponses) PostNamespacesNamespaceNameSyncWithBodyWithResponse ¶
func (c *ClientWithResponses) PostNamespacesNamespaceNameSyncWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNamespacesNamespaceNameSyncResponse, error)
PostNamespacesNamespaceNameSyncWithBodyWithResponse request with arbitrary body returning *PostNamespacesNamespaceNameSyncResponse
func (*ClientWithResponses) PostNamespacesNamespaceNameSyncWithResponse ¶
func (c *ClientWithResponses) PostNamespacesNamespaceNameSyncWithResponse(ctx context.Context, namespaceName string, body PostNamespacesNamespaceNameSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNamespacesNamespaceNameSyncResponse, error)
func (*ClientWithResponses) PostTranslationsTranslateWithBodyWithResponse ¶
func (c *ClientWithResponses) PostTranslationsTranslateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTranslationsTranslateResponse, error)
PostTranslationsTranslateWithBodyWithResponse request with arbitrary body returning *PostTranslationsTranslateResponse
func (*ClientWithResponses) PostTranslationsTranslateWithResponse ¶
func (c *ClientWithResponses) PostTranslationsTranslateWithResponse(ctx context.Context, body PostTranslationsTranslateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTranslationsTranslateResponse, error)
func (*ClientWithResponses) RecommendMagicTranslationWithBodyWithResponse ¶
func (c *ClientWithResponses) RecommendMagicTranslationWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, languageId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecommendMagicTranslationResponse, error)
RecommendMagicTranslationWithBodyWithResponse request with arbitrary body returning *RecommendMagicTranslationResponse
func (*ClientWithResponses) RecommendMagicTranslationWithResponse ¶
func (c *ClientWithResponses) RecommendMagicTranslationWithResponse(ctx context.Context, namespaceName string, termId int, languageId int, body RecommendMagicTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*RecommendMagicTranslationResponse, error)
func (*ClientWithResponses) RemoveLanguageWithResponse ¶
func (c *ClientWithResponses) RemoveLanguageWithResponse(ctx context.Context, namespaceName string, languageId int, reqEditors ...RequestEditorFn) (*RemoveLanguageResponse, error)
RemoveLanguageWithResponse request returning *RemoveLanguageResponse
func (*ClientWithResponses) TranslateMissingTranslationsWithBodyWithResponse ¶
func (c *ClientWithResponses) TranslateMissingTranslationsWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TranslateMissingTranslationsResponse, error)
TranslateMissingTranslationsWithBodyWithResponse request with arbitrary body returning *TranslateMissingTranslationsResponse
func (*ClientWithResponses) TranslateMissingTranslationsWithResponse ¶
func (c *ClientWithResponses) TranslateMissingTranslationsWithResponse(ctx context.Context, namespaceName string, body TranslateMissingTranslationsJSONRequestBody, reqEditors ...RequestEditorFn) (*TranslateMissingTranslationsResponse, error)
func (*ClientWithResponses) UpdateCustomPromptWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCustomPromptWithBodyWithResponse(ctx context.Context, promptId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomPromptResponse, error)
UpdateCustomPromptWithBodyWithResponse request with arbitrary body returning *UpdateCustomPromptResponse
func (*ClientWithResponses) UpdateCustomPromptWithResponse ¶
func (c *ClientWithResponses) UpdateCustomPromptWithResponse(ctx context.Context, promptId string, body UpdateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomPromptResponse, error)
func (*ClientWithResponses) UpdateGlossaryItemTranslationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateGlossaryItemTranslationWithBodyWithResponse(ctx context.Context, itemId string, languageId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGlossaryItemTranslationResponse, error)
UpdateGlossaryItemTranslationWithBodyWithResponse request with arbitrary body returning *UpdateGlossaryItemTranslationResponse
func (*ClientWithResponses) UpdateGlossaryItemTranslationWithResponse ¶
func (c *ClientWithResponses) UpdateGlossaryItemTranslationWithResponse(ctx context.Context, itemId string, languageId int, body UpdateGlossaryItemTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGlossaryItemTranslationResponse, error)
func (*ClientWithResponses) UpdateNamespaceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceResponse, error)
UpdateNamespaceWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceResponse
func (*ClientWithResponses) UpdateNamespaceWithResponse ¶
func (c *ClientWithResponses) UpdateNamespaceWithResponse(ctx context.Context, namespaceName string, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceResponse, error)
func (*ClientWithResponses) UpdateTermTranslationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTermTranslationWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, languageToNamespaceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTermTranslationResponse, error)
UpdateTermTranslationWithBodyWithResponse request with arbitrary body returning *UpdateTermTranslationResponse
func (*ClientWithResponses) UpdateTermTranslationWithResponse ¶
func (c *ClientWithResponses) UpdateTermTranslationWithResponse(ctx context.Context, namespaceName string, termId int, languageToNamespaceId int, body UpdateTermTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTermTranslationResponse, error)
func (*ClientWithResponses) UpdateTermWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTermWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTermResponse, error)
UpdateTermWithBodyWithResponse request with arbitrary body returning *UpdateTermResponse
func (*ClientWithResponses) UpdateTermWithResponse ¶
func (c *ClientWithResponses) UpdateTermWithResponse(ctx context.Context, namespaceName string, termId int, body UpdateTermJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTermResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAPIKeysWithResponse request
ListAPIKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)
// CreateAPIKeyWithBodyWithResponse request with any body
CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)
// DeleteAPIKeyWithResponse request
DeleteAPIKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error)
// ListAuditLogsWithResponse request
ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error)
// ListAuditLogActorsWithResponse request
ListAuditLogActorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditLogActorsResponse, error)
// GetGlossaryWithResponse request
GetGlossaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlossaryResponse, error)
// CreateGlossaryWithBodyWithResponse request with any body
CreateGlossaryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlossaryResponse, error)
CreateGlossaryWithResponse(ctx context.Context, body CreateGlossaryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlossaryResponse, error)
// ListGlossaryItemsWithResponse request
ListGlossaryItemsWithResponse(ctx context.Context, params *ListGlossaryItemsParams, reqEditors ...RequestEditorFn) (*ListGlossaryItemsResponse, error)
// CreateGlossaryItemWithBodyWithResponse request with any body
CreateGlossaryItemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlossaryItemResponse, error)
CreateGlossaryItemWithResponse(ctx context.Context, body CreateGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlossaryItemResponse, error)
// DeleteGlossaryItemWithResponse request
DeleteGlossaryItemWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*DeleteGlossaryItemResponse, error)
// GetGlossaryItemWithResponse request
GetGlossaryItemWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*GetGlossaryItemResponse, error)
// AddTranslationToGlossaryItemWithBodyWithResponse request with any body
AddTranslationToGlossaryItemWithBodyWithResponse(ctx context.Context, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTranslationToGlossaryItemResponse, error)
AddTranslationToGlossaryItemWithResponse(ctx context.Context, itemId string, body AddTranslationToGlossaryItemJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTranslationToGlossaryItemResponse, error)
// UpdateGlossaryItemTranslationWithBodyWithResponse request with any body
UpdateGlossaryItemTranslationWithBodyWithResponse(ctx context.Context, itemId string, languageId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGlossaryItemTranslationResponse, error)
UpdateGlossaryItemTranslationWithResponse(ctx context.Context, itemId string, languageId int, body UpdateGlossaryItemTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGlossaryItemTranslationResponse, error)
// AttachLanguageToGlossaryWithResponse request
AttachLanguageToGlossaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AttachLanguageToGlossaryResponse, error)
// ListLanguagesForOrgWithResponse request
ListLanguagesForOrgWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLanguagesForOrgResponse, error)
// CreateCustomLanguageWithBodyWithResponse request with any body
CreateCustomLanguageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomLanguageResponse, error)
CreateCustomLanguageWithResponse(ctx context.Context, body CreateCustomLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomLanguageResponse, error)
// DeleteCustomLanguageWithResponse request
DeleteCustomLanguageWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteCustomLanguageResponse, error)
// GetProjectsWithBodyWithResponse request with any body
GetProjectsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithResponse(ctx context.Context, body GetProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
// MigrateWithBodyWithResponse request with any body
MigrateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MigrateResponse, error)
MigrateWithResponse(ctx context.Context, body MigrateJSONRequestBody, reqEditors ...RequestEditorFn) (*MigrateResponse, error)
// ListNamespacesWithResponse request
ListNamespacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNamespacesResponse, error)
// CreateNamespaceWithBodyWithResponse request with any body
CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceResponse, error)
CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceResponse, error)
// DeleteNamespaceWithResponse request
DeleteNamespaceWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*DeleteNamespaceResponse, error)
// GetNamespaceByNameAndOrgWithResponse request
GetNamespaceByNameAndOrgWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*GetNamespaceByNameAndOrgResponse, error)
// UpdateNamespaceWithBodyWithResponse request with any body
UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceResponse, error)
UpdateNamespaceWithResponse(ctx context.Context, namespaceName string, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceResponse, error)
// GetLanguagesByNamespaceWithResponse request
GetLanguagesByNamespaceWithResponse(ctx context.Context, namespaceName string, reqEditors ...RequestEditorFn) (*GetLanguagesByNamespaceResponse, error)
// AddLanguageWithBodyWithResponse request with any body
AddLanguageWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLanguageResponse, error)
AddLanguageWithResponse(ctx context.Context, namespaceName string, body AddLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLanguageResponse, error)
// RemoveLanguageWithResponse request
RemoveLanguageWithResponse(ctx context.Context, namespaceName string, languageId int, reqEditors ...RequestEditorFn) (*RemoveLanguageResponse, error)
// PostNamespacesNamespaceNameSyncWithBodyWithResponse request with any body
PostNamespacesNamespaceNameSyncWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostNamespacesNamespaceNameSyncResponse, error)
PostNamespacesNamespaceNameSyncWithResponse(ctx context.Context, namespaceName string, body PostNamespacesNamespaceNameSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*PostNamespacesNamespaceNameSyncResponse, error)
// GetNamespacesNamespaceNameSyncJobIdWithResponse request
GetNamespacesNamespaceNameSyncJobIdWithResponse(ctx context.Context, namespaceName string, jobId string, reqEditors ...RequestEditorFn) (*GetNamespacesNamespaceNameSyncJobIdResponse, error)
// ListByNamespaceWithResponse request
ListByNamespaceWithResponse(ctx context.Context, namespaceName string, params *ListByNamespaceParams, reqEditors ...RequestEditorFn) (*ListByNamespaceResponse, error)
// AddTermWithBodyWithResponse request with any body
AddTermWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTermResponse, error)
AddTermWithResponse(ctx context.Context, namespaceName string, body AddTermJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTermResponse, error)
// CreateImportWithBodyWithResponse request with any body
CreateImportWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImportResponse, error)
// ImportFinishWithBodyWithResponse request with any body
ImportFinishWithBodyWithResponse(ctx context.Context, namespaceName string, importId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportFinishResponse, error)
ImportFinishWithResponse(ctx context.Context, namespaceName string, importId string, body ImportFinishJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportFinishResponse, error)
// TranslateMissingTranslationsWithBodyWithResponse request with any body
TranslateMissingTranslationsWithBodyWithResponse(ctx context.Context, namespaceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TranslateMissingTranslationsResponse, error)
TranslateMissingTranslationsWithResponse(ctx context.Context, namespaceName string, body TranslateMissingTranslationsJSONRequestBody, reqEditors ...RequestEditorFn) (*TranslateMissingTranslationsResponse, error)
// DeleteTermWithResponse request
DeleteTermWithResponse(ctx context.Context, namespaceName string, termId int, reqEditors ...RequestEditorFn) (*DeleteTermResponse, error)
// UpdateTermWithBodyWithResponse request with any body
UpdateTermWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTermResponse, error)
UpdateTermWithResponse(ctx context.Context, namespaceName string, termId int, body UpdateTermJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTermResponse, error)
// RecommendMagicTranslationWithBodyWithResponse request with any body
RecommendMagicTranslationWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, languageId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecommendMagicTranslationResponse, error)
RecommendMagicTranslationWithResponse(ctx context.Context, namespaceName string, termId int, languageId int, body RecommendMagicTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*RecommendMagicTranslationResponse, error)
// UpdateTermTranslationWithBodyWithResponse request with any body
UpdateTermTranslationWithBodyWithResponse(ctx context.Context, namespaceName string, termId int, languageToNamespaceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTermTranslationResponse, error)
UpdateTermTranslationWithResponse(ctx context.Context, namespaceName string, termId int, languageToNamespaceId int, body UpdateTermTranslationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTermTranslationResponse, error)
// ListCustomPromptsWithResponse request
ListCustomPromptsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCustomPromptsResponse, error)
// CreateCustomPromptWithBodyWithResponse request with any body
CreateCustomPromptWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomPromptResponse, error)
CreateCustomPromptWithResponse(ctx context.Context, body CreateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomPromptResponse, error)
// DeleteCustomPromptWithResponse request
DeleteCustomPromptWithResponse(ctx context.Context, promptId string, reqEditors ...RequestEditorFn) (*DeleteCustomPromptResponse, error)
// UpdateCustomPromptWithBodyWithResponse request with any body
UpdateCustomPromptWithBodyWithResponse(ctx context.Context, promptId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomPromptResponse, error)
UpdateCustomPromptWithResponse(ctx context.Context, promptId string, body UpdateCustomPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomPromptResponse, error)
// PostTranslationsTranslateWithBodyWithResponse request with any body
PostTranslationsTranslateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTranslationsTranslateResponse, error)
PostTranslationsTranslateWithResponse(ctx context.Context, body PostTranslationsTranslateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTranslationsTranslateResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConstantsAuditAction ¶ added in v0.17.0
type ConstantsAuditAction string
ConstantsAuditAction defines model for constants.AuditAction.
const ( AuditActionAPIKeyCreated ConstantsAuditAction = "apikey.created" AuditActionAPIKeyDeleted ConstantsAuditAction = "apikey.deleted" AuditActionCustomLanguageCreated ConstantsAuditAction = "custom_language.created" AuditActionCustomLanguageDeleted ConstantsAuditAction = "custom_language.deleted" AuditActionCustomPromptCreated ConstantsAuditAction = "custom_prompt.created" AuditActionCustomPromptDeleted ConstantsAuditAction = "custom_prompt.deleted" AuditActionCustomPromptUpdated ConstantsAuditAction = "custom_prompt.updated" AuditActionGlossaryCreated ConstantsAuditAction = "glossary.created" AuditActionGlossaryItemCreated ConstantsAuditAction = "glossary_item.created" AuditActionGlossaryItemDeleted ConstantsAuditAction = "glossary_item.deleted" AuditActionGlossaryItemUpdated ConstantsAuditAction = "glossary_item.updated" AuditActionGlossaryLanguageAttached ConstantsAuditAction = "glossary.language_attached" AuditActionMigratorImported ConstantsAuditAction = "migrator.imported" AuditActionNamespaceCreated ConstantsAuditAction = "namespace.created" AuditActionNamespaceDeleted ConstantsAuditAction = "namespace.deleted" AuditActionNamespaceLanguageAdded ConstantsAuditAction = "namespace.language_added" AuditActionNamespaceLanguageRemoved ConstantsAuditAction = "namespace.language_removed" AuditActionNamespaceUpdated ConstantsAuditAction = "namespace.updated" AuditActionSyncJobCompleted ConstantsAuditAction = "sync_job.completed" AuditActionSyncJobCreated ConstantsAuditAction = "sync_job.created" AuditActionSyncJobFailed ConstantsAuditAction = "sync_job.failed" AuditActionTermImportFinished ConstantsAuditAction = "term_import.finished" )
Defines values for ConstantsAuditAction.
func (ConstantsAuditAction) Valid ¶ added in v0.17.0
func (e ConstantsAuditAction) Valid() bool
Valid indicates whether the value is a known member of the ConstantsAuditAction enum.
type ConstantsAuditTargetType ¶ added in v0.17.0
type ConstantsAuditTargetType string
ConstantsAuditTargetType defines model for constants.AuditTargetType.
const ( AuditTargetAPIKey ConstantsAuditTargetType = "apikey" AuditTargetCustomLanguage ConstantsAuditTargetType = "custom_language" AuditTargetCustomPrompt ConstantsAuditTargetType = "custom_prompt" AuditTargetGlossary ConstantsAuditTargetType = "glossary" AuditTargetGlossaryItem ConstantsAuditTargetType = "glossary_item" AuditTargetMigrator ConstantsAuditTargetType = "migrator" AuditTargetNamespace ConstantsAuditTargetType = "namespace" AuditTargetSyncJob ConstantsAuditTargetType = "sync_job" AuditTargetTermImport ConstantsAuditTargetType = "term_import" )
Defines values for ConstantsAuditTargetType.
func (ConstantsAuditTargetType) Valid ¶ added in v0.17.0
func (e ConstantsAuditTargetType) Valid() bool
Valid indicates whether the value is a known member of the ConstantsAuditTargetType enum.
type ConstantsGlossaryItemType ¶
type ConstantsGlossaryItemType string
ConstantsGlossaryItemType defines model for constants.GlossaryItemType.
const ( GlosasryItemTypePhrase ConstantsGlossaryItemType = "phrase" GlossaryItemTypeAdj ConstantsGlossaryItemType = "adjective" GlossaryItemTypeAdv ConstantsGlossaryItemType = "adverb" GlossaryItemTypeConjunction ConstantsGlossaryItemType = "conjunction" GlossaryItemTypeIdiom ConstantsGlossaryItemType = "idiom" GlossaryItemTypeInterjection ConstantsGlossaryItemType = "interjection" GlossaryItemTypeNotApplicable ConstantsGlossaryItemType = "n/a" GlossaryItemTypeNoun ConstantsGlossaryItemType = "noun" GlossaryItemTypePreposition ConstantsGlossaryItemType = "preposition" GlossaryItemTypePronoun ConstantsGlossaryItemType = "pronoun" GlossaryItemTypeVerb ConstantsGlossaryItemType = "verb" )
Defines values for ConstantsGlossaryItemType.
func (ConstantsGlossaryItemType) Valid ¶
func (e ConstantsGlossaryItemType) Valid() bool
Valid indicates whether the value is a known member of the ConstantsGlossaryItemType enum.
type ConstantsTermBulkImportStatus ¶
type ConstantsTermBulkImportStatus string
ConstantsTermBulkImportStatus defines model for constants.TermBulkImportStatus.
const ( TermBulkImportStatusCompleted ConstantsTermBulkImportStatus = "completed" TermBulkImportStatusFailed ConstantsTermBulkImportStatus = "failed" TermBulkImportStatusPrechecked ConstantsTermBulkImportStatus = "prechecked" TermBulkImportStatusProcessing ConstantsTermBulkImportStatus = "processing" )
Defines values for ConstantsTermBulkImportStatus.
func (ConstantsTermBulkImportStatus) Valid ¶
func (e ConstantsTermBulkImportStatus) Valid() bool
Valid indicates whether the value is a known member of the ConstantsTermBulkImportStatus enum.
type ConstantsTermImportCSVColumnSetupType ¶
type ConstantsTermImportCSVColumnSetupType string
ConstantsTermImportCSVColumnSetupType defines model for constants.TermImportCSVColumnSetupType.
const ( TermImportCSVColumnSetupTypeContext ConstantsTermImportCSVColumnSetupType = "context" TermImportCSVColumnSetupTypeIgnore ConstantsTermImportCSVColumnSetupType = "ignore" TermImportCSVColumnSetupTypeMark ConstantsTermImportCSVColumnSetupType = "mark" TermImportCSVColumnSetupTypeTranslation ConstantsTermImportCSVColumnSetupType = "translation" )
Defines values for ConstantsTermImportCSVColumnSetupType.
func (ConstantsTermImportCSVColumnSetupType) Valid ¶
func (e ConstantsTermImportCSVColumnSetupType) Valid() bool
Valid indicates whether the value is a known member of the ConstantsTermImportCSVColumnSetupType enum.
type ConstantsTermImportFormat ¶
type ConstantsTermImportFormat string
ConstantsTermImportFormat defines model for constants.TermImportFormat.
const ( TermImportFormatCSV ConstantsTermImportFormat = "csv" TermImportFormatTSV ConstantsTermImportFormat = "tsv" TermImportFormatXLS ConstantsTermImportFormat = "xls" TermImportFormatXLSX ConstantsTermImportFormat = "xlsx" )
Defines values for ConstantsTermImportFormat.
func (ConstantsTermImportFormat) Valid ¶
func (e ConstantsTermImportFormat) Valid() bool
Valid indicates whether the value is a known member of the ConstantsTermImportFormat enum.
type CreateAPIKeyJSONRequestBody ¶
type CreateAPIKeyJSONRequestBody = ApikeyPayloadCreateRequest
CreateAPIKeyJSONRequestBody defines body for CreateAPIKey for application/json ContentType.
type CreateAPIKeyResponse ¶
type CreateAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApikeyPayloadCreateResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateAPIKeyResponse ¶
func ParseCreateAPIKeyResponse(rsp *http.Response) (*CreateAPIKeyResponse, error)
ParseCreateAPIKeyResponse parses an HTTP response from a CreateAPIKeyWithResponse call
func (CreateAPIKeyResponse) ContentType ¶
func (r CreateAPIKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAPIKeyResponse) Status ¶
func (r CreateAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAPIKeyResponse) StatusCode ¶
func (r CreateAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomLanguageJSONRequestBody ¶
type CreateCustomLanguageJSONRequestBody = LanguagePayloadCreateLanguageRequest
CreateCustomLanguageJSONRequestBody defines body for CreateCustomLanguage for application/json ContentType.
type CreateCustomLanguageResponse ¶
type CreateCustomLanguageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *DtoDTOLanguage
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON409 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateCustomLanguageResponse ¶
func ParseCreateCustomLanguageResponse(rsp *http.Response) (*CreateCustomLanguageResponse, error)
ParseCreateCustomLanguageResponse parses an HTTP response from a CreateCustomLanguageWithResponse call
func (CreateCustomLanguageResponse) ContentType ¶
func (r CreateCustomLanguageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateCustomLanguageResponse) Status ¶
func (r CreateCustomLanguageResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCustomLanguageResponse) StatusCode ¶
func (r CreateCustomLanguageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomPromptJSONRequestBody ¶
type CreateCustomPromptJSONRequestBody = TranslationCreateCustomPromptInput
CreateCustomPromptJSONRequestBody defines body for CreateCustomPrompt for application/json ContentType.
type CreateCustomPromptResponse ¶
type CreateCustomPromptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TranslationCreateCustomPromptResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateCustomPromptResponse ¶
func ParseCreateCustomPromptResponse(rsp *http.Response) (*CreateCustomPromptResponse, error)
ParseCreateCustomPromptResponse parses an HTTP response from a CreateCustomPromptWithResponse call
func (CreateCustomPromptResponse) ContentType ¶
func (r CreateCustomPromptResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateCustomPromptResponse) Status ¶
func (r CreateCustomPromptResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCustomPromptResponse) StatusCode ¶
func (r CreateCustomPromptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGlossaryItemJSONRequestBody ¶
type CreateGlossaryItemJSONRequestBody = GlossaryCreateItemRequest
CreateGlossaryItemJSONRequestBody defines body for CreateGlossaryItem for application/json ContentType.
type CreateGlossaryItemResponse ¶
type CreateGlossaryItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *GlossaryCreateItemResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateGlossaryItemResponse ¶
func ParseCreateGlossaryItemResponse(rsp *http.Response) (*CreateGlossaryItemResponse, error)
ParseCreateGlossaryItemResponse parses an HTTP response from a CreateGlossaryItemWithResponse call
func (CreateGlossaryItemResponse) ContentType ¶
func (r CreateGlossaryItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateGlossaryItemResponse) Status ¶
func (r CreateGlossaryItemResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGlossaryItemResponse) StatusCode ¶
func (r CreateGlossaryItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGlossaryJSONRequestBody ¶
type CreateGlossaryJSONRequestBody = GlossaryCreateGlossaryRequest
CreateGlossaryJSONRequestBody defines body for CreateGlossary for application/json ContentType.
type CreateGlossaryResponse ¶
type CreateGlossaryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GlossaryCreateGlossaryResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateGlossaryResponse ¶
func ParseCreateGlossaryResponse(rsp *http.Response) (*CreateGlossaryResponse, error)
ParseCreateGlossaryResponse parses an HTTP response from a CreateGlossaryWithResponse call
func (CreateGlossaryResponse) ContentType ¶
func (r CreateGlossaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateGlossaryResponse) Status ¶
func (r CreateGlossaryResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGlossaryResponse) StatusCode ¶
func (r CreateGlossaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateImportMultipartBody ¶
type CreateImportMultipartBody struct {
// File File to import
File openapi_types.File `json:"file"`
}
CreateImportMultipartBody defines parameters for CreateImport.
type CreateImportMultipartRequestBody ¶
type CreateImportMultipartRequestBody CreateImportMultipartBody
CreateImportMultipartRequestBody defines body for CreateImport for multipart/form-data ContentType.
type CreateImportResponse ¶
type CreateImportResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TermImportPrecheckResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateImportResponse ¶
func ParseCreateImportResponse(rsp *http.Response) (*CreateImportResponse, error)
ParseCreateImportResponse parses an HTTP response from a CreateImportWithResponse call
func (CreateImportResponse) ContentType ¶
func (r CreateImportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateImportResponse) Status ¶
func (r CreateImportResponse) Status() string
Status returns HTTPResponse.Status
func (CreateImportResponse) StatusCode ¶
func (r CreateImportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNamespaceJSONRequestBody ¶
type CreateNamespaceJSONRequestBody = NamespacePayloadCreateNamespaceRequest
CreateNamespaceJSONRequestBody defines body for CreateNamespace for application/json ContentType.
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseCreateNamespaceResponse ¶
func ParseCreateNamespaceResponse(rsp *http.Response) (*CreateNamespaceResponse, error)
ParseCreateNamespaceResponse parses an HTTP response from a CreateNamespaceWithResponse call
func (CreateNamespaceResponse) ContentType ¶
func (r CreateNamespaceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateNamespaceResponse) Status ¶
func (r CreateNamespaceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNamespaceResponse) StatusCode ¶
func (r CreateNamespaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAPIKeyResponse ¶
type DeleteAPIKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseDeleteAPIKeyResponse ¶
func ParseDeleteAPIKeyResponse(rsp *http.Response) (*DeleteAPIKeyResponse, error)
ParseDeleteAPIKeyResponse parses an HTTP response from a DeleteAPIKeyWithResponse call
func (DeleteAPIKeyResponse) ContentType ¶
func (r DeleteAPIKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAPIKeyResponse) Status ¶
func (r DeleteAPIKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAPIKeyResponse) StatusCode ¶
func (r DeleteAPIKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomLanguageResponse ¶
type DeleteCustomLanguageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON404 *ResponseAPIError
JSON409 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseDeleteCustomLanguageResponse ¶
func ParseDeleteCustomLanguageResponse(rsp *http.Response) (*DeleteCustomLanguageResponse, error)
ParseDeleteCustomLanguageResponse parses an HTTP response from a DeleteCustomLanguageWithResponse call
func (DeleteCustomLanguageResponse) ContentType ¶
func (r DeleteCustomLanguageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteCustomLanguageResponse) Status ¶
func (r DeleteCustomLanguageResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomLanguageResponse) StatusCode ¶
func (r DeleteCustomLanguageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomPromptResponse ¶
type DeleteCustomPromptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseDeleteCustomPromptResponse ¶
func ParseDeleteCustomPromptResponse(rsp *http.Response) (*DeleteCustomPromptResponse, error)
ParseDeleteCustomPromptResponse parses an HTTP response from a DeleteCustomPromptWithResponse call
func (DeleteCustomPromptResponse) ContentType ¶
func (r DeleteCustomPromptResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteCustomPromptResponse) Status ¶
func (r DeleteCustomPromptResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomPromptResponse) StatusCode ¶
func (r DeleteCustomPromptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteGlossaryItemResponse ¶
type DeleteGlossaryItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseDeleteGlossaryItemResponse ¶
func ParseDeleteGlossaryItemResponse(rsp *http.Response) (*DeleteGlossaryItemResponse, error)
ParseDeleteGlossaryItemResponse parses an HTTP response from a DeleteGlossaryItemWithResponse call
func (DeleteGlossaryItemResponse) ContentType ¶
func (r DeleteGlossaryItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteGlossaryItemResponse) Status ¶
func (r DeleteGlossaryItemResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteGlossaryItemResponse) StatusCode ¶
func (r DeleteGlossaryItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNamespaceResponse ¶
type DeleteNamespaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseDeleteNamespaceResponse ¶
func ParseDeleteNamespaceResponse(rsp *http.Response) (*DeleteNamespaceResponse, error)
ParseDeleteNamespaceResponse parses an HTTP response from a DeleteNamespaceWithResponse call
func (DeleteNamespaceResponse) ContentType ¶
func (r DeleteNamespaceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteNamespaceResponse) Status ¶
func (r DeleteNamespaceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNamespaceResponse) StatusCode ¶
func (r DeleteNamespaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTermResponse ¶
type DeleteTermResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseDeleteTermResponse ¶
func ParseDeleteTermResponse(rsp *http.Response) (*DeleteTermResponse, error)
ParseDeleteTermResponse parses an HTTP response from a DeleteTermWithResponse call
func (DeleteTermResponse) ContentType ¶
func (r DeleteTermResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteTermResponse) Status ¶
func (r DeleteTermResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTermResponse) StatusCode ¶
func (r DeleteTermResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DtoAPIKey ¶
type DtoAPIKey struct {
CreatedAt string `json:"createdAt"`
CreatedBy string `json:"createdBy"`
Hash string `json:"hash"`
Id string `json:"id"`
LastUsedAt *string `json:"lastUsedAt,omitempty"`
Name string `json:"name"`
OrganizationId string `json:"organizationId"`
Preview *string `json:"preview,omitempty"`
RevokedAt *string `json:"revokedAt,omitempty"`
RevokedBy *string `json:"revokedBy,omitempty"`
UpdatedAt *string `json:"updatedAt,omitempty"`
UpdatedBy *string `json:"updatedBy,omitempty"`
}
DtoAPIKey defines model for dto.APIKey.
type DtoCustomPrompt ¶
type DtoCustomPrompt struct {
CreatedAt string `json:"createdAt"`
CreatedBy string `json:"createdBy"`
Id string `json:"id"`
IsPrivate bool `json:"isPrivate"`
Name string `json:"name"`
OrganizationId string `json:"organizationId"`
Prompt string `json:"prompt"`
UpdatedAt string `json:"updatedAt"`
}
DtoCustomPrompt defines model for dto.CustomPrompt.
type DtoDTOLanguage ¶
type DtoDTOLanguage struct {
Code *string `json:"code,omitempty"`
Id *int `json:"id,omitempty"`
// IsCustom IsCustom flags a language created by an organization (not part of
// the platform's shared set). For shared languages this is false and
// OrganizationID is nil. Mirrors the (shared, organization_id) shape
// on the language row with the orphan combination excluded by a
// CHECK constraint.
IsCustom *bool `json:"isCustom,omitempty"`
Name *string `json:"name,omitempty"`
// OrganizationId OrganizationID is the owner organization for a custom language;
// nil for shared languages. Useful for callers that need to display
// the source of the language ("from this org" vs "global").
OrganizationId *string `json:"organizationId,omitempty"`
}
DtoDTOLanguage defines model for dto.DTOLanguage.
type DtoDTOLanguageConnection ¶
type DtoDTOLanguageConnection struct {
ConnectionId *int `json:"connection_id,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
LanguageCode *string `json:"language_code,omitempty"`
LanguageId *int `json:"language_id,omitempty"`
LanguageName *string `json:"language_name,omitempty"`
}
DtoDTOLanguageConnection defines model for dto.DTOLanguageConnection.
type DtoDTONamespace ¶
type DtoDTONamespace struct {
Context *string `json:"context,omitempty"`
CreatedAt *string `json:"created_at,omitempty"`
CreatedBy *string `json:"created_by,omitempty"`
// DefaultCustomPromptId DefaultCustomPromptID is the shared custom prompt every automatic
// translation in this namespace uses unless a request names another.
DefaultCustomPromptId *string `json:"defaultCustomPromptId,omitempty"`
DefaultLanguageId *int `json:"defaultLanguageId,omitempty"`
Id *string `json:"id,omitempty"`
Languages *[]string `json:"languages,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
Progress *float32 `json:"progress,omitempty"`
TotalTerms *int `json:"total_terms,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
DtoDTONamespace defines model for dto.DTONamespace.
type DtoDTOSyncJob ¶
type DtoDTOSyncJob struct {
AutotranslateDone *int `json:"autotranslateDone,omitempty"`
AutotranslateTotal *int `json:"autotranslateTotal,omitempty"`
// AutotranslateTriggeredAt Progress — autotranslate phase. Triggered timestamp is the
// at-most-once gate; total/done give the cell-level progress.
AutotranslateTriggeredAt *string `json:"autotranslateTriggeredAt,omitempty"`
CreatedAt *string `json:"createdAt,omitempty"`
CreatedCount *int `json:"createdCount,omitempty"`
DefaultLanguageCode *string `json:"defaultLanguageCode,omitempty"`
DeletedCount *int `json:"deletedCount,omitempty"`
DryRun *bool `json:"dryRun,omitempty"`
// ErrorMessage Terminal failure reason (only set when status='failed').
ErrorMessage *string `json:"errorMessage,omitempty"`
// Failures Failures — non-fatal per-op problems accumulated across the
// job. Empty array (not null) when there are none, so the CLI
// can always do `for _, f := range job.Failures`.
Failures *[]DtoDTOSyncJobFailure `json:"failures,omitempty"`
FinishedAt *string `json:"finishedAt,omitempty"`
Id *string `json:"id,omitempty"`
// Plan Plan — the planned ops. Populated for dry-run jobs (status=
// 'planned') and truncated to a configurable limit so a 50k-op
// plan doesn't blow up the response. When truncated, planTotal
// and planSample tell the client how to interpret what they got.
Plan *[]DtoDTOSyncJobOp `json:"plan,omitempty"`
PlanSample *int `json:"planSample,omitempty"`
PlanTotal *int `json:"planTotal,omitempty"`
Prune *bool `json:"prune,omitempty"`
PushDone *int `json:"pushDone,omitempty"`
// PushTotal Progress — push phase.
PushTotal *int `json:"pushTotal,omitempty"`
// ResultPerLanguage Result — only populated on status='completed'.
ResultPerLanguage *map[string]map[string]string `json:"resultPerLanguage,omitempty"`
StartedAt *string `json:"startedAt,omitempty"`
Status *string `json:"status,omitempty"`
StillUntranslatedCount *int `json:"stillUntranslatedCount,omitempty"`
Strategy *string `json:"strategy,omitempty"`
UpdatedCount *int `json:"updatedCount,omitempty"`
WaitForAutotranslate *bool `json:"waitForAutotranslate,omitempty"`
}
DtoDTOSyncJob defines model for dto.DTOSyncJob.
type DtoDTOSyncJobCreateResponse ¶
type DtoDTOSyncJobCreateResponse struct {
Id *string `json:"id,omitempty"`
}
DtoDTOSyncJobCreateResponse defines model for dto.DTOSyncJobCreateResponse.
type DtoDTOSyncJobFailure ¶
type DtoDTOSyncJobFailure struct {
Error *string `json:"error,omitempty"`
Mark *string `json:"mark,omitempty"`
OpIdx *int `json:"opIdx,omitempty"`
Phase *string `json:"phase,omitempty"`
}
DtoDTOSyncJobFailure defines model for dto.DTOSyncJobFailure.
type DtoDTOSyncJobOp ¶
type DtoDTOSyncJobOp struct {
Applied *bool `json:"applied,omitempty"`
Error *string `json:"error,omitempty"`
// Kind create | update | delete
Kind *string `json:"kind,omitempty"`
Mark *string `json:"mark,omitempty"`
OpIdx *int `json:"opIdx,omitempty"`
PayloadValue *string `json:"payloadValue,omitempty"`
}
DtoDTOSyncJobOp defines model for dto.DTOSyncJobOp.
type DtoDTOTerm ¶
type DtoDTOTerm struct {
Term DtoDTOTermDetail `json:"term"`
Translations []DtoTranslationInfo `json:"translations"`
}
DtoDTOTerm defines model for dto.DTOTerm.
type DtoDTOTermDetail ¶
type DtoDTOTermDetail struct {
Context string `json:"context"`
CreatedAt string `json:"created_at"`
Id int `json:"id"`
Mark string `json:"mark"`
}
DtoDTOTermDetail defines model for dto.DTOTermDetail.
type DtoGlossary ¶
type DtoGlossary struct {
DefaultLanguageId *int `json:"defaultLanguageId,omitempty"`
Id *string `json:"id,omitempty"`
OrganizationId *string `json:"organizationId,omitempty"`
}
DtoGlossary defines model for dto.Glossary.
type DtoGlossaryItem ¶
type DtoGlossaryItem struct {
Context string `json:"context"`
CreatedAt string `json:"createdAt"`
DefaultLanguageValue string `json:"defaultLanguageValue"`
EnabledLanguagesCount int `json:"enabledLanguagesCount"`
GlossaryId string `json:"glossaryId"`
Id string `json:"id"`
IsCaseSensitive bool `json:"isCaseSensitive"`
IsTranslatable bool `json:"isTranslatable"`
TranslatedCount int `json:"translatedCount"`
TranslationPercentage float32 `json:"translationPercentage"`
Type ConstantsGlossaryItemType `json:"type"`
UpdatedAt *string `json:"updatedAt,omitempty"`
}
DtoGlossaryItem defines model for dto.GlossaryItem.
type DtoGlossaryItemTranslation ¶
type DtoGlossaryItemTranslation struct {
ApprovedAt *string `json:"approvedAt,omitempty"`
CreatedAt string `json:"createdAt"`
GlossaryItemId string `json:"glossaryItemId"`
LanguageCode string `json:"languageCode"`
LanguageId int `json:"languageId"`
LanguageName string `json:"languageName"`
UpdatedAt *string `json:"updatedAt,omitempty"`
Value string `json:"value"`
}
DtoGlossaryItemTranslation defines model for dto.GlossaryItemTranslation.
type DtoLangInfo ¶
DtoLangInfo defines model for dto.LangInfo.
type DtoTranslationInfo ¶
type DtoTranslationInfo struct {
// AiGenerated AIGenerated is true while the value is exactly what AI translation
// produced; a person changing it clears the flag. The field order
// mirrors the translation_info composite type.
AiGenerated bool `json:"aiGenerated"`
CreatedAt *string `json:"created_at,omitempty"`
Lang DtoLangInfo `json:"lang"`
LanguageToNamespaceId int `json:"language_to_namespace_id"`
UpdatedAt *string `json:"updated_at,omitempty"`
Value string `json:"value"`
}
DtoTranslationInfo defines model for dto.TranslationInfo.
type GetGlossaryItemResponse ¶
type GetGlossaryItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GlossaryPayloadGetItemResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetGlossaryItemResponse ¶
func ParseGetGlossaryItemResponse(rsp *http.Response) (*GetGlossaryItemResponse, error)
ParseGetGlossaryItemResponse parses an HTTP response from a GetGlossaryItemWithResponse call
func (GetGlossaryItemResponse) ContentType ¶
func (r GetGlossaryItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetGlossaryItemResponse) Status ¶
func (r GetGlossaryItemResponse) Status() string
Status returns HTTPResponse.Status
func (GetGlossaryItemResponse) StatusCode ¶
func (r GetGlossaryItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGlossaryResponse ¶
type GetGlossaryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoGlossary
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetGlossaryResponse ¶
func ParseGetGlossaryResponse(rsp *http.Response) (*GetGlossaryResponse, error)
ParseGetGlossaryResponse parses an HTTP response from a GetGlossaryWithResponse call
func (GetGlossaryResponse) ContentType ¶
func (r GetGlossaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetGlossaryResponse) Status ¶
func (r GetGlossaryResponse) Status() string
Status returns HTTPResponse.Status
func (GetGlossaryResponse) StatusCode ¶
func (r GetGlossaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLanguagesByNamespaceResponse ¶
type GetLanguagesByNamespaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]DtoDTOLanguageConnection
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetLanguagesByNamespaceResponse ¶
func ParseGetLanguagesByNamespaceResponse(rsp *http.Response) (*GetLanguagesByNamespaceResponse, error)
ParseGetLanguagesByNamespaceResponse parses an HTTP response from a GetLanguagesByNamespaceWithResponse call
func (GetLanguagesByNamespaceResponse) ContentType ¶
func (r GetLanguagesByNamespaceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLanguagesByNamespaceResponse) Status ¶
func (r GetLanguagesByNamespaceResponse) Status() string
Status returns HTTPResponse.Status
func (GetLanguagesByNamespaceResponse) StatusCode ¶
func (r GetLanguagesByNamespaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNamespaceByNameAndOrgResponse ¶
type GetNamespaceByNameAndOrgResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoDTONamespace
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetNamespaceByNameAndOrgResponse ¶
func ParseGetNamespaceByNameAndOrgResponse(rsp *http.Response) (*GetNamespaceByNameAndOrgResponse, error)
ParseGetNamespaceByNameAndOrgResponse parses an HTTP response from a GetNamespaceByNameAndOrgWithResponse call
func (GetNamespaceByNameAndOrgResponse) ContentType ¶
func (r GetNamespaceByNameAndOrgResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetNamespaceByNameAndOrgResponse) Status ¶
func (r GetNamespaceByNameAndOrgResponse) Status() string
Status returns HTTPResponse.Status
func (GetNamespaceByNameAndOrgResponse) StatusCode ¶
func (r GetNamespaceByNameAndOrgResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNamespacesNamespaceNameSyncJobIdResponse ¶
type GetNamespacesNamespaceNameSyncJobIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoDTOSyncJob
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetNamespacesNamespaceNameSyncJobIdResponse ¶
func ParseGetNamespacesNamespaceNameSyncJobIdResponse(rsp *http.Response) (*GetNamespacesNamespaceNameSyncJobIdResponse, error)
ParseGetNamespacesNamespaceNameSyncJobIdResponse parses an HTTP response from a GetNamespacesNamespaceNameSyncJobIdWithResponse call
func (GetNamespacesNamespaceNameSyncJobIdResponse) ContentType ¶
func (r GetNamespacesNamespaceNameSyncJobIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetNamespacesNamespaceNameSyncJobIdResponse) Status ¶
func (r GetNamespacesNamespaceNameSyncJobIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetNamespacesNamespaceNameSyncJobIdResponse) StatusCode ¶
func (r GetNamespacesNamespaceNameSyncJobIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsJSONRequestBody ¶
type GetProjectsJSONRequestBody = MigratorPayloadGetProjectsRequest
GetProjectsJSONRequestBody defines body for GetProjects for application/json ContentType.
type GetProjectsResponse ¶
type GetProjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]MigratorPayloadGetProjectsResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseGetProjectsResponse ¶
func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)
ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call
func (GetProjectsResponse) ContentType ¶
func (r GetProjectsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProjectsResponse) Status ¶
func (r GetProjectsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsResponse) StatusCode ¶
func (r GetProjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GlossaryAddTranslationRequest ¶
type GlossaryAddTranslationRequest struct {
LanguageId int `json:"languageId"`
Value string `json:"value"`
}
GlossaryAddTranslationRequest defines model for glossary.addTranslationRequest.
type GlossaryCreateGlossaryRequest ¶
type GlossaryCreateGlossaryRequest struct {
DefaultLanguageId int `json:"defaultLanguageId"`
}
GlossaryCreateGlossaryRequest defines model for glossary.createGlossaryRequest.
type GlossaryCreateGlossaryResponse ¶
type GlossaryCreateGlossaryResponse struct {
GlossaryId string `json:"glossaryId"`
}
GlossaryCreateGlossaryResponse defines model for glossary.createGlossaryResponse.
type GlossaryCreateItemRequest ¶
type GlossaryCreateItemRequest struct {
Context *string `json:"context,omitempty"`
DefaultLanguageValue string `json:"defaultLanguageValue"`
IsCaseSensitive bool `json:"isCaseSensitive"`
IsTranslatable bool `json:"isTranslatable"`
Type ConstantsGlossaryItemType `json:"type"`
}
GlossaryCreateItemRequest defines model for glossary.createItemRequest.
type GlossaryCreateItemResponse ¶
type GlossaryCreateItemResponse struct {
ItemId string `json:"itemId"`
}
GlossaryCreateItemResponse defines model for glossary.createItemResponse.
type GlossaryPayloadGetItemResponse ¶
type GlossaryPayloadGetItemResponse struct {
GlossaryItem DtoGlossaryItem `json:"glossaryItem"`
GlossaryItemTranslations *[]DtoGlossaryItemTranslation `json:"glossaryItemTranslations,omitempty"`
}
GlossaryPayloadGetItemResponse defines model for glossary.payloadGetItemResponse.
type GlossaryUpdateTranslationRequest ¶
type GlossaryUpdateTranslationRequest struct {
Value string `json:"value"`
}
GlossaryUpdateTranslationRequest defines model for glossary.updateTranslationRequest.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImportFinishJSONRequestBody ¶
type ImportFinishJSONRequestBody = TermImportFinishRequest
ImportFinishJSONRequestBody defines body for ImportFinish for application/json ContentType.
type ImportFinishResponse ¶
type ImportFinishResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TermImportFinishResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseImportFinishResponse ¶
func ParseImportFinishResponse(rsp *http.Response) (*ImportFinishResponse, error)
ParseImportFinishResponse parses an HTTP response from a ImportFinishWithResponse call
func (ImportFinishResponse) ContentType ¶
func (r ImportFinishResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ImportFinishResponse) Status ¶
func (r ImportFinishResponse) Status() string
Status returns HTTPResponse.Status
func (ImportFinishResponse) StatusCode ¶
func (r ImportFinishResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LanguagePayloadCreateLanguageRequest ¶
type LanguagePayloadCreateLanguageRequest struct {
Code string `json:"code"`
Name string `json:"name"`
}
LanguagePayloadCreateLanguageRequest defines model for language.payloadCreateLanguageRequest.
type ListAPIKeysResponse ¶
type ListAPIKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
List []DtoAPIKey `json:"list"`
Meta ResponseAPIResponsePaginationMeta `json:"meta"`
}
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListAPIKeysResponse ¶
func ParseListAPIKeysResponse(rsp *http.Response) (*ListAPIKeysResponse, error)
ParseListAPIKeysResponse parses an HTTP response from a ListAPIKeysWithResponse call
func (ListAPIKeysResponse) ContentType ¶
func (r ListAPIKeysResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAPIKeysResponse) Status ¶
func (r ListAPIKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListAPIKeysResponse) StatusCode ¶
func (r ListAPIKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAuditLogActorsResponse ¶ added in v0.17.0
type ListAuditLogActorsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]AuditPayloadActor
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListAuditLogActorsResponse ¶ added in v0.17.0
func ParseListAuditLogActorsResponse(rsp *http.Response) (*ListAuditLogActorsResponse, error)
ParseListAuditLogActorsResponse parses an HTTP response from a ListAuditLogActorsWithResponse call
func (ListAuditLogActorsResponse) ContentType ¶ added in v0.17.0
func (r ListAuditLogActorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAuditLogActorsResponse) Status ¶ added in v0.17.0
func (r ListAuditLogActorsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAuditLogActorsResponse) StatusCode ¶ added in v0.17.0
func (r ListAuditLogActorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAuditLogsParams ¶ added in v0.17.0
type ListAuditLogsParams struct {
// Limit Page size (1-200, default 50)
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// CursorCreatedAt Cursor from prior response — RFC3339 timestamp
CursorCreatedAt *string `form:"cursorCreatedAt,omitempty" json:"cursorCreatedAt,omitempty"`
// CursorId Cursor from prior response — UUID tiebreaker for same-timestamp rows
CursorId *string `form:"cursorId,omitempty" json:"cursorId,omitempty"`
// Since Filter to rows with createdAt >= since (RFC3339)
Since *string `form:"since,omitempty" json:"since,omitempty"`
// Until Filter to rows with createdAt < until (RFC3339)
Until *string `form:"until,omitempty" json:"until,omitempty"`
// Actions Filter to one or more exact actions (repeated)
Actions *[]string `form:"actions,omitempty" json:"actions,omitempty"`
// TargetTypes Filter by one or more exact target_types (repeated)
TargetTypes *[]string `form:"targetTypes,omitempty" json:"targetTypes,omitempty"`
// TargetId Filter by exact target uuid
TargetId *string `form:"targetId,omitempty" json:"targetId,omitempty"`
// ActorIds Filter by one or more actor user ids (repeated); pass \
ActorIds *[]string `form:"actorIds,omitempty" json:"actorIds,omitempty"`
}
ListAuditLogsParams defines parameters for ListAuditLogs.
type ListAuditLogsResponse ¶ added in v0.17.0
type ListAuditLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuditPayloadListResponse
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListAuditLogsResponse ¶ added in v0.17.0
func ParseListAuditLogsResponse(rsp *http.Response) (*ListAuditLogsResponse, error)
ParseListAuditLogsResponse parses an HTTP response from a ListAuditLogsWithResponse call
func (ListAuditLogsResponse) ContentType ¶ added in v0.17.0
func (r ListAuditLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAuditLogsResponse) Status ¶ added in v0.17.0
func (r ListAuditLogsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAuditLogsResponse) StatusCode ¶ added in v0.17.0
func (r ListAuditLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListByNamespaceParams ¶
type ListByNamespaceParams struct {
Cursor string `form:"cursor" json:"cursor"`
HasAnyUntranslated *bool `form:"hasAnyUntranslated,omitempty" json:"hasAnyUntranslated,omitempty"`
Limit int `form:"limit" json:"limit"`
Search string `form:"search" json:"search"`
UntranslatedLangId *int `form:"untranslatedLangId,omitempty" json:"untranslatedLangId,omitempty"`
}
ListByNamespaceParams defines parameters for ListByNamespace.
type ListByNamespaceResponse ¶
type ListByNamespaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
List []DtoDTOTerm `json:"list"`
Meta ResponseAPIResponsePaginationMeta `json:"meta"`
}
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListByNamespaceResponse ¶
func ParseListByNamespaceResponse(rsp *http.Response) (*ListByNamespaceResponse, error)
ParseListByNamespaceResponse parses an HTTP response from a ListByNamespaceWithResponse call
func (ListByNamespaceResponse) ContentType ¶
func (r ListByNamespaceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListByNamespaceResponse) Status ¶
func (r ListByNamespaceResponse) Status() string
Status returns HTTPResponse.Status
func (ListByNamespaceResponse) StatusCode ¶
func (r ListByNamespaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomPromptsResponse ¶
type ListCustomPromptsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]DtoCustomPrompt
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListCustomPromptsResponse ¶
func ParseListCustomPromptsResponse(rsp *http.Response) (*ListCustomPromptsResponse, error)
ParseListCustomPromptsResponse parses an HTTP response from a ListCustomPromptsWithResponse call
func (ListCustomPromptsResponse) ContentType ¶
func (r ListCustomPromptsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListCustomPromptsResponse) Status ¶
func (r ListCustomPromptsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCustomPromptsResponse) StatusCode ¶
func (r ListCustomPromptsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGlossaryItemsParams ¶
type ListGlossaryItemsParams struct {
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListGlossaryItemsParams defines parameters for ListGlossaryItems.
type ListGlossaryItemsResponse ¶
type ListGlossaryItemsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
List []DtoGlossaryItem `json:"list"`
Meta ResponseAPIResponsePaginationMeta `json:"meta"`
}
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListGlossaryItemsResponse ¶
func ParseListGlossaryItemsResponse(rsp *http.Response) (*ListGlossaryItemsResponse, error)
ParseListGlossaryItemsResponse parses an HTTP response from a ListGlossaryItemsWithResponse call
func (ListGlossaryItemsResponse) ContentType ¶
func (r ListGlossaryItemsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGlossaryItemsResponse) Status ¶
func (r ListGlossaryItemsResponse) Status() string
Status returns HTTPResponse.Status
func (ListGlossaryItemsResponse) StatusCode ¶
func (r ListGlossaryItemsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLanguagesForOrgResponse ¶
type ListLanguagesForOrgResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]DtoDTOLanguage
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListLanguagesForOrgResponse ¶
func ParseListLanguagesForOrgResponse(rsp *http.Response) (*ListLanguagesForOrgResponse, error)
ParseListLanguagesForOrgResponse parses an HTTP response from a ListLanguagesForOrgWithResponse call
func (ListLanguagesForOrgResponse) ContentType ¶
func (r ListLanguagesForOrgResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLanguagesForOrgResponse) Status ¶
func (r ListLanguagesForOrgResponse) Status() string
Status returns HTTPResponse.Status
func (ListLanguagesForOrgResponse) StatusCode ¶
func (r ListLanguagesForOrgResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNamespacesResponse ¶
type ListNamespacesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]DtoDTONamespace
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseListNamespacesResponse ¶
func ParseListNamespacesResponse(rsp *http.Response) (*ListNamespacesResponse, error)
ParseListNamespacesResponse parses an HTTP response from a ListNamespacesWithResponse call
func (ListNamespacesResponse) ContentType ¶
func (r ListNamespacesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListNamespacesResponse) Status ¶
func (r ListNamespacesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNamespacesResponse) StatusCode ¶
func (r ListNamespacesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MigrateJSONRequestBody ¶
type MigrateJSONRequestBody = MigratorPayloadMigrateRequest
MigrateJSONRequestBody defines body for Migrate for application/json ContentType.
type MigrateResponse ¶
type MigrateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MigratorPayloadMigrateResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseMigrateResponse ¶
func ParseMigrateResponse(rsp *http.Response) (*MigrateResponse, error)
ParseMigrateResponse parses an HTTP response from a MigrateWithResponse call
func (MigrateResponse) ContentType ¶
func (r MigrateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MigrateResponse) Status ¶
func (r MigrateResponse) Status() string
Status returns HTTPResponse.Status
func (MigrateResponse) StatusCode ¶
func (r MigrateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MigratorPayloadGetProjectsRequest ¶
type MigratorPayloadGetProjectsRequest struct {
ApiKey *string `json:"api_key,omitempty"`
}
MigratorPayloadGetProjectsRequest defines model for migrator.payloadGetProjectsRequest.
type MigratorPayloadGetProjectsResponse ¶
type MigratorPayloadGetProjectsResponse struct {
Projects *[]PoeditorProject `json:"projects,omitempty"`
}
MigratorPayloadGetProjectsResponse defines model for migrator.payloadGetProjectsResponse.
type MigratorPayloadMigrateRequest ¶
type MigratorPayloadMigrateRequest struct {
ApiKey *string `json:"api_key,omitempty"`
ProjectIds *[]int `json:"project_ids,omitempty"`
}
MigratorPayloadMigrateRequest defines model for migrator.payloadMigrateRequest.
type MigratorPayloadMigrateResponse ¶
type MigratorPayloadMigrateResponse struct {
MigratedCount *int `json:"migrated_count,omitempty"`
}
MigratorPayloadMigrateResponse defines model for migrator.payloadMigrateResponse.
type NamespacePayloadAddLanguageRequest ¶
type NamespacePayloadAddLanguageRequest struct {
LanguageCode *string `json:"languageCode,omitempty"`
// LanguageId Preferred new fields — pass exactly one.
LanguageId *int `json:"languageId,omitempty"`
}
NamespacePayloadAddLanguageRequest defines model for namespace.payloadAddLanguageRequest.
type NamespacePayloadAddLanguageResponse ¶
type NamespacePayloadAddLanguageResponse struct {
ConnectionId *int `json:"connection_id,omitempty"`
}
NamespacePayloadAddLanguageResponse defines model for namespace.payloadAddLanguageResponse.
type NamespacePayloadCreateNamespaceRequest ¶
type NamespacePayloadCreateNamespaceRequest struct {
Context string `json:"context"`
// DefaultLanguage Deprecated: kept for one release. Used to be `defaultLanguage` (string
// code only); now accepts either string or int via LanguageRef.
DefaultLanguage *TypesLanguageRef `json:"defaultLanguage,omitempty"`
DefaultLanguageCode *string `json:"defaultLanguageCode,omitempty"`
// DefaultLanguageId Preferred new fields — pass exactly one. The CLI/frontend should
// emit these going forward.
DefaultLanguageId *int `json:"defaultLanguageId,omitempty"`
Name string `json:"name"`
}
NamespacePayloadCreateNamespaceRequest defines model for namespace.payloadCreateNamespaceRequest.
type NamespacePayloadUpdateNamespaceRequest ¶
type NamespacePayloadUpdateNamespaceRequest struct {
Context *string `json:"context,omitempty"`
// DefaultCustomPromptId DefaultCustomPromptID sets the shared custom prompt that every
// automatic translation in the namespace uses. Omit to keep the
// current one; send an empty string to remove it.
DefaultCustomPromptId *string `json:"defaultCustomPromptId,omitempty"`
DefaultLanguageCode *string `json:"defaultLanguageCode,omitempty"`
// DefaultLanguageId Preferred new fields — pass exactly one. The CLI/frontend should
// emit these going forward.
DefaultLanguageId *int `json:"defaultLanguageId,omitempty"`
// DefaultLanguage Deprecated: kept for one release. Used to be `default_language` (int);
// now accepts either int or string via LanguageRef. Prefer the explicit
// fields above.
DefaultLanguage *TypesLanguageRef `json:"default_language,omitempty"`
Name *string `json:"name,omitempty"`
}
NamespacePayloadUpdateNamespaceRequest defines model for namespace.payloadUpdateNamespaceRequest.
type PoeditorPOEditorTime ¶
type PoeditorPOEditorTime struct {
TimeTime *string `json:"time.Time,omitempty"`
}
PoeditorPOEditorTime defines model for poeditor.POEditorTime.
type PoeditorProject ¶
type PoeditorProject struct {
Created *PoeditorPOEditorTime `json:"created,omitempty"`
Id *int `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Open *int `json:"open,omitempty"`
Public *int `json:"public,omitempty"`
}
PoeditorProject defines model for poeditor.Project.
type PostNamespacesNamespaceNameSyncJSONRequestBody ¶
type PostNamespacesNamespaceNameSyncJSONRequestBody = SyncjobCreateSyncRequest
PostNamespacesNamespaceNameSyncJSONRequestBody defines body for PostNamespacesNamespaceNameSync for application/json ContentType.
type PostNamespacesNamespaceNameSyncResponse ¶
type PostNamespacesNamespaceNameSyncResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *DtoDTOSyncJobCreateResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParsePostNamespacesNamespaceNameSyncResponse ¶
func ParsePostNamespacesNamespaceNameSyncResponse(rsp *http.Response) (*PostNamespacesNamespaceNameSyncResponse, error)
ParsePostNamespacesNamespaceNameSyncResponse parses an HTTP response from a PostNamespacesNamespaceNameSyncWithResponse call
func (PostNamespacesNamespaceNameSyncResponse) ContentType ¶
func (r PostNamespacesNamespaceNameSyncResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostNamespacesNamespaceNameSyncResponse) Status ¶
func (r PostNamespacesNamespaceNameSyncResponse) Status() string
Status returns HTTPResponse.Status
func (PostNamespacesNamespaceNameSyncResponse) StatusCode ¶
func (r PostNamespacesNamespaceNameSyncResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostTranslationsTranslateJSONRequestBody ¶
type PostTranslationsTranslateJSONRequestBody = TranslationTranslateTextBody
PostTranslationsTranslateJSONRequestBody defines body for PostTranslationsTranslate for application/json ContentType.
type PostTranslationsTranslateResponse ¶
type PostTranslationsTranslateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TranslationTranslateTextResponse
JSON400 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParsePostTranslationsTranslateResponse ¶
func ParsePostTranslationsTranslateResponse(rsp *http.Response) (*PostTranslationsTranslateResponse, error)
ParsePostTranslationsTranslateResponse parses an HTTP response from a PostTranslationsTranslateWithResponse call
func (PostTranslationsTranslateResponse) ContentType ¶
func (r PostTranslationsTranslateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostTranslationsTranslateResponse) Status ¶
func (r PostTranslationsTranslateResponse) Status() string
Status returns HTTPResponse.Status
func (PostTranslationsTranslateResponse) StatusCode ¶
func (r PostTranslationsTranslateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RecommendMagicTranslationJSONRequestBody ¶
type RecommendMagicTranslationJSONRequestBody = TermPayloadRecommendMagicTranslationRequest
RecommendMagicTranslationJSONRequestBody defines body for RecommendMagicTranslation for application/json ContentType.
type RecommendMagicTranslationResponse ¶
type RecommendMagicTranslationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TermPayloadRecommendMagicTranslationResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseRecommendMagicTranslationResponse ¶
func ParseRecommendMagicTranslationResponse(rsp *http.Response) (*RecommendMagicTranslationResponse, error)
ParseRecommendMagicTranslationResponse parses an HTTP response from a RecommendMagicTranslationWithResponse call
func (RecommendMagicTranslationResponse) ContentType ¶
func (r RecommendMagicTranslationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RecommendMagicTranslationResponse) Status ¶
func (r RecommendMagicTranslationResponse) Status() string
Status returns HTTPResponse.Status
func (RecommendMagicTranslationResponse) StatusCode ¶
func (r RecommendMagicTranslationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveLanguageResponse ¶
type RemoveLanguageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseRemoveLanguageResponse ¶
func ParseRemoveLanguageResponse(rsp *http.Response) (*RemoveLanguageResponse, error)
ParseRemoveLanguageResponse parses an HTTP response from a RemoveLanguageWithResponse call
func (RemoveLanguageResponse) ContentType ¶
func (r RemoveLanguageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RemoveLanguageResponse) Status ¶
func (r RemoveLanguageResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveLanguageResponse) StatusCode ¶
func (r RemoveLanguageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseAPIError ¶
type ResponseAPIError struct {
Data interface{} `json:"data,omitempty"`
Msg string `json:"msg"`
Type ResponseType `json:"type"`
}
ResponseAPIError defines model for response.APIError.
type ResponseAPIResponseEmpty ¶
type ResponseAPIResponseEmpty = map[string]interface{}
ResponseAPIResponseEmpty defines model for response.APIResponseEmpty.
type ResponseAPIResponsePaginationCursors ¶
type ResponseAPIResponsePaginationCursors struct {
Next *string `json:"next,omitempty"`
}
ResponseAPIResponsePaginationCursors defines model for response.APIResponsePaginationCursors.
type ResponseAPIResponsePaginationMeta ¶
type ResponseAPIResponsePaginationMeta struct {
Timestamp string `json:"timestamp"`
}
ResponseAPIResponsePaginationMeta defines model for response.APIResponsePaginationMeta.
type ResponseAPIResponseWithPagination ¶
type ResponseAPIResponseWithPagination struct {
Cursors ResponseAPIResponsePaginationCursors `json:"cursors"`
List interface{} `json:"list"`
Meta ResponseAPIResponsePaginationMeta `json:"meta"`
}
ResponseAPIResponseWithPagination defines model for response.APIResponseWithPagination.
type ResponseType ¶
type ResponseType string
ResponseType defines model for response.Type.
const ( ErrBackupCodeInvalid ResponseType = "BACKUP_CODE_INVALID" ErrColumnCountMismatch ResponseType = "COLUMN_COUNT_MISMATCH" ErrConflict ResponseType = "CONFLICT" ErrConnectionAlreadyExists ResponseType = "CONNECTION_ALREADY_EXISTS" ErrDuplicate ResponseType = "DUPLICATE" ErrEmailRequired ResponseType = "EMAIL_REQUIRED" ErrEmpty ResponseType = "EMPTY" ErrEmptyValue ResponseType = "EMPTY_VALUE" ErrForbidden ResponseType = "FORBIDDEN" ErrInnovationAgencyIDRequired ResponseType = "INNOVATION_AGENCY_ID_REQUIRED" ErrInsufficientPermissions ResponseType = "INSUFFICIENT_PERMISSIONS" ErrInternalServer ResponseType = "INTERNAL_SERVER_ERROR" ErrInvalidCustomPrompt ResponseType = "INVALID_CUSTOM_PROMPT" ErrInvalidImportStatus ResponseType = "INVALID_IMPORT_STATUS" ErrInvalidName ResponseType = "INVALID_NAME" ErrInvalidOldPassword ResponseType = "INVALID_OLD_PASSWORD" ErrInvalidRequest ResponseType = "INVALID_REQUEST" ErrInvalidRole ResponseType = "INVALID_ROLE" ErrInvalidToken ResponseType = "INVALID_TOKEN" ErrLanguageNotInNamespace ResponseType = "LANGUAGE_NOT_IN_NAMESPACE" ErrLoginIntentToken ResponseType = "LOGIN_INTENT_TOKEN" ErrMissingBackupCode ResponseType = "MISSING_BACKUP_CODE" ErrMissingNewPassword ResponseType = "MISSING_NEW_PASSWORD" ErrMissingPermissions ResponseType = "MISSING_PERMISSIONS" ErrMissingResetPasswordSecret ResponseType = "MISSING_RESET_PASSWORD_SECRET" ErrNameRequired ResponseType = "NAME_REQUIRED" ErrNamespaceMissing ResponseType = "NAMESPACE_MISSING" ErrNewPasswordRequired ResponseType = "NEW_PASSWORD_REQUIRED" ErrNoConnections ResponseType = "NO_CONNECTIONS" ErrNoTranslationSource ResponseType = "NO_TRANSLATION_SOURCE" ErrNotFound ResponseType = "NOT_FOUND" ErrNotImplemented ResponseType = "NOT_IMPLEMENTED" ErrOTPInvalid ResponseType = "OTP_INVALID" ErrOldPasswordRequired ResponseType = "OLD_PASSWORD_REQUIRED" ErrOrgBlocked ResponseType = "ORG_BLOCKED" ErrOrganizationMissing ResponseType = "ORGANIZATION_MISSING" ErrPasswordRequired ResponseType = "PASSWORD_REQUIRED" ErrPayloadInvalid ResponseType = "INVALID_PAYLOAD" ErrSecretExpired ResponseType = "SECRET_EXPIRED" ErrSecretNotFound ResponseType = "SECRET_NOT_FOUND" ErrSetupRequired ResponseType = "SETUP_REQUIRED" ErrTermAlreadyExists ResponseType = "TERM_ALREADY_EXISTS" ErrTermIsRequired ResponseType = "TERM_IS_REQUIRED" ErrTooManyRequests ResponseType = "TOO_MANY_REQUESTS" ErrUserAlreadyExists ResponseType = "USER_ALREADY_EXISTS" ErrUserNotFound ResponseType = "USER_NOT_FOUND" )
Defines values for ResponseType.
func (ResponseType) Valid ¶
func (e ResponseType) Valid() bool
Valid indicates whether the value is a known member of the ResponseType enum.
type SharedTermBulkImportPrecheckData ¶
type SharedTermBulkImportPrecheckData struct {
}
SharedTermBulkImportPrecheckData defines model for shared.TermBulkImportPrecheckData.
type SharedTermBulkImportPrecheckDataCSV ¶
type SharedTermBulkImportPrecheckDataCSV struct {
}
SharedTermBulkImportPrecheckDataCSV defines model for shared.TermBulkImportPrecheckDataCSV.
type SharedTermImportCSVColumnSetup ¶
type SharedTermImportCSVColumnSetup struct {
}
SharedTermImportCSVColumnSetup defines model for shared.TermImportCSVColumnSetup.
type SharedTermImportCSVColumnSetupTranslation ¶
type SharedTermImportCSVColumnSetupTranslation struct {
}
SharedTermImportCSVColumnSetupTranslation defines model for shared.TermImportCSVColumnSetupTranslation.
type SharedTermImportCSVSetup ¶
type SharedTermImportCSVSetup struct {
}
SharedTermImportCSVSetup defines model for shared.TermImportCSVSetup.
type SharedTermImportSetup ¶
type SharedTermImportSetup struct {
Csv *SharedTermImportCSVSetup `json:"csv,omitempty"`
// uses the namespace's default prompt (if any).
CustomPromptId *string `json:"customPromptId,omitempty"`
OverwriteExisting bool `json:"overwriteExisting"`
TranslateAutomatically bool `json:"translateAutomatically"`
}
SharedTermImportSetup defines model for shared.TermImportSetup.
type SyncjobCreateSyncRequest ¶
type SyncjobCreateSyncRequest struct {
DefaultLanguageCode *string `json:"defaultLanguageCode,omitempty"`
DryRun *bool `json:"dryRun,omitempty"`
// Marks Marks is the legacy default-lang-only shape. Kept for one
// release of the CLI; new clients submit MarksPerLanguage.
Marks *map[string]string `json:"marks,omitempty"`
// MarksPerLanguage MarksPerLanguage is the preferred shape — one inner map per
// language code (including the default one).
MarksPerLanguage *map[string]map[string]string `json:"marksPerLanguage,omitempty"`
Prune *bool `json:"prune,omitempty"`
// RetranslateOnSourceChange RetranslateOnSourceChange, when true, causes the server to
// invalidate (empty) all existing non-source-language translations
// of any term whose source value was changed in this sync. The
// autotranslate phase then refills them via the LLM. Default false
// preserves historical behavior. Opt-in via CLI flag
// --retranslate-on-source-change.
RetranslateOnSourceChange *bool `json:"retranslateOnSourceChange,omitempty"`
Strategy *string `json:"strategy,omitempty"`
WaitForAutotranslate *bool `json:"waitForAutotranslate,omitempty"`
WaitTimeoutSeconds *int `json:"waitTimeoutSeconds,omitempty"`
}
SyncjobCreateSyncRequest defines model for syncjob.createSyncRequest.
type TermImportFinishRequest ¶
type TermImportFinishRequest struct {
Setup SharedTermImportSetup `json:"setup"`
}
TermImportFinishRequest defines model for term.importFinishRequest.
type TermImportFinishResponse ¶
type TermImportFinishResponse struct {
Status ConstantsTermBulkImportStatus `json:"status"`
}
TermImportFinishResponse defines model for term.importFinishResponse.
type TermImportPrecheckResponse ¶
type TermImportPrecheckResponse struct {
// Details Details specific to the format
Details SharedTermBulkImportPrecheckData `json:"details"`
// Format Format of the import
Format ConstantsTermImportFormat `json:"format"`
// ImportId ID of the import session
ImportId string `json:"importId"`
// TotalRows TotalRows is the total number of rows in the import file
TotalRows int `json:"totalRows"`
}
TermImportPrecheckResponse defines model for term.importPrecheckResponse.
type TermPayloadAddRequest ¶
type TermPayloadAddRequest struct {
Context string `json:"context"`
DefaultLanguageValue string `json:"defaultLanguageValue"`
Mark string `json:"mark"`
TranslateAutomatically bool `json:"translateAutomatically"`
}
TermPayloadAddRequest defines model for term.payloadAddRequest.
type TermPayloadRecommendMagicTranslationRequest ¶
type TermPayloadRecommendMagicTranslationRequest struct {
// CustomPromptId CustomPromptID overrides the namespace's default custom prompt for
// this suggestion.
CustomPromptId *string `json:"customPromptId,omitempty"`
Prompt string `json:"prompt"`
SourceLangId *int `json:"sourceLangId,omitempty"`
}
TermPayloadRecommendMagicTranslationRequest defines model for term.payloadRecommendMagicTranslationRequest.
type TermPayloadRecommendMagicTranslationResponse ¶
type TermPayloadRecommendMagicTranslationResponse struct {
Translation string `json:"translation"`
}
TermPayloadRecommendMagicTranslationResponse defines model for term.payloadRecommendMagicTranslationResponse.
type TermPayloadUpdateRequest ¶
type TermPayloadUpdateRequest struct {
Context *string `json:"context,omitempty"`
Mark *string `json:"mark,omitempty"`
}
TermPayloadUpdateRequest defines model for term.payloadUpdateRequest.
type TermPayloadUpdateResponse ¶
type TermPayloadUpdateResponse = map[string]interface{}
TermPayloadUpdateResponse defines model for term.payloadUpdateResponse.
type TermPayloadUpdateTranslationRequest ¶
type TermPayloadUpdateTranslationRequest struct {
// AiGenerated AIGenerated is true when the value is an AI suggestion saved without
// changes, so it keeps its AI label. Omit (false) for a value a person
// wrote or changed.
AiGenerated *bool `json:"aiGenerated,omitempty"`
Value *string `json:"value,omitempty"`
}
TermPayloadUpdateTranslationRequest defines model for term.payloadUpdateTranslationRequest.
type TermTranslateMissingTranslationsRequest ¶
type TermTranslateMissingTranslationsRequest struct {
// CustomPromptId CustomPromptID overrides the namespace's default custom prompt for
// this run.
CustomPromptId *string `json:"customPromptId,omitempty"`
LanguageIds *[]int `json:"languageIds,omitempty"`
}
TermTranslateMissingTranslationsRequest defines model for term.translateMissingTranslationsRequest.
type TermTranslateMissingTranslationsResponse ¶
type TermTranslateMissingTranslationsResponse = map[string]interface{}
TermTranslateMissingTranslationsResponse defines model for term.translateMissingTranslationsResponse.
type TranslateMissingTranslationsJSONRequestBody ¶
type TranslateMissingTranslationsJSONRequestBody = TermTranslateMissingTranslationsRequest
TranslateMissingTranslationsJSONRequestBody defines body for TranslateMissingTranslations for application/json ContentType.
type TranslateMissingTranslationsResponse ¶
type TranslateMissingTranslationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TermTranslateMissingTranslationsResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseTranslateMissingTranslationsResponse ¶
func ParseTranslateMissingTranslationsResponse(rsp *http.Response) (*TranslateMissingTranslationsResponse, error)
ParseTranslateMissingTranslationsResponse parses an HTTP response from a TranslateMissingTranslationsWithResponse call
func (TranslateMissingTranslationsResponse) ContentType ¶
func (r TranslateMissingTranslationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TranslateMissingTranslationsResponse) Status ¶
func (r TranslateMissingTranslationsResponse) Status() string
Status returns HTTPResponse.Status
func (TranslateMissingTranslationsResponse) StatusCode ¶
func (r TranslateMissingTranslationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TranslationCreateCustomPromptInput ¶
type TranslationCreateCustomPromptInput struct {
CreatedBy *string `json:"createdBy,omitempty"`
IsPrivate *bool `json:"isPrivate,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationID *string `json:"organizationID,omitempty"`
Prompt *string `json:"prompt,omitempty"`
}
TranslationCreateCustomPromptInput defines model for translation.CreateCustomPromptInput.
type TranslationCreateCustomPromptResponse ¶
type TranslationCreateCustomPromptResponse struct {
Id string `json:"id"`
}
TranslationCreateCustomPromptResponse defines model for translation.createCustomPromptResponse.
type TranslationPatchCustomPromptInput ¶
type TranslationPatchCustomPromptInput struct {
IsPrivate *bool `json:"isPrivate,omitempty"`
Name *string `json:"name,omitempty"`
Prompt *string `json:"prompt,omitempty"`
}
TranslationPatchCustomPromptInput defines model for translation.PatchCustomPromptInput.
type TranslationTranslateTextBody ¶
type TranslationTranslateTextBody struct {
CustomPromptId *string `json:"customPromptId,omitempty"`
// SourceLanguageCode language code (e.g. "en")
SourceLanguageCode *string `json:"sourceLanguageCode,omitempty"`
// SourceLanguageId Deprecated: the original int-only fields. Kept for backwards-compat
// for one release; new callers should use the explicit *Id / *Code
// pair above. We keep the original field names (sourceLanguageId /
// targetLanguageId) so existing TS/CLI clients aren't broken.
SourceLanguageId *int `json:"sourceLanguageId,omitempty"`
// SourceLanguageIdNew Preferred new fields — pass exactly one pair.
SourceLanguageIdNew *int `json:"sourceLanguageIdNew,omitempty"`
TargetLanguageCode *string `json:"targetLanguageCode,omitempty"`
TargetLanguageId *int `json:"targetLanguageId,omitempty"`
TargetLanguageIdNew *int `json:"targetLanguageIdNew,omitempty"`
Text string `json:"text"`
UseGlossary bool `json:"useGlossary"`
}
TranslationTranslateTextBody defines model for translation.translateTextBody.
type TranslationTranslateTextResponse ¶
type TranslationTranslateTextResponse struct {
TranslatedText string `json:"translatedText"`
}
TranslationTranslateTextResponse defines model for translation.translateTextResponse.
type TypesLanguageRef ¶
type TypesLanguageRef struct {
// Code language code, e.g. "en" (case-insensitive)
Code *string `json:"code,omitempty"`
// Id numeric language id, e.g. 17
Id *int `json:"id,omitempty"`
}
TypesLanguageRef defines model for types.LanguageRef.
type UpdateCustomPromptJSONRequestBody ¶
type UpdateCustomPromptJSONRequestBody = TranslationPatchCustomPromptInput
UpdateCustomPromptJSONRequestBody defines body for UpdateCustomPrompt for application/json ContentType.
type UpdateCustomPromptResponse ¶
type UpdateCustomPromptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateCustomPromptResponse ¶
func ParseUpdateCustomPromptResponse(rsp *http.Response) (*UpdateCustomPromptResponse, error)
ParseUpdateCustomPromptResponse parses an HTTP response from a UpdateCustomPromptWithResponse call
func (UpdateCustomPromptResponse) ContentType ¶
func (r UpdateCustomPromptResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateCustomPromptResponse) Status ¶
func (r UpdateCustomPromptResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCustomPromptResponse) StatusCode ¶
func (r UpdateCustomPromptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateGlossaryItemTranslationJSONRequestBody ¶
type UpdateGlossaryItemTranslationJSONRequestBody = GlossaryUpdateTranslationRequest
UpdateGlossaryItemTranslationJSONRequestBody defines body for UpdateGlossaryItemTranslation for application/json ContentType.
type UpdateGlossaryItemTranslationResponse ¶
type UpdateGlossaryItemTranslationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateGlossaryItemTranslationResponse ¶
func ParseUpdateGlossaryItemTranslationResponse(rsp *http.Response) (*UpdateGlossaryItemTranslationResponse, error)
ParseUpdateGlossaryItemTranslationResponse parses an HTTP response from a UpdateGlossaryItemTranslationWithResponse call
func (UpdateGlossaryItemTranslationResponse) ContentType ¶
func (r UpdateGlossaryItemTranslationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateGlossaryItemTranslationResponse) Status ¶
func (r UpdateGlossaryItemTranslationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGlossaryItemTranslationResponse) StatusCode ¶
func (r UpdateGlossaryItemTranslationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNamespaceJSONRequestBody ¶
type UpdateNamespaceJSONRequestBody = NamespacePayloadUpdateNamespaceRequest
UpdateNamespaceJSONRequestBody defines body for UpdateNamespace for application/json ContentType.
type UpdateNamespaceResponse ¶
type UpdateNamespaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResponseAPIResponseEmpty
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateNamespaceResponse ¶
func ParseUpdateNamespaceResponse(rsp *http.Response) (*UpdateNamespaceResponse, error)
ParseUpdateNamespaceResponse parses an HTTP response from a UpdateNamespaceWithResponse call
func (UpdateNamespaceResponse) ContentType ¶
func (r UpdateNamespaceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateNamespaceResponse) Status ¶
func (r UpdateNamespaceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNamespaceResponse) StatusCode ¶
func (r UpdateNamespaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTermJSONRequestBody ¶
type UpdateTermJSONRequestBody = TermPayloadUpdateRequest
UpdateTermJSONRequestBody defines body for UpdateTerm for application/json ContentType.
type UpdateTermResponse ¶
type UpdateTermResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TermPayloadUpdateResponse
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateTermResponse ¶
func ParseUpdateTermResponse(rsp *http.Response) (*UpdateTermResponse, error)
ParseUpdateTermResponse parses an HTTP response from a UpdateTermWithResponse call
func (UpdateTermResponse) ContentType ¶
func (r UpdateTermResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateTermResponse) Status ¶
func (r UpdateTermResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTermResponse) StatusCode ¶
func (r UpdateTermResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTermTranslationJSONRequestBody ¶
type UpdateTermTranslationJSONRequestBody = TermPayloadUpdateTranslationRequest
UpdateTermTranslationJSONRequestBody defines body for UpdateTermTranslation for application/json ContentType.
type UpdateTermTranslationResponse ¶
type UpdateTermTranslationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DtoDTOTerm
JSON400 *ResponseAPIError
JSON401 *ResponseAPIError
JSON403 *ResponseAPIError
JSON404 *ResponseAPIError
JSON500 *ResponseAPIError
}
func ParseUpdateTermTranslationResponse ¶
func ParseUpdateTermTranslationResponse(rsp *http.Response) (*UpdateTermTranslationResponse, error)
ParseUpdateTermTranslationResponse parses an HTTP response from a UpdateTermTranslationWithResponse call
func (UpdateTermTranslationResponse) ContentType ¶
func (r UpdateTermTranslationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateTermTranslationResponse) Status ¶
func (r UpdateTermTranslationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTermTranslationResponse) StatusCode ¶
func (r UpdateTermTranslationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode