diff --git a/README.md b/README.md
index 34164f4..037aa69 100644
--- a/README.md
+++ b/README.md
@@ -225,7 +225,7 @@ Class | Method | HTTP request | Description
*GlossaryTermsApi* | [**glossary_term_show**](docs/GlossaryTermsApi.md#glossary_term_show) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single term
*GlossaryTermsApi* | [**glossary_term_update**](docs/GlossaryTermsApi.md#glossary_term_update) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a term
*GlossaryTermsApi* | [**glossary_terms_list**](docs/GlossaryTermsApi.md#glossary_terms_list) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List terms
-*ICUApi* | [**icu_skeleton**](docs/ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build icu skeletons
+*ICUApi* | [**icu_skeleton**](docs/ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build ICU skeletons
*InvitationsApi* | [**invitation_create**](docs/InvitationsApi.md#invitation_create) | **POST** /accounts/{account_id}/invitations | Create a new invitation
*InvitationsApi* | [**invitation_delete**](docs/InvitationsApi.md#invitation_delete) | **DELETE** /accounts/{account_id}/invitations/{id} | Delete an invitation
*InvitationsApi* | [**invitation_resend**](docs/InvitationsApi.md#invitation_resend) | **POST** /accounts/{account_id}/invitations/{id}/resend | Resend an invitation
@@ -285,7 +285,7 @@ Class | Method | HTTP request | Description
*LinkedKeysApi* | [**key_links_batch_destroy**](docs/LinkedKeysApi.md#key_links_batch_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links | Batch unlink child keys from a parent key
*LinkedKeysApi* | [**key_links_create**](docs/LinkedKeysApi.md#key_links_create) | **POST** /projects/{project_id}/keys/{id}/key_links | Link child keys to a parent key
*LinkedKeysApi* | [**key_links_destroy**](docs/LinkedKeysApi.md#key_links_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links/{child_key_id} | Unlink a child key from a parent key
-*LinkedKeysApi* | [**key_links_index**](docs/LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | Retrieve all child keys linked to a specific parent key
+*LinkedKeysApi* | [**key_links_index**](docs/LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | List child keys of a parent key
*LocalesApi* | [**account_locales**](docs/LocalesApi.md#account_locales) | **GET** /accounts/{id}/locales | List locales used in account
*LocalesApi* | [**locale_create**](docs/LocalesApi.md#locale_create) | **POST** /projects/{project_id}/locales | Create a locale
*LocalesApi* | [**locale_delete**](docs/LocalesApi.md#locale_delete) | **DELETE** /projects/{project_id}/locales/{id} | Delete a locale
diff --git a/docs/AuthorizationCreateParameters.md b/docs/AuthorizationCreateParameters.md
index 35c4068..5ff1a50 100644
--- a/docs/AuthorizationCreateParameters.md
+++ b/docs/AuthorizationCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**note** | **str** | A note to help you remember what the access is used for. | [optional]
+**note** | **str** | A note to help you remember what the access is used for. |
**scopes** | **List[str]** | A list of scopes that the access can be used for. | [optional]
**expires_at** | **datetime** | Expiration date for the authorization token. Null means no expiration date (default). | [optional]
diff --git a/docs/BlacklistedKeyCreateParameters.md b/docs/BlacklistedKeyCreateParameters.md
index 3083068..30e53c0 100644
--- a/docs/BlacklistedKeyCreateParameters.md
+++ b/docs/BlacklistedKeyCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Blocked key name | [optional]
+**name** | **str** | Blocked key name |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/BranchCreateParameters.md b/docs/BranchCreateParameters.md
index f71a345..66c2505 100644
--- a/docs/BranchCreateParameters.md
+++ b/docs/BranchCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the branch | [optional]
+**name** | **str** | Name of the branch |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/DistributionCreateParameters.md b/docs/DistributionCreateParameters.md
index 7560f1d..9ec4e42 100644
--- a/docs/DistributionCreateParameters.md
+++ b/docs/DistributionCreateParameters.md
@@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the distribution | [optional]
-**project_id** | **str** | Project id the distribution should be assigned to. | [optional]
+**name** | **str** | Name of the distribution |
+**project_id** | **str** | Project id the distribution should be assigned to. |
**platforms** | **List[str]** | List of platforms the distribution should support. Valid values are: * `android` * `ios` * `flutter` * `i18next` * `rails` | [optional]
**locale_ids** | **List[str]** | List of locale ids that will be part of distribution releases | [optional]
**format_options** | **Dict[str, str]** | Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. | [optional]
diff --git a/docs/FigmaAttachmentCreateParameters.md b/docs/FigmaAttachmentCreateParameters.md
index 3aa2078..99deb15 100644
--- a/docs/FigmaAttachmentCreateParameters.md
+++ b/docs/FigmaAttachmentCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**url** | **str** | Figma file url | [optional]
+**url** | **str** | Figma file url |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/GlossaryCreateParameters.md b/docs/GlossaryCreateParameters.md
index 371e912..c7f1099 100644
--- a/docs/GlossaryCreateParameters.md
+++ b/docs/GlossaryCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the glossary | [optional]
+**name** | **str** | Name of the glossary |
**project_ids** | **str** | List of project ids the glossary should be assigned to. | [optional]
**space_ids** | **List[str]** | List of space ids the glossary should be assigned to. | [optional]
diff --git a/docs/GlossaryTermCreateParameters.md b/docs/GlossaryTermCreateParameters.md
index fc9cd88..377188f 100644
--- a/docs/GlossaryTermCreateParameters.md
+++ b/docs/GlossaryTermCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**term** | **str** | Glossary term | [optional]
+**term** | **str** | Glossary term |
**description** | **str** | Description of term | [optional]
**translatable** | **bool** | Indicates whether the term should be used for all languages or can be translated | [optional]
**case_sensitive** | **bool** | Indicates whether the term is case sensitive | [optional]
diff --git a/docs/GlossaryTermTranslationCreateParameters.md b/docs/GlossaryTermTranslationCreateParameters.md
index 6c3e218..9c7202e 100644
--- a/docs/GlossaryTermTranslationCreateParameters.md
+++ b/docs/GlossaryTermTranslationCreateParameters.md
@@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**locale_code** | **str** | Identifies the language for this translation | [optional]
-**content** | **str** | The content of the translation | [optional]
+**locale_code** | **str** | Identifies the language for this translation |
+**content** | **str** | The content of the translation |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ICUApi.md b/docs/ICUApi.md
index 881d912..ff181e5 100644
--- a/docs/ICUApi.md
+++ b/docs/ICUApi.md
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.phrase.com/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**icu_skeleton**](ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build icu skeletons
+[**icu_skeleton**](ICUApi.md#icu_skeleton) | **POST** /icu/skeleton | Build ICU skeletons
# **icu_skeleton**
> Icu icu_skeleton(icu_skeleton_parameters, x_phrase_app_otp=x_phrase_app_otp)
-Build icu skeletons
+Build ICU skeletons
-Returns icu skeletons for multiple locale codes based on a source content.
+Returns ICU skeletons for multiple locale codes based on a source content.
### Example
@@ -35,7 +35,7 @@ with phrase_api.ApiClient(configuration) as api_client:
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
try:
- # Build icu skeletons
+ # Build ICU skeletons
api_response = api_instance.icu_skeleton(icu_skeleton_parameters, x_phrase_app_otp=x_phrase_app_otp)
pprint(api_response)
except ApiException as e:
diff --git a/docs/InvitationCreateParameters.md b/docs/InvitationCreateParameters.md
index 812d18b..ce1a772 100644
--- a/docs/InvitationCreateParameters.md
+++ b/docs/InvitationCreateParameters.md
@@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**email** | **str** | The email of the invited user. The <code>email</code> can not be updated once created. Create a new invitation for each unique email. | [optional]
-**role** | **str** | Invitiation role, can be any of Manager, Developer, Translator. | [optional]
+**email** | **str** | The email of the invited user. The <code>email</code> can not be updated once created. Create a new invitation for each unique email. |
+**role** | **str** | Invitiation role, can be any of Manager, Developer, Translator. |
**project_ids** | **str** | List of project ids the invited user has access to. | [optional]
**locale_ids** | **str** | List of locale ids the invited user has access to. | [optional]
**space_ids** | **List[str]** | List of spaces the user is assigned to. | [optional]
diff --git a/docs/JobCreateParameters.md b/docs/JobCreateParameters.md
index 44fc627..f561637 100644
--- a/docs/JobCreateParameters.md
+++ b/docs/JobCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**name** | **str** | Job name | [optional]
+**name** | **str** | Job name |
**source_locale_id** | **str** | The API id of the source language | [optional]
**briefing** | **str** | Briefing for the translators | [optional]
**due_date** | **datetime** | Date the job should be finished | [optional]
diff --git a/docs/KeyCreateParameters.md b/docs/KeyCreateParameters.md
index 7dc7fa4..54e7c9d 100644
--- a/docs/KeyCreateParameters.md
+++ b/docs/KeyCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**name** | **str** | Key name | [optional]
+**name** | **str** | Key name |
**description** | **str** | Key description (usually includes contextual information for translators) | [optional]
**plural** | **bool** | Indicates whether key supports pluralization | [optional]
**name_plural** | **str** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
diff --git a/docs/KeyLink.md b/docs/KeyLink.md
index 1f068d1..1dec8b1 100644
--- a/docs/KeyLink.md
+++ b/docs/KeyLink.md
@@ -3,13 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**created_at** | **datetime** | The timestamp when the link was created. |
-**updated_at** | **datetime** | The timestamp when the link was last updated. |
-**created_by** | [**UserPreview**](UserPreview.md) | |
-**updated_by** | [**UserPreview**](UserPreview.md) | |
-**account** | [**Account**](Account.md) | |
-**parent** | [**KeyPreview**](KeyPreview.md) | |
-**children** | [**List[KeyPreview]**](KeyPreview.md) | The child translation keys linked to the parent. |
+**created_at** | **datetime** | The timestamp when the link was created. | [optional]
+**updated_at** | **datetime** | The timestamp when the link was last updated. | [optional]
+**created_by** | [**UserPreview**](UserPreview.md) | | [optional]
+**updated_by** | [**UserPreview**](UserPreview.md) | | [optional]
+**account** | [**Account**](Account.md) | | [optional]
+**parent** | [**KeyPreview**](KeyPreview.md) | | [optional]
+**children** | [**List[KeyPreview]**](KeyPreview.md) | The child translation keys linked to the parent. | [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)
diff --git a/docs/KeyLinksBatchDestroyParameters.md b/docs/KeyLinksBatchDestroyParameters.md
index 658c146..c6c6576 100644
--- a/docs/KeyLinksBatchDestroyParameters.md
+++ b/docs/KeyLinksBatchDestroyParameters.md
@@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**child_key_ids** | **List[str]** | The IDs of the child keys to unlink from the parent key. |
+**unlink_parent** | **bool** | Whether to unlink the parent key as well and unmark it as linked-key. | [optional] [default to False]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/LinkedKeysApi.md b/docs/LinkedKeysApi.md
index 0eeb76a..3a220cb 100644
--- a/docs/LinkedKeysApi.md
+++ b/docs/LinkedKeysApi.md
@@ -7,11 +7,11 @@ Method | HTTP request | Description
[**key_links_batch_destroy**](LinkedKeysApi.md#key_links_batch_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links | Batch unlink child keys from a parent key
[**key_links_create**](LinkedKeysApi.md#key_links_create) | **POST** /projects/{project_id}/keys/{id}/key_links | Link child keys to a parent key
[**key_links_destroy**](LinkedKeysApi.md#key_links_destroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links/{child_key_id} | Unlink a child key from a parent key
-[**key_links_index**](LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | Retrieve all child keys linked to a specific parent key
+[**key_links_index**](LinkedKeysApi.md#key_links_index) | **GET** /projects/{project_id}/keys/{id}/key_links | List child keys of a parent key
# **key_links_batch_destroy**
-> key_links_batch_destroy(project_id, id, key_links_batch_destroy_parameters, x_phrase_app_otp=x_phrase_app_otp, unlink_parent=unlink_parent)
+> key_links_batch_destroy(project_id, id, key_links_batch_destroy_parameters, x_phrase_app_otp=x_phrase_app_otp)
Batch unlink child keys from a parent key
@@ -38,11 +38,10 @@ with phrase_api.ApiClient(configuration) as api_client:
id = 'id_example' # str | Parent Translation Key ID (required)
key_links_batch_destroy_parameters = phrase_api.KeyLinksBatchDestroyParameters() # KeyLinksBatchDestroyParameters | (required)
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
- unlink_parent = True # bool | Whether to unlink the parent key as well and unmark it as linked-key.
try:
# Batch unlink child keys from a parent key
- api_instance.key_links_batch_destroy(project_id, id, key_links_batch_destroy_parameters, x_phrase_app_otp=x_phrase_app_otp, unlink_parent=unlink_parent)
+ api_instance.key_links_batch_destroy(project_id, id, key_links_batch_destroy_parameters, x_phrase_app_otp=x_phrase_app_otp)
except ApiException as e:
print("Exception when calling LinkedKeysApi->key_links_batch_destroy: %s\n" % e)
```
@@ -56,7 +55,6 @@ Name | Type | Description | Notes
**id** | **str**| Parent Translation Key ID |
**key_links_batch_destroy_parameters** | [**KeyLinksBatchDestroyParameters**](KeyLinksBatchDestroyParameters.md)| |
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
- **unlink_parent** | **bool**| Whether to unlink the parent key as well and unmark it as linked-key. | [optional]
### Return type
@@ -217,7 +215,7 @@ void (empty response body)
# **key_links_index**
> KeyLink key_links_index(project_id, id, x_phrase_app_otp=x_phrase_app_otp)
-Retrieve all child keys linked to a specific parent key
+List child keys of a parent key
Returns detailed information about a parent key, including its linked child keys.
@@ -243,7 +241,7 @@ with phrase_api.ApiClient(configuration) as api_client:
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
try:
- # Retrieve all child keys linked to a specific parent key
+ # List child keys of a parent key
api_response = api_instance.key_links_index(project_id, id, x_phrase_app_otp=x_phrase_app_otp)
pprint(api_response)
except ApiException as e:
diff --git a/docs/LocaleCreateParameters.md b/docs/LocaleCreateParameters.md
index 8e2e288..022f1ac 100644
--- a/docs/LocaleCreateParameters.md
+++ b/docs/LocaleCreateParameters.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**name** | **str** | Locale name | [optional]
-**code** | **str** | Locale ISO code | [optional]
+**name** | **str** | Locale name |
+**code** | **str** | Locale ISO code |
**default** | **bool** | Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale. | [optional]
**main** | **bool** | Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Verification System</a> feature. | [optional]
**rtl** | **bool** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
-**source_locale_id** | **str** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
+**source_locale_id** | **str** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
**fallback_locale_id** | **str** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
**unverify_new_translations** | **bool** | Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
**unverify_updated_translations** | **bool** | Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
diff --git a/docs/LocaleUpdateParameters.md b/docs/LocaleUpdateParameters.md
index 133e88b..a46e2c8 100644
--- a/docs/LocaleUpdateParameters.md
+++ b/docs/LocaleUpdateParameters.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**default** | **bool** | Indicates whether locale is the default locale. If set to true, the previous default locale the project is no longer the default locale. | [optional]
**main** | **bool** | Indicates whether locale is a main locale. Main locales are part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Verification System</a> feature. | [optional]
**rtl** | **bool** | Indicates whether locale is a RTL (Right-to-Left) locale. | [optional]
-**source_locale_id** | **str** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
+**source_locale_id** | **str** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
**fallback_locale_id** | **str** | Fallback locale for empty translations. Can be a locale name or id. | [optional]
**unverify_new_translations** | **bool** | Indicates that new translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
**unverify_updated_translations** | **bool** | Indicates that updated translations for this locale should be marked as unverified. Part of the <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\" target=\"_blank\">Advanced Workflows</a> feature. | [optional]
diff --git a/docs/LocalesApi.md b/docs/LocalesApi.md
index 65a13d9..f5d41d7 100644
--- a/docs/LocalesApi.md
+++ b/docs/LocalesApi.md
@@ -263,7 +263,7 @@ with phrase_api.ApiClient(configuration) as api_client:
skip_unverified_translations = True # bool | Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with include_unverified_translations
.
include_unverified_translations = True # bool | if set to false unverified translations are excluded
use_last_reviewed_version = True # bool | If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
- fallback_locale_id = 'fallback_locale_id_example' # str | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to true
.
+ fallback_locale_id = 'fallback_locale_id_example' # str | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to true
.
source_locale_id = 'source_locale_id_example' # str | Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a tag
parameter indicating a specific job.
custom_metadata_filters = None # object | Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
@@ -299,7 +299,7 @@ Name | Type | Description | Notes
**skip_unverified_translations** | **bool**| Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>. | [optional]
**include_unverified_translations** | **bool**| if set to false unverified translations are excluded | [optional]
**use_last_reviewed_version** | **bool**| If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project. | [optional]
- **fallback_locale_id** | **str**| If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>. | [optional]
+ **fallback_locale_id** | **str**| If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>. | [optional]
**source_locale_id** | **str**| Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job. | [optional]
**custom_metadata_filters** | [**object**](.md)| Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download. | [optional]
diff --git a/docs/OrderCreateParameters.md b/docs/OrderCreateParameters.md
index 58e94d8..03f3a6f 100644
--- a/docs/OrderCreateParameters.md
+++ b/docs/OrderCreateParameters.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**name** | **str** | the name of the order, default name is: Translation order from 'current datetime' | [optional]
-**lsp** | **str** | Name of the LSP that should process this order. Can be one of gengo, textmaster. | [optional]
-**source_locale_id** | **str** | Source locale for the order. Can be the name or public id of the source locale. Preferred is the public id. | [optional]
-**target_locale_ids** | **List[str]** | List of target locales you want the source content translate to. Can be the name or public id of the target locales. Preferred is the public id. | [optional]
+**name** | **str** | the name of the order, default name is: Translation order from 'current datetime' |
+**lsp** | **str** | Name of the LSP that should process this order. Can be one of gengo, textmaster. |
+**source_locale_id** | **str** | Source locale for the order. Can be the name or id of the source locale. Preferred is id. | [optional]
+**target_locale_ids** | **List[str]** | List of target locales you want the source content translate to. Can be the name or id of the target locales. Preferred is id. | [optional]
**translation_type** | **str** | Name of the quality level, availability depends on the LSP. Can be one of: standard, pro (for orders processed by Gengo) and one of regular, premium, enterprise (for orders processed by TextMaster) | [optional]
**tag** | **str** | Tag you want to order translations for. | [optional]
**message** | **str** | Message that is displayed to the translators for description. | [optional]
diff --git a/docs/ProjectCreateParameters.md b/docs/ProjectCreateParameters.md
index 0bc6fbf..0e2fedd 100644
--- a/docs/ProjectCreateParameters.md
+++ b/docs/ProjectCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the project | [optional]
+**name** | **str** | Name of the project |
**main_format** | **str** | Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>. | [optional]
**media** | **str** | (Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: `Ruby`, `JavaScript`, `AngularJS`, `React`, `iOS`, `Android`, `Python`, `PHP`, `Java`, `Go`, `Windows Phone`, `Rails`, `Node.js`, `.NET`, `Django`, `Symfony`, `Yii Framework`, `Zend Framework`, `Apple App Store Description`, `Google Play Description`, but it can also take any other value. | [optional]
**shares_translation_memory** | **bool** | Indicates whether the project should share the account's translation memory | [optional]
diff --git a/docs/ScreenshotMarkerCreateParameters.md b/docs/ScreenshotMarkerCreateParameters.md
index 89f9134..0d005b5 100644
--- a/docs/ScreenshotMarkerCreateParameters.md
+++ b/docs/ScreenshotMarkerCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**key_id** | **str** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
+**key_id** | **str** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. |
**presentation** | **str** | Presentation details of the screenshot marker in JSON format.<br/><br/>Each Screenshot Marker is represented as a rectangular shaped highlight box with the name of the specified Key attached. You can specify the marker position on the screenshot (<code>x</code>-axis and <code>y</code>-axis in pixels) from the top left corner of the screenshot and the dimensions of the marker itself (<code>w</code> and <code>h</code> in pixels). | [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)
diff --git a/docs/SpaceCreateParameters.md b/docs/SpaceCreateParameters.md
index 8b12feb..a8eee38 100644
--- a/docs/SpaceCreateParameters.md
+++ b/docs/SpaceCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the space | [optional]
+**name** | **str** | Name of the space |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SpacesProjectsCreateParameters.md b/docs/SpacesProjectsCreateParameters.md
index fe81529..6b90362 100644
--- a/docs/SpacesProjectsCreateParameters.md
+++ b/docs/SpacesProjectsCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **str** | Project ID to add or to the Space | [optional]
+**id** | **str** | Project ID to add or to the Space |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/StyleguideCreateParameters.md b/docs/StyleguideCreateParameters.md
index ae41ad2..f19c468 100644
--- a/docs/StyleguideCreateParameters.md
+++ b/docs/StyleguideCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**title** | **str** | Style guide title | [optional]
+**title** | **str** | Style guide title |
**audience** | **str** | Audience description | [optional]
**target_audience** | **str** | Can be one of: not_specified, children, teenager, young_adults, adults, old_adults. | [optional]
**grammatical_person** | **str** | Can be one of: not_specified, first_person_singular, second_person_singular, third_person_singular_masculine, third_person_singular_feminine, third_person_singular_neuter, first_person_plural, second_person_plural, third_person_plural. | [optional]
diff --git a/docs/TagCreateParameters.md b/docs/TagCreateParameters.md
index e1a0e15..3c36e03 100644
--- a/docs/TagCreateParameters.md
+++ b/docs/TagCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**name** | **str** | Name of the tag | [optional]
+**name** | **str** | Name of the tag |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TeamCreateParameters.md b/docs/TeamCreateParameters.md
index 32f1dfd..0808ede 100644
--- a/docs/TeamCreateParameters.md
+++ b/docs/TeamCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the team | [optional]
+**name** | **str** | Name of the team |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TeamsProjectsCreateParameters.md b/docs/TeamsProjectsCreateParameters.md
index 812c0c3..00eaf29 100644
--- a/docs/TeamsProjectsCreateParameters.md
+++ b/docs/TeamsProjectsCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **str** | Project ID to add to the Team | [optional]
+**id** | **str** | Project ID to add to the Team |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TeamsSpacesCreateParameters.md b/docs/TeamsSpacesCreateParameters.md
index 95ff96e..6fbf45d 100644
--- a/docs/TeamsSpacesCreateParameters.md
+++ b/docs/TeamsSpacesCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **str** | Space ID to add to the Team | [optional]
+**id** | **str** | Space ID to add to the Team |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TeamsUsersCreateParameters.md b/docs/TeamsUsersCreateParameters.md
index 5c09ca9..4964973 100644
--- a/docs/TeamsUsersCreateParameters.md
+++ b/docs/TeamsUsersCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **str** | User ID to add to the Team | [optional]
+**id** | **str** | User ID to add to the Team |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TranslationCreateParameters.md b/docs/TranslationCreateParameters.md
index 951c3d3..3174ba0 100644
--- a/docs/TranslationCreateParameters.md
+++ b/docs/TranslationCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **str** | specify the branch to use | [optional]
-**locale_id** | **str** | Locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
+**locale_id** | **str** | Locale. Can be the name or id of the locale. Preferred is id | [optional]
**key_id** | **str** | Key | [optional]
**content** | **str** | Translation content | [optional]
**plural_suffix** | **str** | Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized. | [optional]
diff --git a/docs/UploadsApi.md b/docs/UploadsApi.md
index bba2f44..09177e9 100644
--- a/docs/UploadsApi.md
+++ b/docs/UploadsApi.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
# **upload_create**
-> Upload upload_create(project_id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, file=file, file_format=file_format, locale_id=locale_id, tags=tags, update_translations=update_translations, update_descriptions=update_descriptions, convert_emoji=convert_emoji, skip_upload_tags=skip_upload_tags, skip_unverification=skip_unverification, file_encoding=file_encoding, locale_mapping=locale_mapping, format_options=format_options, autotranslate=autotranslate, mark_reviewed=mark_reviewed, tag_only_affected_keys=tag_only_affected_keys)
+> Upload upload_create(project_id, file, file_format, locale_id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, tags=tags, update_translations=update_translations, update_descriptions=update_descriptions, convert_emoji=convert_emoji, skip_upload_tags=skip_upload_tags, skip_unverification=skip_unverification, file_encoding=file_encoding, locale_mapping=locale_mapping, format_options=format_options, autotranslate=autotranslate, mark_reviewed=mark_reviewed, tag_only_affected_keys=tag_only_affected_keys)
Upload a new file
@@ -34,11 +34,11 @@ with phrase_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrase_api.UploadsApi(api_client)
project_id = 'project_id_example' # str | Project ID (required)
+ file = None # bytearray | File to be imported (required)
+ file_format = 'file_format_example' # str | File format. Auto-detected when possible and not specified. (required)
+ locale_id = 'locale_id_example' # str | Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
branch = 'branch_example' # str | specify the branch to use
- file = None # bytearray | File to be imported
- file_format = 'file_format_example' # str | File format. Auto-detected when possible and not specified.
- locale_id = 'locale_id_example' # str | Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
tags = 'tags_example' # str | List of tags separated by comma to be associated with the new keys contained in the upload.
update_translations = True # bool | Indicates whether existing translations should be updated with the file content.
update_descriptions = True # bool | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -46,7 +46,7 @@ with phrase_api.ApiClient(configuration) as api_client:
skip_upload_tags = True # bool | Indicates whether the upload should not create upload tags.
skip_unverification = True # bool | Indicates whether the upload should unverify updated translations.
file_encoding = 'file_encoding_example' # str | Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\".
- locale_mapping = None # object | Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
+ locale_mapping = None # object | Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
format_options = None # object | Additional options available for specific formats. See our format guide for complete list.
autotranslate = True # bool | If set, translations for the uploaded language will be fetched automatically.
mark_reviewed = True # bool | Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
@@ -54,7 +54,7 @@ with phrase_api.ApiClient(configuration) as api_client:
try:
# Upload a new file
- api_response = api_instance.upload_create(project_id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, file=file, file_format=file_format, locale_id=locale_id, tags=tags, update_translations=update_translations, update_descriptions=update_descriptions, convert_emoji=convert_emoji, skip_upload_tags=skip_upload_tags, skip_unverification=skip_unverification, file_encoding=file_encoding, locale_mapping=locale_mapping, format_options=format_options, autotranslate=autotranslate, mark_reviewed=mark_reviewed, tag_only_affected_keys=tag_only_affected_keys)
+ api_response = api_instance.upload_create(project_id, file, file_format, locale_id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, tags=tags, update_translations=update_translations, update_descriptions=update_descriptions, convert_emoji=convert_emoji, skip_upload_tags=skip_upload_tags, skip_unverification=skip_unverification, file_encoding=file_encoding, locale_mapping=locale_mapping, format_options=format_options, autotranslate=autotranslate, mark_reviewed=mark_reviewed, tag_only_affected_keys=tag_only_affected_keys)
pprint(api_response)
except ApiException as e:
print("Exception when calling UploadsApi->upload_create: %s\n" % e)
@@ -66,11 +66,11 @@ with phrase_api.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **str**| Project ID |
+ **file** | **bytearray**| File to be imported |
+ **file_format** | **str**| File format. Auto-detected when possible and not specified. |
+ **locale_id** | **str**| Locale of the file's content. Can be the name or id of the locale. Preferred is id. |
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
**branch** | **str**| specify the branch to use | [optional]
- **file** | **bytearray**| File to be imported | [optional]
- **file_format** | **str**| File format. Auto-detected when possible and not specified. | [optional]
- **locale_id** | **str**| Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. | [optional]
**tags** | **str**| List of tags separated by comma to be associated with the new keys contained in the upload. | [optional]
**update_translations** | **bool**| Indicates whether existing translations should be updated with the file content. | [optional]
**update_descriptions** | **bool**| Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [optional]
@@ -78,7 +78,7 @@ Name | Type | Description | Notes
**skip_upload_tags** | **bool**| Indicates whether the upload should not create upload tags. | [optional]
**skip_unverification** | **bool**| Indicates whether the upload should unverify updated translations. | [optional]
**file_encoding** | **str**| Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". | [optional]
- **locale_mapping** | [**object**](object.md)| Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. | [optional]
+ **locale_mapping** | [**object**](object.md)| Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. | [optional]
**format_options** | [**object**](object.md)| Additional options available for specific formats. See our format guide for complete list. | [optional]
**autotranslate** | **bool**| If set, translations for the uploaded language will be fetched automatically. | [optional]
**mark_reviewed** | **bool**| Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project. | [optional]
diff --git a/docs/VariableCreateParameters.md b/docs/VariableCreateParameters.md
index 89e73b0..b4ccae1 100644
--- a/docs/VariableCreateParameters.md
+++ b/docs/VariableCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **str** | Name of the variable | [optional]
+**name** | **str** | Name of the variable |
**value** | **str** | Value of the variable | [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)
diff --git a/docs/WebhookCreateParameters.md b/docs/WebhookCreateParameters.md
index 2e23d9b..df43f65 100644
--- a/docs/WebhookCreateParameters.md
+++ b/docs/WebhookCreateParameters.md
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**callback_url** | **str** | Callback URL to send requests to | [optional]
+**callback_url** | **str** | Callback URL to send requests to |
**secret** | **str** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
**description** | **str** | Webhook description | [optional]
**events** | **str** | List of event names to trigger the webhook (separated by comma) | [optional]
diff --git a/phrase_api/api/icu_api.py b/phrase_api/api/icu_api.py
index 8aa1555..b633cb8 100644
--- a/phrase_api/api/icu_api.py
+++ b/phrase_api/api/icu_api.py
@@ -36,9 +36,9 @@ def __init__(self, api_client=None):
self.api_client = api_client
def icu_skeleton(self, icu_skeleton_parameters, **kwargs): # noqa: E501
- """Build icu skeletons # noqa: E501
+ """Build ICU skeletons # noqa: E501
- Returns icu skeletons for multiple locale codes based on a source content. # noqa: E501
+ Returns ICU skeletons for multiple locale codes based on a source content. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.icu_skeleton(icu_skeleton_parameters, async_req=True)
@@ -62,9 +62,9 @@ def icu_skeleton(self, icu_skeleton_parameters, **kwargs): # noqa: E501
return self.icu_skeleton_with_http_info(icu_skeleton_parameters, **kwargs) # noqa: E501
def icu_skeleton_with_http_info(self, icu_skeleton_parameters, **kwargs): # noqa: E501
- """Build icu skeletons # noqa: E501
+ """Build ICU skeletons # noqa: E501
- Returns icu skeletons for multiple locale codes based on a source content. # noqa: E501
+ Returns ICU skeletons for multiple locale codes based on a source content. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.icu_skeleton_with_http_info(icu_skeleton_parameters, async_req=True)
diff --git a/phrase_api/api/linked_keys_api.py b/phrase_api/api/linked_keys_api.py
index f477579..dbde93f 100644
--- a/phrase_api/api/linked_keys_api.py
+++ b/phrase_api/api/linked_keys_api.py
@@ -49,7 +49,6 @@ def key_links_batch_destroy(self, project_id, id, key_links_batch_destroy_parame
:param str id: Parent Translation Key ID (required)
:param KeyLinksBatchDestroyParameters key_links_batch_destroy_parameters: (required)
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
- :param bool unlink_parent: Whether to unlink the parent key as well and unmark it as linked-key.
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
@@ -78,7 +77,6 @@ def key_links_batch_destroy_with_http_info(self, project_id, id, key_links_batch
:param str id: Parent Translation Key ID (required)
:param KeyLinksBatchDestroyParameters key_links_batch_destroy_parameters: (required)
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
- :param bool unlink_parent: Whether to unlink the parent key as well and unmark it as linked-key.
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -99,8 +97,7 @@ def key_links_batch_destroy_with_http_info(self, project_id, id, key_links_batch
'project_id',
'id',
'key_links_batch_destroy_parameters',
- 'x_phrase_app_otp',
- 'unlink_parent'
+ 'x_phrase_app_otp'
]
all_params.extend(
[
@@ -141,8 +138,6 @@ def key_links_batch_destroy_with_http_info(self, project_id, id, key_links_batch
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
- if 'unlink_parent' in local_var_params and local_var_params['unlink_parent'] is not None: # noqa: E501
- query_params.append(('unlink_parent', local_var_params['unlink_parent'])) # noqa: E501
header_params = {}
if 'x_phrase_app_otp' in local_var_params:
@@ -460,7 +455,7 @@ def key_links_destroy_with_http_info(self, project_id, id, child_key_id, **kwarg
collection_formats=collection_formats)
def key_links_index(self, project_id, id, **kwargs): # noqa: E501
- """Retrieve all child keys linked to a specific parent key # noqa: E501
+ """List child keys of a parent key # noqa: E501
Returns detailed information about a parent key, including its linked child keys. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
@@ -487,7 +482,7 @@ def key_links_index(self, project_id, id, **kwargs): # noqa: E501
return self.key_links_index_with_http_info(project_id, id, **kwargs) # noqa: E501
def key_links_index_with_http_info(self, project_id, id, **kwargs): # noqa: E501
- """Retrieve all child keys linked to a specific parent key # noqa: E501
+ """List child keys of a parent key # noqa: E501
Returns detailed information about a parent key, including its linked child keys. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
diff --git a/phrase_api/api/locales_api.py b/phrase_api/api/locales_api.py
index 7ca1d0b..358d46e 100644
--- a/phrase_api/api/locales_api.py
+++ b/phrase_api/api/locales_api.py
@@ -454,7 +454,7 @@ def locale_download(self, project_id, id, **kwargs): # noqa: E501
:param bool skip_unverified_translations: Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with include_unverified_translations
.
:param bool include_unverified_translations: if set to false unverified translations are excluded
:param bool use_last_reviewed_version: If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
- :param str fallback_locale_id: If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to true
.
+ :param str fallback_locale_id: If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to true
.
:param str source_locale_id: Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a tag
parameter indicating a specific job.
:param object custom_metadata_filters: Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -500,7 +500,7 @@ def locale_download_with_http_info(self, project_id, id, **kwargs): # noqa: E50
:param bool skip_unverified_translations: Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with include_unverified_translations
.
:param bool include_unverified_translations: if set to false unverified translations are excluded
:param bool use_last_reviewed_version: If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
- :param str fallback_locale_id: If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to true
.
+ :param str fallback_locale_id: If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to true
.
:param str source_locale_id: Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a tag
parameter indicating a specific job.
:param object custom_metadata_filters: Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
:param _return_http_data_only: response data without head status code
diff --git a/phrase_api/api/uploads_api.py b/phrase_api/api/uploads_api.py
index 35b3c9c..2504b8c 100644
--- a/phrase_api/api/uploads_api.py
+++ b/phrase_api/api/uploads_api.py
@@ -35,22 +35,22 @@ def __init__(self, api_client=None):
api_client = ApiClient()
self.api_client = api_client
- def upload_create(self, project_id, **kwargs): # noqa: E501
+ def upload_create(self, project_id, file, file_format, locale_id, **kwargs): # noqa: E501
"""Upload a new file # noqa: E501
Upload a new language file. Creates necessary resources in your project. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.upload_create(project_id, async_req=True)
+ >>> thread = api.upload_create(project_id, file, file_format, locale_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str project_id: Project ID (required)
+ :param bytearray file: File to be imported (required)
+ :param str file_format: File format. Auto-detected when possible and not specified. (required)
+ :param str locale_id: Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
:param str branch: specify the branch to use
- :param bytearray file: File to be imported
- :param str file_format: File format. Auto-detected when possible and not specified.
- :param str locale_id: Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
:param str tags: List of tags separated by comma to be associated with the new keys contained in the upload.
:param bool update_translations: Indicates whether existing translations should be updated with the file content.
:param bool update_descriptions: Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -58,7 +58,7 @@ def upload_create(self, project_id, **kwargs): # noqa: E501
:param bool skip_upload_tags: Indicates whether the upload should not create upload tags.
:param bool skip_unverification: Indicates whether the upload should unverify updated translations.
:param str file_encoding: Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\".
- :param object locale_mapping: Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
+ :param object locale_mapping: Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
:param object format_options: Additional options available for specific formats. See our format guide for complete list.
:param bool autotranslate: If set, translations for the uploaded language will be fetched automatically.
:param bool mark_reviewed: Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
@@ -75,24 +75,24 @@ def upload_create(self, project_id, **kwargs): # noqa: E501
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.upload_create_with_http_info(project_id, **kwargs) # noqa: E501
+ return self.upload_create_with_http_info(project_id, file, file_format, locale_id, **kwargs) # noqa: E501
- def upload_create_with_http_info(self, project_id, **kwargs): # noqa: E501
+ def upload_create_with_http_info(self, project_id, file, file_format, locale_id, **kwargs): # noqa: E501
"""Upload a new file # noqa: E501
Upload a new language file. Creates necessary resources in your project. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.upload_create_with_http_info(project_id, async_req=True)
+ >>> thread = api.upload_create_with_http_info(project_id, file, file_format, locale_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str project_id: Project ID (required)
+ :param bytearray file: File to be imported (required)
+ :param str file_format: File format. Auto-detected when possible and not specified. (required)
+ :param str locale_id: Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
:param str branch: specify the branch to use
- :param bytearray file: File to be imported
- :param str file_format: File format. Auto-detected when possible and not specified.
- :param str locale_id: Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
:param str tags: List of tags separated by comma to be associated with the new keys contained in the upload.
:param bool update_translations: Indicates whether existing translations should be updated with the file content.
:param bool update_descriptions: Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -100,7 +100,7 @@ def upload_create_with_http_info(self, project_id, **kwargs): # noqa: E501
:param bool skip_upload_tags: Indicates whether the upload should not create upload tags.
:param bool skip_unverification: Indicates whether the upload should unverify updated translations.
:param str file_encoding: Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\".
- :param object locale_mapping: Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
+ :param object locale_mapping: Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
:param object format_options: Additional options available for specific formats. See our format guide for complete list.
:param bool autotranslate: If set, translations for the uploaded language will be fetched automatically.
:param bool mark_reviewed: Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
@@ -123,11 +123,11 @@ def upload_create_with_http_info(self, project_id, **kwargs): # noqa: E501
all_params = [
'project_id',
- 'x_phrase_app_otp',
- 'branch',
'file',
'file_format',
'locale_id',
+ 'x_phrase_app_otp',
+ 'branch',
'tags',
'update_translations',
'update_descriptions',
@@ -162,6 +162,18 @@ def upload_create_with_http_info(self, project_id, **kwargs): # noqa: E501
if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
local_var_params['project_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `project_id` when calling `upload_create`") # noqa: E501
+ # verify the required parameter 'file' is set
+ if self.api_client.client_side_validation and ('file' not in local_var_params or # noqa: E501
+ local_var_params['file'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `file` when calling `upload_create`") # noqa: E501
+ # verify the required parameter 'file_format' is set
+ if self.api_client.client_side_validation and ('file_format' not in local_var_params or # noqa: E501
+ local_var_params['file_format'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `file_format` when calling `upload_create`") # noqa: E501
+ # verify the required parameter 'locale_id' is set
+ if self.api_client.client_side_validation and ('locale_id' not in local_var_params or # noqa: E501
+ local_var_params['locale_id'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `locale_id` when calling `upload_create`") # noqa: E501
collection_formats = {}
diff --git a/phrase_api/models/authorization_create_parameters.py b/phrase_api/models/authorization_create_parameters.py
index adba8c3..0d81791 100644
--- a/phrase_api/models/authorization_create_parameters.py
+++ b/phrase_api/models/authorization_create_parameters.py
@@ -54,8 +54,7 @@ def __init__(self, note=None, scopes=None, expires_at=None, local_vars_configura
self._expires_at = None
self.discriminator = None
- if note is not None:
- self.note = note
+ self.note = note
if scopes is not None:
self.scopes = scopes
if expires_at is not None:
@@ -81,6 +80,8 @@ def note(self, note):
:param note: The note of this AuthorizationCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and note is None: # noqa: E501
+ raise ValueError("Invalid value for `note`, must not be `None`") # noqa: E501
self._note = note
diff --git a/phrase_api/models/blacklisted_key_create_parameters.py b/phrase_api/models/blacklisted_key_create_parameters.py
index 6f676ce..caece6f 100644
--- a/phrase_api/models/blacklisted_key_create_parameters.py
+++ b/phrase_api/models/blacklisted_key_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
self._name = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
@property
def name(self):
@@ -71,6 +70,8 @@ def name(self, name):
:param name: The name of this BlacklistedKeyCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/branch_create_parameters.py b/phrase_api/models/branch_create_parameters.py
index 3c1a282..1deb4d2 100644
--- a/phrase_api/models/branch_create_parameters.py
+++ b/phrase_api/models/branch_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
self._name = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
@property
def name(self):
@@ -71,6 +70,8 @@ def name(self, name):
:param name: The name of this BranchCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/distribution_create_parameters.py b/phrase_api/models/distribution_create_parameters.py
index eae3013..927abc6 100644
--- a/phrase_api/models/distribution_create_parameters.py
+++ b/phrase_api/models/distribution_create_parameters.py
@@ -72,10 +72,8 @@ def __init__(self, name=None, project_id=None, platforms=None, locale_ids=None,
self._use_last_reviewed_version = None
self.discriminator = None
- if name is not None:
- self.name = name
- if project_id is not None:
- self.project_id = project_id
+ self.name = name
+ self.project_id = project_id
if platforms is not None:
self.platforms = platforms
if locale_ids is not None:
@@ -111,6 +109,8 @@ def name(self, name):
:param name: The name of this DistributionCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@@ -134,6 +134,8 @@ def project_id(self, project_id):
:param project_id: The project_id of this DistributionCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
+ raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
self._project_id = project_id
diff --git a/phrase_api/models/figma_attachment_create_parameters.py b/phrase_api/models/figma_attachment_create_parameters.py
index 2c43fde..d5cf3ec 100644
--- a/phrase_api/models/figma_attachment_create_parameters.py
+++ b/phrase_api/models/figma_attachment_create_parameters.py
@@ -53,8 +53,7 @@ def __init__(self, branch=None, url=None, local_vars_configuration=None): # noq
if branch is not None:
self.branch = branch
- if url is not None:
- self.url = url
+ self.url = url
@property
def branch(self):
@@ -99,6 +98,8 @@ def url(self, url):
:param url: The url of this FigmaAttachmentCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
self._url = url
diff --git a/phrase_api/models/glossary_create_parameters.py b/phrase_api/models/glossary_create_parameters.py
index bdf0f26..ed445af 100644
--- a/phrase_api/models/glossary_create_parameters.py
+++ b/phrase_api/models/glossary_create_parameters.py
@@ -54,8 +54,7 @@ def __init__(self, name=None, project_ids=None, space_ids=None, local_vars_confi
self._space_ids = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
if project_ids is not None:
self.project_ids = project_ids
if space_ids is not None:
@@ -81,6 +80,8 @@ def name(self, name):
:param name: The name of this GlossaryCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/glossary_term_create_parameters.py b/phrase_api/models/glossary_term_create_parameters.py
index 6236f16..d662d91 100644
--- a/phrase_api/models/glossary_term_create_parameters.py
+++ b/phrase_api/models/glossary_term_create_parameters.py
@@ -57,8 +57,7 @@ def __init__(self, term=None, description=None, translatable=None, case_sensitiv
self._case_sensitive = None
self.discriminator = None
- if term is not None:
- self.term = term
+ self.term = term
if description is not None:
self.description = description
if translatable is not None:
@@ -86,6 +85,8 @@ def term(self, term):
:param term: The term of this GlossaryTermCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and term is None: # noqa: E501
+ raise ValueError("Invalid value for `term`, must not be `None`") # noqa: E501
self._term = term
diff --git a/phrase_api/models/glossary_term_translation_create_parameters.py b/phrase_api/models/glossary_term_translation_create_parameters.py
index 13514ef..27b2710 100644
--- a/phrase_api/models/glossary_term_translation_create_parameters.py
+++ b/phrase_api/models/glossary_term_translation_create_parameters.py
@@ -51,10 +51,8 @@ def __init__(self, locale_code=None, content=None, local_vars_configuration=None
self._content = None
self.discriminator = None
- if locale_code is not None:
- self.locale_code = locale_code
- if content is not None:
- self.content = content
+ self.locale_code = locale_code
+ self.content = content
@property
def locale_code(self):
@@ -76,6 +74,8 @@ def locale_code(self, locale_code):
:param locale_code: The locale_code of this GlossaryTermTranslationCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and locale_code is None: # noqa: E501
+ raise ValueError("Invalid value for `locale_code`, must not be `None`") # noqa: E501
self._locale_code = locale_code
@@ -99,6 +99,8 @@ def content(self, content):
:param content: The content of this GlossaryTermTranslationCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501
+ raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
self._content = content
diff --git a/phrase_api/models/invitation_create_parameters.py b/phrase_api/models/invitation_create_parameters.py
index 8aeae15..d83a6f5 100644
--- a/phrase_api/models/invitation_create_parameters.py
+++ b/phrase_api/models/invitation_create_parameters.py
@@ -69,10 +69,8 @@ def __init__(self, email=None, role=None, project_ids=None, locale_ids=None, spa
self._permissions = None
self.discriminator = None
- if email is not None:
- self.email = email
- if role is not None:
- self.role = role
+ self.email = email
+ self.role = role
if project_ids is not None:
self.project_ids = project_ids
if locale_ids is not None:
@@ -106,6 +104,8 @@ def email(self, email):
:param email: The email of this InvitationCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501
+ raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
self._email = email
@@ -129,6 +129,8 @@ def role(self, role):
:param role: The role of this InvitationCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and role is None: # noqa: E501
+ raise ValueError("Invalid value for `role`, must not be `None`") # noqa: E501
self._role = role
diff --git a/phrase_api/models/job_create_parameters.py b/phrase_api/models/job_create_parameters.py
index de439a9..c1327c6 100644
--- a/phrase_api/models/job_create_parameters.py
+++ b/phrase_api/models/job_create_parameters.py
@@ -74,8 +74,7 @@ def __init__(self, branch=None, name=None, source_locale_id=None, briefing=None,
if branch is not None:
self.branch = branch
- if name is not None:
- self.name = name
+ self.name = name
if source_locale_id is not None:
self.source_locale_id = source_locale_id
if briefing is not None:
@@ -133,6 +132,8 @@ def name(self, name):
:param name: The name of this JobCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/key_create_parameters.py b/phrase_api/models/key_create_parameters.py
index df2e972..417bb62 100644
--- a/phrase_api/models/key_create_parameters.py
+++ b/phrase_api/models/key_create_parameters.py
@@ -98,8 +98,7 @@ def __init__(self, branch=None, name=None, description=None, plural=None, name_p
if branch is not None:
self.branch = branch
- if name is not None:
- self.name = name
+ self.name = name
if description is not None:
self.description = description
if plural is not None:
@@ -174,6 +173,8 @@ def name(self, name):
:param name: The name of this KeyCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/key_link.py b/phrase_api/models/key_link.py
index eb51266..8b8898c 100644
--- a/phrase_api/models/key_link.py
+++ b/phrase_api/models/key_link.py
@@ -66,13 +66,20 @@ def __init__(self, created_at=None, updated_at=None, created_by=None, updated_by
self._children = None
self.discriminator = None
- self.created_at = created_at
- self.updated_at = updated_at
- self.created_by = created_by
- self.updated_by = updated_by
- self.account = account
- self.parent = parent
- self.children = children
+ if created_at is not None:
+ self.created_at = created_at
+ if updated_at is not None:
+ self.updated_at = updated_at
+ if created_by is not None:
+ self.created_by = created_by
+ if updated_by is not None:
+ self.updated_by = updated_by
+ if account is not None:
+ self.account = account
+ if parent is not None:
+ self.parent = parent
+ if children is not None:
+ self.children = children
@property
def created_at(self):
@@ -94,8 +101,6 @@ def created_at(self, created_at):
:param created_at: The created_at of this KeyLink. # noqa: E501
:type: datetime
"""
- if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
- raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
self._created_at = created_at
@@ -119,8 +124,6 @@ def updated_at(self, updated_at):
:param updated_at: The updated_at of this KeyLink. # noqa: E501
:type: datetime
"""
- if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501
- raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501
self._updated_at = updated_at
@@ -142,8 +145,6 @@ def created_by(self, created_by):
:param created_by: The created_by of this KeyLink. # noqa: E501
:type: UserPreview
"""
- if self.local_vars_configuration.client_side_validation and created_by is None: # noqa: E501
- raise ValueError("Invalid value for `created_by`, must not be `None`") # noqa: E501
self._created_by = created_by
@@ -165,8 +166,6 @@ def updated_by(self, updated_by):
:param updated_by: The updated_by of this KeyLink. # noqa: E501
:type: UserPreview
"""
- if self.local_vars_configuration.client_side_validation and updated_by is None: # noqa: E501
- raise ValueError("Invalid value for `updated_by`, must not be `None`") # noqa: E501
self._updated_by = updated_by
@@ -188,8 +187,6 @@ def account(self, account):
:param account: The account of this KeyLink. # noqa: E501
:type: Account
"""
- if self.local_vars_configuration.client_side_validation and account is None: # noqa: E501
- raise ValueError("Invalid value for `account`, must not be `None`") # noqa: E501
self._account = account
@@ -211,8 +208,6 @@ def parent(self, parent):
:param parent: The parent of this KeyLink. # noqa: E501
:type: KeyPreview
"""
- if self.local_vars_configuration.client_side_validation and parent is None: # noqa: E501
- raise ValueError("Invalid value for `parent`, must not be `None`") # noqa: E501
self._parent = parent
@@ -236,8 +231,6 @@ def children(self, children):
:param children: The children of this KeyLink. # noqa: E501
:type: List[KeyPreview]
"""
- if self.local_vars_configuration.client_side_validation and children is None: # noqa: E501
- raise ValueError("Invalid value for `children`, must not be `None`") # noqa: E501
self._children = children
diff --git a/phrase_api/models/key_links_batch_destroy_parameters.py b/phrase_api/models/key_links_batch_destroy_parameters.py
index 910bfe7..7d89b49 100644
--- a/phrase_api/models/key_links_batch_destroy_parameters.py
+++ b/phrase_api/models/key_links_batch_destroy_parameters.py
@@ -32,23 +32,28 @@ class KeyLinksBatchDestroyParameters(object):
and the value is json key in definition.
"""
openapi_types = {
- 'child_key_ids': 'List[str]'
+ 'child_key_ids': 'List[str]',
+ 'unlink_parent': 'bool'
}
attribute_map = {
- 'child_key_ids': 'child_key_ids'
+ 'child_key_ids': 'child_key_ids',
+ 'unlink_parent': 'unlink_parent'
}
- def __init__(self, child_key_ids=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, child_key_ids=None, unlink_parent=False, local_vars_configuration=None): # noqa: E501
"""KeyLinksBatchDestroyParameters - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._child_key_ids = None
+ self._unlink_parent = None
self.discriminator = None
self.child_key_ids = child_key_ids
+ if unlink_parent is not None:
+ self.unlink_parent = unlink_parent
@property
def child_key_ids(self):
@@ -75,6 +80,29 @@ def child_key_ids(self, child_key_ids):
self._child_key_ids = child_key_ids
+ @property
+ def unlink_parent(self):
+ """Gets the unlink_parent of this KeyLinksBatchDestroyParameters. # noqa: E501
+
+ Whether to unlink the parent key as well and unmark it as linked-key. # noqa: E501
+
+ :return: The unlink_parent of this KeyLinksBatchDestroyParameters. # noqa: E501
+ :rtype: bool
+ """
+ return self._unlink_parent
+
+ @unlink_parent.setter
+ def unlink_parent(self, unlink_parent):
+ """Sets the unlink_parent of this KeyLinksBatchDestroyParameters.
+
+ Whether to unlink the parent key as well and unmark it as linked-key. # noqa: E501
+
+ :param unlink_parent: The unlink_parent of this KeyLinksBatchDestroyParameters. # noqa: E501
+ :type: bool
+ """
+
+ self._unlink_parent = unlink_parent
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
diff --git a/phrase_api/models/locale_create_parameters.py b/phrase_api/models/locale_create_parameters.py
index e439d17..ea3ba91 100644
--- a/phrase_api/models/locale_create_parameters.py
+++ b/phrase_api/models/locale_create_parameters.py
@@ -80,10 +80,8 @@ def __init__(self, branch=None, name=None, code=None, default=None, main=None, r
if branch is not None:
self.branch = branch
- if name is not None:
- self.name = name
- if code is not None:
- self.code = code
+ self.name = name
+ self.code = code
if default is not None:
self.default = default
if main is not None:
@@ -144,6 +142,8 @@ def name(self, name):
:param name: The name of this LocaleCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@@ -167,6 +167,8 @@ def code(self, code):
:param code: The code of this LocaleCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and code is None: # noqa: E501
+ raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501
self._code = code
@@ -243,7 +245,7 @@ def rtl(self, rtl):
def source_locale_id(self):
"""Gets the source_locale_id of this LocaleCreateParameters. # noqa: E501
- Source locale. Can be the name or public id of the locale. Preferred is the public id. # noqa: E501
+ Source locale. Can be the name or id of the locale. Preferred is id. # noqa: E501
:return: The source_locale_id of this LocaleCreateParameters. # noqa: E501
:rtype: str
@@ -254,7 +256,7 @@ def source_locale_id(self):
def source_locale_id(self, source_locale_id):
"""Sets the source_locale_id of this LocaleCreateParameters.
- Source locale. Can be the name or public id of the locale. Preferred is the public id. # noqa: E501
+ Source locale. Can be the name or id of the locale. Preferred is id. # noqa: E501
:param source_locale_id: The source_locale_id of this LocaleCreateParameters. # noqa: E501
:type: str
diff --git a/phrase_api/models/locale_update_parameters.py b/phrase_api/models/locale_update_parameters.py
index af6ede0..f667722 100644
--- a/phrase_api/models/locale_update_parameters.py
+++ b/phrase_api/models/locale_update_parameters.py
@@ -243,7 +243,7 @@ def rtl(self, rtl):
def source_locale_id(self):
"""Gets the source_locale_id of this LocaleUpdateParameters. # noqa: E501
- Source locale. Can be the name or public id of the locale. Preferred is the public id. # noqa: E501
+ Source locale. Can be the name or id of the locale. Preferred is id. # noqa: E501
:return: The source_locale_id of this LocaleUpdateParameters. # noqa: E501
:rtype: str
@@ -254,7 +254,7 @@ def source_locale_id(self):
def source_locale_id(self, source_locale_id):
"""Sets the source_locale_id of this LocaleUpdateParameters.
- Source locale. Can be the name or public id of the locale. Preferred is the public id. # noqa: E501
+ Source locale. Can be the name or id of the locale. Preferred is id. # noqa: E501
:param source_locale_id: The source_locale_id of this LocaleUpdateParameters. # noqa: E501
:type: str
diff --git a/phrase_api/models/order_create_parameters.py b/phrase_api/models/order_create_parameters.py
index 08439dd..951c4ac 100644
--- a/phrase_api/models/order_create_parameters.py
+++ b/phrase_api/models/order_create_parameters.py
@@ -92,10 +92,8 @@ def __init__(self, branch=None, name=None, lsp=None, source_locale_id=None, targ
if branch is not None:
self.branch = branch
- if name is not None:
- self.name = name
- if lsp is not None:
- self.lsp = lsp
+ self.name = name
+ self.lsp = lsp
if source_locale_id is not None:
self.source_locale_id = source_locale_id
if target_locale_ids is not None:
@@ -164,6 +162,8 @@ def name(self, name):
:param name: The name of this OrderCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@@ -187,6 +187,8 @@ def lsp(self, lsp):
:param lsp: The lsp of this OrderCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and lsp is None: # noqa: E501
+ raise ValueError("Invalid value for `lsp`, must not be `None`") # noqa: E501
self._lsp = lsp
@@ -194,7 +196,7 @@ def lsp(self, lsp):
def source_locale_id(self):
"""Gets the source_locale_id of this OrderCreateParameters. # noqa: E501
- Source locale for the order. Can be the name or public id of the source locale. Preferred is the public id. # noqa: E501
+ Source locale for the order. Can be the name or id of the source locale. Preferred is id. # noqa: E501
:return: The source_locale_id of this OrderCreateParameters. # noqa: E501
:rtype: str
@@ -205,7 +207,7 @@ def source_locale_id(self):
def source_locale_id(self, source_locale_id):
"""Sets the source_locale_id of this OrderCreateParameters.
- Source locale for the order. Can be the name or public id of the source locale. Preferred is the public id. # noqa: E501
+ Source locale for the order. Can be the name or id of the source locale. Preferred is id. # noqa: E501
:param source_locale_id: The source_locale_id of this OrderCreateParameters. # noqa: E501
:type: str
@@ -217,7 +219,7 @@ def source_locale_id(self, source_locale_id):
def target_locale_ids(self):
"""Gets the target_locale_ids of this OrderCreateParameters. # noqa: E501
- List of target locales you want the source content translate to. Can be the name or public id of the target locales. Preferred is the public id. # noqa: E501
+ List of target locales you want the source content translate to. Can be the name or id of the target locales. Preferred is id. # noqa: E501
:return: The target_locale_ids of this OrderCreateParameters. # noqa: E501
:rtype: List[str]
@@ -228,7 +230,7 @@ def target_locale_ids(self):
def target_locale_ids(self, target_locale_ids):
"""Sets the target_locale_ids of this OrderCreateParameters.
- List of target locales you want the source content translate to. Can be the name or public id of the target locales. Preferred is the public id. # noqa: E501
+ List of target locales you want the source content translate to. Can be the name or id of the target locales. Preferred is id. # noqa: E501
:param target_locale_ids: The target_locale_ids of this OrderCreateParameters. # noqa: E501
:type: List[str]
diff --git a/phrase_api/models/project_create_parameters.py b/phrase_api/models/project_create_parameters.py
index 6e96a1b..8b258c2 100644
--- a/phrase_api/models/project_create_parameters.py
+++ b/phrase_api/models/project_create_parameters.py
@@ -123,8 +123,7 @@ def __init__(self, name=None, main_format=None, media=None, shares_translation_m
self._smart_suggest_use_machine_translation = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
if main_format is not None:
self.main_format = main_format
if media is not None:
@@ -196,6 +195,8 @@ def name(self, name):
:param name: The name of this ProjectCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/screenshot_marker_create_parameters.py b/phrase_api/models/screenshot_marker_create_parameters.py
index a3a757c..512254f 100644
--- a/phrase_api/models/screenshot_marker_create_parameters.py
+++ b/phrase_api/models/screenshot_marker_create_parameters.py
@@ -56,8 +56,7 @@ def __init__(self, branch=None, key_id=None, presentation=None, local_vars_confi
if branch is not None:
self.branch = branch
- if key_id is not None:
- self.key_id = key_id
+ self.key_id = key_id
if presentation is not None:
self.presentation = presentation
@@ -104,6 +103,8 @@ def key_id(self, key_id):
:param key_id: The key_id of this ScreenshotMarkerCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and key_id is None: # noqa: E501
+ raise ValueError("Invalid value for `key_id`, must not be `None`") # noqa: E501
self._key_id = key_id
diff --git a/phrase_api/models/space_create_parameters.py b/phrase_api/models/space_create_parameters.py
index 781adfa..f027eb5 100644
--- a/phrase_api/models/space_create_parameters.py
+++ b/phrase_api/models/space_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
self._name = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
@property
def name(self):
@@ -71,6 +70,8 @@ def name(self, name):
:param name: The name of this SpaceCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/spaces_projects_create_parameters.py b/phrase_api/models/spaces_projects_create_parameters.py
index e987229..f9e182b 100644
--- a/phrase_api/models/spaces_projects_create_parameters.py
+++ b/phrase_api/models/spaces_projects_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
self._id = None
self.discriminator = None
- if id is not None:
- self.id = id
+ self.id = id
@property
def id(self):
@@ -71,6 +70,8 @@ def id(self, id):
:param id: The id of this SpacesProjectsCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
diff --git a/phrase_api/models/styleguide_create_parameters.py b/phrase_api/models/styleguide_create_parameters.py
index 91dbb58..1e16a26 100644
--- a/phrase_api/models/styleguide_create_parameters.py
+++ b/phrase_api/models/styleguide_create_parameters.py
@@ -84,8 +84,7 @@ def __init__(self, title=None, audience=None, target_audience=None, grammatical_
self._samples = None
self.discriminator = None
- if title is not None:
- self.title = title
+ self.title = title
if audience is not None:
self.audience = audience
if target_audience is not None:
@@ -131,6 +130,8 @@ def title(self, title):
:param title: The title of this StyleguideCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and title is None: # noqa: E501
+ raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501
self._title = title
diff --git a/phrase_api/models/tag_create_parameters.py b/phrase_api/models/tag_create_parameters.py
index eb95883..4afbbcc 100644
--- a/phrase_api/models/tag_create_parameters.py
+++ b/phrase_api/models/tag_create_parameters.py
@@ -53,8 +53,7 @@ def __init__(self, branch=None, name=None, local_vars_configuration=None): # no
if branch is not None:
self.branch = branch
- if name is not None:
- self.name = name
+ self.name = name
@property
def branch(self):
@@ -99,6 +98,8 @@ def name(self, name):
:param name: The name of this TagCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/team_create_parameters.py b/phrase_api/models/team_create_parameters.py
index 6009f02..575461f 100644
--- a/phrase_api/models/team_create_parameters.py
+++ b/phrase_api/models/team_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
self._name = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
@property
def name(self):
@@ -71,6 +70,8 @@ def name(self, name):
:param name: The name of this TeamCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/teams_projects_create_parameters.py b/phrase_api/models/teams_projects_create_parameters.py
index 65cd225..3e6dec8 100644
--- a/phrase_api/models/teams_projects_create_parameters.py
+++ b/phrase_api/models/teams_projects_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
self._id = None
self.discriminator = None
- if id is not None:
- self.id = id
+ self.id = id
@property
def id(self):
@@ -71,6 +70,8 @@ def id(self, id):
:param id: The id of this TeamsProjectsCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
diff --git a/phrase_api/models/teams_spaces_create_parameters.py b/phrase_api/models/teams_spaces_create_parameters.py
index ecdc8e6..38d6df1 100644
--- a/phrase_api/models/teams_spaces_create_parameters.py
+++ b/phrase_api/models/teams_spaces_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
self._id = None
self.discriminator = None
- if id is not None:
- self.id = id
+ self.id = id
@property
def id(self):
@@ -71,6 +70,8 @@ def id(self, id):
:param id: The id of this TeamsSpacesCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
diff --git a/phrase_api/models/teams_users_create_parameters.py b/phrase_api/models/teams_users_create_parameters.py
index 437de86..67014be 100644
--- a/phrase_api/models/teams_users_create_parameters.py
+++ b/phrase_api/models/teams_users_create_parameters.py
@@ -48,8 +48,7 @@ def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
self._id = None
self.discriminator = None
- if id is not None:
- self.id = id
+ self.id = id
@property
def id(self):
@@ -71,6 +70,8 @@ def id(self, id):
:param id: The id of this TeamsUsersCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
diff --git a/phrase_api/models/translation_create_parameters.py b/phrase_api/models/translation_create_parameters.py
index b3d0c16..57c22fa 100644
--- a/phrase_api/models/translation_create_parameters.py
+++ b/phrase_api/models/translation_create_parameters.py
@@ -113,7 +113,7 @@ def branch(self, branch):
def locale_id(self):
"""Gets the locale_id of this TranslationCreateParameters. # noqa: E501
- Locale. Can be the name or public id of the locale. Preferred is the public id. # noqa: E501
+ Locale. Can be the name or id of the locale. Preferred is id # noqa: E501
:return: The locale_id of this TranslationCreateParameters. # noqa: E501
:rtype: str
@@ -124,7 +124,7 @@ def locale_id(self):
def locale_id(self, locale_id):
"""Sets the locale_id of this TranslationCreateParameters.
- Locale. Can be the name or public id of the locale. Preferred is the public id. # noqa: E501
+ Locale. Can be the name or id of the locale. Preferred is id # noqa: E501
:param locale_id: The locale_id of this TranslationCreateParameters. # noqa: E501
:type: str
diff --git a/phrase_api/models/variable_create_parameters.py b/phrase_api/models/variable_create_parameters.py
index 7c5ead3..a5e5a08 100644
--- a/phrase_api/models/variable_create_parameters.py
+++ b/phrase_api/models/variable_create_parameters.py
@@ -51,8 +51,7 @@ def __init__(self, name=None, value=None, local_vars_configuration=None): # noq
self._value = None
self.discriminator = None
- if name is not None:
- self.name = name
+ self.name = name
if value is not None:
self.value = value
@@ -76,6 +75,8 @@ def name(self, name):
:param name: The name of this VariableCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
diff --git a/phrase_api/models/webhook_create_parameters.py b/phrase_api/models/webhook_create_parameters.py
index 52f82e4..5034c8f 100644
--- a/phrase_api/models/webhook_create_parameters.py
+++ b/phrase_api/models/webhook_create_parameters.py
@@ -63,8 +63,7 @@ def __init__(self, callback_url=None, secret=None, description=None, events=None
self._include_branches = None
self.discriminator = None
- if callback_url is not None:
- self.callback_url = callback_url
+ self.callback_url = callback_url
if secret is not None:
self.secret = secret
if description is not None:
@@ -96,6 +95,8 @@ def callback_url(self, callback_url):
:param callback_url: The callback_url of this WebhookCreateParameters. # noqa: E501
:type: str
"""
+ if self.local_vars_configuration.client_side_validation and callback_url is None: # noqa: E501
+ raise ValueError("Invalid value for `callback_url`, must not be `None`") # noqa: E501
self._callback_url = callback_url
diff --git a/test/test_authorization_create_parameters.py b/test/test_authorization_create_parameters.py
index 7eb38b4..bc7dcc3 100644
--- a/test/test_authorization_create_parameters.py
+++ b/test/test_authorization_create_parameters.py
@@ -43,6 +43,7 @@ def make_instance(self, include_optional):
)
else :
return AuthorizationCreateParameters(
+ note = 'My Deploy Script',
)
"""
diff --git a/test/test_blacklisted_key_create_parameters.py b/test/test_blacklisted_key_create_parameters.py
index 7746937..97f3e31 100644
--- a/test/test_blacklisted_key_create_parameters.py
+++ b/test/test_blacklisted_key_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return BlacklistedKeyCreateParameters(
+ name = 'date.formats.*',
)
"""
diff --git a/test/test_branch_create_parameters.py b/test/test_branch_create_parameters.py
index e2d5210..a27af8b 100644
--- a/test/test_branch_create_parameters.py
+++ b/test/test_branch_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return BranchCreateParameters(
+ name = 'my-branch',
)
"""
diff --git a/test/test_distribution_create_parameters.py b/test/test_distribution_create_parameters.py
index 4179e6e..4f720dd 100644
--- a/test/test_distribution_create_parameters.py
+++ b/test/test_distribution_create_parameters.py
@@ -49,6 +49,8 @@ def make_instance(self, include_optional):
)
else :
return DistributionCreateParameters(
+ name = 'My Android Distribution',
+ project_id = 'abcd1234abcd1234abcd1234',
)
"""
diff --git a/test/test_figma_attachment_create_parameters.py b/test/test_figma_attachment_create_parameters.py
index 0ca3232..343b07a 100644
--- a/test/test_figma_attachment_create_parameters.py
+++ b/test/test_figma_attachment_create_parameters.py
@@ -42,6 +42,7 @@ def make_instance(self, include_optional):
)
else :
return FigmaAttachmentCreateParameters(
+ url = 'https://figma.com/file/xxxxx/sample',
)
"""
diff --git a/test/test_glossary_create_parameters.py b/test/test_glossary_create_parameters.py
index f1eb6d1..13c46fc 100644
--- a/test/test_glossary_create_parameters.py
+++ b/test/test_glossary_create_parameters.py
@@ -43,6 +43,7 @@ def make_instance(self, include_optional):
)
else :
return GlossaryCreateParameters(
+ name = 'My glossary',
)
"""
diff --git a/test/test_glossary_term_create_parameters.py b/test/test_glossary_term_create_parameters.py
index c89bf89..ef9d6c8 100644
--- a/test/test_glossary_term_create_parameters.py
+++ b/test/test_glossary_term_create_parameters.py
@@ -44,6 +44,7 @@ def make_instance(self, include_optional):
)
else :
return GlossaryTermCreateParameters(
+ term = 'MyCompany',
)
"""
diff --git a/test/test_glossary_term_translation_create_parameters.py b/test/test_glossary_term_translation_create_parameters.py
index ebce31e..665da5b 100644
--- a/test/test_glossary_term_translation_create_parameters.py
+++ b/test/test_glossary_term_translation_create_parameters.py
@@ -42,6 +42,8 @@ def make_instance(self, include_optional):
)
else :
return GlossaryTermTranslationCreateParameters(
+ locale_code = 'en-US',
+ content = 'My translated term',
)
"""
diff --git a/test/test_icu_api.py b/test/test_icu_api.py
index 947b6e8..9ed603b 100644
--- a/test/test_icu_api.py
+++ b/test/test_icu_api.py
@@ -30,7 +30,7 @@ def tearDown(self):
def test_icu_skeleton(self):
"""Test case for icu_skeleton
- Build icu skeletons # noqa: E501
+ Build ICU skeletons # noqa: E501
"""
pass
diff --git a/test/test_invitation_create_parameters.py b/test/test_invitation_create_parameters.py
index e54ba81..65ecbe9 100644
--- a/test/test_invitation_create_parameters.py
+++ b/test/test_invitation_create_parameters.py
@@ -48,6 +48,8 @@ def make_instance(self, include_optional):
)
else :
return InvitationCreateParameters(
+ email = 'example@mail.com',
+ role = 'Developer',
)
"""
diff --git a/test/test_job_create_parameters.py b/test/test_job_create_parameters.py
index bf60ed5..fd58574 100644
--- a/test/test_job_create_parameters.py
+++ b/test/test_job_create_parameters.py
@@ -49,6 +49,7 @@ def make_instance(self, include_optional):
)
else :
return JobCreateParameters(
+ name = 'de',
)
"""
diff --git a/test/test_key_create_parameters.py b/test/test_key_create_parameters.py
index 3c0934f..053d01f 100644
--- a/test/test_key_create_parameters.py
+++ b/test/test_key_create_parameters.py
@@ -45,7 +45,7 @@ def make_instance(self, include_optional):
data_type = 'number',
tags = 'awesome-feature,needs-proofreading',
max_characters_allowed = 140,
- screenshot = '[B@27a14f7e',
+ screenshot = '[B@399ebdee',
remove_screenshot = True,
unformatted = True,
default_translation_content = 'Default translation content',
@@ -57,6 +57,7 @@ def make_instance(self, include_optional):
)
else :
return KeyCreateParameters(
+ name = 'home.index.headline',
)
"""
diff --git a/test/test_key_link.py b/test/test_key_link.py
index cc93582..55cc316 100644
--- a/test/test_key_link.py
+++ b/test/test_key_link.py
@@ -63,29 +63,6 @@ def make_instance(self, include_optional):
)
else :
return KeyLink(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- created_by = phrase_api.models.user_preview.user_preview(
- id = '',
- username = '',
- name = '',
- gravatar_uid = '', ),
- updated_by = phrase_api.models.user_preview.user_preview(
- id = '',
- username = '',
- name = '',
- gravatar_uid = '', ),
- account = {"id":"abcd1234","name":"Company Account","slug":"company_account","company":"My Awesome Company","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z","company_logo_url":"http://assets.example.com/company_logo.png"},
- parent = phrase_api.models.key_preview.key_preview(
- id = '',
- name = '',
- plural = True, ),
- children = [
- phrase_api.models.key_preview.key_preview(
- id = '',
- name = '',
- plural = True, )
- ],
)
"""
diff --git a/test/test_key_links_batch_destroy_parameters.py b/test/test_key_links_batch_destroy_parameters.py
index 5aa78c7..5f2c93f 100644
--- a/test/test_key_links_batch_destroy_parameters.py
+++ b/test/test_key_links_batch_destroy_parameters.py
@@ -37,7 +37,8 @@ def make_instance(self, include_optional):
"""
if include_optional :
return KeyLinksBatchDestroyParameters(
- child_key_ids = ["child_key_id1","child_key_id2"]
+ child_key_ids = ["child_key_id1","child_key_id2"],
+ unlink_parent = True
)
else :
return KeyLinksBatchDestroyParameters(
diff --git a/test/test_key_update_parameters.py b/test/test_key_update_parameters.py
index 4283196..f6a18db 100644
--- a/test/test_key_update_parameters.py
+++ b/test/test_key_update_parameters.py
@@ -45,7 +45,7 @@ def make_instance(self, include_optional):
data_type = 'number',
tags = 'awesome-feature,needs-proofreading',
max_characters_allowed = 140,
- screenshot = '[B@926d264',
+ screenshot = '[B@2b720a2c',
remove_screenshot = True,
unformatted = True,
xml_space_preserve = True,
diff --git a/test/test_linked_keys_api.py b/test/test_linked_keys_api.py
index 955d6ae..20f912f 100644
--- a/test/test_linked_keys_api.py
+++ b/test/test_linked_keys_api.py
@@ -51,7 +51,7 @@ def test_key_links_destroy(self):
def test_key_links_index(self):
"""Test case for key_links_index
- Retrieve all child keys linked to a specific parent key # noqa: E501
+ List child keys of a parent key # noqa: E501
"""
pass
diff --git a/test/test_locale_create_parameters.py b/test/test_locale_create_parameters.py
index 7098768..f00409c 100644
--- a/test/test_locale_create_parameters.py
+++ b/test/test_locale_create_parameters.py
@@ -51,6 +51,8 @@ def make_instance(self, include_optional):
)
else :
return LocaleCreateParameters(
+ name = 'de',
+ code = 'de-DE',
)
"""
diff --git a/test/test_order_create_parameters.py b/test/test_order_create_parameters.py
index 1380696..9689d99 100644
--- a/test/test_order_create_parameters.py
+++ b/test/test_order_create_parameters.py
@@ -55,6 +55,8 @@ def make_instance(self, include_optional):
)
else :
return OrderCreateParameters(
+ name = 'Welcome message translations',
+ lsp = 'textmaster',
)
"""
diff --git a/test/test_project_create_parameters.py b/test/test_project_create_parameters.py
index 8d36733..2f83319 100644
--- a/test/test_project_create_parameters.py
+++ b/test/test_project_create_parameters.py
@@ -41,7 +41,7 @@ def make_instance(self, include_optional):
main_format = 'yml',
media = 'Python',
shares_translation_memory = True,
- project_image = '[B@1b53e1ae',
+ project_image = '[B@2285f28b',
remove_project_image = True,
account_id = 'abcd1234',
point_of_contact = 'abcd1234',
@@ -66,6 +66,7 @@ def make_instance(self, include_optional):
)
else :
return ProjectCreateParameters(
+ name = 'My Android Project',
)
"""
diff --git a/test/test_project_update_parameters.py b/test/test_project_update_parameters.py
index c280002..54f51e8 100644
--- a/test/test_project_update_parameters.py
+++ b/test/test_project_update_parameters.py
@@ -43,7 +43,7 @@ def make_instance(self, include_optional):
main_format = 'yml',
media = 'Python',
shares_translation_memory = True,
- project_image = '[B@70abd04e',
+ project_image = '[B@6f4fa62f',
remove_project_image = False,
workflow = 'review',
machine_translation_enabled = True,
diff --git a/test/test_screenshot_marker_create_parameters.py b/test/test_screenshot_marker_create_parameters.py
index c1d8343..69d582a 100644
--- a/test/test_screenshot_marker_create_parameters.py
+++ b/test/test_screenshot_marker_create_parameters.py
@@ -43,6 +43,7 @@ def make_instance(self, include_optional):
)
else :
return ScreenshotMarkerCreateParameters(
+ key_id = 'abcd1234abcd1234abcd1234abcd1234',
)
"""
diff --git a/test/test_screenshot_update_parameters.py b/test/test_screenshot_update_parameters.py
index 266636d..231bbce 100644
--- a/test/test_screenshot_update_parameters.py
+++ b/test/test_screenshot_update_parameters.py
@@ -40,7 +40,7 @@ def make_instance(self, include_optional):
branch = 'my-feature-branch',
name = 'A screenshot name',
description = 'A screenshot description',
- filename = '[B@23fb943e'
+ filename = '[B@3402004f'
)
else :
return ScreenshotUpdateParameters(
diff --git a/test/test_space_create_parameters.py b/test/test_space_create_parameters.py
index 98f0524..bb56b19 100644
--- a/test/test_space_create_parameters.py
+++ b/test/test_space_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return SpaceCreateParameters(
+ name = 'My Android Projects',
)
"""
diff --git a/test/test_spaces_projects_create_parameters.py b/test/test_spaces_projects_create_parameters.py
index 34a5052..82a0605 100644
--- a/test/test_spaces_projects_create_parameters.py
+++ b/test/test_spaces_projects_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return SpacesProjectsCreateParameters(
+ id = 'a4b3c2d1',
)
"""
diff --git a/test/test_styleguide_create_parameters.py b/test/test_styleguide_create_parameters.py
index fa86731..a2d91be 100644
--- a/test/test_styleguide_create_parameters.py
+++ b/test/test_styleguide_create_parameters.py
@@ -53,6 +53,7 @@ def make_instance(self, include_optional):
)
else :
return StyleguideCreateParameters(
+ title = 'Web application style guide',
)
"""
diff --git a/test/test_tag_create_parameters.py b/test/test_tag_create_parameters.py
index d691718..68ffcaf 100644
--- a/test/test_tag_create_parameters.py
+++ b/test/test_tag_create_parameters.py
@@ -42,6 +42,7 @@ def make_instance(self, include_optional):
)
else :
return TagCreateParameters(
+ name = 'my-feature',
)
"""
diff --git a/test/test_team_create_parameters.py b/test/test_team_create_parameters.py
index e8ba337..624b673 100644
--- a/test/test_team_create_parameters.py
+++ b/test/test_team_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return TeamCreateParameters(
+ name = 'German Translators',
)
"""
diff --git a/test/test_teams_projects_create_parameters.py b/test/test_teams_projects_create_parameters.py
index dbd132f..2cd4c51 100644
--- a/test/test_teams_projects_create_parameters.py
+++ b/test/test_teams_projects_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return TeamsProjectsCreateParameters(
+ id = 'a4b3c2d1',
)
"""
diff --git a/test/test_teams_spaces_create_parameters.py b/test/test_teams_spaces_create_parameters.py
index a41b36f..6d26c53 100644
--- a/test/test_teams_spaces_create_parameters.py
+++ b/test/test_teams_spaces_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return TeamsSpacesCreateParameters(
+ id = 'a4b3c2d1',
)
"""
diff --git a/test/test_teams_users_create_parameters.py b/test/test_teams_users_create_parameters.py
index 4eaea9b..98581bf 100644
--- a/test/test_teams_users_create_parameters.py
+++ b/test/test_teams_users_create_parameters.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional):
)
else :
return TeamsUsersCreateParameters(
+ id = 'a4b3c2d1',
)
"""
diff --git a/test/test_uploads_api.py b/test/test_uploads_api.py
index d008168..9128954 100644
--- a/test/test_uploads_api.py
+++ b/test/test_uploads_api.py
@@ -48,7 +48,8 @@ def test_upload_create(self, mock_post):
api_response = api_instance.upload_create(
project_id,
file="./test/fixtures/en.json",
- file_format="simple_json"
+ file_format="simple_json",
+ locale_id="en"
)
self.assertEqual("https://api.phrase.com/v2/projects/project_id_example/uploads", mock_post.call_args_list[0].args[1])
diff --git a/test/test_variable_create_parameters.py b/test/test_variable_create_parameters.py
index 059f199..8a3d9bb 100644
--- a/test/test_variable_create_parameters.py
+++ b/test/test_variable_create_parameters.py
@@ -42,6 +42,7 @@ def make_instance(self, include_optional):
)
else :
return VariableCreateParameters(
+ name = 'MY_VARIABLE',
)
"""
diff --git a/test/test_webhook_create_parameters.py b/test/test_webhook_create_parameters.py
index 6d68628..08da435 100644
--- a/test/test_webhook_create_parameters.py
+++ b/test/test_webhook_create_parameters.py
@@ -46,6 +46,7 @@ def make_instance(self, include_optional):
)
else :
return WebhookCreateParameters(
+ callback_url = 'http://example.com/hooks/phraseapp-notifications',
)
"""