Skip to content

Commit

Permalink
Deploying from phrase/openapi@ce2ed948
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Jan 2, 2024
1 parent 3182c94 commit 1d2ee80
Show file tree
Hide file tree
Showing 12 changed files with 1,147 additions and 198 deletions.
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ docs/Model/CommentUpdateParameters.md
docs/Model/CommentsListParameters.md
docs/Model/CurrentUser.md
docs/Model/CustomMetadataDataType.md
docs/Model/CustomMetadataPropertiesCreateParameters.md
docs/Model/CustomMetadataPropertiesUpdateParameters.md
docs/Model/CustomMetadataProperty.md
docs/Model/CustomMetadataPropertyCreate422Response.md
docs/Model/CustomMetadataPropertyCreate422ResponseErrorsInner.md
Expand Down Expand Up @@ -337,6 +339,8 @@ lib/Model/CommentUpdateParameters.php
lib/Model/CommentsListParameters.php
lib/Model/CurrentUser.php
lib/Model/CustomMetadataDataType.php
lib/Model/CustomMetadataPropertiesCreateParameters.php
lib/Model/CustomMetadataPropertiesUpdateParameters.php
lib/Model/CustomMetadataProperty.php
lib/Model/CustomMetadataPropertyCreate422Response.php
lib/Model/CustomMetadataPropertyCreate422ResponseErrorsInner.php
Expand Down Expand Up @@ -587,6 +591,8 @@ test/Model/CommentUpdateParametersTest.php
test/Model/CommentsListParametersTest.php
test/Model/CurrentUserTest.php
test/Model/CustomMetadataDataTypeTest.php
test/Model/CustomMetadataPropertiesCreateParametersTest.php
test/Model/CustomMetadataPropertiesUpdateParametersTest.php
test/Model/CustomMetadataPropertyCreate422ResponseErrorsInnerTest.php
test/Model/CustomMetadataPropertyCreate422ResponseTest.php
test/Model/CustomMetadataPropertyTest.php
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ Class | Method | HTTP request | Description
- [CommentsListParameters](docs/Model/CommentsListParameters.md)
- [CurrentUser](docs/Model/CurrentUser.md)
- [CustomMetadataDataType](docs/Model/CustomMetadataDataType.md)
- [CustomMetadataPropertiesCreateParameters](docs/Model/CustomMetadataPropertiesCreateParameters.md)
- [CustomMetadataPropertiesUpdateParameters](docs/Model/CustomMetadataPropertiesUpdateParameters.md)
- [CustomMetadataProperty](docs/Model/CustomMetadataProperty.md)
- [CustomMetadataPropertyCreate422Response](docs/Model/CustomMetadataPropertyCreate422Response.md)
- [CustomMetadataPropertyCreate422ResponseErrorsInner](docs/Model/CustomMetadataPropertyCreate422ResponseErrorsInner.md)
Expand Down
34 changes: 10 additions & 24 deletions docs/Api/CustomMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Name | Type | Description | Notes

## customMetadataPropertyCreate

> \Phrase\Model\CustomMetadataProperty customMetadataPropertyCreate($account_id, $name, $data_type, $x_phrase_app_otp, $description, $project_ids, $value_options)
> \Phrase\Model\CustomMetadataProperty customMetadataPropertyCreate($account_id, $custom_metadata_properties_create_parameters, $x_phrase_app_otp)
Create a property

Expand All @@ -171,15 +171,11 @@ $apiInstance = new Phrase\Api\CustomMetadataApi(
$config
);
$account_id = 'account_id_example'; // string | Account ID
$name = ["Fruit"]; // string | name of the property
$data_type = boolean; // CustomMetadataDataType | Data Type of Custom Metadata Property
$custom_metadata_properties_create_parameters = new \Phrase\Model\CustomMetadataPropertiesCreateParameters(); // \Phrase\Model\CustomMetadataPropertiesCreateParameters |
$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)
$description = ["A healthy snack for all ages"]; // string | description of property
$project_ids = ["abcd1234cdef1234abcd1234cdef1234"]; // string[] | ids of projects that the property belongs to
$value_options = ["Apple","Banana","Coconut"]; // string[] | value options of property (only applies to single or multi select properties)

try {
$result = $apiInstance->customMetadataPropertyCreate($account_id, $name, $data_type, $x_phrase_app_otp, $description, $project_ids, $value_options);
$result = $apiInstance->customMetadataPropertyCreate($account_id, $custom_metadata_properties_create_parameters, $x_phrase_app_otp);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomMetadataApi->customMetadataPropertyCreate: ', $e->getMessage(), PHP_EOL;
Expand All @@ -193,12 +189,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_id** | **string**| Account ID |
**name** | **string**| name of the property |
**data_type** | [**CustomMetadataDataType**](../Model/.md)| Data Type of Custom Metadata Property |
**custom_metadata_properties_create_parameters** | [**\Phrase\Model\CustomMetadataPropertiesCreateParameters**](../Model/CustomMetadataPropertiesCreateParameters.md)| |
**x_phrase_app_otp** | **string**| Two-Factor-Authentication token (optional) | [optional]
**description** | **string**| description of property | [optional]
**project_ids** | [**string[]**](../Model/string.md)| ids of projects that the property belongs to | [optional]
**value_options** | [**string[]**](../Model/string.md)| value options of property (only applies to single or multi select properties) | [optional]

### Return type

Expand All @@ -210,7 +202,7 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
Expand Down Expand Up @@ -283,7 +275,7 @@ Name | Type | Description | Notes

## customMetadataPropertyUpdate

> \Phrase\Model\CustomMetadataProperty customMetadataPropertyUpdate($account_id, $id, $x_phrase_app_otp, $name, $description, $project_ids, $value_options)
> \Phrase\Model\CustomMetadataProperty customMetadataPropertyUpdate($account_id, $id, $custom_metadata_properties_update_parameters, $x_phrase_app_otp)
Update a property

Expand All @@ -306,14 +298,11 @@ $apiInstance = new Phrase\Api\CustomMetadataApi(
);
$account_id = 'account_id_example'; // string | Account ID
$id = 'id_example'; // string | ID
$custom_metadata_properties_update_parameters = new \Phrase\Model\CustomMetadataPropertiesUpdateParameters(); // \Phrase\Model\CustomMetadataPropertiesUpdateParameters |
$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)
$name = ["Fruit"]; // string | name of the property
$description = ["A healthy snack for all ages"]; // string | description of property
$project_ids = ["abcd1234cdef1234abcd1234cdef1234"]; // string[] | ids of projects that the property belongs to
$value_options = ["Apple","Banana","Coconut"]; // string[] | value options of property (only applies to single or multi select properties)

try {
$result = $apiInstance->customMetadataPropertyUpdate($account_id, $id, $x_phrase_app_otp, $name, $description, $project_ids, $value_options);
$result = $apiInstance->customMetadataPropertyUpdate($account_id, $id, $custom_metadata_properties_update_parameters, $x_phrase_app_otp);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomMetadataApi->customMetadataPropertyUpdate: ', $e->getMessage(), PHP_EOL;
Expand All @@ -328,11 +317,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_id** | **string**| Account ID |
**id** | **string**| ID |
**custom_metadata_properties_update_parameters** | [**\Phrase\Model\CustomMetadataPropertiesUpdateParameters**](../Model/CustomMetadataPropertiesUpdateParameters.md)| |
**x_phrase_app_otp** | **string**| Two-Factor-Authentication token (optional) | [optional]
**name** | **string**| name of the property | [optional]
**description** | **string**| description of property | [optional]
**project_ids** | [**string[]**](../Model/string.md)| ids of projects that the property belongs to | [optional]
**value_options** | [**string[]**](../Model/string.md)| value options of property (only applies to single or multi select properties) | [optional]

### Return type

Expand All @@ -344,7 +330,7 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
Expand Down
15 changes: 15 additions & 0 deletions docs/Model/CustomMetadataPropertiesCreateParameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# # CustomMetadataPropertiesCreateParameters

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | name of the property |
**data_type** | [**\Phrase\Model\CustomMetadataDataType**](CustomMetadataDataType.md) | |
**project_ids** | **string[]** | ids of projects that the property belongs to | [optional]
**description** | **string** | description of property | [optional]
**value_options** | **string[]** | value options of property (only applies to single or multi select properties) | [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)


14 changes: 14 additions & 0 deletions docs/Model/CustomMetadataPropertiesUpdateParameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# # CustomMetadataPropertiesUpdateParameters

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | name of the property | [optional]
**project_ids** | **string[]** | ids of projects that the property belongs to | [optional]
**description** | **string** | description of property | [optional]
**value_options** | **string[]** | value options of property (only applies to single or multi select properties) | [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)


Loading

0 comments on commit 1d2ee80

Please sign in to comment.