Skip to content

Commit

Permalink
Deploying from phrase/openapi@7161c930
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Sep 19, 2024
1 parent ec9f729 commit 7caf454
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 51 deletions.
30 changes: 3 additions & 27 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8903,7 +8903,7 @@ paths:
schema:
type: string
style: form
- description: ids of keys that should added to the job
- description: ids of keys that should be removed from the job
example:
- abcd1234cdef1234abcd1234cdef1234
explode: true
Expand Down Expand Up @@ -34026,7 +34026,7 @@ components:
type: string
machine_translation_enabled:
description: (Optional) Enable machine translation support in the project.
Required for Autopilot and Smart Suggest
Required for Pre-Translation
example: true
type: boolean
enable_branching:
Expand Down Expand Up @@ -34085,18 +34085,6 @@ components:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
smart_suggest_enabled:
description: "(Optional) Smart Suggest, requires machine_translation_enabled"
example: true
type: boolean
smart_suggest_use_glossary:
description: (Optional) Requires smart_suggest_enabled to be true
example: true
type: boolean
smart_suggest_use_machine_translation:
description: (Optional) Requires smart_suggest_enabled to be true
example: true
type: boolean
required:
- name
title: project/create/parameters
Expand Down Expand Up @@ -34156,7 +34144,7 @@ components:
type: string
machine_translation_enabled:
description: (Optional) Enable machine translation support in the project.
Required for Autopilot and Smart Suggest
Required for Pre-Translation
example: true
type: boolean
enable_branching:
Expand Down Expand Up @@ -34215,18 +34203,6 @@ components:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
smart_suggest_enabled:
description: "(Optional) Smart Suggest, requires machine_translation_enabled"
example: true
type: boolean
smart_suggest_use_glossary:
description: (Optional) Requires smart_suggest_enabled to be true
example: true
type: boolean
smart_suggest_use_machine_translation:
description: (Optional) Requires smart_suggest_enabled to be true
example: true
type: boolean
title: project/update/parameters
type: object
job_locales_create_parameters:
Expand Down
2 changes: 1 addition & 1 deletion api_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ Remove multiple keys from existing job.
- @param optional nil or *JobKeysDeleteOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
- @param "Branch" (optional.String) - specify the branch to use
- @param "TranslationKeyIds" (optional.Interface of []string) - ids of keys that should added to the job
- @param "TranslationKeyIds" (optional.Interface of []string) - ids of keys that should be removed from the job
*/
func (a *JobsApiService) JobKeysDelete(ctx _context.Context, projectId string, id string, localVarOptionals *JobKeysDeleteOpts) ([]byte, *APIResponse, error) {
var (
Expand Down
2 changes: 1 addition & 1 deletion docs/JobsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Name | Type | Description | Notes

**xPhraseAppOTP** | **optional.String**| Two-Factor-Authentication token (optional) |
**branch** | **optional.String**| specify the branch to use |
**translationKeyIds** | [**optional.Interface of []string**](string.md)| ids of keys that should added to the job |
**translationKeyIds** | [**optional.Interface of []string**](string.md)| ids of keys that should be removed from the job |

### Return type

Expand Down
5 changes: 1 addition & 4 deletions docs/ProjectCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**PointOfContact** | **string** | (Optional) User ID of the point of contact for the project. | [optional]
**SourceProjectId** | **string** | When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. | [optional]
**Workflow** | **string** | (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [optional]
**MachineTranslationEnabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
**MachineTranslationEnabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Pre-Translation | [optional]
**EnableBranching** | **bool** | (Optional) Enable branching in the project | [optional]
**ProtectMasterBranch** | **bool** | (Optional) Protect the master branch in project where branching is enabled | [optional]
**EnableAllDataTypeTranslationKeysForTranslators** | **bool** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
Expand All @@ -27,9 +27,6 @@ Name | Type | Description | Notes
**AutotranslateMarkAsUnverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**AutotranslateUseMachineTranslation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**AutotranslateUseTranslationMemory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**SmartSuggestEnabled** | **bool** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
**SmartSuggestUseGlossary** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional]
**SmartSuggestUseMachineTranslation** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
5 changes: 1 addition & 4 deletions docs/ProjectUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**ProjectImage** | [***os.File**](*os.File.md) | (Optional) Image to identify the project | [optional]
**RemoveProjectImage** | **bool** | (Optional) Indicates whether the project image should be deleted. | [optional]
**Workflow** | **string** | (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [optional]
**MachineTranslationEnabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
**MachineTranslationEnabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Pre-Translation | [optional]
**EnableBranching** | **bool** | (Optional) Enable branching in the project | [optional]
**ProtectMasterBranch** | **bool** | (Optional) Protect the master branch in project where branching is enabled | [optional]
**EnableAllDataTypeTranslationKeysForTranslators** | **bool** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
Expand All @@ -26,9 +26,6 @@ Name | Type | Description | Notes
**AutotranslateMarkAsUnverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**AutotranslateUseMachineTranslation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**AutotranslateUseTranslationMemory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**SmartSuggestEnabled** | **bool** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
**SmartSuggestUseGlossary** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional]
**SmartSuggestUseMachineTranslation** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
8 changes: 1 addition & 7 deletions model_project_create_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ProjectCreateParameters struct {
SourceProjectId string `json:"source_project_id,omitempty"`
// (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a>
Workflow string `json:"workflow,omitempty"`
// (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
// (Optional) Enable machine translation support in the project. Required for Pre-Translation
MachineTranslationEnabled *bool `json:"machine_translation_enabled,omitempty"`
// (Optional) Enable branching in the project
EnableBranching *bool `json:"enable_branching,omitempty"`
Expand All @@ -52,10 +52,4 @@ type ProjectCreateParameters struct {
AutotranslateUseMachineTranslation *bool `json:"autotranslate_use_machine_translation,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
AutotranslateUseTranslationMemory *bool `json:"autotranslate_use_translation_memory,omitempty"`
// (Optional) Smart Suggest, requires machine_translation_enabled
SmartSuggestEnabled *bool `json:"smart_suggest_enabled,omitempty"`
// (Optional) Requires smart_suggest_enabled to be true
SmartSuggestUseGlossary *bool `json:"smart_suggest_use_glossary,omitempty"`
// (Optional) Requires smart_suggest_enabled to be true
SmartSuggestUseMachineTranslation *bool `json:"smart_suggest_use_machine_translation,omitempty"`
}
8 changes: 1 addition & 7 deletions model_project_update_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ProjectUpdateParameters struct {
RemoveProjectImage *bool `json:"remove_project_image,omitempty"`
// (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a>
Workflow string `json:"workflow,omitempty"`
// (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
// (Optional) Enable machine translation support in the project. Required for Pre-Translation
MachineTranslationEnabled *bool `json:"machine_translation_enabled,omitempty"`
// (Optional) Enable branching in the project
EnableBranching *bool `json:"enable_branching,omitempty"`
Expand All @@ -50,10 +50,4 @@ type ProjectUpdateParameters struct {
AutotranslateUseMachineTranslation *bool `json:"autotranslate_use_machine_translation,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
AutotranslateUseTranslationMemory *bool `json:"autotranslate_use_translation_memory,omitempty"`
// (Optional) Smart Suggest, requires machine_translation_enabled
SmartSuggestEnabled *bool `json:"smart_suggest_enabled,omitempty"`
// (Optional) Requires smart_suggest_enabled to be true
SmartSuggestUseGlossary *bool `json:"smart_suggest_use_glossary,omitempty"`
// (Optional) Requires smart_suggest_enabled to be true
SmartSuggestUseMachineTranslation *bool `json:"smart_suggest_use_machine_translation,omitempty"`
}

0 comments on commit 7caf454

Please sign in to comment.