Skip to content

Commit

Permalink
Deploying from phrase/openapi@adae3527
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed May 10, 2021
1 parent 2ca3b6a commit e0c7350
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 7 deletions.
147 changes: 147 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11096,6 +11096,78 @@ paths:
through the params.
example: abcd1234
type: string
machine_translation_enabled:
description: (Optional) Enable machine translation support in the
project. Required for Autopilot and Smart Suggest
example: true
type: boolean
enable_branching:
description: (Optional) Enable branching in the project
example: true
type: boolean
protect_master_branch:
description: (Optional) Protect the master branch in project where
branching is enabled
example: true
type: boolean
enable_all_data_type_translation_keys_for_translators:
description: (Optional) Otherwise, translators are not allowed to
edit translations other than strings
example: true
type: boolean
enable_icu_message_format:
description: (Optional) We can validate and highlight your ICU messages.
<a href="https://help.phrase.com/help/icu-message-format">Read
more</a>
example: true
type: boolean
zero_plural_form_enabled:
description: (Optional) Displays the input fields for the 'ZERO'
plural form for every key as well although only some languages
require the 'ZERO' explicitly.
example: true
type: boolean
autotranslate_enabled:
description: (Optional) Autopilot, requires machine_translation_enabled.
<a href="https://help.phrase.com/help/autopilot">Read more</a>
example: true
type: boolean
autotranslate_check_new_translation_keys:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_check_new_uploads:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_check_new_locales:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_mark_as_unverified:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_use_machine_translation:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_use_translation_memory:
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/create/parameters
type: object
required: true
Expand Down Expand Up @@ -24181,6 +24253,10 @@ components:
name: Joe Doe
state: success
properties:
base_project_id:
type: string
branch_project_id:
type: string
name:
type: string
created_at:
Expand Down Expand Up @@ -25463,6 +25539,77 @@ components:
the params.
example: abcd1234
type: string
machine_translation_enabled:
description: (Optional) Enable machine translation support in the project.
Required for Autopilot and Smart Suggest
example: true
type: boolean
enable_branching:
description: (Optional) Enable branching in the project
example: true
type: boolean
protect_master_branch:
description: (Optional) Protect the master branch in project where branching
is enabled
example: true
type: boolean
enable_all_data_type_translation_keys_for_translators:
description: (Optional) Otherwise, translators are not allowed to edit translations
other than strings
example: true
type: boolean
enable_icu_message_format:
description: (Optional) We can validate and highlight your ICU messages.
<a href="https://help.phrase.com/help/icu-message-format">Read more</a>
example: true
type: boolean
zero_plural_form_enabled:
description: (Optional) Displays the input fields for the 'ZERO' plural
form for every key as well although only some languages require the 'ZERO'
explicitly.
example: true
type: boolean
autotranslate_enabled:
description: (Optional) Autopilot, requires machine_translation_enabled.
<a href="https://help.phrase.com/help/autopilot">Read more</a>
example: true
type: boolean
autotranslate_check_new_translation_keys:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_check_new_uploads:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_check_new_locales:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_mark_as_unverified:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_use_machine_translation:
description: (Optional) Requires autotranslate_enabled to be true
example: true
type: boolean
autotranslate_use_translation_memory:
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/create/parameters
type: object
project_update_parameters:
Expand Down
2 changes: 2 additions & 0 deletions docs/Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**BaseProjectId** | **string** | | [optional]
**BranchProjectId** | **string** | | [optional]
**Name** | **string** | | [optional]
**CreatedAt** | [**time.Time**](time.Time.md) | | [optional]
**UpdatedAt** | [**time.Time**](time.Time.md) | | [optional]
Expand Down
16 changes: 16 additions & 0 deletions docs/ProjectCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@ Name | Type | Description | Notes
**RemoveProjectImage** | **bool** | Indicates whether the project image should be deleted. | [optional]
**AccountId** | **string** | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [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]
**MachineTranslationEnabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [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]
**EnableIcuMessageFormat** | **bool** | (Optional) We can validate and highlight your ICU messages. &lt;a href&#x3D;\&quot;https://help.phrase.com/help/icu-message-format\&quot;&gt;Read more&lt;/a&gt; | [optional]
**ZeroPluralFormEnabled** | **bool** | (Optional) Displays the input fields for the &#39;ZERO&#39; plural form for every key as well although only some languages require the &#39;ZERO&#39; explicitly. | [optional]
**AutotranslateEnabled** | **bool** | (Optional) Autopilot, requires machine_translation_enabled. &lt;a href&#x3D;\&quot;https://help.phrase.com/help/autopilot\&quot;&gt;Read more&lt;/a&gt; | [optional]
**AutotranslateCheckNewTranslationKeys** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**AutotranslateCheckNewUploads** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**AutotranslateCheckNewLocales** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**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
16 changes: 9 additions & 7 deletions model_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import (

// Branch struct for Branch
type Branch struct {
Name string `json:"name,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
MergedAt time.Time `json:"merged_at,omitempty"`
MergedBy UserPreview `json:"merged_by,omitempty"`
CreatedBy UserPreview `json:"created_by,omitempty"`
State string `json:"state,omitempty"`
BaseProjectId string `json:"base_project_id,omitempty"`
BranchProjectId string `json:"branch_project_id,omitempty"`
Name string `json:"name,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
MergedAt time.Time `json:"merged_at,omitempty"`
MergedBy UserPreview `json:"merged_by,omitempty"`
CreatedBy UserPreview `json:"created_by,omitempty"`
State string `json:"state,omitempty"`
}
32 changes: 32 additions & 0 deletions model_project_create_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,36 @@ type ProjectCreateParameters struct {
AccountId string `json:"account_id,omitempty"`
// 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.
SourceProjectId string `json:"source_project_id,omitempty"`
// (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
MachineTranslationEnabled *bool `json:"machine_translation_enabled,omitempty"`
// (Optional) Enable branching in the project
EnableBranching *bool `json:"enable_branching,omitempty"`
// (Optional) Protect the master branch in project where branching is enabled
ProtectMasterBranch *bool `json:"protect_master_branch,omitempty"`
// (Optional) Otherwise, translators are not allowed to edit translations other than strings
EnableAllDataTypeTranslationKeysForTranslators *bool `json:"enable_all_data_type_translation_keys_for_translators,omitempty"`
// (Optional) We can validate and highlight your ICU messages. <a href=\"https://help.phrase.com/help/icu-message-format\">Read more</a>
EnableIcuMessageFormat *bool `json:"enable_icu_message_format,omitempty"`
// (Optional) Displays the input fields for the 'ZERO' plural form for every key as well although only some languages require the 'ZERO' explicitly.
ZeroPluralFormEnabled *bool `json:"zero_plural_form_enabled,omitempty"`
// (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://help.phrase.com/help/autopilot\">Read more</a>
AutotranslateEnabled *bool `json:"autotranslate_enabled,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
AutotranslateCheckNewTranslationKeys *bool `json:"autotranslate_check_new_translation_keys,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
AutotranslateCheckNewUploads *bool `json:"autotranslate_check_new_uploads,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
AutotranslateCheckNewLocales *bool `json:"autotranslate_check_new_locales,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
AutotranslateMarkAsUnverified *bool `json:"autotranslate_mark_as_unverified,omitempty"`
// (Optional) Requires autotranslate_enabled to be true
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 e0c7350

Please sign in to comment.