diff --git a/README.md b/README.md
index f4b8501..d7d786c 100644
--- a/README.md
+++ b/README.md
@@ -227,7 +227,7 @@ Class | Method | HTTP request | Description
*GlossaryTermsApi* | [**glossaryTermShow**](docs/Api/GlossaryTermsApi.md#glossarytermshow) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Get a single term
*GlossaryTermsApi* | [**glossaryTermUpdate**](docs/Api/GlossaryTermsApi.md#glossarytermupdate) | **PATCH** /accounts/{account_id}/glossaries/{glossary_id}/terms/{id} | Update a term
*GlossaryTermsApi* | [**glossaryTermsList**](docs/Api/GlossaryTermsApi.md#glossarytermslist) | **GET** /accounts/{account_id}/glossaries/{glossary_id}/terms | List terms
-*ICUApi* | [**icuSkeleton**](docs/Api/ICUApi.md#icuskeleton) | **POST** /icu/skeleton | Build icu skeletons
+*ICUApi* | [**icuSkeleton**](docs/Api/ICUApi.md#icuskeleton) | **POST** /icu/skeleton | Build ICU skeletons
*InvitationsApi* | [**invitationCreate**](docs/Api/InvitationsApi.md#invitationcreate) | **POST** /accounts/{account_id}/invitations | Create a new invitation
*InvitationsApi* | [**invitationDelete**](docs/Api/InvitationsApi.md#invitationdelete) | **DELETE** /accounts/{account_id}/invitations/{id} | Delete an invitation
*InvitationsApi* | [**invitationResend**](docs/Api/InvitationsApi.md#invitationresend) | **POST** /accounts/{account_id}/invitations/{id}/resend | Resend an invitation
@@ -287,7 +287,7 @@ Class | Method | HTTP request | Description
*LinkedKeysApi* | [**keyLinksBatchDestroy**](docs/Api/LinkedKeysApi.md#keylinksbatchdestroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links | Batch unlink child keys from a parent key
*LinkedKeysApi* | [**keyLinksCreate**](docs/Api/LinkedKeysApi.md#keylinkscreate) | **POST** /projects/{project_id}/keys/{id}/key_links | Link child keys to a parent key
*LinkedKeysApi* | [**keyLinksDestroy**](docs/Api/LinkedKeysApi.md#keylinksdestroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links/{child_key_id} | Unlink a child key from a parent key
-*LinkedKeysApi* | [**keyLinksIndex**](docs/Api/LinkedKeysApi.md#keylinksindex) | **GET** /projects/{project_id}/keys/{id}/key_links | Retrieve all child keys linked to a specific parent key
+*LinkedKeysApi* | [**keyLinksIndex**](docs/Api/LinkedKeysApi.md#keylinksindex) | **GET** /projects/{project_id}/keys/{id}/key_links | List child keys of a parent key
*LocalesApi* | [**accountLocales**](docs/Api/LocalesApi.md#accountlocales) | **GET** /accounts/{id}/locales | List locales used in account
*LocalesApi* | [**localeCreate**](docs/Api/LocalesApi.md#localecreate) | **POST** /projects/{project_id}/locales | Create a locale
*LocalesApi* | [**localeDelete**](docs/Api/LocalesApi.md#localedelete) | **DELETE** /projects/{project_id}/locales/{id} | Delete a locale
diff --git a/docs/Api/ICUApi.md b/docs/Api/ICUApi.md
index ee13c34..d014b42 100644
--- a/docs/Api/ICUApi.md
+++ b/docs/Api/ICUApi.md
@@ -4,7 +4,7 @@ All URIs are relative to *https://api.phrase.com/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**icuSkeleton**](ICUApi.md#icuSkeleton) | **POST** /icu/skeleton | Build icu skeletons
+[**icuSkeleton**](ICUApi.md#icuSkeleton) | **POST** /icu/skeleton | Build ICU skeletons
@@ -12,9 +12,9 @@ Method | HTTP request | Description
> \Phrase\Model\Icu icuSkeleton($icu_skeleton_parameters, $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
diff --git a/docs/Api/LinkedKeysApi.md b/docs/Api/LinkedKeysApi.md
index 5c637d1..2e14113 100644
--- a/docs/Api/LinkedKeysApi.md
+++ b/docs/Api/LinkedKeysApi.md
@@ -7,13 +7,13 @@ Method | HTTP request | Description
[**keyLinksBatchDestroy**](LinkedKeysApi.md#keyLinksBatchDestroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links | Batch unlink child keys from a parent key
[**keyLinksCreate**](LinkedKeysApi.md#keyLinksCreate) | **POST** /projects/{project_id}/keys/{id}/key_links | Link child keys to a parent key
[**keyLinksDestroy**](LinkedKeysApi.md#keyLinksDestroy) | **DELETE** /projects/{project_id}/keys/{id}/key_links/{child_key_id} | Unlink a child key from a parent key
-[**keyLinksIndex**](LinkedKeysApi.md#keyLinksIndex) | **GET** /projects/{project_id}/keys/{id}/key_links | Retrieve all child keys linked to a specific parent key
+[**keyLinksIndex**](LinkedKeysApi.md#keyLinksIndex) | **GET** /projects/{project_id}/keys/{id}/key_links | List child keys of a parent key
## keyLinksBatchDestroy
-> keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp, $unlink_parent)
+> keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp)
Batch unlink child keys from a parent key
@@ -38,10 +38,9 @@ $project_id = 'project_id_example'; // string | Project ID
$id = 'id_example'; // string | Parent Translation Key ID
$key_links_batch_destroy_parameters = new \Phrase\Model\KeyLinksBatchDestroyParameters(); // \Phrase\Model\KeyLinksBatchDestroyParameters |
$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)
-$unlink_parent = True; // bool | Whether to unlink the parent key as well and unmark it as linked-key.
try {
- $apiInstance->keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp, $unlink_parent);
+ $apiInstance->keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp);
} catch (Exception $e) {
echo 'Exception when calling LinkedKeysApi->keyLinksBatchDestroy: ', $e->getMessage(), PHP_EOL;
}
@@ -57,7 +56,6 @@ Name | Type | Description | Notes
**id** | **string**| Parent Translation Key ID |
**key_links_batch_destroy_parameters** | [**\Phrase\Model\KeyLinksBatchDestroyParameters**](../Model/KeyLinksBatchDestroyParameters.md)| |
**x_phrase_app_otp** | **string**| 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
@@ -210,7 +208,7 @@ void (empty response body)
> \Phrase\Model\KeyLink keyLinksIndex($project_id, $id, $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.
diff --git a/docs/Api/LocalesApi.md b/docs/Api/LocalesApi.md
index 49b76f0..4fd2d5d 100644
--- a/docs/Api/LocalesApi.md
+++ b/docs/Api/LocalesApi.md
@@ -248,7 +248,7 @@ $encoding = 'encoding_example'; // string | Enforces a specific encoding on the
$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'; // string | 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'; // string | 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'; // string | 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 = array('key' => new \stdClass); // 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.
@@ -285,7 +285,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** | **string**| 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** | **string**| 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** | **string**| 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**](../Model/.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/Api/UploadsApi.md b/docs/Api/UploadsApi.md
index 7acb707..48ac83c 100644
--- a/docs/Api/UploadsApi.md
+++ b/docs/Api/UploadsApi.md
@@ -12,7 +12,7 @@ Method | HTTP request | Description
## uploadCreate
-> \Phrase\Model\Upload uploadCreate($project_id, $x_phrase_app_otp, $branch, $file, $file_format, $locale_id, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys)
+> \Phrase\Model\Upload uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys)
Upload a new file
@@ -34,11 +34,11 @@ $apiInstance = new Phrase\Api\UploadsApi(
$config
);
$project_id = 'project_id_example'; // string | Project ID
-$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)
-$branch = 'branch_example'; // string | specify the branch to use
$file = "/path/to/file.txt"; // \SplFileObject | File to be imported
$file_format = 'file_format_example'; // string | File format. Auto-detected when possible and not specified.
-$locale_id = 'locale_id_example'; // string | Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
+$locale_id = 'locale_id_example'; // string | Locale of the file's content. Can be the name or id of the locale. Preferred is id.
+$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)
+$branch = 'branch_example'; // string | specify the branch to use
$tags = 'tags_example'; // string | 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,14 +46,14 @@ $convert_emoji = True; // bool | This option is obsolete. Providing the option w
$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'; // string | Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\".
-$locale_mapping = array('key' => new \stdClass); // object | Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
+$locale_mapping = array('key' => new \stdClass); // object | Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
$format_options = array('key' => new \stdClass); // 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.
$tag_only_affected_keys = false; // bool | Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is `false`
try {
- $result = $apiInstance->uploadCreate($project_id, $x_phrase_app_otp, $branch, $file, $file_format, $locale_id, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
+ $result = $apiInstance->uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UploadsApi->uploadCreate: ', $e->getMessage(), PHP_EOL;
@@ -67,11 +67,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **string**| Project ID |
+ **file** | **\SplFileObject****\SplFileObject**| File to be imported |
+ **file_format** | **string**| File format. Auto-detected when possible and not specified. |
+ **locale_id** | **string**| Locale of the file's content. Can be the name or id of the locale. Preferred is id. |
**x_phrase_app_otp** | **string**| Two-Factor-Authentication token (optional) | [optional]
**branch** | **string**| specify the branch to use | [optional]
- **file** | **\SplFileObject****\SplFileObject**| File to be imported | [optional]
- **file_format** | **string**| File format. Auto-detected when possible and not specified. | [optional]
- **locale_id** | **string**| Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. | [optional]
**tags** | **string**| 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]
@@ -79,7 +79,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** | **string**| Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". | [optional]
- **locale_mapping** | [**object**](../Model/object.md)| Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. | [optional]
+ **locale_mapping** | [**object**](../Model/object.md)| Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. | [optional]
**format_options** | [**object**](../Model/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/Model/AuthorizationCreateParameters.md b/docs/Model/AuthorizationCreateParameters.md
index 1cdb096..10ca4d6 100644
--- a/docs/Model/AuthorizationCreateParameters.md
+++ b/docs/Model/AuthorizationCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**note** | **string** | A note to help you remember what the access is used for. | [optional]
+**note** | **string** | A note to help you remember what the access is used for. |
**scopes** | **string[]** | 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/Model/BlacklistedKeyCreateParameters.md b/docs/Model/BlacklistedKeyCreateParameters.md
index 62cafa8..4311b30 100644
--- a/docs/Model/BlacklistedKeyCreateParameters.md
+++ b/docs/Model/BlacklistedKeyCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Blocked key name | [optional]
+**name** | **string** | 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/Model/BranchCreateParameters.md b/docs/Model/BranchCreateParameters.md
index 16d22ec..3a0928e 100644
--- a/docs/Model/BranchCreateParameters.md
+++ b/docs/Model/BranchCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the branch | [optional]
+**name** | **string** | 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/Model/DistributionCreateParameters.md b/docs/Model/DistributionCreateParameters.md
index eae8d74..f28d1fd 100644
--- a/docs/Model/DistributionCreateParameters.md
+++ b/docs/Model/DistributionCreateParameters.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the distribution | [optional]
-**project_id** | **string** | Project id the distribution should be assigned to. | [optional]
+**name** | **string** | Name of the distribution |
+**project_id** | **string** | Project id the distribution should be assigned to. |
**platforms** | **string[]** | List of platforms the distribution should support. Valid values are: * `android` * `ios` * `flutter` * `i18next` * `rails` | [optional]
**locale_ids** | **string[]** | List of locale ids that will be part of distribution releases | [optional]
**format_options** | **array<string,string>** | Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. | [optional]
diff --git a/docs/Model/FigmaAttachmentCreateParameters.md b/docs/Model/FigmaAttachmentCreateParameters.md
index 1a9bd39..45b8306 100644
--- a/docs/Model/FigmaAttachmentCreateParameters.md
+++ b/docs/Model/FigmaAttachmentCreateParameters.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**url** | **string** | Figma file url | [optional]
+**url** | **string** | 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/Model/GlossaryCreateParameters.md b/docs/Model/GlossaryCreateParameters.md
index 89387db..fde8cbe 100644
--- a/docs/Model/GlossaryCreateParameters.md
+++ b/docs/Model/GlossaryCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the glossary | [optional]
+**name** | **string** | Name of the glossary |
**project_ids** | **string** | List of project ids the glossary should be assigned to. | [optional]
**space_ids** | **string[]** | List of space ids the glossary should be assigned to. | [optional]
diff --git a/docs/Model/GlossaryTermCreateParameters.md b/docs/Model/GlossaryTermCreateParameters.md
index 7ccb97e..4e6a25f 100644
--- a/docs/Model/GlossaryTermCreateParameters.md
+++ b/docs/Model/GlossaryTermCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**term** | **string** | Glossary term | [optional]
+**term** | **string** | Glossary term |
**description** | **string** | 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/Model/GlossaryTermTranslationCreateParameters.md b/docs/Model/GlossaryTermTranslationCreateParameters.md
index 92661ef..e9608b5 100644
--- a/docs/Model/GlossaryTermTranslationCreateParameters.md
+++ b/docs/Model/GlossaryTermTranslationCreateParameters.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**locale_code** | **string** | Identifies the language for this translation | [optional]
-**content** | **string** | The content of the translation | [optional]
+**locale_code** | **string** | Identifies the language for this translation |
+**content** | **string** | 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/Model/InvitationCreateParameters.md b/docs/Model/InvitationCreateParameters.md
index 8aadc53..4135e55 100644
--- a/docs/Model/InvitationCreateParameters.md
+++ b/docs/Model/InvitationCreateParameters.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**email** | **string** | 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** | **string** | Invitiation role, can be any of Manager, Developer, Translator. | [optional]
+**email** | **string** | 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** | **string** | Invitiation role, can be any of Manager, Developer, Translator. |
**project_ids** | **string** | List of project ids the invited user has access to. | [optional]
**locale_ids** | **string** | List of locale ids the invited user has access to. | [optional]
**space_ids** | **string[]** | List of spaces the user is assigned to. | [optional]
diff --git a/docs/Model/JobCreateParameters.md b/docs/Model/JobCreateParameters.md
index 53d8c8c..84d95da 100644
--- a/docs/Model/JobCreateParameters.md
+++ b/docs/Model/JobCreateParameters.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**name** | **string** | Job name | [optional]
+**name** | **string** | Job name |
**source_locale_id** | **string** | The API id of the source language | [optional]
**briefing** | **string** | Briefing for the translators | [optional]
**due_date** | **\DateTime** | Date the job should be finished | [optional]
diff --git a/docs/Model/KeyCreateParameters.md b/docs/Model/KeyCreateParameters.md
index 2732a77..c36f343 100644
--- a/docs/Model/KeyCreateParameters.md
+++ b/docs/Model/KeyCreateParameters.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**name** | **string** | Key name | [optional]
+**name** | **string** | Key name |
**description** | **string** | Key description (usually includes contextual information for translators) | [optional]
**plural** | **bool** | Indicates whether key supports pluralization | [optional]
**name_plural** | **string** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
diff --git a/docs/Model/KeyLink.md b/docs/Model/KeyLink.md
index 8833759..291f0fe 100644
--- a/docs/Model/KeyLink.md
+++ b/docs/Model/KeyLink.md
@@ -4,13 +4,13 @@
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** | [**\Phrase\Model\UserPreview**](UserPreview.md) | |
-**updated_by** | [**\Phrase\Model\UserPreview**](UserPreview.md) | |
-**account** | [**\Phrase\Model\Account**](Account.md) | |
-**parent** | [**\Phrase\Model\KeyPreview**](KeyPreview.md) | |
-**children** | [**\Phrase\Model\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** | [**\Phrase\Model\UserPreview**](UserPreview.md) | | [optional]
+**updated_by** | [**\Phrase\Model\UserPreview**](UserPreview.md) | | [optional]
+**account** | [**\Phrase\Model\Account**](Account.md) | | [optional]
+**parent** | [**\Phrase\Model\KeyPreview**](KeyPreview.md) | | [optional]
+**children** | [**\Phrase\Model\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/Model/KeyLinksBatchDestroyParameters.md b/docs/Model/KeyLinksBatchDestroyParameters.md
index 4ea64a7..d746bce 100644
--- a/docs/Model/KeyLinksBatchDestroyParameters.md
+++ b/docs/Model/KeyLinksBatchDestroyParameters.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**child_key_ids** | **string[]** | 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/Model/LocaleCreateParameters.md b/docs/Model/LocaleCreateParameters.md
index 96b620c..d41a25d 100644
--- a/docs/Model/LocaleCreateParameters.md
+++ b/docs/Model/LocaleCreateParameters.md
@@ -5,12 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**name** | **string** | Locale name | [optional]
-**code** | **string** | Locale ISO code | [optional]
+**name** | **string** | Locale name |
+**code** | **string** | 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** | **string** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
+**source_locale_id** | **string** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
**fallback_locale_id** | **string** | 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/Model/LocaleUpdateParameters.md b/docs/Model/LocaleUpdateParameters.md
index b1be7ff..34d0aed 100644
--- a/docs/Model/LocaleUpdateParameters.md
+++ b/docs/Model/LocaleUpdateParameters.md
@@ -10,7 +10,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** | **string** | Source locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
+**source_locale_id** | **string** | Source locale. Can be the name or id of the locale. Preferred is id. | [optional]
**fallback_locale_id** | **string** | 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/Model/OrderCreateParameters.md b/docs/Model/OrderCreateParameters.md
index 83246e9..7b8e028 100644
--- a/docs/Model/OrderCreateParameters.md
+++ b/docs/Model/OrderCreateParameters.md
@@ -5,10 +5,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**name** | **string** | the name of the order, default name is: Translation order from 'current datetime' | [optional]
-**lsp** | **string** | Name of the LSP that should process this order. Can be one of gengo, textmaster. | [optional]
-**source_locale_id** | **string** | 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** | **string[]** | 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** | **string** | the name of the order, default name is: Translation order from 'current datetime' |
+**lsp** | **string** | Name of the LSP that should process this order. Can be one of gengo, textmaster. |
+**source_locale_id** | **string** | Source locale for the order. Can be the name or id of the source locale. Preferred is id. | [optional]
+**target_locale_ids** | **string[]** | 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** | **string** | 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** | **string** | Tag you want to order translations for. | [optional]
**message** | **string** | Message that is displayed to the translators for description. | [optional]
diff --git a/docs/Model/ProjectCreateParameters.md b/docs/Model/ProjectCreateParameters.md
index a0ad735..763dcfb 100644
--- a/docs/Model/ProjectCreateParameters.md
+++ b/docs/Model/ProjectCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the project | [optional]
+**name** | **string** | Name of the project |
**main_format** | **string** | 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** | **string** | (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/Model/ScreenshotMarkerCreateParameters.md b/docs/Model/ScreenshotMarkerCreateParameters.md
index 9c24290..468f08e 100644
--- a/docs/Model/ScreenshotMarkerCreateParameters.md
+++ b/docs/Model/ScreenshotMarkerCreateParameters.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**key_id** | **string** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
+**key_id** | **string** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. |
**presentation** | **string** | 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/Model/SpaceCreateParameters.md b/docs/Model/SpaceCreateParameters.md
index 37e3ca5..4a2972f 100644
--- a/docs/Model/SpaceCreateParameters.md
+++ b/docs/Model/SpaceCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the space | [optional]
+**name** | **string** | 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/Model/SpacesProjectsCreateParameters.md b/docs/Model/SpacesProjectsCreateParameters.md
index 92eca5a..13f9b1d 100644
--- a/docs/Model/SpacesProjectsCreateParameters.md
+++ b/docs/Model/SpacesProjectsCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **string** | Project ID to add or to the Space | [optional]
+**id** | **string** | 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/Model/StyleguideCreateParameters.md b/docs/Model/StyleguideCreateParameters.md
index 9a08ddc..a1dd685 100644
--- a/docs/Model/StyleguideCreateParameters.md
+++ b/docs/Model/StyleguideCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**title** | **string** | Style guide title | [optional]
+**title** | **string** | Style guide title |
**audience** | **string** | Audience description | [optional]
**target_audience** | **string** | Can be one of: not_specified, children, teenager, young_adults, adults, old_adults. | [optional]
**grammatical_person** | **string** | 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/Model/TagCreateParameters.md b/docs/Model/TagCreateParameters.md
index d395574..bdb0f07 100644
--- a/docs/Model/TagCreateParameters.md
+++ b/docs/Model/TagCreateParameters.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**name** | **string** | Name of the tag | [optional]
+**name** | **string** | 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/Model/TeamCreateParameters.md b/docs/Model/TeamCreateParameters.md
index ff84dc4..2a57b87 100644
--- a/docs/Model/TeamCreateParameters.md
+++ b/docs/Model/TeamCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the team | [optional]
+**name** | **string** | 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/Model/TeamsProjectsCreateParameters.md b/docs/Model/TeamsProjectsCreateParameters.md
index b2bf904..cc03c37 100644
--- a/docs/Model/TeamsProjectsCreateParameters.md
+++ b/docs/Model/TeamsProjectsCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **string** | Project ID to add to the Team | [optional]
+**id** | **string** | 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/Model/TeamsSpacesCreateParameters.md b/docs/Model/TeamsSpacesCreateParameters.md
index 09f3edb..b2a1ce0 100644
--- a/docs/Model/TeamsSpacesCreateParameters.md
+++ b/docs/Model/TeamsSpacesCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **string** | Space ID to add to the Team | [optional]
+**id** | **string** | 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/Model/TeamsUsersCreateParameters.md b/docs/Model/TeamsUsersCreateParameters.md
index 6db21a4..e867c43 100644
--- a/docs/Model/TeamsUsersCreateParameters.md
+++ b/docs/Model/TeamsUsersCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**id** | **string** | User ID to add to the Team | [optional]
+**id** | **string** | 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/Model/TranslationCreateParameters.md b/docs/Model/TranslationCreateParameters.md
index b744fa1..8728b6e 100644
--- a/docs/Model/TranslationCreateParameters.md
+++ b/docs/Model/TranslationCreateParameters.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**branch** | **string** | specify the branch to use | [optional]
-**locale_id** | **string** | Locale. Can be the name or public id of the locale. Preferred is the public id. | [optional]
+**locale_id** | **string** | Locale. Can be the name or id of the locale. Preferred is id | [optional]
**key_id** | **string** | Key | [optional]
**content** | **string** | Translation content | [optional]
**plural_suffix** | **string** | 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/Model/VariableCreateParameters.md b/docs/Model/VariableCreateParameters.md
index f129670..ebf868e 100644
--- a/docs/Model/VariableCreateParameters.md
+++ b/docs/Model/VariableCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **string** | Name of the variable | [optional]
+**name** | **string** | Name of the variable |
**value** | **string** | 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/Model/WebhookCreateParameters.md b/docs/Model/WebhookCreateParameters.md
index a86e8cd..581eb6a 100644
--- a/docs/Model/WebhookCreateParameters.md
+++ b/docs/Model/WebhookCreateParameters.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**callback_url** | **string** | Callback URL to send requests to | [optional]
+**callback_url** | **string** | Callback URL to send requests to |
**secret** | **string** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
**description** | **string** | Webhook description | [optional]
**events** | **string** | List of event names to trigger the webhook (separated by comma) | [optional]
diff --git a/lib/Api/ICUApi.php b/lib/Api/ICUApi.php
index 10568d7..4c57e7c 100644
--- a/lib/Api/ICUApi.php
+++ b/lib/Api/ICUApi.php
@@ -116,7 +116,7 @@ public function getConfig()
/**
* Operation icuSkeleton
*
- * Build icu skeletons
+ * Build ICU skeletons
*
* @param \Phrase\Model\IcuSkeletonParameters $icu_skeleton_parameters icu_skeleton_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
@@ -134,7 +134,7 @@ public function icuSkeleton($icu_skeleton_parameters, $x_phrase_app_otp = null)
/**
* Operation icuSkeletonWithHttpInfo
*
- * Build icu skeletons
+ * Build ICU skeletons
*
* @param \Phrase\Model\IcuSkeletonParameters $icu_skeleton_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
@@ -223,7 +223,7 @@ public function icuSkeletonWithHttpInfo($icu_skeleton_parameters, $x_phrase_app_
/**
* Operation icuSkeletonAsync
*
- * Build icu skeletons
+ * Build ICU skeletons
*
* @param \Phrase\Model\IcuSkeletonParameters $icu_skeleton_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
@@ -244,7 +244,7 @@ function ($response) {
/**
* Operation icuSkeletonAsyncWithHttpInfo
*
- * Build icu skeletons
+ * Build ICU skeletons
*
* @param \Phrase\Model\IcuSkeletonParameters $icu_skeleton_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
diff --git a/lib/Api/LinkedKeysApi.php b/lib/Api/LinkedKeysApi.php
index 165bfd5..04c9395 100644
--- a/lib/Api/LinkedKeysApi.php
+++ b/lib/Api/LinkedKeysApi.php
@@ -122,15 +122,14 @@ public function getConfig()
* @param string $id Parent Translation Key ID (required)
* @param \Phrase\Model\KeyLinksBatchDestroyParameters $key_links_batch_destroy_parameters key_links_batch_destroy_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
- * @param bool $unlink_parent Whether to unlink the parent key as well and unmark it as linked-key. (optional)
*
* @throws \Phrase\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
- public function keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null, $unlink_parent = null)
+ public function keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null)
{
- $this->keyLinksBatchDestroyWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp, $unlink_parent);
+ $this->keyLinksBatchDestroyWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp);
}
/**
@@ -142,15 +141,14 @@ public function keyLinksBatchDestroy($project_id, $id, $key_links_batch_destroy_
* @param string $id Parent Translation Key ID (required)
* @param \Phrase\Model\KeyLinksBatchDestroyParameters $key_links_batch_destroy_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
- * @param bool $unlink_parent Whether to unlink the parent key as well and unmark it as linked-key. (optional)
*
* @throws \Phrase\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
- public function keyLinksBatchDestroyWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null, $unlink_parent = null)
+ public function keyLinksBatchDestroyWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null)
{
- $request = $this->keyLinksBatchDestroyRequest($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp, $unlink_parent);
+ $request = $this->keyLinksBatchDestroyRequest($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp);
try {
$options = $this->createHttpClientOption();
@@ -206,14 +204,13 @@ public function keyLinksBatchDestroyWithHttpInfo($project_id, $id, $key_links_ba
* @param string $id Parent Translation Key ID (required)
* @param \Phrase\Model\KeyLinksBatchDestroyParameters $key_links_batch_destroy_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
- * @param bool $unlink_parent Whether to unlink the parent key as well and unmark it as linked-key. (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function keyLinksBatchDestroyAsync($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null, $unlink_parent = null)
+ public function keyLinksBatchDestroyAsync($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null)
{
- return $this->keyLinksBatchDestroyAsyncWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp, $unlink_parent)
+ return $this->keyLinksBatchDestroyAsyncWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp)
->then(
function ($response) {
return $response[0];
@@ -230,15 +227,14 @@ function ($response) {
* @param string $id Parent Translation Key ID (required)
* @param \Phrase\Model\KeyLinksBatchDestroyParameters $key_links_batch_destroy_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
- * @param bool $unlink_parent Whether to unlink the parent key as well and unmark it as linked-key. (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function keyLinksBatchDestroyAsyncWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null, $unlink_parent = null)
+ public function keyLinksBatchDestroyAsyncWithHttpInfo($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null)
{
$returnType = '';
- $request = $this->keyLinksBatchDestroyRequest($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp, $unlink_parent);
+ $request = $this->keyLinksBatchDestroyRequest($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -270,12 +266,11 @@ function ($exception) {
* @param string $id Parent Translation Key ID (required)
* @param \Phrase\Model\KeyLinksBatchDestroyParameters $key_links_batch_destroy_parameters (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
- * @param bool $unlink_parent Whether to unlink the parent key as well and unmark it as linked-key. (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function keyLinksBatchDestroyRequest($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null, $unlink_parent = null)
+ protected function keyLinksBatchDestroyRequest($project_id, $id, $key_links_batch_destroy_parameters, $x_phrase_app_otp = null)
{
// verify the required parameter 'project_id' is set
if ($project_id === null || (is_array($project_id) && count($project_id) === 0)) {
@@ -303,17 +298,6 @@ protected function keyLinksBatchDestroyRequest($project_id, $id, $key_links_batc
$httpBody = '';
$multipart = false;
- // query params
- if ($unlink_parent !== null) {
- if('form' === 'form' && is_array($unlink_parent)) {
- foreach($unlink_parent as $key => $value) {
- $queryParams[$key] = $value;
- }
- }
- else {
- $queryParams['unlink_parent'] = $unlink_parent;
- }
- }
// header params
if ($x_phrase_app_otp !== null) {
@@ -1049,7 +1033,7 @@ protected function keyLinksDestroyRequest($project_id, $id, $child_key_id, $x_ph
/**
* Operation keyLinksIndex
*
- * Retrieve all child keys linked to a specific parent key
+ * List child keys of a parent key
*
* @param string $project_id Project ID (required)
* @param string $id Parent Translation Key ID (required)
@@ -1068,7 +1052,7 @@ public function keyLinksIndex($project_id, $id, $x_phrase_app_otp = null)
/**
* Operation keyLinksIndexWithHttpInfo
*
- * Retrieve all child keys linked to a specific parent key
+ * List child keys of a parent key
*
* @param string $project_id Project ID (required)
* @param string $id Parent Translation Key ID (required)
@@ -1178,7 +1162,7 @@ public function keyLinksIndexWithHttpInfo($project_id, $id, $x_phrase_app_otp =
/**
* Operation keyLinksIndexAsync
*
- * Retrieve all child keys linked to a specific parent key
+ * List child keys of a parent key
*
* @param string $project_id Project ID (required)
* @param string $id Parent Translation Key ID (required)
@@ -1200,7 +1184,7 @@ function ($response) {
/**
* Operation keyLinksIndexAsyncWithHttpInfo
*
- * Retrieve all child keys linked to a specific parent key
+ * List child keys of a parent key
*
* @param string $project_id Project ID (required)
* @param string $id Parent Translation Key ID (required)
diff --git a/lib/Api/LocalesApi.php b/lib/Api/LocalesApi.php
index 5a2e7f1..d8c3edd 100644
--- a/lib/Api/LocalesApi.php
+++ b/lib/Api/LocalesApi.php
@@ -1043,7 +1043,7 @@ protected function localeDeleteRequest($project_id, $id, $x_phrase_app_otp = nul
* @param bool $skip_unverified_translations 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)
* @param bool $include_unverified_translations if set to false unverified translations are excluded (optional)
* @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. (optional)
- * @param string $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 <code>true</code>. (optional)
+ * @param string $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 <code>true</code>. (optional)
* @param string $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 <code>tag</code> parameter indicating a specific job. (optional)
* @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. (optional)
*
@@ -1081,7 +1081,7 @@ public function localeDownload($project_id, $id, $x_phrase_app_otp = null, $if_m
* @param bool $skip_unverified_translations 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)
* @param bool $include_unverified_translations if set to false unverified translations are excluded (optional)
* @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. (optional)
- * @param string $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 <code>true</code>. (optional)
+ * @param string $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 <code>true</code>. (optional)
* @param string $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 <code>tag</code> parameter indicating a specific job. (optional)
* @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. (optional)
*
@@ -1190,7 +1190,7 @@ public function localeDownloadWithHttpInfo($project_id, $id, $x_phrase_app_otp =
* @param bool $skip_unverified_translations 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)
* @param bool $include_unverified_translations if set to false unverified translations are excluded (optional)
* @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. (optional)
- * @param string $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 <code>true</code>. (optional)
+ * @param string $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 <code>true</code>. (optional)
* @param string $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 <code>tag</code> parameter indicating a specific job. (optional)
* @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. (optional)
*
@@ -1231,7 +1231,7 @@ function ($response) {
* @param bool $skip_unverified_translations 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)
* @param bool $include_unverified_translations if set to false unverified translations are excluded (optional)
* @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. (optional)
- * @param string $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 <code>true</code>. (optional)
+ * @param string $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 <code>true</code>. (optional)
* @param string $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 <code>tag</code> parameter indicating a specific job. (optional)
* @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. (optional)
*
@@ -1299,7 +1299,7 @@ function ($exception) {
* @param bool $skip_unverified_translations 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)
* @param bool $include_unverified_translations if set to false unverified translations are excluded (optional)
* @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. (optional)
- * @param string $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 <code>true</code>. (optional)
+ * @param string $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 <code>true</code>. (optional)
* @param string $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 <code>tag</code> parameter indicating a specific job. (optional)
* @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. (optional)
*
diff --git a/lib/Api/UploadsApi.php b/lib/Api/UploadsApi.php
index e3a43b8..25246bd 100644
--- a/lib/Api/UploadsApi.php
+++ b/lib/Api/UploadsApi.php
@@ -119,11 +119,11 @@ public function getConfig()
* Upload a new file
*
* @param string $project_id Project ID (required)
+ * @param \SplFileObject $file File to be imported (required)
+ * @param string $file_format File format. Auto-detected when possible and not specified. (required)
+ * @param string $locale_id Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
* @param string $branch specify the branch to use (optional)
- * @param \SplFileObject $file File to be imported (optional)
- * @param string $file_format File format. Auto-detected when possible and not specified. (optional)
- * @param string $locale_id Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. (optional)
* @param string $tags List of tags separated by comma to be associated with the new keys contained in the upload. (optional)
* @param bool $update_translations Indicates whether existing translations should be updated with the file content. (optional)
* @param bool $update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. (optional)
@@ -131,7 +131,7 @@ public function getConfig()
* @param bool $skip_upload_tags Indicates whether the upload should not create upload tags. (optional)
* @param bool $skip_unverification Indicates whether the upload should unverify updated translations. (optional)
* @param string $file_encoding Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". (optional)
- * @param object $locale_mapping Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. (optional)
+ * @param object $locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. (optional)
* @param object $format_options Additional options available for specific formats. See our format guide for complete list. (optional)
* @param bool $autotranslate If set, translations for the uploaded language will be fetched automatically. (optional)
* @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. (optional)
@@ -141,9 +141,9 @@ public function getConfig()
* @throws \InvalidArgumentException
* @return \Phrase\Model\Upload
*/
- public function uploadCreate($project_id, $x_phrase_app_otp = null, $branch = null, $file = null, $file_format = null, $locale_id = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
+ public function uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp = null, $branch = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
{
- list($response) = $this->uploadCreateWithHttpInfo($project_id, $x_phrase_app_otp, $branch, $file, $file_format, $locale_id, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
+ list($response) = $this->uploadCreateWithHttpInfo($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
return $response;
}
@@ -153,11 +153,11 @@ public function uploadCreate($project_id, $x_phrase_app_otp = null, $branch = nu
* Upload a new file
*
* @param string $project_id Project ID (required)
+ * @param \SplFileObject $file File to be imported (required)
+ * @param string $file_format File format. Auto-detected when possible and not specified. (required)
+ * @param string $locale_id Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
* @param string $branch specify the branch to use (optional)
- * @param \SplFileObject $file File to be imported (optional)
- * @param string $file_format File format. Auto-detected when possible and not specified. (optional)
- * @param string $locale_id Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. (optional)
* @param string $tags List of tags separated by comma to be associated with the new keys contained in the upload. (optional)
* @param bool $update_translations Indicates whether existing translations should be updated with the file content. (optional)
* @param bool $update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. (optional)
@@ -165,7 +165,7 @@ public function uploadCreate($project_id, $x_phrase_app_otp = null, $branch = nu
* @param bool $skip_upload_tags Indicates whether the upload should not create upload tags. (optional)
* @param bool $skip_unverification Indicates whether the upload should unverify updated translations. (optional)
* @param string $file_encoding Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". (optional)
- * @param object $locale_mapping Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. (optional)
+ * @param object $locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. (optional)
* @param object $format_options Additional options available for specific formats. See our format guide for complete list. (optional)
* @param bool $autotranslate If set, translations for the uploaded language will be fetched automatically. (optional)
* @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. (optional)
@@ -175,9 +175,9 @@ public function uploadCreate($project_id, $x_phrase_app_otp = null, $branch = nu
* @throws \InvalidArgumentException
* @return array of \Phrase\Model\Upload, HTTP status code, HTTP response headers (array of strings)
*/
- public function uploadCreateWithHttpInfo($project_id, $x_phrase_app_otp = null, $branch = null, $file = null, $file_format = null, $locale_id = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
+ public function uploadCreateWithHttpInfo($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp = null, $branch = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
{
- $request = $this->uploadCreateRequest($project_id, $x_phrase_app_otp, $branch, $file, $file_format, $locale_id, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
+ $request = $this->uploadCreateRequest($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
try {
$options = $this->createHttpClientOption();
@@ -258,11 +258,11 @@ public function uploadCreateWithHttpInfo($project_id, $x_phrase_app_otp = null,
* Upload a new file
*
* @param string $project_id Project ID (required)
+ * @param \SplFileObject $file File to be imported (required)
+ * @param string $file_format File format. Auto-detected when possible and not specified. (required)
+ * @param string $locale_id Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
* @param string $branch specify the branch to use (optional)
- * @param \SplFileObject $file File to be imported (optional)
- * @param string $file_format File format. Auto-detected when possible and not specified. (optional)
- * @param string $locale_id Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. (optional)
* @param string $tags List of tags separated by comma to be associated with the new keys contained in the upload. (optional)
* @param bool $update_translations Indicates whether existing translations should be updated with the file content. (optional)
* @param bool $update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. (optional)
@@ -270,7 +270,7 @@ public function uploadCreateWithHttpInfo($project_id, $x_phrase_app_otp = null,
* @param bool $skip_upload_tags Indicates whether the upload should not create upload tags. (optional)
* @param bool $skip_unverification Indicates whether the upload should unverify updated translations. (optional)
* @param string $file_encoding Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". (optional)
- * @param object $locale_mapping Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. (optional)
+ * @param object $locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. (optional)
* @param object $format_options Additional options available for specific formats. See our format guide for complete list. (optional)
* @param bool $autotranslate If set, translations for the uploaded language will be fetched automatically. (optional)
* @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. (optional)
@@ -279,9 +279,9 @@ public function uploadCreateWithHttpInfo($project_id, $x_phrase_app_otp = null,
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function uploadCreateAsync($project_id, $x_phrase_app_otp = null, $branch = null, $file = null, $file_format = null, $locale_id = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
+ public function uploadCreateAsync($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp = null, $branch = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
{
- return $this->uploadCreateAsyncWithHttpInfo($project_id, $x_phrase_app_otp, $branch, $file, $file_format, $locale_id, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys)
+ return $this->uploadCreateAsyncWithHttpInfo($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys)
->then(
function ($response) {
return $response[0];
@@ -295,11 +295,11 @@ function ($response) {
* Upload a new file
*
* @param string $project_id Project ID (required)
+ * @param \SplFileObject $file File to be imported (required)
+ * @param string $file_format File format. Auto-detected when possible and not specified. (required)
+ * @param string $locale_id Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
* @param string $branch specify the branch to use (optional)
- * @param \SplFileObject $file File to be imported (optional)
- * @param string $file_format File format. Auto-detected when possible and not specified. (optional)
- * @param string $locale_id Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. (optional)
* @param string $tags List of tags separated by comma to be associated with the new keys contained in the upload. (optional)
* @param bool $update_translations Indicates whether existing translations should be updated with the file content. (optional)
* @param bool $update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. (optional)
@@ -307,7 +307,7 @@ function ($response) {
* @param bool $skip_upload_tags Indicates whether the upload should not create upload tags. (optional)
* @param bool $skip_unverification Indicates whether the upload should unverify updated translations. (optional)
* @param string $file_encoding Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". (optional)
- * @param object $locale_mapping Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. (optional)
+ * @param object $locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. (optional)
* @param object $format_options Additional options available for specific formats. See our format guide for complete list. (optional)
* @param bool $autotranslate If set, translations for the uploaded language will be fetched automatically. (optional)
* @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. (optional)
@@ -316,10 +316,10 @@ function ($response) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function uploadCreateAsyncWithHttpInfo($project_id, $x_phrase_app_otp = null, $branch = null, $file = null, $file_format = null, $locale_id = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
+ public function uploadCreateAsyncWithHttpInfo($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp = null, $branch = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
{
$returnType = '\Phrase\Model\Upload';
- $request = $this->uploadCreateRequest($project_id, $x_phrase_app_otp, $branch, $file, $file_format, $locale_id, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
+ $request = $this->uploadCreateRequest($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $mark_reviewed, $tag_only_affected_keys);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -359,11 +359,11 @@ function ($exception) {
* Create request for operation 'uploadCreate'
*
* @param string $project_id Project ID (required)
+ * @param \SplFileObject $file File to be imported (required)
+ * @param string $file_format File format. Auto-detected when possible and not specified. (required)
+ * @param string $locale_id Locale of the file's content. Can be the name or id of the locale. Preferred is id. (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
* @param string $branch specify the branch to use (optional)
- * @param \SplFileObject $file File to be imported (optional)
- * @param string $file_format File format. Auto-detected when possible and not specified. (optional)
- * @param string $locale_id Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id. (optional)
* @param string $tags List of tags separated by comma to be associated with the new keys contained in the upload. (optional)
* @param bool $update_translations Indicates whether existing translations should be updated with the file content. (optional)
* @param bool $update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. (optional)
@@ -371,7 +371,7 @@ function ($exception) {
* @param bool $skip_upload_tags Indicates whether the upload should not create upload tags. (optional)
* @param bool $skip_unverification Indicates whether the upload should unverify updated translations. (optional)
* @param string $file_encoding Enforces a specific encoding on the file contents. Valid options are \\\"UTF-8\\\", \\\"UTF-16\\\" and \\\"ISO-8859-1\\\". (optional)
- * @param object $locale_mapping Optional, format specific mapping between locale names and the columns the translations to those locales are contained in. (optional)
+ * @param object $locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. (optional)
* @param object $format_options Additional options available for specific formats. See our format guide for complete list. (optional)
* @param bool $autotranslate If set, translations for the uploaded language will be fetched automatically. (optional)
* @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. (optional)
@@ -380,7 +380,7 @@ function ($exception) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function uploadCreateRequest($project_id, $x_phrase_app_otp = null, $branch = null, $file = null, $file_format = null, $locale_id = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
+ protected function uploadCreateRequest($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp = null, $branch = null, $tags = null, $update_translations = null, $update_descriptions = null, $convert_emoji = null, $skip_upload_tags = null, $skip_unverification = null, $file_encoding = null, $locale_mapping = null, $format_options = null, $autotranslate = null, $mark_reviewed = null, $tag_only_affected_keys = false)
{
// verify the required parameter 'project_id' is set
if ($project_id === null || (is_array($project_id) && count($project_id) === 0)) {
@@ -388,6 +388,24 @@ protected function uploadCreateRequest($project_id, $x_phrase_app_otp = null, $b
'Missing the required parameter $project_id when calling uploadCreate'
);
}
+ // verify the required parameter 'file' is set
+ if ($file === null || (is_array($file) && count($file) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $file when calling uploadCreate'
+ );
+ }
+ // verify the required parameter 'file_format' is set
+ if ($file_format === null || (is_array($file_format) && count($file_format) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $file_format when calling uploadCreate'
+ );
+ }
+ // verify the required parameter 'locale_id' is set
+ if ($locale_id === null || (is_array($locale_id) && count($locale_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $locale_id when calling uploadCreate'
+ );
+ }
$resourcePath = '/projects/{project_id}/uploads';
$formParams = [];
diff --git a/lib/Model/AuthorizationCreateParameters.php b/lib/Model/AuthorizationCreateParameters.php
index 8a303a7..671a97d 100644
--- a/lib/Model/AuthorizationCreateParameters.php
+++ b/lib/Model/AuthorizationCreateParameters.php
@@ -199,6 +199,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['note'] === null) {
+ $invalidProperties[] = "'note' can't be null";
+ }
return $invalidProperties;
}
@@ -217,7 +220,7 @@ public function valid()
/**
* Gets note
*
- * @return string|null
+ * @return string
*/
public function getNote()
{
@@ -227,7 +230,7 @@ public function getNote()
/**
* Sets note
*
- * @param string|null $note A note to help you remember what the access is used for.
+ * @param string $note A note to help you remember what the access is used for.
*
* @return $this
*/
diff --git a/lib/Model/BlacklistedKeyCreateParameters.php b/lib/Model/BlacklistedKeyCreateParameters.php
index b562388..e6164e1 100644
--- a/lib/Model/BlacklistedKeyCreateParameters.php
+++ b/lib/Model/BlacklistedKeyCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -215,7 +218,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Blocked key name
+ * @param string $name Blocked key name
*
* @return $this
*/
diff --git a/lib/Model/BranchCreateParameters.php b/lib/Model/BranchCreateParameters.php
index a65c447..dcc8b8f 100644
--- a/lib/Model/BranchCreateParameters.php
+++ b/lib/Model/BranchCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -215,7 +218,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the branch
+ * @param string $name Name of the branch
*
* @return $this
*/
diff --git a/lib/Model/DistributionCreateParameters.php b/lib/Model/DistributionCreateParameters.php
index dc73064..724cd03 100644
--- a/lib/Model/DistributionCreateParameters.php
+++ b/lib/Model/DistributionCreateParameters.php
@@ -235,6 +235,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['project_id'] === null) {
+ $invalidProperties[] = "'project_id' can't be null";
+ }
return $invalidProperties;
}
@@ -253,7 +259,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -263,7 +269,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the distribution
+ * @param string $name Name of the distribution
*
* @return $this
*/
@@ -277,7 +283,7 @@ public function setName($name)
/**
* Gets project_id
*
- * @return string|null
+ * @return string
*/
public function getProjectId()
{
@@ -287,7 +293,7 @@ public function getProjectId()
/**
* Sets project_id
*
- * @param string|null $project_id Project id the distribution should be assigned to.
+ * @param string $project_id Project id the distribution should be assigned to.
*
* @return $this
*/
diff --git a/lib/Model/FigmaAttachmentCreateParameters.php b/lib/Model/FigmaAttachmentCreateParameters.php
index b3e6902..f6cabf5 100644
--- a/lib/Model/FigmaAttachmentCreateParameters.php
+++ b/lib/Model/FigmaAttachmentCreateParameters.php
@@ -193,6 +193,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['url'] === null) {
+ $invalidProperties[] = "'url' can't be null";
+ }
return $invalidProperties;
}
@@ -235,7 +238,7 @@ public function setBranch($branch)
/**
* Gets url
*
- * @return string|null
+ * @return string
*/
public function getUrl()
{
@@ -245,7 +248,7 @@ public function getUrl()
/**
* Sets url
*
- * @param string|null $url Figma file url
+ * @param string $url Figma file url
*
* @return $this
*/
diff --git a/lib/Model/GlossaryCreateParameters.php b/lib/Model/GlossaryCreateParameters.php
index 488c18c..56189f4 100644
--- a/lib/Model/GlossaryCreateParameters.php
+++ b/lib/Model/GlossaryCreateParameters.php
@@ -199,6 +199,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -217,7 +220,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -227,7 +230,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the glossary
+ * @param string $name Name of the glossary
*
* @return $this
*/
diff --git a/lib/Model/GlossaryTermCreateParameters.php b/lib/Model/GlossaryTermCreateParameters.php
index 836a012..a6d76b4 100644
--- a/lib/Model/GlossaryTermCreateParameters.php
+++ b/lib/Model/GlossaryTermCreateParameters.php
@@ -205,6 +205,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['term'] === null) {
+ $invalidProperties[] = "'term' can't be null";
+ }
return $invalidProperties;
}
@@ -223,7 +226,7 @@ public function valid()
/**
* Gets term
*
- * @return string|null
+ * @return string
*/
public function getTerm()
{
@@ -233,7 +236,7 @@ public function getTerm()
/**
* Sets term
*
- * @param string|null $term Glossary term
+ * @param string $term Glossary term
*
* @return $this
*/
diff --git a/lib/Model/GlossaryTermTranslationCreateParameters.php b/lib/Model/GlossaryTermTranslationCreateParameters.php
index 4d91dac..67269b7 100644
--- a/lib/Model/GlossaryTermTranslationCreateParameters.php
+++ b/lib/Model/GlossaryTermTranslationCreateParameters.php
@@ -193,6 +193,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['locale_code'] === null) {
+ $invalidProperties[] = "'locale_code' can't be null";
+ }
+ if ($this->container['content'] === null) {
+ $invalidProperties[] = "'content' can't be null";
+ }
return $invalidProperties;
}
@@ -211,7 +217,7 @@ public function valid()
/**
* Gets locale_code
*
- * @return string|null
+ * @return string
*/
public function getLocaleCode()
{
@@ -221,7 +227,7 @@ public function getLocaleCode()
/**
* Sets locale_code
*
- * @param string|null $locale_code Identifies the language for this translation
+ * @param string $locale_code Identifies the language for this translation
*
* @return $this
*/
@@ -235,7 +241,7 @@ public function setLocaleCode($locale_code)
/**
* Gets content
*
- * @return string|null
+ * @return string
*/
public function getContent()
{
@@ -245,7 +251,7 @@ public function getContent()
/**
* Sets content
*
- * @param string|null $content The content of the translation
+ * @param string $content The content of the translation
*
* @return $this
*/
diff --git a/lib/Model/InvitationCreateParameters.php b/lib/Model/InvitationCreateParameters.php
index 248d9a1..e5b15e6 100644
--- a/lib/Model/InvitationCreateParameters.php
+++ b/lib/Model/InvitationCreateParameters.php
@@ -229,6 +229,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['email'] === null) {
+ $invalidProperties[] = "'email' can't be null";
+ }
+ if ($this->container['role'] === null) {
+ $invalidProperties[] = "'role' can't be null";
+ }
return $invalidProperties;
}
@@ -247,7 +253,7 @@ public function valid()
/**
* Gets email
*
- * @return string|null
+ * @return string
*/
public function getEmail()
{
@@ -257,7 +263,7 @@ public function getEmail()
/**
* Sets email
*
- * @param string|null $email The email of the invited user. The email
can not be updated once created. Create a new invitation for each unique email.
+ * @param string $email The email of the invited user. The email
can not be updated once created. Create a new invitation for each unique email.
*
* @return $this
*/
@@ -271,7 +277,7 @@ public function setEmail($email)
/**
* Gets role
*
- * @return string|null
+ * @return string
*/
public function getRole()
{
@@ -281,7 +287,7 @@ public function getRole()
/**
* Sets role
*
- * @param string|null $role Invitiation role, can be any of Manager, Developer, Translator.
+ * @param string $role Invitiation role, can be any of Manager, Developer, Translator.
*
* @return $this
*/
diff --git a/lib/Model/JobCreateParameters.php b/lib/Model/JobCreateParameters.php
index bf40475..abb0c76 100644
--- a/lib/Model/JobCreateParameters.php
+++ b/lib/Model/JobCreateParameters.php
@@ -235,6 +235,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -277,7 +280,7 @@ public function setBranch($branch)
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -287,7 +290,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Job name
+ * @param string $name Job name
*
* @return $this
*/
diff --git a/lib/Model/KeyCreateParameters.php b/lib/Model/KeyCreateParameters.php
index 5b17fb7..8603680 100644
--- a/lib/Model/KeyCreateParameters.php
+++ b/lib/Model/KeyCreateParameters.php
@@ -283,6 +283,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -325,7 +328,7 @@ public function setBranch($branch)
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -335,7 +338,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Key name
+ * @param string $name Key name
*
* @return $this
*/
diff --git a/lib/Model/KeyLink.php b/lib/Model/KeyLink.php
index 079d0b8..5397fe4 100644
--- a/lib/Model/KeyLink.php
+++ b/lib/Model/KeyLink.php
@@ -223,27 +223,6 @@ public function listInvalidProperties()
{
$invalidProperties = [];
- if ($this->container['created_at'] === null) {
- $invalidProperties[] = "'created_at' can't be null";
- }
- if ($this->container['updated_at'] === null) {
- $invalidProperties[] = "'updated_at' can't be null";
- }
- if ($this->container['created_by'] === null) {
- $invalidProperties[] = "'created_by' can't be null";
- }
- if ($this->container['updated_by'] === null) {
- $invalidProperties[] = "'updated_by' can't be null";
- }
- if ($this->container['account'] === null) {
- $invalidProperties[] = "'account' can't be null";
- }
- if ($this->container['parent'] === null) {
- $invalidProperties[] = "'parent' can't be null";
- }
- if ($this->container['children'] === null) {
- $invalidProperties[] = "'children' can't be null";
- }
return $invalidProperties;
}
@@ -262,7 +241,7 @@ public function valid()
/**
* Gets created_at
*
- * @return \DateTime
+ * @return \DateTime|null
*/
public function getCreatedAt()
{
@@ -272,7 +251,7 @@ public function getCreatedAt()
/**
* Sets created_at
*
- * @param \DateTime $created_at The timestamp when the link was created.
+ * @param \DateTime|null $created_at The timestamp when the link was created.
*
* @return $this
*/
@@ -286,7 +265,7 @@ public function setCreatedAt($created_at)
/**
* Gets updated_at
*
- * @return \DateTime
+ * @return \DateTime|null
*/
public function getUpdatedAt()
{
@@ -296,7 +275,7 @@ public function getUpdatedAt()
/**
* Sets updated_at
*
- * @param \DateTime $updated_at The timestamp when the link was last updated.
+ * @param \DateTime|null $updated_at The timestamp when the link was last updated.
*
* @return $this
*/
@@ -310,7 +289,7 @@ public function setUpdatedAt($updated_at)
/**
* Gets created_by
*
- * @return \Phrase\Model\UserPreview
+ * @return \Phrase\Model\UserPreview|null
*/
public function getCreatedBy()
{
@@ -320,7 +299,7 @@ public function getCreatedBy()
/**
* Sets created_by
*
- * @param \Phrase\Model\UserPreview $created_by created_by
+ * @param \Phrase\Model\UserPreview|null $created_by created_by
*
* @return $this
*/
@@ -334,7 +313,7 @@ public function setCreatedBy($created_by)
/**
* Gets updated_by
*
- * @return \Phrase\Model\UserPreview
+ * @return \Phrase\Model\UserPreview|null
*/
public function getUpdatedBy()
{
@@ -344,7 +323,7 @@ public function getUpdatedBy()
/**
* Sets updated_by
*
- * @param \Phrase\Model\UserPreview $updated_by updated_by
+ * @param \Phrase\Model\UserPreview|null $updated_by updated_by
*
* @return $this
*/
@@ -358,7 +337,7 @@ public function setUpdatedBy($updated_by)
/**
* Gets account
*
- * @return \Phrase\Model\Account
+ * @return \Phrase\Model\Account|null
*/
public function getAccount()
{
@@ -368,7 +347,7 @@ public function getAccount()
/**
* Sets account
*
- * @param \Phrase\Model\Account $account account
+ * @param \Phrase\Model\Account|null $account account
*
* @return $this
*/
@@ -382,7 +361,7 @@ public function setAccount($account)
/**
* Gets parent
*
- * @return \Phrase\Model\KeyPreview
+ * @return \Phrase\Model\KeyPreview|null
*/
public function getParent()
{
@@ -392,7 +371,7 @@ public function getParent()
/**
* Sets parent
*
- * @param \Phrase\Model\KeyPreview $parent parent
+ * @param \Phrase\Model\KeyPreview|null $parent parent
*
* @return $this
*/
@@ -406,7 +385,7 @@ public function setParent($parent)
/**
* Gets children
*
- * @return \Phrase\Model\KeyPreview[]
+ * @return \Phrase\Model\KeyPreview[]|null
*/
public function getChildren()
{
@@ -416,7 +395,7 @@ public function getChildren()
/**
* Sets children
*
- * @param \Phrase\Model\KeyPreview[] $children The child translation keys linked to the parent.
+ * @param \Phrase\Model\KeyPreview[]|null $children The child translation keys linked to the parent.
*
* @return $this
*/
diff --git a/lib/Model/KeyLinksBatchDestroyParameters.php b/lib/Model/KeyLinksBatchDestroyParameters.php
index d35bc79..9276af9 100644
--- a/lib/Model/KeyLinksBatchDestroyParameters.php
+++ b/lib/Model/KeyLinksBatchDestroyParameters.php
@@ -55,7 +55,8 @@ class KeyLinksBatchDestroyParameters implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $openAPITypes = [
- 'child_key_ids' => 'string[]'
+ 'child_key_ids' => 'string[]',
+ 'unlink_parent' => 'bool'
];
/**
@@ -64,7 +65,8 @@ class KeyLinksBatchDestroyParameters implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $openAPIFormats = [
- 'child_key_ids' => null
+ 'child_key_ids' => null,
+ 'unlink_parent' => null
];
/**
@@ -94,7 +96,8 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $attributeMap = [
- 'child_key_ids' => 'child_key_ids'
+ 'child_key_ids' => 'child_key_ids',
+ 'unlink_parent' => 'unlink_parent'
];
/**
@@ -103,7 +106,8 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $setters = [
- 'child_key_ids' => 'setChildKeyIds'
+ 'child_key_ids' => 'setChildKeyIds',
+ 'unlink_parent' => 'setUnlinkParent'
];
/**
@@ -112,7 +116,8 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $getters = [
- 'child_key_ids' => 'getChildKeyIds'
+ 'child_key_ids' => 'getChildKeyIds',
+ 'unlink_parent' => 'getUnlinkParent'
];
/**
@@ -176,6 +181,7 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->container['child_key_ids'] = isset($data['child_key_ids']) ? $data['child_key_ids'] : null;
+ $this->container['unlink_parent'] = isset($data['unlink_parent']) ? $data['unlink_parent'] : false;
}
/**
@@ -228,6 +234,30 @@ public function setChildKeyIds($child_key_ids)
return $this;
}
+
+ /**
+ * Gets unlink_parent
+ *
+ * @return bool|null
+ */
+ public function getUnlinkParent()
+ {
+ return $this->container['unlink_parent'];
+ }
+
+ /**
+ * Sets unlink_parent
+ *
+ * @param bool|null $unlink_parent Whether to unlink the parent key as well and unmark it as linked-key.
+ *
+ * @return $this
+ */
+ public function setUnlinkParent($unlink_parent)
+ {
+ $this->container['unlink_parent'] = $unlink_parent;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/lib/Model/LocaleCreateParameters.php b/lib/Model/LocaleCreateParameters.php
index b24736e..12162c1 100644
--- a/lib/Model/LocaleCreateParameters.php
+++ b/lib/Model/LocaleCreateParameters.php
@@ -247,6 +247,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['code'] === null) {
+ $invalidProperties[] = "'code' can't be null";
+ }
return $invalidProperties;
}
@@ -289,7 +295,7 @@ public function setBranch($branch)
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -299,7 +305,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Locale name
+ * @param string $name Locale name
*
* @return $this
*/
@@ -313,7 +319,7 @@ public function setName($name)
/**
* Gets code
*
- * @return string|null
+ * @return string
*/
public function getCode()
{
@@ -323,7 +329,7 @@ public function getCode()
/**
* Sets code
*
- * @param string|null $code Locale ISO code
+ * @param string $code Locale ISO code
*
* @return $this
*/
@@ -419,7 +425,7 @@ public function getSourceLocaleId()
/**
* Sets source_locale_id
*
- * @param string|null $source_locale_id Source locale. Can be the name or public id of the locale. Preferred is the public id.
+ * @param string|null $source_locale_id Source locale. Can be the name or id of the locale. Preferred is id.
*
* @return $this
*/
diff --git a/lib/Model/LocaleUpdateParameters.php b/lib/Model/LocaleUpdateParameters.php
index 771b447..ecc665b 100644
--- a/lib/Model/LocaleUpdateParameters.php
+++ b/lib/Model/LocaleUpdateParameters.php
@@ -419,7 +419,7 @@ public function getSourceLocaleId()
/**
* Sets source_locale_id
*
- * @param string|null $source_locale_id Source locale. Can be the name or public id of the locale. Preferred is the public id.
+ * @param string|null $source_locale_id Source locale. Can be the name or id of the locale. Preferred is id.
*
* @return $this
*/
diff --git a/lib/Model/OrderCreateParameters.php b/lib/Model/OrderCreateParameters.php
index cb28ec2..afe1411 100644
--- a/lib/Model/OrderCreateParameters.php
+++ b/lib/Model/OrderCreateParameters.php
@@ -271,6 +271,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['lsp'] === null) {
+ $invalidProperties[] = "'lsp' can't be null";
+ }
return $invalidProperties;
}
@@ -313,7 +319,7 @@ public function setBranch($branch)
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -323,7 +329,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name the name of the order, default name is: Translation order from 'current datetime'
+ * @param string $name the name of the order, default name is: Translation order from 'current datetime'
*
* @return $this
*/
@@ -337,7 +343,7 @@ public function setName($name)
/**
* Gets lsp
*
- * @return string|null
+ * @return string
*/
public function getLsp()
{
@@ -347,7 +353,7 @@ public function getLsp()
/**
* Sets lsp
*
- * @param string|null $lsp Name of the LSP that should process this order. Can be one of gengo, textmaster.
+ * @param string $lsp Name of the LSP that should process this order. Can be one of gengo, textmaster.
*
* @return $this
*/
@@ -371,7 +377,7 @@ public function getSourceLocaleId()
/**
* Sets source_locale_id
*
- * @param string|null $source_locale_id Source locale for the order. Can be the name or public id of the source locale. Preferred is the public id.
+ * @param string|null $source_locale_id Source locale for the order. Can be the name or id of the source locale. Preferred is id.
*
* @return $this
*/
@@ -395,7 +401,7 @@ public function getTargetLocaleIds()
/**
* Sets target_locale_ids
*
- * @param string[]|null $target_locale_ids 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.
+ * @param string[]|null $target_locale_ids List of target locales you want the source content translate to. Can be the name or id of the target locales. Preferred is id.
*
* @return $this
*/
diff --git a/lib/Model/ProjectCreateParameters.php b/lib/Model/ProjectCreateParameters.php
index 60c2466..0f88732 100644
--- a/lib/Model/ProjectCreateParameters.php
+++ b/lib/Model/ProjectCreateParameters.php
@@ -337,6 +337,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -355,7 +358,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -365,7 +368,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the project
+ * @param string $name Name of the project
*
* @return $this
*/
diff --git a/lib/Model/ScreenshotMarkerCreateParameters.php b/lib/Model/ScreenshotMarkerCreateParameters.php
index 8bd086a..7bb93ea 100644
--- a/lib/Model/ScreenshotMarkerCreateParameters.php
+++ b/lib/Model/ScreenshotMarkerCreateParameters.php
@@ -199,6 +199,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['key_id'] === null) {
+ $invalidProperties[] = "'key_id' can't be null";
+ }
return $invalidProperties;
}
@@ -241,7 +244,7 @@ public function setBranch($branch)
/**
* Gets key_id
*
- * @return string|null
+ * @return string
*/
public function getKeyId()
{
@@ -251,7 +254,7 @@ public function getKeyId()
/**
* Sets key_id
*
- * @param string|null $key_id Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project.
+ * @param string $key_id Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project.
*
* @return $this
*/
diff --git a/lib/Model/SpaceCreateParameters.php b/lib/Model/SpaceCreateParameters.php
index 98225b5..5fd2bdf 100644
--- a/lib/Model/SpaceCreateParameters.php
+++ b/lib/Model/SpaceCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -215,7 +218,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the space
+ * @param string $name Name of the space
*
* @return $this
*/
diff --git a/lib/Model/SpacesProjectsCreateParameters.php b/lib/Model/SpacesProjectsCreateParameters.php
index b26b966..f518c3d 100644
--- a/lib/Model/SpacesProjectsCreateParameters.php
+++ b/lib/Model/SpacesProjectsCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets id
*
- * @return string|null
+ * @return string
*/
public function getId()
{
@@ -215,7 +218,7 @@ public function getId()
/**
* Sets id
*
- * @param string|null $id Project ID to add or to the Space
+ * @param string $id Project ID to add or to the Space
*
* @return $this
*/
diff --git a/lib/Model/StyleguideCreateParameters.php b/lib/Model/StyleguideCreateParameters.php
index 422fd19..63e6099 100644
--- a/lib/Model/StyleguideCreateParameters.php
+++ b/lib/Model/StyleguideCreateParameters.php
@@ -259,6 +259,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['title'] === null) {
+ $invalidProperties[] = "'title' can't be null";
+ }
return $invalidProperties;
}
@@ -277,7 +280,7 @@ public function valid()
/**
* Gets title
*
- * @return string|null
+ * @return string
*/
public function getTitle()
{
@@ -287,7 +290,7 @@ public function getTitle()
/**
* Sets title
*
- * @param string|null $title Style guide title
+ * @param string $title Style guide title
*
* @return $this
*/
diff --git a/lib/Model/TagCreateParameters.php b/lib/Model/TagCreateParameters.php
index 46f6c29..2619b26 100644
--- a/lib/Model/TagCreateParameters.php
+++ b/lib/Model/TagCreateParameters.php
@@ -193,6 +193,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -235,7 +238,7 @@ public function setBranch($branch)
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -245,7 +248,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the tag
+ * @param string $name Name of the tag
*
* @return $this
*/
diff --git a/lib/Model/TeamCreateParameters.php b/lib/Model/TeamCreateParameters.php
index c3cbaf3..8504570 100644
--- a/lib/Model/TeamCreateParameters.php
+++ b/lib/Model/TeamCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -215,7 +218,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the team
+ * @param string $name Name of the team
*
* @return $this
*/
diff --git a/lib/Model/TeamsProjectsCreateParameters.php b/lib/Model/TeamsProjectsCreateParameters.php
index 71ee971..04b844a 100644
--- a/lib/Model/TeamsProjectsCreateParameters.php
+++ b/lib/Model/TeamsProjectsCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets id
*
- * @return string|null
+ * @return string
*/
public function getId()
{
@@ -215,7 +218,7 @@ public function getId()
/**
* Sets id
*
- * @param string|null $id Project ID to add to the Team
+ * @param string $id Project ID to add to the Team
*
* @return $this
*/
diff --git a/lib/Model/TeamsSpacesCreateParameters.php b/lib/Model/TeamsSpacesCreateParameters.php
index 2fcdcc8..a6afcc2 100644
--- a/lib/Model/TeamsSpacesCreateParameters.php
+++ b/lib/Model/TeamsSpacesCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets id
*
- * @return string|null
+ * @return string
*/
public function getId()
{
@@ -215,7 +218,7 @@ public function getId()
/**
* Sets id
*
- * @param string|null $id Space ID to add to the Team
+ * @param string $id Space ID to add to the Team
*
* @return $this
*/
diff --git a/lib/Model/TeamsUsersCreateParameters.php b/lib/Model/TeamsUsersCreateParameters.php
index f20e35b..5a130cc 100644
--- a/lib/Model/TeamsUsersCreateParameters.php
+++ b/lib/Model/TeamsUsersCreateParameters.php
@@ -187,6 +187,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['id'] === null) {
+ $invalidProperties[] = "'id' can't be null";
+ }
return $invalidProperties;
}
@@ -205,7 +208,7 @@ public function valid()
/**
* Gets id
*
- * @return string|null
+ * @return string
*/
public function getId()
{
@@ -215,7 +218,7 @@ public function getId()
/**
* Sets id
*
- * @param string|null $id User ID to add to the Team
+ * @param string $id User ID to add to the Team
*
* @return $this
*/
diff --git a/lib/Model/TranslationCreateParameters.php b/lib/Model/TranslationCreateParameters.php
index db8bf18..595ee77 100644
--- a/lib/Model/TranslationCreateParameters.php
+++ b/lib/Model/TranslationCreateParameters.php
@@ -281,7 +281,7 @@ public function getLocaleId()
/**
* Sets locale_id
*
- * @param string|null $locale_id Locale. Can be the name or public id of the locale. Preferred is the public id.
+ * @param string|null $locale_id Locale. Can be the name or id of the locale. Preferred is id
*
* @return $this
*/
diff --git a/lib/Model/VariableCreateParameters.php b/lib/Model/VariableCreateParameters.php
index 1803c06..4b2c317 100644
--- a/lib/Model/VariableCreateParameters.php
+++ b/lib/Model/VariableCreateParameters.php
@@ -193,6 +193,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
return $invalidProperties;
}
@@ -211,7 +214,7 @@ public function valid()
/**
* Gets name
*
- * @return string|null
+ * @return string
*/
public function getName()
{
@@ -221,7 +224,7 @@ public function getName()
/**
* Sets name
*
- * @param string|null $name Name of the variable
+ * @param string $name Name of the variable
*
* @return $this
*/
diff --git a/lib/Model/WebhookCreateParameters.php b/lib/Model/WebhookCreateParameters.php
index b72e42b..00c8f94 100644
--- a/lib/Model/WebhookCreateParameters.php
+++ b/lib/Model/WebhookCreateParameters.php
@@ -217,6 +217,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['callback_url'] === null) {
+ $invalidProperties[] = "'callback_url' can't be null";
+ }
return $invalidProperties;
}
@@ -235,7 +238,7 @@ public function valid()
/**
* Gets callback_url
*
- * @return string|null
+ * @return string
*/
public function getCallbackUrl()
{
@@ -245,7 +248,7 @@ public function getCallbackUrl()
/**
* Sets callback_url
*
- * @param string|null $callback_url Callback URL to send requests to
+ * @param string $callback_url Callback URL to send requests to
*
* @return $this
*/
diff --git a/test/Api/ICUApiTest.php b/test/Api/ICUApiTest.php
index 35f7f3b..6033b7a 100644
--- a/test/Api/ICUApiTest.php
+++ b/test/Api/ICUApiTest.php
@@ -73,7 +73,7 @@ public static function tearDownAfterClass()
/**
* Test case for icuSkeleton
*
- * Build icu skeletons.
+ * Build ICU skeletons.
*
*/
public function testIcuSkeleton()
diff --git a/test/Api/LinkedKeysApiTest.php b/test/Api/LinkedKeysApiTest.php
index 52f4d3c..b333893 100644
--- a/test/Api/LinkedKeysApiTest.php
+++ b/test/Api/LinkedKeysApiTest.php
@@ -103,7 +103,7 @@ public function testKeyLinksDestroy()
/**
* Test case for keyLinksIndex
*
- * Retrieve all child keys linked to a specific parent key.
+ * List child keys of a parent key.
*
*/
public function testKeyLinksIndex()
diff --git a/test/Api/UploadsApiTest.php b/test/Api/UploadsApiTest.php
index 3a4b89f..4b6259d 100644
--- a/test/Api/UploadsApiTest.php
+++ b/test/Api/UploadsApiTest.php
@@ -107,7 +107,7 @@ public function testUploadCreate()
$file = new \SplFileObject($fileName, 'w+');
$file->fwrite('test');
- $result = $this->apiInstance->uploadCreate($projectId, null, null, $file);
+ $result = $this->apiInstance->uploadCreate($projectId, $file, "yml", "en", null, null);
$file = null;
unlink($fileName);
diff --git a/test/Model/KeyLinksBatchDestroyParametersTest.php b/test/Model/KeyLinksBatchDestroyParametersTest.php
index 0b7c0d8..7142a98 100644
--- a/test/Model/KeyLinksBatchDestroyParametersTest.php
+++ b/test/Model/KeyLinksBatchDestroyParametersTest.php
@@ -82,4 +82,11 @@ public function testKeyLinksBatchDestroyParameters()
public function testPropertyChildKeyIds()
{
}
+
+ /**
+ * Test attribute "unlink_parent"
+ */
+ public function testPropertyUnlinkParent()
+ {
+ }
}