diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 1fe404e716..64f5de61c2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -42,6 +42,11 @@ docs/CommentUpdateParameters.md docs/CommentsApi.md docs/CommentsListParameters.md docs/CurrentUser.md +docs/CustomMetadataApi.md +docs/CustomMetadataDataType.md +docs/CustomMetadataProperty.md +docs/CustomMetadataPropertyCreate422Response.md +docs/CustomMetadataPropertyCreate422ResponseErrorsInner.md docs/Distribution.md docs/DistributionCreateParameters.md docs/DistributionPreview.md @@ -81,8 +86,6 @@ docs/Icu.md docs/IcuApi.md docs/IcuSkeletonParameters.md docs/Invitation.md -docs/InvitationCreate422Response.md -docs/InvitationCreate422ResponseErrorsInner.md docs/InvitationCreateParameters.md docs/InvitationUpdateParameters.md docs/InvitationUpdateSettingsParameters.md @@ -282,6 +285,7 @@ src/main/java/com/phrase/client/api/BranchesApi.java src/main/java/com/phrase/client/api/CommentReactionsApi.java src/main/java/com/phrase/client/api/CommentRepliesApi.java src/main/java/com/phrase/client/api/CommentsApi.java +src/main/java/com/phrase/client/api/CustomMetadataApi.java src/main/java/com/phrase/client/api/DistributionsApi.java src/main/java/com/phrase/client/api/DocumentsApi.java src/main/java/com/phrase/client/api/FigmaAttachmentsApi.java @@ -357,6 +361,10 @@ src/main/java/com/phrase/client/model/CommentReaction.java src/main/java/com/phrase/client/model/CommentUpdateParameters.java src/main/java/com/phrase/client/model/CommentsListParameters.java src/main/java/com/phrase/client/model/CurrentUser.java +src/main/java/com/phrase/client/model/CustomMetadataDataType.java +src/main/java/com/phrase/client/model/CustomMetadataProperty.java +src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422Response.java +src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInner.java src/main/java/com/phrase/client/model/Distribution.java src/main/java/com/phrase/client/model/DistributionCreateParameters.java src/main/java/com/phrase/client/model/DistributionPreview.java @@ -386,8 +394,6 @@ src/main/java/com/phrase/client/model/GlossaryUpdateParameters.java src/main/java/com/phrase/client/model/Icu.java src/main/java/com/phrase/client/model/IcuSkeletonParameters.java src/main/java/com/phrase/client/model/Invitation.java -src/main/java/com/phrase/client/model/InvitationCreate422Response.java -src/main/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInner.java src/main/java/com/phrase/client/model/InvitationCreateParameters.java src/main/java/com/phrase/client/model/InvitationUpdateParameters.java src/main/java/com/phrase/client/model/InvitationUpdateSettingsParameters.java @@ -533,6 +539,7 @@ src/test/java/com/phrase/client/api/BranchesApiTest.java src/test/java/com/phrase/client/api/CommentReactionsApiTest.java src/test/java/com/phrase/client/api/CommentRepliesApiTest.java src/test/java/com/phrase/client/api/CommentsApiTest.java +src/test/java/com/phrase/client/api/CustomMetadataApiTest.java src/test/java/com/phrase/client/api/DistributionsApiTest.java src/test/java/com/phrase/client/api/DocumentsApiTest.java src/test/java/com/phrase/client/api/FigmaAttachmentsApiTest.java @@ -601,6 +608,10 @@ src/test/java/com/phrase/client/model/CommentTest.java src/test/java/com/phrase/client/model/CommentUpdateParametersTest.java src/test/java/com/phrase/client/model/CommentsListParametersTest.java src/test/java/com/phrase/client/model/CurrentUserTest.java +src/test/java/com/phrase/client/model/CustomMetadataDataTypeTest.java +src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInnerTest.java +src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseTest.java +src/test/java/com/phrase/client/model/CustomMetadataPropertyTest.java src/test/java/com/phrase/client/model/DistributionCreateParametersTest.java src/test/java/com/phrase/client/model/DistributionPreviewTest.java src/test/java/com/phrase/client/model/DistributionTest.java @@ -629,8 +640,6 @@ src/test/java/com/phrase/client/model/GlossaryTest.java src/test/java/com/phrase/client/model/GlossaryUpdateParametersTest.java src/test/java/com/phrase/client/model/IcuSkeletonParametersTest.java src/test/java/com/phrase/client/model/IcuTest.java -src/test/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInnerTest.java -src/test/java/com/phrase/client/model/InvitationCreate422ResponseTest.java src/test/java/com/phrase/client/model/InvitationCreateParametersTest.java src/test/java/com/phrase/client/model/InvitationTest.java src/test/java/com/phrase/client/model/InvitationUpdateParametersTest.java diff --git a/README.md b/README.md index 5cf5b6f7e9..9ef358acc9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Phrase Strings API Reference - API version: 2.0.0 -- Build date: 2023-12-13T11:14:22.871694Z[Etc/UTC] +- Build date: 2023-12-13T11:27:10.938287Z[Etc/UTC] Phrase Strings is a translation management platform for software projects. You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase Strings for your account. @@ -153,6 +153,11 @@ Class | Method | HTTP request | Description *CommentsApi* | [**commentShow**](docs/CommentsApi.md#commentShow) | **GET** /projects/{project_id}/keys/{key_id}/comments/{id} | Get a single comment *CommentsApi* | [**commentUpdate**](docs/CommentsApi.md#commentUpdate) | **PATCH** /projects/{project_id}/keys/{key_id}/comments/{id} | Update a comment *CommentsApi* | [**commentsList**](docs/CommentsApi.md#commentsList) | **GET** /projects/{project_id}/keys/{key_id}/comments | List comments +*CustomMetadataApi* | [**customMetadataPropertiesDelete**](docs/CustomMetadataApi.md#customMetadataPropertiesDelete) | **DELETE** /accounts/{account_id}/custom_metadata/properties/{id} | Destroy property +*CustomMetadataApi* | [**customMetadataPropertiesList**](docs/CustomMetadataApi.md#customMetadataPropertiesList) | **GET** /accounts/{account_id}/custom_metadata/properties | List properties +*CustomMetadataApi* | [**customMetadataPropertyCreate**](docs/CustomMetadataApi.md#customMetadataPropertyCreate) | **POST** /accounts/{account_id}/custom_metadata/properties | Create a property +*CustomMetadataApi* | [**customMetadataPropertyShow**](docs/CustomMetadataApi.md#customMetadataPropertyShow) | **GET** /accounts/{account_id}/custom_metadata/properties/{id} | Get a single property +*CustomMetadataApi* | [**customMetadataPropertyUpdate**](docs/CustomMetadataApi.md#customMetadataPropertyUpdate) | **PATCH** /accounts/{account_id}/custom_metadata/properties/{id} | Update a property *DistributionsApi* | [**distributionCreate**](docs/DistributionsApi.md#distributionCreate) | **POST** /accounts/{account_id}/distributions | Create a distribution *DistributionsApi* | [**distributionDelete**](docs/DistributionsApi.md#distributionDelete) | **DELETE** /accounts/{account_id}/distributions/{id} | Delete a distribution *DistributionsApi* | [**distributionShow**](docs/DistributionsApi.md#distributionShow) | **GET** /accounts/{account_id}/distributions/{id} | Get a single distribution @@ -399,6 +404,10 @@ Class | Method | HTTP request | Description - [CommentUpdateParameters](docs/CommentUpdateParameters.md) - [CommentsListParameters](docs/CommentsListParameters.md) - [CurrentUser](docs/CurrentUser.md) + - [CustomMetadataDataType](docs/CustomMetadataDataType.md) + - [CustomMetadataProperty](docs/CustomMetadataProperty.md) + - [CustomMetadataPropertyCreate422Response](docs/CustomMetadataPropertyCreate422Response.md) + - [CustomMetadataPropertyCreate422ResponseErrorsInner](docs/CustomMetadataPropertyCreate422ResponseErrorsInner.md) - [Distribution](docs/Distribution.md) - [DistributionCreateParameters](docs/DistributionCreateParameters.md) - [DistributionPreview](docs/DistributionPreview.md) @@ -428,8 +437,6 @@ Class | Method | HTTP request | Description - [Icu](docs/Icu.md) - [IcuSkeletonParameters](docs/IcuSkeletonParameters.md) - [Invitation](docs/Invitation.md) - - [InvitationCreate422Response](docs/InvitationCreate422Response.md) - - [InvitationCreate422ResponseErrorsInner](docs/InvitationCreate422ResponseErrorsInner.md) - [InvitationCreateParameters](docs/InvitationCreateParameters.md) - [InvitationUpdateParameters](docs/InvitationUpdateParameters.md) - [InvitationUpdateSettingsParameters](docs/InvitationUpdateSettingsParameters.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 5705e498ab..14e7b5e680 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1523,6 +1523,7 @@ tags: - name: Comments - name: Comment Reactions - name: Comment Replies +- name: Custom Metadata - name: Distributions - name: Documents - name: Figma Attachments @@ -3392,6 +3393,610 @@ paths: x-cli-version: "2.5" x-content-type: application/json x-accepts: application/json + /accounts/{account_id}/custom_metadata/properties: + get: + description: | + List all custom metadata properties for an account. + + This endpoint is only available to accounts with advanced plans or above. + operationId: custom_metadata_properties/list + parameters: + - description: Two-Factor-Authentication token (optional) + explode: false + in: header + name: X-PhraseApp-OTP + required: false + schema: + type: string + style: simple + - description: Account ID + explode: false + in: path + name: account_id + required: true + schema: + type: string + style: simple + - description: Data Type of Custom Metadata Property + example: boolean + explode: true + in: query + name: data_type + required: false + schema: + $ref: '#/components/schemas/custom_metadata_data_type' + style: form + - description: id of project that the properties belong to + example: abcd1234cdef1234abcd1234cdef1234 + explode: true + in: query + name: project_id + required: false + schema: + type: string + style: form + - allowEmptyValue: false + description: Page number + example: 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - allowEmptyValue: false + description: "Limit on the number of objects to be returned, between 1 and\ + \ 100. 25 by default" + example: 25 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: "Sort criteria. Can be one of: name, data_type, created_at." + example: updated_at + explode: true + in: query + name: sort + required: false + schema: + type: string + style: form + - description: "Order direction. Can be one of: asc, desc." + example: desc + explode: true + in: query + name: order + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/custom_metadata_property' + type: array + description: OK + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + Link: + $ref: '#/components/headers/Link' + "400": + description: Bad request + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "404": + description: Not Found + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "429": + description: Rate Limiting + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + summary: List properties + tags: + - Custom Metadata + x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties?data_type=boolean&project_id=1&page=1&per_page=10&sort=created_at&order=desc" \ + -u USERNAME_OR_ACCESS_TOKEN + - lang: CLI v2 + source: |- + phrase custom_metadata_properties list \ + --account_id \ + --data_type boolean \ + --project_id 1 \ + --page 1 \ + --per_page 10 \ + --sort created_at \ + --order desc \ + --access_token + x-cli-version: "2.9" + x-accepts: application/json + post: + description: Create a new custom metadata property. + operationId: custom_metadata_property/create + parameters: + - description: Two-Factor-Authentication token (optional) + explode: false + in: header + name: X-PhraseApp-OTP + required: false + schema: + type: string + style: simple + - description: Account ID + explode: false + in: path + name: account_id + required: true + schema: + type: string + style: simple + - description: name of the property + example: + - Fruit + explode: true + in: query + name: name + required: true + schema: + type: string + style: form + - description: Data Type of Custom Metadata Property + example: boolean + explode: true + in: query + name: data_type + required: true + schema: + $ref: '#/components/schemas/custom_metadata_data_type' + style: form + - description: description of property + example: + - A healthy snack for all ages + explode: true + in: query + name: description + required: false + schema: + type: string + style: form + - description: ids of projects that the property belongs to + example: + - abcd1234cdef1234abcd1234cdef1234 + explode: true + in: query + name: project_ids + required: false + schema: + items: + type: string + type: array + style: form + - description: value options of property (only applies to single or multi select + properties) + example: + - Apple + - Banana + - Coconut + explode: true + in: query + name: value_options + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/custom_metadata_property' + description: OK + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "400": + description: Bad request + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "404": + description: Not Found + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/custom_metadata_property_create_422_response' + description: Unprocessable entity + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "429": + description: Rate Limiting + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + summary: Create a property + tags: + - Custom Metadata + x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X POST \ + -d '{"name":"Fruit","data_type":"multi_select","description":"A healthy snack for all ages","project_ids":["1","2","3"],"value_options":["apple","banana","coconut"]}' \ + -H 'Content-Type: application/json' + - lang: CLI v2 + source: |- + phrase custom_metadata_properties create \ + --account_id \ + --data '{"name":"Fruit","data_type":"multi_select","description":"A healthy snack for all ages","project_ids":["1","2","3"],"value_options":["apple","banana","coconut"]}' \ + --access_token + x-cli-version: "2.9" + x-accepts: application/json + /accounts/{account_id}/custom_metadata/properties/{id}: + delete: + description: | + Destroy a custom metadata property of an account. + + This endpoint is only available to accounts with advanced plans or above. + operationId: custom_metadata_properties/delete + parameters: + - description: Two-Factor-Authentication token (optional) + explode: false + in: header + name: X-PhraseApp-OTP + required: false + schema: + type: string + style: simple + - description: Account ID + explode: false + in: path + name: account_id + required: true + schema: + type: string + style: simple + - description: ID + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: The resource was deleted successfully. + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "400": + description: Bad request + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "404": + description: Not Found + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "429": + description: Rate Limiting + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + summary: Destroy property + tags: + - Custom Metadata + x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties/:id" \ + -u USERNAME_OR_ACCESS_TOKEN + -X DELETE + -H 'Content-Type: application/json' + - lang: CLI v2 + source: |- + phrase custom_metadata_properties delete \ + --account_id \ + --id \ + --access_token + x-cli-version: "2.9" + x-accepts: application/json + get: + description: Get details of a single custom property. + operationId: custom_metadata_property/show + parameters: + - description: Two-Factor-Authentication token (optional) + explode: false + in: header + name: X-PhraseApp-OTP + required: false + schema: + type: string + style: simple + - description: Account ID + explode: false + in: path + name: account_id + required: true + schema: + type: string + style: simple + - description: ID + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/custom_metadata_property' + description: OK + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "400": + description: Bad request + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "404": + description: Not Found + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "429": + description: Rate Limiting + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + summary: Get a single property + tags: + - Custom Metadata + x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties/:id" \ + -u USERNAME_OR_ACCESS_TOKEN + - lang: CLI v2 + source: |- + phrase custom_metadata_properties show \ + --account_id \ + --id \ + --access_token + x-cli-version: "2.9" + x-accepts: application/json + patch: + description: Update an existing custom metadata property. + operationId: custom_metadata_property/update + parameters: + - description: Two-Factor-Authentication token (optional) + explode: false + in: header + name: X-PhraseApp-OTP + required: false + schema: + type: string + style: simple + - description: Account ID + explode: false + in: path + name: account_id + required: true + schema: + type: string + style: simple + - description: ID + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: name of the property + example: + - Fruit + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: description of property + example: + - A healthy snack for all ages + explode: true + in: query + name: description + required: false + schema: + type: string + style: form + - description: ids of projects that the property belongs to + example: + - abcd1234cdef1234abcd1234cdef1234 + explode: true + in: query + name: project_ids + required: false + schema: + items: + type: string + type: array + style: form + - description: value options of property (only applies to single or multi select + properties) + example: + - Apple + - Banana + - Coconut + explode: true + in: query + name: value_options + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/custom_metadata_property' + description: OK + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "400": + description: Bad request + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "404": + description: Not Found + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + "429": + description: Rate Limiting + headers: + X-Rate-Limit-Limit: + $ref: '#/components/headers/X-Rate-Limit-Limit' + X-Rate-Limit-Remaining: + $ref: '#/components/headers/X-Rate-Limit-Remaining' + X-Rate-Limit-Reset: + $ref: '#/components/headers/X-Rate-Limit-Reset' + summary: Update a property + tags: + - Custom Metadata + x-code-samples: + - lang: Curl + source: |- + curl "https://api.phrase.com/v2/accounts/:account_id/custom_metadata/properties/:id" \ + -u USERNAME_OR_ACCESS_TOKEN \ + -X PATCH \ + -d '{"name":"Fruit","description":"A healthy snack for all ages","project_ids":["1","2","3"],"value_options":["apple","banana","coconut"]}' \ + -H 'Content-Type: application/json' + - lang: CLI v2 + source: |- + phrase custom_metadata_properties update \ + --account_id \ + --id \ + --data '{"name":"Fruit","description":"A healthy snack for all ages","project_ids":["1","2","3"],"value_options":["apple","banana","coconut"]}' \ + --access_token + x-cli-version: "2.9" + x-accepts: application/json /accounts/{account_id}/invitations: get: description: List invitations for an account. It will also list the accessible @@ -3583,7 +4188,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/invitation_create_422_response' + $ref: '#/components/schemas/custom_metadata_property_create_422_response' description: Unprocessable entity headers: X-Rate-Limit-Limit: @@ -12623,7 +13228,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/invitation_create_422_response' + $ref: '#/components/schemas/custom_metadata_property_create_422_response' description: Unprocessable entity headers: X-Rate-Limit-Limit: @@ -12710,7 +13315,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/invitation_create_422_response' + $ref: '#/components/schemas/custom_metadata_property_create_422_response' description: Unprocessable entity headers: X-Rate-Limit-Limit: @@ -19856,11 +20461,12 @@ paths: -F tags=awesome-feature,needs-proofreading \ -F max_characters_allowed=140 \ -F screenshot=@/path/to/my/screenshot.png + -F custom_metadata[property]=value - lang: CLI v2 source: |- phrase keys create \ --project_id \ - --data '{"branch":"my-feature-branch", "name":"home.index.headline", "description": "Some description worth knowing...", "name_plural":"home.index.headlines", "data_type":"number", "tags":"awesome-feature,needs-proofreading", "max_characters_allowed":"140", "screenshot":"/path/to/my/screenshot.png"}' \ + --data '{"branch":"my-feature-branch", "name":"home.index.headline", "description": "Some description worth knowing...", "name_plural":"home.index.headlines", "data_type":"number", "tags":"awesome-feature,needs-proofreading", "max_characters_allowed":"140", "screenshot":"/path/to/my/screenshot.png", "custom_metadata": {"property" => "value"}}' \ --access_token x-cli-version: "2.5" x-content-type: application/json @@ -20258,12 +20864,13 @@ paths: -F tags=awesome-feature,needs-proofreading \ -F max_characters_allowed=140 \ -F screenshot=@/path/to/my/screenshot.png + -F custom_metadata[property]=value - lang: CLI v2 source: |- phrase keys update \ --project_id \ --id \ - --data '{"branch":"my-feature-branch", "name":"home.index.headline", "description": "Some description worth knowing...", "name_plural":"home.index.headlines", "data_type":"number", "tags":"awesome-feature,needs-proofreading", "max_characters_allowed":"140", "screenshot":"/path/to/my/screenshot.png"}' \ + --data '{"branch":"my-feature-branch", "name":"home.index.headline", "description": "Some description worth knowing...", "name_plural":"home.index.headlines", "data_type":"number", "tags":"awesome-feature,needs-proofreading", "max_characters_allowed":"140", "screenshot":"/path/to/my/screenshot.png", "custom_metadata": {"property" => "value"}}' \ --access_token x-cli-version: "2.5" x-content-type: application/json @@ -27116,6 +27723,16 @@ components: schema: type: string style: simple + custom_metadata_data_type: + description: Data Type of Custom Metadata Property + example: boolean + explode: true + in: query + name: data_type + required: false + schema: + $ref: '#/components/schemas/custom_metadata_data_type' + style: form query_account_id: description: Filter by Account ID explode: true @@ -27416,7 +28033,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/invitation_create_422_response' + $ref: '#/components/schemas/custom_metadata_property_create_422_response' description: Unprocessable entity headers: X-Rate-Limit-Limit: @@ -27691,6 +28308,66 @@ components: $ref: '#/components/schemas/user_preview' title: comment_reaction type: object + custom_metadata_property: + example: + id: abcd1234cdef1234abcd1234cdef1234 + name: Nuts + description: A healthy snack for all ages + data_type: multi_select + user: + id: abcd1234cdef1234abcd1234cdef1234 + username: joe.doe + name: Joe Doe + created_at: 2015-01-28T09:52:53Z + updated_at: 2015-01-28T09:52:53Z + projects: + - id: abcd1234cdef1234abcd1234cdef1234 + name: My Android Project + main_format: xml + created_at: 2015-01-28T09:52:53Z + updated_at: 2015-01-28T09:52:53Z + value_options: + - apple + - banana + - coconut + properties: + id: + type: string + name: + type: string + description: + type: string + data_type: + $ref: '#/components/schemas/custom_metadata_data_type' + user: + $ref: '#/components/schemas/user_preview' + projects: + items: + $ref: '#/components/schemas/project_short' + type: array + value_options: + items: + type: string + type: array + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + title: custom_metadata_property + type: object + custom_metadata_data_type: + enum: + - boolean + - date + - link + - multi_select + - number + - single_select + - string + - text + type: string key_preview: properties: id: @@ -28735,6 +29412,9 @@ components: id: abcd1234cdef1234abcd1234cdef1234 username: joe.doe name: Joe Doe + custom_metadata: + fruit: Apple + vegetable: Tomato properties: name_plural: type: string @@ -28754,6 +29434,11 @@ components: type: string creator: $ref: '#/components/schemas/user_preview' + custom_metadata: + additionalProperties: + type: string + title: custom_metadata + type: object title: translation_key_details type: object affected_resources: @@ -30226,6 +30911,30 @@ components: type: string title: styleguide/update/parameters type: object + custom_metadata_property_create_422_response_errors_inner: + properties: + resource: + type: string + field: + type: string + message: + type: string + type: object + custom_metadata_property_create_422_response: + example: + message: Validation Failed + errors: + - resource: Resource + field: name + message: can't be blank + properties: + message: + type: string + errors: + items: + $ref: '#/components/schemas/custom_metadata_property_create_422_response_errors_inner' + type: array + type: object invitation_create_parameters: properties: email: @@ -30280,30 +30989,6 @@ components: type: object title: invitation/create/parameters type: object - invitation_create_422_response_errors_inner: - properties: - resource: - type: string - field: - type: string - message: - type: string - type: object - invitation_create_422_response: - example: - message: Validation Failed - errors: - - resource: Resource - field: name - message: can't be blank - properties: - message: - type: string - errors: - items: - $ref: '#/components/schemas/invitation_create_422_response_errors_inner' - type: array - type: object invitation_update_parameters: properties: role: @@ -32026,6 +32711,13 @@ components: format. type: string example: null + custom_metadata: + description: Custom metadata property name and value pairs to be associated + with key. + example: + fruit: Apple + vegetable: Tomato + type: object title: key/create/parameters type: object keys_search_parameters: @@ -32141,6 +32833,15 @@ components: format. type: string example: null + custom_metadata: + description: "Updates/Creates custom metadata property name and value pairs\ + \ to be associated with key. If you want to delete a custom metadata property,\ + \ you can set its value to null. If you want to update a custom metadata\ + \ property, you can set its value to the new value." + example: + fruit: Apple + vegetable: Tomato + type: object title: key/update/parameters type: object keys_tag_parameters: @@ -33097,6 +33798,7 @@ x-tagGroups: - Translations - Uploads - Tags + - Custom Metadata Properties - Blacklisted Keys - Versions / History - name: Workflows diff --git a/docs/CustomMetadataApi.md b/docs/CustomMetadataApi.md new file mode 100644 index 0000000000..c474ff782a --- /dev/null +++ b/docs/CustomMetadataApi.md @@ -0,0 +1,444 @@ +# CustomMetadataApi + +All URIs are relative to *https://api.phrase.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**customMetadataPropertiesDelete**](CustomMetadataApi.md#customMetadataPropertiesDelete) | **DELETE** /accounts/{account_id}/custom_metadata/properties/{id} | Destroy property +[**customMetadataPropertiesList**](CustomMetadataApi.md#customMetadataPropertiesList) | **GET** /accounts/{account_id}/custom_metadata/properties | List properties +[**customMetadataPropertyCreate**](CustomMetadataApi.md#customMetadataPropertyCreate) | **POST** /accounts/{account_id}/custom_metadata/properties | Create a property +[**customMetadataPropertyShow**](CustomMetadataApi.md#customMetadataPropertyShow) | **GET** /accounts/{account_id}/custom_metadata/properties/{id} | Get a single property +[**customMetadataPropertyUpdate**](CustomMetadataApi.md#customMetadataPropertyUpdate) | **PATCH** /accounts/{account_id}/custom_metadata/properties/{id} | Update a property + + + +# **customMetadataPropertiesDelete** +> customMetadataPropertiesDelete(accountId, id, xPhraseAppOTP) + +Destroy property + +Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above. + +### Example +```java +// Import classes: +import com.phrase.client.ApiClient; +import com.phrase.client.ApiException; +import com.phrase.client.Configuration; +import com.phrase.client.auth.*; +import com.phrase.client.models.*; +import com.phrase.client.api.CustomMetadataApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.phrase.com/v2"); + + // Configure HTTP basic authorization: Basic + HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); + Basic.setUsername("YOUR USERNAME"); + Basic.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: Token + ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); + Token.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //Token.setApiKeyPrefix("Token"); + + CustomMetadataApi apiInstance = new CustomMetadataApi(defaultClient); + String accountId = "accountId_example"; // String | Account ID + String id = "id_example"; // String | ID + String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional) + try { + apiInstance.customMetadataPropertiesDelete(accountId, id, xPhraseAppOTP); + } catch (ApiException e) { + System.err.println("Exception when calling CustomMetadataApi#customMetadataPropertiesDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountId** | **String**| Account ID | + **id** | **String**| ID | + **xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[Basic](../README.md#Basic), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The resource was deleted successfully. | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**400** | Bad request | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**404** | Not Found | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**429** | Rate Limiting | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| + + +# **customMetadataPropertiesList** +> List<CustomMetadataProperty> customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order) + +List properties + +List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above. + +### Example +```java +// Import classes: +import com.phrase.client.ApiClient; +import com.phrase.client.ApiException; +import com.phrase.client.Configuration; +import com.phrase.client.auth.*; +import com.phrase.client.models.*; +import com.phrase.client.api.CustomMetadataApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.phrase.com/v2"); + + // Configure HTTP basic authorization: Basic + HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); + Basic.setUsername("YOUR USERNAME"); + Basic.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: Token + ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); + Token.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //Token.setApiKeyPrefix("Token"); + + CustomMetadataApi apiInstance = new CustomMetadataApi(defaultClient); + String accountId = "accountId_example"; // String | Account ID + String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional) + CustomMetadataDataType dataType = CustomMetadataDataType.fromValue("boolean"); // CustomMetadataDataType | Data Type of Custom Metadata Property + String projectId = "abcd1234cdef1234abcd1234cdef1234"; // String | id of project that the properties belong to + Integer page = 1; // Integer | Page number + Integer perPage = 25; // Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default + String sort = "updated_at"; // String | Sort criteria. Can be one of: name, data_type, created_at. + String order = "desc"; // String | Order direction. Can be one of: asc, desc. + try { + List result = apiInstance.customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomMetadataApi#customMetadataPropertiesList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountId** | **String**| Account ID | + **xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional] + **dataType** | [**CustomMetadataDataType**](.md)| Data Type of Custom Metadata Property | [optional] [enum: boolean, date, link, multi_select, number, single_select, string, text] + **projectId** | **String**| id of project that the properties belong to | [optional] + **page** | **Integer**| Page number | [optional] + **perPage** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional] + **sort** | **String**| Sort criteria. Can be one of: name, data_type, created_at. | [optional] + **order** | **String**| Order direction. Can be one of: asc, desc. | [optional] + +### Return type + +[**List<CustomMetadataProperty>**](CustomMetadataProperty.md) + +### Authorization + +[Basic](../README.md#Basic), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
* Link -
| +**400** | Bad request | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**404** | Not Found | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**429** | Rate Limiting | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| + + +# **customMetadataPropertyCreate** +> CustomMetadataProperty customMetadataPropertyCreate(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions) + +Create a property + +Create a new custom metadata property. + +### Example +```java +// Import classes: +import com.phrase.client.ApiClient; +import com.phrase.client.ApiException; +import com.phrase.client.Configuration; +import com.phrase.client.auth.*; +import com.phrase.client.models.*; +import com.phrase.client.api.CustomMetadataApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.phrase.com/v2"); + + // Configure HTTP basic authorization: Basic + HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); + Basic.setUsername("YOUR USERNAME"); + Basic.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: Token + ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); + Token.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //Token.setApiKeyPrefix("Token"); + + CustomMetadataApi apiInstance = new CustomMetadataApi(defaultClient); + String accountId = "accountId_example"; // String | Account ID + String name = "[\"Fruit\"]"; // String | name of the property + CustomMetadataDataType dataType = CustomMetadataDataType.fromValue("boolean"); // CustomMetadataDataType | Data Type of Custom Metadata Property + String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional) + String description = "[\"A healthy snack for all ages\"]"; // String | description of property + List projectIds = Arrays.asList(); // List | ids of projects that the property belongs to + List valueOptions = Arrays.asList(); // List | value options of property (only applies to single or multi select properties) + try { + CustomMetadataProperty result = apiInstance.customMetadataPropertyCreate(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomMetadataApi#customMetadataPropertyCreate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountId** | **String**| Account ID | + **name** | **String**| name of the property | + **dataType** | [**CustomMetadataDataType**](.md)| Data Type of Custom Metadata Property | [enum: boolean, date, link, multi_select, number, single_select, string, text] + **xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional] + **description** | **String**| description of property | [optional] + **projectIds** | [**List<String>**](String.md)| ids of projects that the property belongs to | [optional] + **valueOptions** | [**List<String>**](String.md)| value options of property (only applies to single or multi select properties) | [optional] + +### Return type + +[**CustomMetadataProperty**](CustomMetadataProperty.md) + +### Authorization + +[Basic](../README.md#Basic), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**400** | Bad request | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**404** | Not Found | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**422** | Unprocessable entity | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**429** | Rate Limiting | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| + + +# **customMetadataPropertyShow** +> CustomMetadataProperty customMetadataPropertyShow(accountId, id, xPhraseAppOTP) + +Get a single property + +Get details of a single custom property. + +### Example +```java +// Import classes: +import com.phrase.client.ApiClient; +import com.phrase.client.ApiException; +import com.phrase.client.Configuration; +import com.phrase.client.auth.*; +import com.phrase.client.models.*; +import com.phrase.client.api.CustomMetadataApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.phrase.com/v2"); + + // Configure HTTP basic authorization: Basic + HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); + Basic.setUsername("YOUR USERNAME"); + Basic.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: Token + ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); + Token.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //Token.setApiKeyPrefix("Token"); + + CustomMetadataApi apiInstance = new CustomMetadataApi(defaultClient); + String accountId = "accountId_example"; // String | Account ID + String id = "id_example"; // String | ID + String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional) + try { + CustomMetadataProperty result = apiInstance.customMetadataPropertyShow(accountId, id, xPhraseAppOTP); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomMetadataApi#customMetadataPropertyShow"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountId** | **String**| Account ID | + **id** | **String**| ID | + **xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional] + +### Return type + +[**CustomMetadataProperty**](CustomMetadataProperty.md) + +### Authorization + +[Basic](../README.md#Basic), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**400** | Bad request | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**404** | Not Found | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**429** | Rate Limiting | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| + + +# **customMetadataPropertyUpdate** +> CustomMetadataProperty customMetadataPropertyUpdate(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions) + +Update a property + +Update an existing custom metadata property. + +### Example +```java +// Import classes: +import com.phrase.client.ApiClient; +import com.phrase.client.ApiException; +import com.phrase.client.Configuration; +import com.phrase.client.auth.*; +import com.phrase.client.models.*; +import com.phrase.client.api.CustomMetadataApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.phrase.com/v2"); + + // Configure HTTP basic authorization: Basic + HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic"); + Basic.setUsername("YOUR USERNAME"); + Basic.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: Token + ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); + Token.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //Token.setApiKeyPrefix("Token"); + + CustomMetadataApi apiInstance = new CustomMetadataApi(defaultClient); + String accountId = "accountId_example"; // String | Account ID + String id = "id_example"; // String | ID + String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional) + String name = "[\"Fruit\"]"; // String | name of the property + String description = "[\"A healthy snack for all ages\"]"; // String | description of property + List projectIds = Arrays.asList(); // List | ids of projects that the property belongs to + List valueOptions = Arrays.asList(); // List | value options of property (only applies to single or multi select properties) + try { + CustomMetadataProperty result = apiInstance.customMetadataPropertyUpdate(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomMetadataApi#customMetadataPropertyUpdate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountId** | **String**| Account ID | + **id** | **String**| ID | + **xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional] + **name** | **String**| name of the property | [optional] + **description** | **String**| description of property | [optional] + **projectIds** | [**List<String>**](String.md)| ids of projects that the property belongs to | [optional] + **valueOptions** | [**List<String>**](String.md)| value options of property (only applies to single or multi select properties) | [optional] + +### Return type + +[**CustomMetadataProperty**](CustomMetadataProperty.md) + +### Authorization + +[Basic](../README.md#Basic), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**400** | Bad request | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**404** | Not Found | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| +**429** | Rate Limiting | * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
| + diff --git a/docs/CustomMetadataDataType.md b/docs/CustomMetadataDataType.md new file mode 100644 index 0000000000..3e79c95f68 --- /dev/null +++ b/docs/CustomMetadataDataType.md @@ -0,0 +1,25 @@ + + +# CustomMetadataDataType + +## Enum + + +* `BOOLEAN` (value: `"boolean"`) + +* `DATE` (value: `"date"`) + +* `LINK` (value: `"link"`) + +* `MULTI_SELECT` (value: `"multi_select"`) + +* `NUMBER` (value: `"number"`) + +* `SINGLE_SELECT` (value: `"single_select"`) + +* `STRING` (value: `"string"`) + +* `TEXT` (value: `"text"`) + + + diff --git a/docs/CustomMetadataProperty.md b/docs/CustomMetadataProperty.md new file mode 100644 index 0000000000..9b4fbcd14c --- /dev/null +++ b/docs/CustomMetadataProperty.md @@ -0,0 +1,20 @@ + + +# CustomMetadataProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**name** | **String** | | [optional] +**description** | **String** | | [optional] +**dataType** | [**CustomMetadataDataType**](CustomMetadataDataType.md) | | [optional] +**user** | [**UserPreview**](UserPreview.md) | | [optional] +**projects** | [**List<ProjectShort>**](ProjectShort.md) | | [optional] +**valueOptions** | **List<String>** | | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] + + + diff --git a/docs/CustomMetadataPropertyCreate422Response.md b/docs/CustomMetadataPropertyCreate422Response.md new file mode 100644 index 0000000000..39ab511dc3 --- /dev/null +++ b/docs/CustomMetadataPropertyCreate422Response.md @@ -0,0 +1,13 @@ + + +# CustomMetadataPropertyCreate422Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**errors** | [**List<CustomMetadataPropertyCreate422ResponseErrorsInner>**](CustomMetadataPropertyCreate422ResponseErrorsInner.md) | | [optional] + + + diff --git a/docs/InvitationCreate422ResponseErrorsInner.md b/docs/CustomMetadataPropertyCreate422ResponseErrorsInner.md similarity index 81% rename from docs/InvitationCreate422ResponseErrorsInner.md rename to docs/CustomMetadataPropertyCreate422ResponseErrorsInner.md index a10e7023ba..f3a4ea9791 100644 --- a/docs/InvitationCreate422ResponseErrorsInner.md +++ b/docs/CustomMetadataPropertyCreate422ResponseErrorsInner.md @@ -1,6 +1,6 @@ -# InvitationCreate422ResponseErrorsInner +# CustomMetadataPropertyCreate422ResponseErrorsInner ## Properties diff --git a/docs/InvitationCreate422Response.md b/docs/InvitationCreate422Response.md deleted file mode 100644 index ae1fee44d7..0000000000 --- a/docs/InvitationCreate422Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# InvitationCreate422Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**errors** | [**List<InvitationCreate422ResponseErrorsInner>**](InvitationCreate422ResponseErrorsInner.md) | | [optional] - - - diff --git a/docs/KeyCreateParameters.md b/docs/KeyCreateParameters.md index d01b3dfb24..beae46d147 100644 --- a/docs/KeyCreateParameters.md +++ b/docs/KeyCreateParameters.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **originalFile** | **String** | Original file attribute. Used in some formats, e.g. XLIFF. | [optional] **localizedFormatString** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. | [optional] **localizedFormatKey** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. | [optional] +**customMetadata** | **Object** | Custom metadata property name and value pairs to be associated with key. | [optional] diff --git a/docs/KeyUpdateParameters.md b/docs/KeyUpdateParameters.md index ac1338bf9b..625e032734 100644 --- a/docs/KeyUpdateParameters.md +++ b/docs/KeyUpdateParameters.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **originalFile** | **String** | Original file attribute. Used in some formats, e.g. XLIFF. | [optional] **localizedFormatString** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. | [optional] **localizedFormatKey** | **String** | NSStringLocalizedFormatKey attribute. Used in .stringsdict format. | [optional] +**customMetadata** | **Object** | Updates/Creates custom metadata property name and value pairs to be associated with key. If you want to delete a custom metadata property, you can set its value to null. If you want to update a custom metadata property, you can set its value to the new value. | [optional] diff --git a/docs/TranslationKeyDetails.md b/docs/TranslationKeyDetails.md index d2eb37cce5..380f9cd268 100644 --- a/docs/TranslationKeyDetails.md +++ b/docs/TranslationKeyDetails.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **originalFile** | **String** | | [optional] **formatValueType** | **String** | | [optional] **creator** | [**UserPreview**](UserPreview.md) | | [optional] +**customMetadata** | **Map<String, String>** | | [optional] diff --git a/src/main/java/com/phrase/client/ApiException.java b/src/main/java/com/phrase/client/ApiException.java index 84fe804cc0..02a7ec8c02 100644 --- a/src/main/java/com/phrase/client/ApiException.java +++ b/src/main/java/com/phrase/client/ApiException.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/com/phrase/client/Configuration.java b/src/main/java/com/phrase/client/Configuration.java index 6d5deafb6b..5fa7a15eea 100644 --- a/src/main/java/com/phrase/client/Configuration.java +++ b/src/main/java/com/phrase/client/Configuration.java @@ -12,7 +12,7 @@ package com.phrase.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/phrase/client/Pair.java b/src/main/java/com/phrase/client/Pair.java index 569d80989f..1f4d8a1d77 100644 --- a/src/main/java/com/phrase/client/Pair.java +++ b/src/main/java/com/phrase/client/Pair.java @@ -12,7 +12,7 @@ package com.phrase.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/phrase/client/StringUtil.java b/src/main/java/com/phrase/client/StringUtil.java index 89ba6059d6..6a4e45356f 100644 --- a/src/main/java/com/phrase/client/StringUtil.java +++ b/src/main/java/com/phrase/client/StringUtil.java @@ -12,7 +12,7 @@ package com.phrase.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/phrase/client/api/CustomMetadataApi.java b/src/main/java/com/phrase/client/api/CustomMetadataApi.java new file mode 100644 index 0000000000..a63bfcb5e3 --- /dev/null +++ b/src/main/java/com/phrase/client/api/CustomMetadataApi.java @@ -0,0 +1,873 @@ +/* + * Phrase Strings API Reference + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@phrase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.phrase.client.api; + +import com.phrase.client.ApiCallback; +import com.phrase.client.ApiClient; +import com.phrase.client.ApiException; +import com.phrase.client.ApiResponse; +import com.phrase.client.Configuration; +import com.phrase.client.Pair; +import com.phrase.client.ProgressRequestBody; +import com.phrase.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.phrase.client.model.CustomMetadataDataType; +import com.phrase.client.model.CustomMetadataProperty; +import com.phrase.client.model.CustomMetadataPropertyCreate422Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CustomMetadataApi { + private ApiClient localVarApiClient; + + public CustomMetadataApi() { + this(Configuration.getDefaultApiClient()); + } + + public CustomMetadataApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + /** + * Build call for customMetadataPropertiesDelete + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 The resource was deleted successfully. * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertiesDeleteCall(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/accounts/{account_id}/custom_metadata/properties/{id}" + .replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + if (xPhraseAppOTP != null) { + localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP)); + } + + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "Basic", "Token" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call customMetadataPropertiesDeleteValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling customMetadataPropertiesDelete(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling customMetadataPropertiesDelete(Async)"); + } + + + okhttp3.Call localVarCall = customMetadataPropertiesDeleteCall(accountId, id, xPhraseAppOTP, _callback); + return localVarCall; + + } + + /** + * Destroy property + * Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 The resource was deleted successfully. * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public void customMetadataPropertiesDelete(String accountId, String id, String xPhraseAppOTP) throws ApiException { + customMetadataPropertiesDeleteWithHttpInfo(accountId, id, xPhraseAppOTP); + } + + /** + * Destroy property + * Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 The resource was deleted successfully. * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public ApiResponse customMetadataPropertiesDeleteWithHttpInfo(String accountId, String id, String xPhraseAppOTP) throws ApiException { + okhttp3.Call localVarCall = customMetadataPropertiesDeleteValidateBeforeCall(accountId, id, xPhraseAppOTP, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Destroy property (asynchronously) + * Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 The resource was deleted successfully. * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertiesDeleteAsync(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = customMetadataPropertiesDeleteValidateBeforeCall(accountId, id, xPhraseAppOTP, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for customMetadataPropertiesList + * @param accountId Account ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param dataType Data Type of Custom Metadata Property (optional) + * @param projectId id of project that the properties belong to (optional) + * @param page Page number (optional) + * @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional) + * @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional) + * @param order Order direction. Can be one of: asc, desc. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
* Link -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertiesListCall(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/accounts/{account_id}/custom_metadata/properties" + .replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (dataType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("data_type", dataType)); + } + + if (projectId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("project_id", projectId)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + Map localVarHeaderParams = new HashMap(); + if (xPhraseAppOTP != null) { + localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP)); + } + + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "Basic", "Token" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call customMetadataPropertiesListValidateBeforeCall(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling customMetadataPropertiesList(Async)"); + } + + + okhttp3.Call localVarCall = customMetadataPropertiesListCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order, _callback); + return localVarCall; + + } + + /** + * List properties + * List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above. + * @param accountId Account ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param dataType Data Type of Custom Metadata Property (optional) + * @param projectId id of project that the properties belong to (optional) + * @param page Page number (optional) + * @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional) + * @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional) + * @param order Order direction. Can be one of: asc, desc. (optional) + * @return List<CustomMetadataProperty> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
* Link -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public List customMetadataPropertiesList(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order) throws ApiException { + ApiResponse> localVarResp = customMetadataPropertiesListWithHttpInfo(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order); + return localVarResp.getData(); + } + + /** + * List properties + * List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above. + * @param accountId Account ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param dataType Data Type of Custom Metadata Property (optional) + * @param projectId id of project that the properties belong to (optional) + * @param page Page number (optional) + * @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional) + * @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional) + * @param order Order direction. Can be one of: asc, desc. (optional) + * @return ApiResponse<List<CustomMetadataProperty>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
* Link -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public ApiResponse> customMetadataPropertiesListWithHttpInfo(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order) throws ApiException { + okhttp3.Call localVarCall = customMetadataPropertiesListValidateBeforeCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List properties (asynchronously) + * List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above. + * @param accountId Account ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param dataType Data Type of Custom Metadata Property (optional) + * @param projectId id of project that the properties belong to (optional) + * @param page Page number (optional) + * @param perPage Limit on the number of objects to be returned, between 1 and 100. 25 by default (optional) + * @param sort Sort criteria. Can be one of: name, data_type, created_at. (optional) + * @param order Order direction. Can be one of: asc, desc. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
* Link -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertiesListAsync(String accountId, String xPhraseAppOTP, CustomMetadataDataType dataType, String projectId, Integer page, Integer perPage, String sort, String order, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = customMetadataPropertiesListValidateBeforeCall(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for customMetadataPropertyCreate + * @param accountId Account ID (required) + * @param name name of the property (required) + * @param dataType Data Type of Custom Metadata Property (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
422 Unprocessable entity * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertyCreateCall(String accountId, String name, CustomMetadataDataType dataType, String xPhraseAppOTP, String description, List projectIds, List valueOptions, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/accounts/{account_id}/custom_metadata/properties" + .replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (dataType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("data_type", dataType)); + } + + if (description != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("description", description)); + } + + if (projectIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "project_ids", projectIds)); + } + + if (valueOptions != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "value_options", valueOptions)); + } + + Map localVarHeaderParams = new HashMap(); + if (xPhraseAppOTP != null) { + localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP)); + } + + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "Basic", "Token" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call customMetadataPropertyCreateValidateBeforeCall(String accountId, String name, CustomMetadataDataType dataType, String xPhraseAppOTP, String description, List projectIds, List valueOptions, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling customMetadataPropertyCreate(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling customMetadataPropertyCreate(Async)"); + } + + // verify the required parameter 'dataType' is set + if (dataType == null) { + throw new ApiException("Missing the required parameter 'dataType' when calling customMetadataPropertyCreate(Async)"); + } + + + okhttp3.Call localVarCall = customMetadataPropertyCreateCall(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions, _callback); + return localVarCall; + + } + + /** + * Create a property + * Create a new custom metadata property. + * @param accountId Account ID (required) + * @param name name of the property (required) + * @param dataType Data Type of Custom Metadata Property (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @return CustomMetadataProperty + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
422 Unprocessable entity * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public CustomMetadataProperty customMetadataPropertyCreate(String accountId, String name, CustomMetadataDataType dataType, String xPhraseAppOTP, String description, List projectIds, List valueOptions) throws ApiException { + ApiResponse localVarResp = customMetadataPropertyCreateWithHttpInfo(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions); + return localVarResp.getData(); + } + + /** + * Create a property + * Create a new custom metadata property. + * @param accountId Account ID (required) + * @param name name of the property (required) + * @param dataType Data Type of Custom Metadata Property (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @return ApiResponse<CustomMetadataProperty> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
422 Unprocessable entity * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public ApiResponse customMetadataPropertyCreateWithHttpInfo(String accountId, String name, CustomMetadataDataType dataType, String xPhraseAppOTP, String description, List projectIds, List valueOptions) throws ApiException { + okhttp3.Call localVarCall = customMetadataPropertyCreateValidateBeforeCall(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create a property (asynchronously) + * Create a new custom metadata property. + * @param accountId Account ID (required) + * @param name name of the property (required) + * @param dataType Data Type of Custom Metadata Property (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
422 Unprocessable entity * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertyCreateAsync(String accountId, String name, CustomMetadataDataType dataType, String xPhraseAppOTP, String description, List projectIds, List valueOptions, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = customMetadataPropertyCreateValidateBeforeCall(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for customMetadataPropertyShow + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertyShowCall(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/accounts/{account_id}/custom_metadata/properties/{id}" + .replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + if (xPhraseAppOTP != null) { + localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP)); + } + + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "Basic", "Token" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call customMetadataPropertyShowValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling customMetadataPropertyShow(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling customMetadataPropertyShow(Async)"); + } + + + okhttp3.Call localVarCall = customMetadataPropertyShowCall(accountId, id, xPhraseAppOTP, _callback); + return localVarCall; + + } + + /** + * Get a single property + * Get details of a single custom property. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @return CustomMetadataProperty + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public CustomMetadataProperty customMetadataPropertyShow(String accountId, String id, String xPhraseAppOTP) throws ApiException { + ApiResponse localVarResp = customMetadataPropertyShowWithHttpInfo(accountId, id, xPhraseAppOTP); + return localVarResp.getData(); + } + + /** + * Get a single property + * Get details of a single custom property. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @return ApiResponse<CustomMetadataProperty> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public ApiResponse customMetadataPropertyShowWithHttpInfo(String accountId, String id, String xPhraseAppOTP) throws ApiException { + okhttp3.Call localVarCall = customMetadataPropertyShowValidateBeforeCall(accountId, id, xPhraseAppOTP, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a single property (asynchronously) + * Get details of a single custom property. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertyShowAsync(String accountId, String id, String xPhraseAppOTP, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = customMetadataPropertyShowValidateBeforeCall(accountId, id, xPhraseAppOTP, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for customMetadataPropertyUpdate + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param name name of the property (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertyUpdateCall(String accountId, String id, String xPhraseAppOTP, String name, String description, List projectIds, List valueOptions, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/accounts/{account_id}/custom_metadata/properties/{id}" + .replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (description != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("description", description)); + } + + if (projectIds != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "project_ids", projectIds)); + } + + if (valueOptions != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "value_options", valueOptions)); + } + + Map localVarHeaderParams = new HashMap(); + if (xPhraseAppOTP != null) { + localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP)); + } + + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "Basic", "Token" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call customMetadataPropertyUpdateValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, String name, String description, List projectIds, List valueOptions, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling customMetadataPropertyUpdate(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling customMetadataPropertyUpdate(Async)"); + } + + + okhttp3.Call localVarCall = customMetadataPropertyUpdateCall(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions, _callback); + return localVarCall; + + } + + /** + * Update a property + * Update an existing custom metadata property. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param name name of the property (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @return CustomMetadataProperty + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public CustomMetadataProperty customMetadataPropertyUpdate(String accountId, String id, String xPhraseAppOTP, String name, String description, List projectIds, List valueOptions) throws ApiException { + ApiResponse localVarResp = customMetadataPropertyUpdateWithHttpInfo(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions); + return localVarResp.getData(); + } + + /** + * Update a property + * Update an existing custom metadata property. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param name name of the property (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @return ApiResponse<CustomMetadataProperty> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public ApiResponse customMetadataPropertyUpdateWithHttpInfo(String accountId, String id, String xPhraseAppOTP, String name, String description, List projectIds, List valueOptions) throws ApiException { + okhttp3.Call localVarCall = customMetadataPropertyUpdateValidateBeforeCall(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update a property (asynchronously) + * Update an existing custom metadata property. + * @param accountId Account ID (required) + * @param id ID (required) + * @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional) + * @param name name of the property (optional) + * @param description description of property (optional) + * @param projectIds ids of projects that the property belongs to (optional) + * @param valueOptions value options of property (only applies to single or multi select properties) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
+ */ + public okhttp3.Call customMetadataPropertyUpdateAsync(String accountId, String id, String xPhraseAppOTP, String name, String description, List projectIds, List valueOptions, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = customMetadataPropertyUpdateValidateBeforeCall(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/com/phrase/client/api/GitHubSyncApi.java b/src/main/java/com/phrase/client/api/GitHubSyncApi.java index f3e76ab2a7..9080e120e7 100644 --- a/src/main/java/com/phrase/client/api/GitHubSyncApi.java +++ b/src/main/java/com/phrase/client/api/GitHubSyncApi.java @@ -26,9 +26,9 @@ import java.io.IOException; +import com.phrase.client.model.CustomMetadataPropertyCreate422Response; import com.phrase.client.model.GithubSyncExportParameters; import com.phrase.client.model.GithubSyncImportParameters; -import com.phrase.client.model.InvitationCreate422Response; import java.lang.reflect.Type; import java.util.ArrayList; diff --git a/src/main/java/com/phrase/client/api/InvitationsApi.java b/src/main/java/com/phrase/client/api/InvitationsApi.java index f3ddc811d6..1131305c15 100644 --- a/src/main/java/com/phrase/client/api/InvitationsApi.java +++ b/src/main/java/com/phrase/client/api/InvitationsApi.java @@ -26,8 +26,8 @@ import java.io.IOException; +import com.phrase.client.model.CustomMetadataPropertyCreate422Response; import com.phrase.client.model.Invitation; -import com.phrase.client.model.InvitationCreate422Response; import com.phrase.client.model.InvitationCreateParameters; import com.phrase.client.model.InvitationUpdateParameters; import com.phrase.client.model.InvitationUpdateSettingsParameters; diff --git a/src/main/java/com/phrase/client/auth/ApiKeyAuth.java b/src/main/java/com/phrase/client/auth/ApiKeyAuth.java index a8bcb07cd4..410f3315ca 100644 --- a/src/main/java/com/phrase/client/auth/ApiKeyAuth.java +++ b/src/main/java/com/phrase/client/auth/ApiKeyAuth.java @@ -17,7 +17,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/phrase/client/auth/HttpBearerAuth.java b/src/main/java/com/phrase/client/auth/HttpBearerAuth.java index a87755917c..0b6c1ab87f 100644 --- a/src/main/java/com/phrase/client/auth/HttpBearerAuth.java +++ b/src/main/java/com/phrase/client/auth/HttpBearerAuth.java @@ -17,7 +17,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/com/phrase/client/model/AbstractOpenApiSchema.java b/src/main/java/com/phrase/client/model/AbstractOpenApiSchema.java index 091d4716ee..dcc4290f87 100644 --- a/src/main/java/com/phrase/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/phrase/client/model/AbstractOpenApiSchema.java @@ -22,7 +22,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/phrase/client/model/Account.java b/src/main/java/com/phrase/client/model/Account.java index 6906feae17..02a940207e 100644 --- a/src/main/java/com/phrase/client/model/Account.java +++ b/src/main/java/com/phrase/client/model/Account.java @@ -27,7 +27,7 @@ /** * Account */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Account { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/AccountDetails.java b/src/main/java/com/phrase/client/model/AccountDetails.java index 3aa7714541..c17a285dce 100644 --- a/src/main/java/com/phrase/client/model/AccountDetails.java +++ b/src/main/java/com/phrase/client/model/AccountDetails.java @@ -28,7 +28,7 @@ /** * AccountDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AccountDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/AccountSearchResult.java b/src/main/java/com/phrase/client/model/AccountSearchResult.java index 93b9095e39..cd4ab7dc13 100644 --- a/src/main/java/com/phrase/client/model/AccountSearchResult.java +++ b/src/main/java/com/phrase/client/model/AccountSearchResult.java @@ -32,7 +32,7 @@ /** * AccountSearchResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AccountSearchResult { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/src/main/java/com/phrase/client/model/AffectedCount.java b/src/main/java/com/phrase/client/model/AffectedCount.java index 093078cbdf..2f47f01c40 100644 --- a/src/main/java/com/phrase/client/model/AffectedCount.java +++ b/src/main/java/com/phrase/client/model/AffectedCount.java @@ -26,7 +26,7 @@ /** * AffectedCount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AffectedCount { public static final String SERIALIZED_NAME_RECORDS_AFFECTED = "records_affected"; @SerializedName(SERIALIZED_NAME_RECORDS_AFFECTED) diff --git a/src/main/java/com/phrase/client/model/AffectedResources.java b/src/main/java/com/phrase/client/model/AffectedResources.java index f65fd2be6b..bdde498c3c 100644 --- a/src/main/java/com/phrase/client/model/AffectedResources.java +++ b/src/main/java/com/phrase/client/model/AffectedResources.java @@ -26,7 +26,7 @@ /** * AffectedResources */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AffectedResources { public static final String SERIALIZED_NAME_RECORDS_AFFECTED = "records_affected"; @SerializedName(SERIALIZED_NAME_RECORDS_AFFECTED) diff --git a/src/main/java/com/phrase/client/model/Authorization.java b/src/main/java/com/phrase/client/model/Authorization.java index 994dce30b4..e9c0bfd911 100644 --- a/src/main/java/com/phrase/client/model/Authorization.java +++ b/src/main/java/com/phrase/client/model/Authorization.java @@ -29,7 +29,7 @@ /** * Authorization */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Authorization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/AuthorizationCreateParameters.java b/src/main/java/com/phrase/client/model/AuthorizationCreateParameters.java index f3dfb31336..cfb0db0b76 100644 --- a/src/main/java/com/phrase/client/model/AuthorizationCreateParameters.java +++ b/src/main/java/com/phrase/client/model/AuthorizationCreateParameters.java @@ -29,7 +29,7 @@ /** * AuthorizationCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AuthorizationCreateParameters { public static final String SERIALIZED_NAME_NOTE = "note"; @SerializedName(SERIALIZED_NAME_NOTE) diff --git a/src/main/java/com/phrase/client/model/AuthorizationUpdateParameters.java b/src/main/java/com/phrase/client/model/AuthorizationUpdateParameters.java index db64f6fc36..c9dc4ac6c6 100644 --- a/src/main/java/com/phrase/client/model/AuthorizationUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/AuthorizationUpdateParameters.java @@ -29,7 +29,7 @@ /** * AuthorizationUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AuthorizationUpdateParameters { public static final String SERIALIZED_NAME_NOTE = "note"; @SerializedName(SERIALIZED_NAME_NOTE) diff --git a/src/main/java/com/phrase/client/model/AuthorizationWithToken.java b/src/main/java/com/phrase/client/model/AuthorizationWithToken.java index d8b0f70a0c..b784c2e592 100644 --- a/src/main/java/com/phrase/client/model/AuthorizationWithToken.java +++ b/src/main/java/com/phrase/client/model/AuthorizationWithToken.java @@ -29,7 +29,7 @@ /** * AuthorizationWithToken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class AuthorizationWithToken { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/BitbucketSync.java b/src/main/java/com/phrase/client/model/BitbucketSync.java index 1e8a533fab..e466efbe8d 100644 --- a/src/main/java/com/phrase/client/model/BitbucketSync.java +++ b/src/main/java/com/phrase/client/model/BitbucketSync.java @@ -30,7 +30,7 @@ /** * BitbucketSync */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BitbucketSync { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/BitbucketSyncExportParameters.java b/src/main/java/com/phrase/client/model/BitbucketSyncExportParameters.java index 9d229e9d23..63ff9bfb8c 100644 --- a/src/main/java/com/phrase/client/model/BitbucketSyncExportParameters.java +++ b/src/main/java/com/phrase/client/model/BitbucketSyncExportParameters.java @@ -26,7 +26,7 @@ /** * BitbucketSyncExportParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BitbucketSyncExportParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/com/phrase/client/model/BitbucketSyncExportResponse.java b/src/main/java/com/phrase/client/model/BitbucketSyncExportResponse.java index c3c0556e04..0f540169a1 100644 --- a/src/main/java/com/phrase/client/model/BitbucketSyncExportResponse.java +++ b/src/main/java/com/phrase/client/model/BitbucketSyncExportResponse.java @@ -26,7 +26,7 @@ /** * BitbucketSyncExportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BitbucketSyncExportResponse { public static final String SERIALIZED_NAME_STATUS_PATH = "status_path"; @SerializedName(SERIALIZED_NAME_STATUS_PATH) diff --git a/src/main/java/com/phrase/client/model/BitbucketSyncImportParameters.java b/src/main/java/com/phrase/client/model/BitbucketSyncImportParameters.java index 3699c9dc80..739dc38396 100644 --- a/src/main/java/com/phrase/client/model/BitbucketSyncImportParameters.java +++ b/src/main/java/com/phrase/client/model/BitbucketSyncImportParameters.java @@ -26,7 +26,7 @@ /** * BitbucketSyncImportParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BitbucketSyncImportParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/com/phrase/client/model/BlacklistedKey.java b/src/main/java/com/phrase/client/model/BlacklistedKey.java index dd4978ce0c..562d7234b3 100644 --- a/src/main/java/com/phrase/client/model/BlacklistedKey.java +++ b/src/main/java/com/phrase/client/model/BlacklistedKey.java @@ -27,7 +27,7 @@ /** * BlacklistedKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BlacklistedKey { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/BlacklistedKeyCreateParameters.java b/src/main/java/com/phrase/client/model/BlacklistedKeyCreateParameters.java index 7b56522060..c430ae72e7 100644 --- a/src/main/java/com/phrase/client/model/BlacklistedKeyCreateParameters.java +++ b/src/main/java/com/phrase/client/model/BlacklistedKeyCreateParameters.java @@ -26,7 +26,7 @@ /** * BlacklistedKeyCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BlacklistedKeyCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/BlacklistedKeyUpdateParameters.java b/src/main/java/com/phrase/client/model/BlacklistedKeyUpdateParameters.java index 66073d0aeb..cbe8f7ba56 100644 --- a/src/main/java/com/phrase/client/model/BlacklistedKeyUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/BlacklistedKeyUpdateParameters.java @@ -26,7 +26,7 @@ /** * BlacklistedKeyUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BlacklistedKeyUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/Branch.java b/src/main/java/com/phrase/client/model/Branch.java index 60a849130d..bf36e20f71 100644 --- a/src/main/java/com/phrase/client/model/Branch.java +++ b/src/main/java/com/phrase/client/model/Branch.java @@ -28,7 +28,7 @@ /** * Branch */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Branch { public static final String SERIALIZED_NAME_BASE_PROJECT_ID = "base_project_id"; @SerializedName(SERIALIZED_NAME_BASE_PROJECT_ID) diff --git a/src/main/java/com/phrase/client/model/BranchCreateParameters.java b/src/main/java/com/phrase/client/model/BranchCreateParameters.java index 4cae0ee8f4..b381857585 100644 --- a/src/main/java/com/phrase/client/model/BranchCreateParameters.java +++ b/src/main/java/com/phrase/client/model/BranchCreateParameters.java @@ -26,7 +26,7 @@ /** * BranchCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BranchCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/BranchMergeParameters.java b/src/main/java/com/phrase/client/model/BranchMergeParameters.java index 86a7807884..6ce72deb13 100644 --- a/src/main/java/com/phrase/client/model/BranchMergeParameters.java +++ b/src/main/java/com/phrase/client/model/BranchMergeParameters.java @@ -26,7 +26,7 @@ /** * BranchMergeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BranchMergeParameters { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) diff --git a/src/main/java/com/phrase/client/model/BranchName.java b/src/main/java/com/phrase/client/model/BranchName.java index 4d793bb9df..bebf046618 100644 --- a/src/main/java/com/phrase/client/model/BranchName.java +++ b/src/main/java/com/phrase/client/model/BranchName.java @@ -26,7 +26,7 @@ /** * BranchName */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BranchName { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/BranchUpdateParameters.java b/src/main/java/com/phrase/client/model/BranchUpdateParameters.java index f168cce29b..be752383e5 100644 --- a/src/main/java/com/phrase/client/model/BranchUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/BranchUpdateParameters.java @@ -26,7 +26,7 @@ /** * BranchUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class BranchUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/Comment.java b/src/main/java/com/phrase/client/model/Comment.java index bd7194f9fb..b50f683c9d 100644 --- a/src/main/java/com/phrase/client/model/Comment.java +++ b/src/main/java/com/phrase/client/model/Comment.java @@ -31,7 +31,7 @@ /** * Comment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Comment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/CommentCreateParameters.java b/src/main/java/com/phrase/client/model/CommentCreateParameters.java index 341954b8c9..d8b5b8f428 100644 --- a/src/main/java/com/phrase/client/model/CommentCreateParameters.java +++ b/src/main/java/com/phrase/client/model/CommentCreateParameters.java @@ -26,7 +26,7 @@ /** * CommentCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class CommentCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/CommentMarkReadParameters.java b/src/main/java/com/phrase/client/model/CommentMarkReadParameters.java index 68be27640f..c3fc24b5be 100644 --- a/src/main/java/com/phrase/client/model/CommentMarkReadParameters.java +++ b/src/main/java/com/phrase/client/model/CommentMarkReadParameters.java @@ -26,7 +26,7 @@ /** * CommentMarkReadParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class CommentMarkReadParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/CommentReaction.java b/src/main/java/com/phrase/client/model/CommentReaction.java index 97e4715684..d46b80441c 100644 --- a/src/main/java/com/phrase/client/model/CommentReaction.java +++ b/src/main/java/com/phrase/client/model/CommentReaction.java @@ -29,7 +29,7 @@ /** * CommentReaction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class CommentReaction { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/CommentUpdateParameters.java b/src/main/java/com/phrase/client/model/CommentUpdateParameters.java index ad9261fa25..2dbb1f986e 100644 --- a/src/main/java/com/phrase/client/model/CommentUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/CommentUpdateParameters.java @@ -26,7 +26,7 @@ /** * CommentUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class CommentUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/CommentsListParameters.java b/src/main/java/com/phrase/client/model/CommentsListParameters.java index c1d9f3a8f3..f702c827cc 100644 --- a/src/main/java/com/phrase/client/model/CommentsListParameters.java +++ b/src/main/java/com/phrase/client/model/CommentsListParameters.java @@ -28,7 +28,7 @@ /** * CommentsListParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class CommentsListParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/CurrentUser.java b/src/main/java/com/phrase/client/model/CurrentUser.java index 25aa79c1c3..b4e66d961c 100644 --- a/src/main/java/com/phrase/client/model/CurrentUser.java +++ b/src/main/java/com/phrase/client/model/CurrentUser.java @@ -27,7 +27,7 @@ /** * CurrentUser */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class CurrentUser { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/CustomMetadataDataType.java b/src/main/java/com/phrase/client/model/CustomMetadataDataType.java new file mode 100644 index 0000000000..6778c26e32 --- /dev/null +++ b/src/main/java/com/phrase/client/model/CustomMetadataDataType.java @@ -0,0 +1,85 @@ +/* + * Phrase Strings API Reference + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@phrase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.phrase.client.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets custom_metadata_data_type + */ +@JsonAdapter(CustomMetadataDataType.Adapter.class) +public enum CustomMetadataDataType { + + BOOLEAN("boolean"), + + DATE("date"), + + LINK("link"), + + MULTI_SELECT("multi_select"), + + NUMBER("number"), + + SINGLE_SELECT("single_select"), + + STRING("string"), + + TEXT("text"); + + private String value; + + CustomMetadataDataType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CustomMetadataDataType fromValue(String value) { + for (CustomMetadataDataType b : CustomMetadataDataType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CustomMetadataDataType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CustomMetadataDataType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CustomMetadataDataType.fromValue(value); + } + } +} + diff --git a/src/main/java/com/phrase/client/model/CustomMetadataProperty.java b/src/main/java/com/phrase/client/model/CustomMetadataProperty.java new file mode 100644 index 0000000000..031eba7637 --- /dev/null +++ b/src/main/java/com/phrase/client/model/CustomMetadataProperty.java @@ -0,0 +1,343 @@ +/* + * Phrase Strings API Reference + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@phrase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.phrase.client.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.phrase.client.model.CustomMetadataDataType; +import com.phrase.client.model.ProjectShort; +import com.phrase.client.model.UserPreview; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * CustomMetadataProperty + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") +public class CustomMetadataProperty { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_DATA_TYPE = "data_type"; + @SerializedName(SERIALIZED_NAME_DATA_TYPE) + private CustomMetadataDataType dataType; + + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private UserPreview user; + + public static final String SERIALIZED_NAME_PROJECTS = "projects"; + @SerializedName(SERIALIZED_NAME_PROJECTS) + private List projects; + + public static final String SERIALIZED_NAME_VALUE_OPTIONS = "value_options"; + @SerializedName(SERIALIZED_NAME_VALUE_OPTIONS) + private List valueOptions; + + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + public CustomMetadataProperty() { + } + + public CustomMetadataProperty id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public CustomMetadataProperty name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public CustomMetadataProperty description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public CustomMetadataProperty dataType(CustomMetadataDataType dataType) { + + this.dataType = dataType; + return this; + } + + /** + * Get dataType + * @return dataType + **/ + @javax.annotation.Nullable + + public CustomMetadataDataType getDataType() { + return dataType; + } + + + public void setDataType(CustomMetadataDataType dataType) { + this.dataType = dataType; + } + + + public CustomMetadataProperty user(UserPreview user) { + + this.user = user; + return this; + } + + /** + * Get user + * @return user + **/ + @javax.annotation.Nullable + + public UserPreview getUser() { + return user; + } + + + public void setUser(UserPreview user) { + this.user = user; + } + + + public CustomMetadataProperty projects(List projects) { + + this.projects = projects; + return this; + } + + public CustomMetadataProperty addProjectsItem(ProjectShort projectsItem) { + if (this.projects == null) { + this.projects = new ArrayList<>(); + } + this.projects.add(projectsItem); + return this; + } + + /** + * Get projects + * @return projects + **/ + @javax.annotation.Nullable + + public List getProjects() { + return projects; + } + + + public void setProjects(List projects) { + this.projects = projects; + } + + + public CustomMetadataProperty valueOptions(List valueOptions) { + + this.valueOptions = valueOptions; + return this; + } + + public CustomMetadataProperty addValueOptionsItem(String valueOptionsItem) { + if (this.valueOptions == null) { + this.valueOptions = new ArrayList<>(); + } + this.valueOptions.add(valueOptionsItem); + return this; + } + + /** + * Get valueOptions + * @return valueOptions + **/ + @javax.annotation.Nullable + + public List getValueOptions() { + return valueOptions; + } + + + public void setValueOptions(List valueOptions) { + this.valueOptions = valueOptions; + } + + + public CustomMetadataProperty createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public CustomMetadataProperty updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomMetadataProperty customMetadataProperty = (CustomMetadataProperty) o; + return Objects.equals(this.id, customMetadataProperty.id) && + Objects.equals(this.name, customMetadataProperty.name) && + Objects.equals(this.description, customMetadataProperty.description) && + Objects.equals(this.dataType, customMetadataProperty.dataType) && + Objects.equals(this.user, customMetadataProperty.user) && + Objects.equals(this.projects, customMetadataProperty.projects) && + Objects.equals(this.valueOptions, customMetadataProperty.valueOptions) && + Objects.equals(this.createdAt, customMetadataProperty.createdAt) && + Objects.equals(this.updatedAt, customMetadataProperty.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, description, dataType, user, projects, valueOptions, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomMetadataProperty {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" projects: ").append(toIndentedString(projects)).append("\n"); + sb.append(" valueOptions: ").append(toIndentedString(valueOptions)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/phrase/client/model/InvitationCreate422Response.java b/src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422Response.java similarity index 66% rename from src/main/java/com/phrase/client/model/InvitationCreate422Response.java rename to src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422Response.java index fb62f0c6d2..0e9cb2f74a 100644 --- a/src/main/java/com/phrase/client/model/InvitationCreate422Response.java +++ b/src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422Response.java @@ -18,7 +18,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import com.phrase.client.model.InvitationCreate422ResponseErrorsInner; +import com.phrase.client.model.CustomMetadataPropertyCreate422ResponseErrorsInner; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -27,22 +27,22 @@ import io.swagger.annotations.ApiModelProperty; /** - * InvitationCreate422Response + * CustomMetadataPropertyCreate422Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") -public class InvitationCreate422Response { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") +public class CustomMetadataPropertyCreate422Response { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors; + private List errors; - public InvitationCreate422Response() { + public CustomMetadataPropertyCreate422Response() { } - public InvitationCreate422Response message(String message) { + public CustomMetadataPropertyCreate422Response message(String message) { this.message = message; return this; @@ -64,13 +64,13 @@ public void setMessage(String message) { } - public InvitationCreate422Response errors(List errors) { + public CustomMetadataPropertyCreate422Response errors(List errors) { this.errors = errors; return this; } - public InvitationCreate422Response addErrorsItem(InvitationCreate422ResponseErrorsInner errorsItem) { + public CustomMetadataPropertyCreate422Response addErrorsItem(CustomMetadataPropertyCreate422ResponseErrorsInner errorsItem) { if (this.errors == null) { this.errors = new ArrayList<>(); } @@ -84,12 +84,12 @@ public InvitationCreate422Response addErrorsItem(InvitationCreate422ResponseErro **/ @javax.annotation.Nullable - public List getErrors() { + public List getErrors() { return errors; } - public void setErrors(List errors) { + public void setErrors(List errors) { this.errors = errors; } @@ -101,9 +101,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InvitationCreate422Response invitationCreate422Response = (InvitationCreate422Response) o; - return Objects.equals(this.message, invitationCreate422Response.message) && - Objects.equals(this.errors, invitationCreate422Response.errors); + CustomMetadataPropertyCreate422Response customMetadataPropertyCreate422Response = (CustomMetadataPropertyCreate422Response) o; + return Objects.equals(this.message, customMetadataPropertyCreate422Response.message) && + Objects.equals(this.errors, customMetadataPropertyCreate422Response.errors); } @Override @@ -114,7 +114,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InvitationCreate422Response {\n"); + sb.append("class CustomMetadataPropertyCreate422Response {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInner.java b/src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInner.java similarity index 73% rename from src/main/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInner.java rename to src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInner.java index f4a4336441..a111f56173 100644 --- a/src/main/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInner.java +++ b/src/main/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInner.java @@ -24,10 +24,10 @@ import io.swagger.annotations.ApiModelProperty; /** - * InvitationCreate422ResponseErrorsInner + * CustomMetadataPropertyCreate422ResponseErrorsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") -public class InvitationCreate422ResponseErrorsInner { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") +public class CustomMetadataPropertyCreate422ResponseErrorsInner { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) private String resource; @@ -40,10 +40,10 @@ public class InvitationCreate422ResponseErrorsInner { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; - public InvitationCreate422ResponseErrorsInner() { + public CustomMetadataPropertyCreate422ResponseErrorsInner() { } - public InvitationCreate422ResponseErrorsInner resource(String resource) { + public CustomMetadataPropertyCreate422ResponseErrorsInner resource(String resource) { this.resource = resource; return this; @@ -65,7 +65,7 @@ public void setResource(String resource) { } - public InvitationCreate422ResponseErrorsInner field(String field) { + public CustomMetadataPropertyCreate422ResponseErrorsInner field(String field) { this.field = field; return this; @@ -87,7 +87,7 @@ public void setField(String field) { } - public InvitationCreate422ResponseErrorsInner message(String message) { + public CustomMetadataPropertyCreate422ResponseErrorsInner message(String message) { this.message = message; return this; @@ -116,10 +116,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InvitationCreate422ResponseErrorsInner invitationCreate422ResponseErrorsInner = (InvitationCreate422ResponseErrorsInner) o; - return Objects.equals(this.resource, invitationCreate422ResponseErrorsInner.resource) && - Objects.equals(this.field, invitationCreate422ResponseErrorsInner.field) && - Objects.equals(this.message, invitationCreate422ResponseErrorsInner.message); + CustomMetadataPropertyCreate422ResponseErrorsInner customMetadataPropertyCreate422ResponseErrorsInner = (CustomMetadataPropertyCreate422ResponseErrorsInner) o; + return Objects.equals(this.resource, customMetadataPropertyCreate422ResponseErrorsInner.resource) && + Objects.equals(this.field, customMetadataPropertyCreate422ResponseErrorsInner.field) && + Objects.equals(this.message, customMetadataPropertyCreate422ResponseErrorsInner.message); } @Override @@ -130,7 +130,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InvitationCreate422ResponseErrorsInner {\n"); + sb.append("class CustomMetadataPropertyCreate422ResponseErrorsInner {\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/src/main/java/com/phrase/client/model/Distribution.java b/src/main/java/com/phrase/client/model/Distribution.java index d2dc91981c..8df2d03902 100644 --- a/src/main/java/com/phrase/client/model/Distribution.java +++ b/src/main/java/com/phrase/client/model/Distribution.java @@ -32,7 +32,7 @@ /** * Distribution */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Distribution { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/DistributionCreateParameters.java b/src/main/java/com/phrase/client/model/DistributionCreateParameters.java index 8a1b4fd221..9fb9914e44 100644 --- a/src/main/java/com/phrase/client/model/DistributionCreateParameters.java +++ b/src/main/java/com/phrase/client/model/DistributionCreateParameters.java @@ -30,7 +30,7 @@ /** * DistributionCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class DistributionCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/DistributionPreview.java b/src/main/java/com/phrase/client/model/DistributionPreview.java index 4cf3543b37..7b46722baf 100644 --- a/src/main/java/com/phrase/client/model/DistributionPreview.java +++ b/src/main/java/com/phrase/client/model/DistributionPreview.java @@ -30,7 +30,7 @@ /** * DistributionPreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class DistributionPreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/DistributionUpdateParameters.java b/src/main/java/com/phrase/client/model/DistributionUpdateParameters.java index bacfcdb6d0..f4fbdc40e9 100644 --- a/src/main/java/com/phrase/client/model/DistributionUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/DistributionUpdateParameters.java @@ -30,7 +30,7 @@ /** * DistributionUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class DistributionUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/Document.java b/src/main/java/com/phrase/client/model/Document.java index 6a0332e884..6a8c11d57b 100644 --- a/src/main/java/com/phrase/client/model/Document.java +++ b/src/main/java/com/phrase/client/model/Document.java @@ -27,7 +27,7 @@ /** * Document */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Document { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/FigmaAttachment.java b/src/main/java/com/phrase/client/model/FigmaAttachment.java index 00b8351fc3..960f7ec71d 100644 --- a/src/main/java/com/phrase/client/model/FigmaAttachment.java +++ b/src/main/java/com/phrase/client/model/FigmaAttachment.java @@ -27,7 +27,7 @@ /** * FigmaAttachment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class FigmaAttachment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/FigmaAttachmentCreateParameters.java b/src/main/java/com/phrase/client/model/FigmaAttachmentCreateParameters.java index 3c6e9163e6..6fb2d3e28b 100644 --- a/src/main/java/com/phrase/client/model/FigmaAttachmentCreateParameters.java +++ b/src/main/java/com/phrase/client/model/FigmaAttachmentCreateParameters.java @@ -26,7 +26,7 @@ /** * FigmaAttachmentCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class FigmaAttachmentCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/FigmaAttachmentUpdateParameters.java b/src/main/java/com/phrase/client/model/FigmaAttachmentUpdateParameters.java index 10d2c6993c..be188808b6 100644 --- a/src/main/java/com/phrase/client/model/FigmaAttachmentUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/FigmaAttachmentUpdateParameters.java @@ -26,7 +26,7 @@ /** * FigmaAttachmentUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class FigmaAttachmentUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/Format.java b/src/main/java/com/phrase/client/model/Format.java index 97147214d7..9acc5fe7db 100644 --- a/src/main/java/com/phrase/client/model/Format.java +++ b/src/main/java/com/phrase/client/model/Format.java @@ -26,7 +26,7 @@ /** * Format */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Format { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/GithubSyncExportParameters.java b/src/main/java/com/phrase/client/model/GithubSyncExportParameters.java index dac844c11f..f51f5b31ea 100644 --- a/src/main/java/com/phrase/client/model/GithubSyncExportParameters.java +++ b/src/main/java/com/phrase/client/model/GithubSyncExportParameters.java @@ -26,7 +26,7 @@ /** * GithubSyncExportParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GithubSyncExportParameters { public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) diff --git a/src/main/java/com/phrase/client/model/GithubSyncImportParameters.java b/src/main/java/com/phrase/client/model/GithubSyncImportParameters.java index 711b0221e0..2e2f9b7f38 100644 --- a/src/main/java/com/phrase/client/model/GithubSyncImportParameters.java +++ b/src/main/java/com/phrase/client/model/GithubSyncImportParameters.java @@ -26,7 +26,7 @@ /** * GithubSyncImportParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GithubSyncImportParameters { public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) diff --git a/src/main/java/com/phrase/client/model/GitlabSync.java b/src/main/java/com/phrase/client/model/GitlabSync.java index 07a76bff06..a6fbe6bbcf 100644 --- a/src/main/java/com/phrase/client/model/GitlabSync.java +++ b/src/main/java/com/phrase/client/model/GitlabSync.java @@ -27,7 +27,7 @@ /** * GitlabSync */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GitlabSync { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/GitlabSyncExport.java b/src/main/java/com/phrase/client/model/GitlabSyncExport.java index 1b89863c72..e59833611c 100644 --- a/src/main/java/com/phrase/client/model/GitlabSyncExport.java +++ b/src/main/java/com/phrase/client/model/GitlabSyncExport.java @@ -26,7 +26,7 @@ /** * GitlabSyncExport */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GitlabSyncExport { public static final String SERIALIZED_NAME_MERGE_REQUEST_ID = "merge_request_id"; @SerializedName(SERIALIZED_NAME_MERGE_REQUEST_ID) diff --git a/src/main/java/com/phrase/client/model/GitlabSyncExportParameters.java b/src/main/java/com/phrase/client/model/GitlabSyncExportParameters.java index f139651bdb..2bf70db5ba 100644 --- a/src/main/java/com/phrase/client/model/GitlabSyncExportParameters.java +++ b/src/main/java/com/phrase/client/model/GitlabSyncExportParameters.java @@ -26,7 +26,7 @@ /** * GitlabSyncExportParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GitlabSyncExportParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/com/phrase/client/model/GitlabSyncHistory.java b/src/main/java/com/phrase/client/model/GitlabSyncHistory.java index ca96d84a71..216545e215 100644 --- a/src/main/java/com/phrase/client/model/GitlabSyncHistory.java +++ b/src/main/java/com/phrase/client/model/GitlabSyncHistory.java @@ -30,7 +30,7 @@ /** * GitlabSyncHistory */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GitlabSyncHistory { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/com/phrase/client/model/GitlabSyncHistoryErrorsInner.java b/src/main/java/com/phrase/client/model/GitlabSyncHistoryErrorsInner.java index 0aa7bf373f..b0528e5c1e 100644 --- a/src/main/java/com/phrase/client/model/GitlabSyncHistoryErrorsInner.java +++ b/src/main/java/com/phrase/client/model/GitlabSyncHistoryErrorsInner.java @@ -26,7 +26,7 @@ /** * GitlabSyncHistoryErrorsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GitlabSyncHistoryErrorsInner { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/src/main/java/com/phrase/client/model/GitlabSyncImportParameters.java b/src/main/java/com/phrase/client/model/GitlabSyncImportParameters.java index 3b490d0b99..83bd2da726 100644 --- a/src/main/java/com/phrase/client/model/GitlabSyncImportParameters.java +++ b/src/main/java/com/phrase/client/model/GitlabSyncImportParameters.java @@ -26,7 +26,7 @@ /** * GitlabSyncImportParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GitlabSyncImportParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/com/phrase/client/model/Glossary.java b/src/main/java/com/phrase/client/model/Glossary.java index 2eecae459f..78acda38e6 100644 --- a/src/main/java/com/phrase/client/model/Glossary.java +++ b/src/main/java/com/phrase/client/model/Glossary.java @@ -30,7 +30,7 @@ /** * Glossary */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Glossary { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/GlossaryCreateParameters.java b/src/main/java/com/phrase/client/model/GlossaryCreateParameters.java index ac921d6ec3..8c54e32aa6 100644 --- a/src/main/java/com/phrase/client/model/GlossaryCreateParameters.java +++ b/src/main/java/com/phrase/client/model/GlossaryCreateParameters.java @@ -28,7 +28,7 @@ /** * GlossaryCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/GlossaryTerm.java b/src/main/java/com/phrase/client/model/GlossaryTerm.java index 9b75077a9e..bd1acd1df1 100644 --- a/src/main/java/com/phrase/client/model/GlossaryTerm.java +++ b/src/main/java/com/phrase/client/model/GlossaryTerm.java @@ -30,7 +30,7 @@ /** * GlossaryTerm */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryTerm { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/GlossaryTermCreateParameters.java b/src/main/java/com/phrase/client/model/GlossaryTermCreateParameters.java index f7f801d912..dd7d4cd1c6 100644 --- a/src/main/java/com/phrase/client/model/GlossaryTermCreateParameters.java +++ b/src/main/java/com/phrase/client/model/GlossaryTermCreateParameters.java @@ -26,7 +26,7 @@ /** * GlossaryTermCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryTermCreateParameters { public static final String SERIALIZED_NAME_TERM = "term"; @SerializedName(SERIALIZED_NAME_TERM) diff --git a/src/main/java/com/phrase/client/model/GlossaryTermTranslation.java b/src/main/java/com/phrase/client/model/GlossaryTermTranslation.java index 8afd0ae966..bf05852989 100644 --- a/src/main/java/com/phrase/client/model/GlossaryTermTranslation.java +++ b/src/main/java/com/phrase/client/model/GlossaryTermTranslation.java @@ -27,7 +27,7 @@ /** * GlossaryTermTranslation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryTermTranslation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/GlossaryTermTranslationCreateParameters.java b/src/main/java/com/phrase/client/model/GlossaryTermTranslationCreateParameters.java index cd869cc813..5adb2ddf35 100644 --- a/src/main/java/com/phrase/client/model/GlossaryTermTranslationCreateParameters.java +++ b/src/main/java/com/phrase/client/model/GlossaryTermTranslationCreateParameters.java @@ -26,7 +26,7 @@ /** * GlossaryTermTranslationCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryTermTranslationCreateParameters { public static final String SERIALIZED_NAME_LOCALE_CODE = "locale_code"; @SerializedName(SERIALIZED_NAME_LOCALE_CODE) diff --git a/src/main/java/com/phrase/client/model/GlossaryTermTranslationUpdateParameters.java b/src/main/java/com/phrase/client/model/GlossaryTermTranslationUpdateParameters.java index a8fe3f28b1..ccafc0be6f 100644 --- a/src/main/java/com/phrase/client/model/GlossaryTermTranslationUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/GlossaryTermTranslationUpdateParameters.java @@ -26,7 +26,7 @@ /** * GlossaryTermTranslationUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryTermTranslationUpdateParameters { public static final String SERIALIZED_NAME_LOCALE_CODE = "locale_code"; @SerializedName(SERIALIZED_NAME_LOCALE_CODE) diff --git a/src/main/java/com/phrase/client/model/GlossaryTermUpdateParameters.java b/src/main/java/com/phrase/client/model/GlossaryTermUpdateParameters.java index 45578da7c4..9614160bcc 100644 --- a/src/main/java/com/phrase/client/model/GlossaryTermUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/GlossaryTermUpdateParameters.java @@ -26,7 +26,7 @@ /** * GlossaryTermUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryTermUpdateParameters { public static final String SERIALIZED_NAME_TERM = "term"; @SerializedName(SERIALIZED_NAME_TERM) diff --git a/src/main/java/com/phrase/client/model/GlossaryUpdateParameters.java b/src/main/java/com/phrase/client/model/GlossaryUpdateParameters.java index 5079b8f63a..9582d49848 100644 --- a/src/main/java/com/phrase/client/model/GlossaryUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/GlossaryUpdateParameters.java @@ -28,7 +28,7 @@ /** * GlossaryUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class GlossaryUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/Icu.java b/src/main/java/com/phrase/client/model/Icu.java index c798cb16ae..017f1bb81a 100644 --- a/src/main/java/com/phrase/client/model/Icu.java +++ b/src/main/java/com/phrase/client/model/Icu.java @@ -26,7 +26,7 @@ /** * Icu */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Icu { public static final String SERIALIZED_NAME_LOCALE_CODE = "locale_code"; @SerializedName(SERIALIZED_NAME_LOCALE_CODE) diff --git a/src/main/java/com/phrase/client/model/IcuSkeletonParameters.java b/src/main/java/com/phrase/client/model/IcuSkeletonParameters.java index 8c834c6164..472d857993 100644 --- a/src/main/java/com/phrase/client/model/IcuSkeletonParameters.java +++ b/src/main/java/com/phrase/client/model/IcuSkeletonParameters.java @@ -28,7 +28,7 @@ /** * IcuSkeletonParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class IcuSkeletonParameters { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) diff --git a/src/main/java/com/phrase/client/model/Invitation.java b/src/main/java/com/phrase/client/model/Invitation.java index 2a00a619dc..2af1202f43 100644 --- a/src/main/java/com/phrase/client/model/Invitation.java +++ b/src/main/java/com/phrase/client/model/Invitation.java @@ -34,7 +34,7 @@ /** * Invitation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/InvitationCreateParameters.java b/src/main/java/com/phrase/client/model/InvitationCreateParameters.java index 986553cd2c..b065f3c79d 100644 --- a/src/main/java/com/phrase/client/model/InvitationCreateParameters.java +++ b/src/main/java/com/phrase/client/model/InvitationCreateParameters.java @@ -30,7 +30,7 @@ /** * InvitationCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class InvitationCreateParameters { public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) diff --git a/src/main/java/com/phrase/client/model/InvitationUpdateParameters.java b/src/main/java/com/phrase/client/model/InvitationUpdateParameters.java index b9b051faeb..0c0bced5c0 100644 --- a/src/main/java/com/phrase/client/model/InvitationUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/InvitationUpdateParameters.java @@ -30,7 +30,7 @@ /** * InvitationUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class InvitationUpdateParameters { public static final String SERIALIZED_NAME_ROLE = "role"; @SerializedName(SERIALIZED_NAME_ROLE) diff --git a/src/main/java/com/phrase/client/model/InvitationUpdateSettingsParameters.java b/src/main/java/com/phrase/client/model/InvitationUpdateSettingsParameters.java index df527809b9..1a9e9e8bd4 100644 --- a/src/main/java/com/phrase/client/model/InvitationUpdateSettingsParameters.java +++ b/src/main/java/com/phrase/client/model/InvitationUpdateSettingsParameters.java @@ -28,7 +28,7 @@ /** * InvitationUpdateSettingsParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class InvitationUpdateSettingsParameters { public static final String SERIALIZED_NAME_PROJECT_ROLE = "project_role"; @SerializedName(SERIALIZED_NAME_PROJECT_ROLE) diff --git a/src/main/java/com/phrase/client/model/Job.java b/src/main/java/com/phrase/client/model/Job.java index 70308990a9..9a3cc7877d 100644 --- a/src/main/java/com/phrase/client/model/Job.java +++ b/src/main/java/com/phrase/client/model/Job.java @@ -29,7 +29,7 @@ /** * Job */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Job { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobComment.java b/src/main/java/com/phrase/client/model/JobComment.java index 8e27f01ce9..e11e0ec918 100644 --- a/src/main/java/com/phrase/client/model/JobComment.java +++ b/src/main/java/com/phrase/client/model/JobComment.java @@ -30,7 +30,7 @@ /** * JobComment */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobComment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobCommentCreateParameters.java b/src/main/java/com/phrase/client/model/JobCommentCreateParameters.java index e11598e775..5217789625 100644 --- a/src/main/java/com/phrase/client/model/JobCommentCreateParameters.java +++ b/src/main/java/com/phrase/client/model/JobCommentCreateParameters.java @@ -26,7 +26,7 @@ /** * JobCommentCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobCommentCreateParameters { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/src/main/java/com/phrase/client/model/JobCommentUpdateParameters.java b/src/main/java/com/phrase/client/model/JobCommentUpdateParameters.java index 667d6e7b10..915c0b079d 100644 --- a/src/main/java/com/phrase/client/model/JobCommentUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/JobCommentUpdateParameters.java @@ -26,7 +26,7 @@ /** * JobCommentUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobCommentUpdateParameters { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/src/main/java/com/phrase/client/model/JobCompleteParameters.java b/src/main/java/com/phrase/client/model/JobCompleteParameters.java index f2a3f9819e..2920f4733f 100644 --- a/src/main/java/com/phrase/client/model/JobCompleteParameters.java +++ b/src/main/java/com/phrase/client/model/JobCompleteParameters.java @@ -26,7 +26,7 @@ /** * JobCompleteParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobCompleteParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobCreateParameters.java b/src/main/java/com/phrase/client/model/JobCreateParameters.java index 21bafbaf17..8e5c50e7fa 100644 --- a/src/main/java/com/phrase/client/model/JobCreateParameters.java +++ b/src/main/java/com/phrase/client/model/JobCreateParameters.java @@ -29,7 +29,7 @@ /** * JobCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobDetails.java b/src/main/java/com/phrase/client/model/JobDetails.java index 3e5a007230..cfe5228641 100644 --- a/src/main/java/com/phrase/client/model/JobDetails.java +++ b/src/main/java/com/phrase/client/model/JobDetails.java @@ -34,7 +34,7 @@ /** * JobDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobKeysCreateParameters.java b/src/main/java/com/phrase/client/model/JobKeysCreateParameters.java index 85f8c496fd..68d733c80c 100644 --- a/src/main/java/com/phrase/client/model/JobKeysCreateParameters.java +++ b/src/main/java/com/phrase/client/model/JobKeysCreateParameters.java @@ -28,7 +28,7 @@ /** * JobKeysCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobKeysCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobLocale.java b/src/main/java/com/phrase/client/model/JobLocale.java index 25960a0864..375527197d 100644 --- a/src/main/java/com/phrase/client/model/JobLocale.java +++ b/src/main/java/com/phrase/client/model/JobLocale.java @@ -33,7 +33,7 @@ /** * JobLocale */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobLocale { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobLocaleCompleteParameters.java b/src/main/java/com/phrase/client/model/JobLocaleCompleteParameters.java index 7b3220ec77..18f53046f8 100644 --- a/src/main/java/com/phrase/client/model/JobLocaleCompleteParameters.java +++ b/src/main/java/com/phrase/client/model/JobLocaleCompleteParameters.java @@ -26,7 +26,7 @@ /** * JobLocaleCompleteParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobLocaleCompleteParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobLocaleCompleteReviewParameters.java b/src/main/java/com/phrase/client/model/JobLocaleCompleteReviewParameters.java index 9dc3fc8980..454ef5e716 100644 --- a/src/main/java/com/phrase/client/model/JobLocaleCompleteReviewParameters.java +++ b/src/main/java/com/phrase/client/model/JobLocaleCompleteReviewParameters.java @@ -26,7 +26,7 @@ /** * JobLocaleCompleteReviewParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobLocaleCompleteReviewParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobLocaleReopenParameters.java b/src/main/java/com/phrase/client/model/JobLocaleReopenParameters.java index 9d0b119de9..5d5c7bfca5 100644 --- a/src/main/java/com/phrase/client/model/JobLocaleReopenParameters.java +++ b/src/main/java/com/phrase/client/model/JobLocaleReopenParameters.java @@ -26,7 +26,7 @@ /** * JobLocaleReopenParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobLocaleReopenParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobLocaleUpdateParameters.java b/src/main/java/com/phrase/client/model/JobLocaleUpdateParameters.java index fe18e779b7..b9ad11ae21 100644 --- a/src/main/java/com/phrase/client/model/JobLocaleUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/JobLocaleUpdateParameters.java @@ -28,7 +28,7 @@ /** * JobLocaleUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobLocaleUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobLocalesCreateParameters.java b/src/main/java/com/phrase/client/model/JobLocalesCreateParameters.java index be64f4ce1c..e5ff463a94 100644 --- a/src/main/java/com/phrase/client/model/JobLocalesCreateParameters.java +++ b/src/main/java/com/phrase/client/model/JobLocalesCreateParameters.java @@ -28,7 +28,7 @@ /** * JobLocalesCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobLocalesCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobPreview.java b/src/main/java/com/phrase/client/model/JobPreview.java index a5db3fa019..e26885f36f 100644 --- a/src/main/java/com/phrase/client/model/JobPreview.java +++ b/src/main/java/com/phrase/client/model/JobPreview.java @@ -26,7 +26,7 @@ /** * JobPreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobPreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobReopenParameters.java b/src/main/java/com/phrase/client/model/JobReopenParameters.java index 50ad3a2e07..bfef491dd6 100644 --- a/src/main/java/com/phrase/client/model/JobReopenParameters.java +++ b/src/main/java/com/phrase/client/model/JobReopenParameters.java @@ -26,7 +26,7 @@ /** * JobReopenParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobReopenParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobStartParameters.java b/src/main/java/com/phrase/client/model/JobStartParameters.java index 1614a28734..6b6d7f6356 100644 --- a/src/main/java/com/phrase/client/model/JobStartParameters.java +++ b/src/main/java/com/phrase/client/model/JobStartParameters.java @@ -26,7 +26,7 @@ /** * JobStartParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobStartParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobTemplate.java b/src/main/java/com/phrase/client/model/JobTemplate.java index 740026f142..11d1528d0d 100644 --- a/src/main/java/com/phrase/client/model/JobTemplate.java +++ b/src/main/java/com/phrase/client/model/JobTemplate.java @@ -29,7 +29,7 @@ /** * JobTemplate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobTemplateCreateParameters.java b/src/main/java/com/phrase/client/model/JobTemplateCreateParameters.java index b3e8695e39..03ff9e8cd2 100644 --- a/src/main/java/com/phrase/client/model/JobTemplateCreateParameters.java +++ b/src/main/java/com/phrase/client/model/JobTemplateCreateParameters.java @@ -26,7 +26,7 @@ /** * JobTemplateCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplateCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobTemplateDetails.java b/src/main/java/com/phrase/client/model/JobTemplateDetails.java index 23bae7bfcd..07f80e3b8c 100644 --- a/src/main/java/com/phrase/client/model/JobTemplateDetails.java +++ b/src/main/java/com/phrase/client/model/JobTemplateDetails.java @@ -33,7 +33,7 @@ /** * JobTemplateDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplateDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobTemplateLocaleUpdateParameters.java b/src/main/java/com/phrase/client/model/JobTemplateLocaleUpdateParameters.java index 1be01ae3c6..1f963623e2 100644 --- a/src/main/java/com/phrase/client/model/JobTemplateLocaleUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/JobTemplateLocaleUpdateParameters.java @@ -28,7 +28,7 @@ /** * JobTemplateLocaleUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplateLocaleUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobTemplateLocales.java b/src/main/java/com/phrase/client/model/JobTemplateLocales.java index adb147456a..7822dc5c5b 100644 --- a/src/main/java/com/phrase/client/model/JobTemplateLocales.java +++ b/src/main/java/com/phrase/client/model/JobTemplateLocales.java @@ -32,7 +32,7 @@ /** * JobTemplateLocales */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplateLocales { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobTemplateLocalesCreateParameters.java b/src/main/java/com/phrase/client/model/JobTemplateLocalesCreateParameters.java index 3891537398..7e5ad09e85 100644 --- a/src/main/java/com/phrase/client/model/JobTemplateLocalesCreateParameters.java +++ b/src/main/java/com/phrase/client/model/JobTemplateLocalesCreateParameters.java @@ -28,7 +28,7 @@ /** * JobTemplateLocalesCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplateLocalesCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobTemplatePreview.java b/src/main/java/com/phrase/client/model/JobTemplatePreview.java index 5d66f95b3c..d0fb5d526a 100644 --- a/src/main/java/com/phrase/client/model/JobTemplatePreview.java +++ b/src/main/java/com/phrase/client/model/JobTemplatePreview.java @@ -26,7 +26,7 @@ /** * JobTemplatePreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplatePreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/JobTemplateUpdateParameters.java b/src/main/java/com/phrase/client/model/JobTemplateUpdateParameters.java index 594eb2ff42..0ab729f3d2 100644 --- a/src/main/java/com/phrase/client/model/JobTemplateUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/JobTemplateUpdateParameters.java @@ -26,7 +26,7 @@ /** * JobTemplateUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobTemplateUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/JobUpdateParameters.java b/src/main/java/com/phrase/client/model/JobUpdateParameters.java index 1ebd974057..6b8c7800ba 100644 --- a/src/main/java/com/phrase/client/model/JobUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/JobUpdateParameters.java @@ -27,7 +27,7 @@ /** * JobUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class JobUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/KeyCreateParameters.java b/src/main/java/com/phrase/client/model/KeyCreateParameters.java index 00584f1924..32d862013e 100644 --- a/src/main/java/com/phrase/client/model/KeyCreateParameters.java +++ b/src/main/java/com/phrase/client/model/KeyCreateParameters.java @@ -27,7 +27,7 @@ /** * KeyCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeyCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) @@ -93,6 +93,10 @@ public class KeyCreateParameters { @SerializedName(SERIALIZED_NAME_LOCALIZED_FORMAT_KEY) private String localizedFormatKey; + public static final String SERIALIZED_NAME_CUSTOM_METADATA = "custom_metadata"; + @SerializedName(SERIALIZED_NAME_CUSTOM_METADATA) + private Object customMetadata; + public KeyCreateParameters() { } @@ -451,6 +455,28 @@ public void setLocalizedFormatKey(String localizedFormatKey) { this.localizedFormatKey = localizedFormatKey; } + + public KeyCreateParameters customMetadata(Object customMetadata) { + + this.customMetadata = customMetadata; + return this; + } + + /** + * Custom metadata property name and value pairs to be associated with key. + * @return customMetadata + **/ + @javax.annotation.Nullable + + public Object getCustomMetadata() { + return customMetadata; + } + + + public void setCustomMetadata(Object customMetadata) { + this.customMetadata = customMetadata; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -475,12 +501,13 @@ public boolean equals(Object o) { Objects.equals(this.xmlSpacePreserve, keyCreateParameters.xmlSpacePreserve) && Objects.equals(this.originalFile, keyCreateParameters.originalFile) && Objects.equals(this.localizedFormatString, keyCreateParameters.localizedFormatString) && - Objects.equals(this.localizedFormatKey, keyCreateParameters.localizedFormatKey); + Objects.equals(this.localizedFormatKey, keyCreateParameters.localizedFormatKey) && + Objects.equals(this.customMetadata, keyCreateParameters.customMetadata); } @Override public int hashCode() { - return Objects.hash(branch, name, description, plural, namePlural, dataType, tags, maxCharactersAllowed, screenshot, removeScreenshot, unformatted, defaultTranslationContent, xmlSpacePreserve, originalFile, localizedFormatString, localizedFormatKey); + return Objects.hash(branch, name, description, plural, namePlural, dataType, tags, maxCharactersAllowed, screenshot, removeScreenshot, unformatted, defaultTranslationContent, xmlSpacePreserve, originalFile, localizedFormatString, localizedFormatKey, customMetadata); } @Override @@ -503,6 +530,7 @@ public String toString() { sb.append(" originalFile: ").append(toIndentedString(originalFile)).append("\n"); sb.append(" localizedFormatString: ").append(toIndentedString(localizedFormatString)).append("\n"); sb.append(" localizedFormatKey: ").append(toIndentedString(localizedFormatKey)).append("\n"); + sb.append(" customMetadata: ").append(toIndentedString(customMetadata)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/phrase/client/model/KeyPreview.java b/src/main/java/com/phrase/client/model/KeyPreview.java index 32880899fd..706af594f7 100644 --- a/src/main/java/com/phrase/client/model/KeyPreview.java +++ b/src/main/java/com/phrase/client/model/KeyPreview.java @@ -26,7 +26,7 @@ /** * KeyPreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeyPreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/KeyUpdateParameters.java b/src/main/java/com/phrase/client/model/KeyUpdateParameters.java index 1a9dee21ad..69c1471bd3 100644 --- a/src/main/java/com/phrase/client/model/KeyUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/KeyUpdateParameters.java @@ -27,7 +27,7 @@ /** * KeyUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeyUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) @@ -89,6 +89,10 @@ public class KeyUpdateParameters { @SerializedName(SERIALIZED_NAME_LOCALIZED_FORMAT_KEY) private String localizedFormatKey; + public static final String SERIALIZED_NAME_CUSTOM_METADATA = "custom_metadata"; + @SerializedName(SERIALIZED_NAME_CUSTOM_METADATA) + private Object customMetadata; + public KeyUpdateParameters() { } @@ -425,6 +429,28 @@ public void setLocalizedFormatKey(String localizedFormatKey) { this.localizedFormatKey = localizedFormatKey; } + + public KeyUpdateParameters customMetadata(Object customMetadata) { + + this.customMetadata = customMetadata; + return this; + } + + /** + * Updates/Creates custom metadata property name and value pairs to be associated with key. If you want to delete a custom metadata property, you can set its value to null. If you want to update a custom metadata property, you can set its value to the new value. + * @return customMetadata + **/ + @javax.annotation.Nullable + + public Object getCustomMetadata() { + return customMetadata; + } + + + public void setCustomMetadata(Object customMetadata) { + this.customMetadata = customMetadata; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -448,12 +474,13 @@ public boolean equals(Object o) { Objects.equals(this.xmlSpacePreserve, keyUpdateParameters.xmlSpacePreserve) && Objects.equals(this.originalFile, keyUpdateParameters.originalFile) && Objects.equals(this.localizedFormatString, keyUpdateParameters.localizedFormatString) && - Objects.equals(this.localizedFormatKey, keyUpdateParameters.localizedFormatKey); + Objects.equals(this.localizedFormatKey, keyUpdateParameters.localizedFormatKey) && + Objects.equals(this.customMetadata, keyUpdateParameters.customMetadata); } @Override public int hashCode() { - return Objects.hash(branch, name, description, plural, namePlural, dataType, tags, maxCharactersAllowed, screenshot, removeScreenshot, unformatted, xmlSpacePreserve, originalFile, localizedFormatString, localizedFormatKey); + return Objects.hash(branch, name, description, plural, namePlural, dataType, tags, maxCharactersAllowed, screenshot, removeScreenshot, unformatted, xmlSpacePreserve, originalFile, localizedFormatString, localizedFormatKey, customMetadata); } @Override @@ -475,6 +502,7 @@ public String toString() { sb.append(" originalFile: ").append(toIndentedString(originalFile)).append("\n"); sb.append(" localizedFormatString: ").append(toIndentedString(localizedFormatString)).append("\n"); sb.append(" localizedFormatKey: ").append(toIndentedString(localizedFormatKey)).append("\n"); + sb.append(" customMetadata: ").append(toIndentedString(customMetadata)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/phrase/client/model/KeysExcludeParameters.java b/src/main/java/com/phrase/client/model/KeysExcludeParameters.java index d3cf2ef59a..1b76b9a090 100644 --- a/src/main/java/com/phrase/client/model/KeysExcludeParameters.java +++ b/src/main/java/com/phrase/client/model/KeysExcludeParameters.java @@ -26,7 +26,7 @@ /** * KeysExcludeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeysExcludeParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/KeysIncludeParameters.java b/src/main/java/com/phrase/client/model/KeysIncludeParameters.java index c001785783..42d06fd47c 100644 --- a/src/main/java/com/phrase/client/model/KeysIncludeParameters.java +++ b/src/main/java/com/phrase/client/model/KeysIncludeParameters.java @@ -26,7 +26,7 @@ /** * KeysIncludeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeysIncludeParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/KeysSearchParameters.java b/src/main/java/com/phrase/client/model/KeysSearchParameters.java index c75bd82cd6..6656f918cb 100644 --- a/src/main/java/com/phrase/client/model/KeysSearchParameters.java +++ b/src/main/java/com/phrase/client/model/KeysSearchParameters.java @@ -26,7 +26,7 @@ /** * KeysSearchParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeysSearchParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/KeysTagParameters.java b/src/main/java/com/phrase/client/model/KeysTagParameters.java index 0a9df12c94..f119d4089c 100644 --- a/src/main/java/com/phrase/client/model/KeysTagParameters.java +++ b/src/main/java/com/phrase/client/model/KeysTagParameters.java @@ -26,7 +26,7 @@ /** * KeysTagParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeysTagParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/KeysUntagParameters.java b/src/main/java/com/phrase/client/model/KeysUntagParameters.java index 922d2ac506..8083ac391e 100644 --- a/src/main/java/com/phrase/client/model/KeysUntagParameters.java +++ b/src/main/java/com/phrase/client/model/KeysUntagParameters.java @@ -26,7 +26,7 @@ /** * KeysUntagParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class KeysUntagParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/Locale.java b/src/main/java/com/phrase/client/model/Locale.java index 57bd0f7357..67c74e6312 100644 --- a/src/main/java/com/phrase/client/model/Locale.java +++ b/src/main/java/com/phrase/client/model/Locale.java @@ -30,7 +30,7 @@ /** * Locale */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Locale { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/LocaleCreateParameters.java b/src/main/java/com/phrase/client/model/LocaleCreateParameters.java index 4300f3dcd9..983338e1b2 100644 --- a/src/main/java/com/phrase/client/model/LocaleCreateParameters.java +++ b/src/main/java/com/phrase/client/model/LocaleCreateParameters.java @@ -26,7 +26,7 @@ /** * LocaleCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/LocaleDetails.java b/src/main/java/com/phrase/client/model/LocaleDetails.java index 393759fc10..e7ab6476d8 100644 --- a/src/main/java/com/phrase/client/model/LocaleDetails.java +++ b/src/main/java/com/phrase/client/model/LocaleDetails.java @@ -31,7 +31,7 @@ /** * LocaleDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/LocalePreview.java b/src/main/java/com/phrase/client/model/LocalePreview.java index aa3ece0b83..86167ac39f 100644 --- a/src/main/java/com/phrase/client/model/LocalePreview.java +++ b/src/main/java/com/phrase/client/model/LocalePreview.java @@ -26,7 +26,7 @@ /** * LocalePreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocalePreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/LocalePreview1.java b/src/main/java/com/phrase/client/model/LocalePreview1.java index 73aa9c7731..4807fbf622 100644 --- a/src/main/java/com/phrase/client/model/LocalePreview1.java +++ b/src/main/java/com/phrase/client/model/LocalePreview1.java @@ -27,7 +27,7 @@ /** * LocalePreview1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocalePreview1 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/LocaleReport.java b/src/main/java/com/phrase/client/model/LocaleReport.java index b222dd79d2..1ea73feb35 100644 --- a/src/main/java/com/phrase/client/model/LocaleReport.java +++ b/src/main/java/com/phrase/client/model/LocaleReport.java @@ -27,7 +27,7 @@ /** * LocaleReport */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleReport { public static final String SERIALIZED_NAME_KEYS_COUNT = "keys_count"; @SerializedName(SERIALIZED_NAME_KEYS_COUNT) diff --git a/src/main/java/com/phrase/client/model/LocaleStatistics.java b/src/main/java/com/phrase/client/model/LocaleStatistics.java index 4bd49b9d2e..3fba6f723b 100644 --- a/src/main/java/com/phrase/client/model/LocaleStatistics.java +++ b/src/main/java/com/phrase/client/model/LocaleStatistics.java @@ -26,7 +26,7 @@ /** * LocaleStatistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleStatistics { public static final String SERIALIZED_NAME_KEYS_TOTAL_COUNT = "keys_total_count"; @SerializedName(SERIALIZED_NAME_KEYS_TOTAL_COUNT) diff --git a/src/main/java/com/phrase/client/model/LocaleTeamPreview.java b/src/main/java/com/phrase/client/model/LocaleTeamPreview.java index 4fd5177878..33a5584575 100644 --- a/src/main/java/com/phrase/client/model/LocaleTeamPreview.java +++ b/src/main/java/com/phrase/client/model/LocaleTeamPreview.java @@ -26,7 +26,7 @@ /** * LocaleTeamPreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleTeamPreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/LocaleUpdateParameters.java b/src/main/java/com/phrase/client/model/LocaleUpdateParameters.java index 2880eaea8f..0ed138982f 100644 --- a/src/main/java/com/phrase/client/model/LocaleUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/LocaleUpdateParameters.java @@ -26,7 +26,7 @@ /** * LocaleUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/LocaleUserPreview.java b/src/main/java/com/phrase/client/model/LocaleUserPreview.java index e0b8b2d8f6..f2874b391b 100644 --- a/src/main/java/com/phrase/client/model/LocaleUserPreview.java +++ b/src/main/java/com/phrase/client/model/LocaleUserPreview.java @@ -26,7 +26,7 @@ /** * LocaleUserPreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class LocaleUserPreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/Member.java b/src/main/java/com/phrase/client/model/Member.java index da01447ec6..f918cc1d96 100644 --- a/src/main/java/com/phrase/client/model/Member.java +++ b/src/main/java/com/phrase/client/model/Member.java @@ -32,7 +32,7 @@ /** * Member */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Member { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/MemberProjectDetail.java b/src/main/java/com/phrase/client/model/MemberProjectDetail.java index 5bc1d7268f..d90f72cd7e 100644 --- a/src/main/java/com/phrase/client/model/MemberProjectDetail.java +++ b/src/main/java/com/phrase/client/model/MemberProjectDetail.java @@ -31,7 +31,7 @@ /** * MemberProjectDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class MemberProjectDetail { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/MemberProjectDetailProjectRolesInner.java b/src/main/java/com/phrase/client/model/MemberProjectDetailProjectRolesInner.java index d14e88671e..3c1bfbfeec 100644 --- a/src/main/java/com/phrase/client/model/MemberProjectDetailProjectRolesInner.java +++ b/src/main/java/com/phrase/client/model/MemberProjectDetailProjectRolesInner.java @@ -26,7 +26,7 @@ /** * MemberProjectDetailProjectRolesInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class MemberProjectDetailProjectRolesInner { public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) diff --git a/src/main/java/com/phrase/client/model/MemberSpacesInner.java b/src/main/java/com/phrase/client/model/MemberSpacesInner.java index 73751b00d6..f346b4784e 100644 --- a/src/main/java/com/phrase/client/model/MemberSpacesInner.java +++ b/src/main/java/com/phrase/client/model/MemberSpacesInner.java @@ -27,7 +27,7 @@ /** * MemberSpacesInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class MemberSpacesInner { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/MemberUpdateParameters.java b/src/main/java/com/phrase/client/model/MemberUpdateParameters.java index 1a90f226e3..7fdef1ee85 100644 --- a/src/main/java/com/phrase/client/model/MemberUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/MemberUpdateParameters.java @@ -30,7 +30,7 @@ /** * MemberUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class MemberUpdateParameters { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) diff --git a/src/main/java/com/phrase/client/model/MemberUpdateSettingsParameters.java b/src/main/java/com/phrase/client/model/MemberUpdateSettingsParameters.java index b97e553657..e2d6b3dc4d 100644 --- a/src/main/java/com/phrase/client/model/MemberUpdateSettingsParameters.java +++ b/src/main/java/com/phrase/client/model/MemberUpdateSettingsParameters.java @@ -28,7 +28,7 @@ /** * MemberUpdateSettingsParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class MemberUpdateSettingsParameters { public static final String SERIALIZED_NAME_PROJECT_ROLE = "project_role"; @SerializedName(SERIALIZED_NAME_PROJECT_ROLE) diff --git a/src/main/java/com/phrase/client/model/Notification.java b/src/main/java/com/phrase/client/model/Notification.java index 17cb4e535b..59b620798c 100644 --- a/src/main/java/com/phrase/client/model/Notification.java +++ b/src/main/java/com/phrase/client/model/Notification.java @@ -32,7 +32,7 @@ /** * Notification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Notification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/NotificationGroup.java b/src/main/java/com/phrase/client/model/NotificationGroup.java index 3c41df0182..53b86b4293 100644 --- a/src/main/java/com/phrase/client/model/NotificationGroup.java +++ b/src/main/java/com/phrase/client/model/NotificationGroup.java @@ -27,7 +27,7 @@ /** * NotificationGroup */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class NotificationGroup { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/NotificationGroupDetail.java b/src/main/java/com/phrase/client/model/NotificationGroupDetail.java index 3903a434f7..7bf5c2c718 100644 --- a/src/main/java/com/phrase/client/model/NotificationGroupDetail.java +++ b/src/main/java/com/phrase/client/model/NotificationGroupDetail.java @@ -28,7 +28,7 @@ /** * NotificationGroupDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class NotificationGroupDetail { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/OrderConfirmParameters.java b/src/main/java/com/phrase/client/model/OrderConfirmParameters.java index efd113a1dc..0a9d010f55 100644 --- a/src/main/java/com/phrase/client/model/OrderConfirmParameters.java +++ b/src/main/java/com/phrase/client/model/OrderConfirmParameters.java @@ -26,7 +26,7 @@ /** * OrderConfirmParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrderConfirmParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/OrderCreateParameters.java b/src/main/java/com/phrase/client/model/OrderCreateParameters.java index 1c45da6595..dbbcd6af20 100644 --- a/src/main/java/com/phrase/client/model/OrderCreateParameters.java +++ b/src/main/java/com/phrase/client/model/OrderCreateParameters.java @@ -28,7 +28,7 @@ /** * OrderCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrderCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/OrganizationJobTemplate.java b/src/main/java/com/phrase/client/model/OrganizationJobTemplate.java index 4e63fbebe5..0136478060 100644 --- a/src/main/java/com/phrase/client/model/OrganizationJobTemplate.java +++ b/src/main/java/com/phrase/client/model/OrganizationJobTemplate.java @@ -27,7 +27,7 @@ /** * OrganizationJobTemplate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrganizationJobTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/OrganizationJobTemplateCreateParameters.java b/src/main/java/com/phrase/client/model/OrganizationJobTemplateCreateParameters.java index dd3233c353..1d71601603 100644 --- a/src/main/java/com/phrase/client/model/OrganizationJobTemplateCreateParameters.java +++ b/src/main/java/com/phrase/client/model/OrganizationJobTemplateCreateParameters.java @@ -26,7 +26,7 @@ /** * OrganizationJobTemplateCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrganizationJobTemplateCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/OrganizationJobTemplateDetails.java b/src/main/java/com/phrase/client/model/OrganizationJobTemplateDetails.java index 9530acab3f..62cf328438 100644 --- a/src/main/java/com/phrase/client/model/OrganizationJobTemplateDetails.java +++ b/src/main/java/com/phrase/client/model/OrganizationJobTemplateDetails.java @@ -31,7 +31,7 @@ /** * OrganizationJobTemplateDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrganizationJobTemplateDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocaleUpdateParameters.java b/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocaleUpdateParameters.java index 7ce54a516e..57784995a9 100644 --- a/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocaleUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocaleUpdateParameters.java @@ -28,7 +28,7 @@ /** * OrganizationJobTemplateLocaleUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrganizationJobTemplateLocaleUpdateParameters { public static final String SERIALIZED_NAME_LOCALE_NAME = "locale_name"; @SerializedName(SERIALIZED_NAME_LOCALE_NAME) diff --git a/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocalesCreateParameters.java b/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocalesCreateParameters.java index 4f95c6b17f..ac49a0bf89 100644 --- a/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocalesCreateParameters.java +++ b/src/main/java/com/phrase/client/model/OrganizationJobTemplateLocalesCreateParameters.java @@ -28,7 +28,7 @@ /** * OrganizationJobTemplateLocalesCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrganizationJobTemplateLocalesCreateParameters { public static final String SERIALIZED_NAME_LOCALE_NAME = "locale_name"; @SerializedName(SERIALIZED_NAME_LOCALE_NAME) diff --git a/src/main/java/com/phrase/client/model/OrganizationJobTemplateUpdateParameters.java b/src/main/java/com/phrase/client/model/OrganizationJobTemplateUpdateParameters.java index d10e4d809c..bb9e09e353 100644 --- a/src/main/java/com/phrase/client/model/OrganizationJobTemplateUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/OrganizationJobTemplateUpdateParameters.java @@ -26,7 +26,7 @@ /** * OrganizationJobTemplateUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class OrganizationJobTemplateUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/Project.java b/src/main/java/com/phrase/client/model/Project.java index 5e8ef442a6..b29d3328b1 100644 --- a/src/main/java/com/phrase/client/model/Project.java +++ b/src/main/java/com/phrase/client/model/Project.java @@ -30,7 +30,7 @@ /** * Project */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Project { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ProjectCreateParameters.java b/src/main/java/com/phrase/client/model/ProjectCreateParameters.java index b927994c33..faff83e6d2 100644 --- a/src/main/java/com/phrase/client/model/ProjectCreateParameters.java +++ b/src/main/java/com/phrase/client/model/ProjectCreateParameters.java @@ -27,7 +27,7 @@ /** * ProjectCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ProjectCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/ProjectDetails.java b/src/main/java/com/phrase/client/model/ProjectDetails.java index fe9b2395d0..574a2ad84e 100644 --- a/src/main/java/com/phrase/client/model/ProjectDetails.java +++ b/src/main/java/com/phrase/client/model/ProjectDetails.java @@ -30,7 +30,7 @@ /** * ProjectDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ProjectDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ProjectLocales.java b/src/main/java/com/phrase/client/model/ProjectLocales.java index 8fee2c405e..e2c3fa3a78 100644 --- a/src/main/java/com/phrase/client/model/ProjectLocales.java +++ b/src/main/java/com/phrase/client/model/ProjectLocales.java @@ -30,7 +30,7 @@ /** * ProjectLocales */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ProjectLocales { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ProjectReport.java b/src/main/java/com/phrase/client/model/ProjectReport.java index 02ca6fc689..4184564cd8 100644 --- a/src/main/java/com/phrase/client/model/ProjectReport.java +++ b/src/main/java/com/phrase/client/model/ProjectReport.java @@ -27,7 +27,7 @@ /** * ProjectReport */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ProjectReport { public static final String SERIALIZED_NAME_LOCALES_COUNT = "locales_count"; @SerializedName(SERIALIZED_NAME_LOCALES_COUNT) diff --git a/src/main/java/com/phrase/client/model/ProjectShort.java b/src/main/java/com/phrase/client/model/ProjectShort.java index 80d7903dd5..cb62efb835 100644 --- a/src/main/java/com/phrase/client/model/ProjectShort.java +++ b/src/main/java/com/phrase/client/model/ProjectShort.java @@ -27,7 +27,7 @@ /** * ProjectShort */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ProjectShort { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ProjectUpdateParameters.java b/src/main/java/com/phrase/client/model/ProjectUpdateParameters.java index 63c4d489eb..cc78f312cf 100644 --- a/src/main/java/com/phrase/client/model/ProjectUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/ProjectUpdateParameters.java @@ -27,7 +27,7 @@ /** * ProjectUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ProjectUpdateParameters { public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) diff --git a/src/main/java/com/phrase/client/model/Release.java b/src/main/java/com/phrase/client/model/Release.java index 72ea68c0d5..8202f12a60 100644 --- a/src/main/java/com/phrase/client/model/Release.java +++ b/src/main/java/com/phrase/client/model/Release.java @@ -31,7 +31,7 @@ /** * Release */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Release { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ReleaseCreateParameters.java b/src/main/java/com/phrase/client/model/ReleaseCreateParameters.java index 6d950ff463..7218c784f1 100644 --- a/src/main/java/com/phrase/client/model/ReleaseCreateParameters.java +++ b/src/main/java/com/phrase/client/model/ReleaseCreateParameters.java @@ -28,7 +28,7 @@ /** * ReleaseCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ReleaseCreateParameters { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/src/main/java/com/phrase/client/model/ReleasePreview.java b/src/main/java/com/phrase/client/model/ReleasePreview.java index 6cd499a47f..3713a2fd49 100644 --- a/src/main/java/com/phrase/client/model/ReleasePreview.java +++ b/src/main/java/com/phrase/client/model/ReleasePreview.java @@ -30,7 +30,7 @@ /** * ReleasePreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ReleasePreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ReleaseUpdateParameters.java b/src/main/java/com/phrase/client/model/ReleaseUpdateParameters.java index 5695ff7cde..47acdeb474 100644 --- a/src/main/java/com/phrase/client/model/ReleaseUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/ReleaseUpdateParameters.java @@ -28,7 +28,7 @@ /** * ReleaseUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ReleaseUpdateParameters { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/src/main/java/com/phrase/client/model/RepliesListParameters.java b/src/main/java/com/phrase/client/model/RepliesListParameters.java index 9c30aa73b3..4468653de0 100644 --- a/src/main/java/com/phrase/client/model/RepliesListParameters.java +++ b/src/main/java/com/phrase/client/model/RepliesListParameters.java @@ -28,7 +28,7 @@ /** * RepliesListParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class RepliesListParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/Screenshot.java b/src/main/java/com/phrase/client/model/Screenshot.java index 9258d6d8e5..9cd427f3a7 100644 --- a/src/main/java/com/phrase/client/model/Screenshot.java +++ b/src/main/java/com/phrase/client/model/Screenshot.java @@ -27,7 +27,7 @@ /** * Screenshot */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Screenshot { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ScreenshotMarker.java b/src/main/java/com/phrase/client/model/ScreenshotMarker.java index 8fda056a09..31231b73fe 100644 --- a/src/main/java/com/phrase/client/model/ScreenshotMarker.java +++ b/src/main/java/com/phrase/client/model/ScreenshotMarker.java @@ -28,7 +28,7 @@ /** * ScreenshotMarker */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ScreenshotMarker { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/ScreenshotMarkerCreateParameters.java b/src/main/java/com/phrase/client/model/ScreenshotMarkerCreateParameters.java index f1377dc2b1..5ad7e47948 100644 --- a/src/main/java/com/phrase/client/model/ScreenshotMarkerCreateParameters.java +++ b/src/main/java/com/phrase/client/model/ScreenshotMarkerCreateParameters.java @@ -26,7 +26,7 @@ /** * ScreenshotMarkerCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ScreenshotMarkerCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/ScreenshotMarkerUpdateParameters.java b/src/main/java/com/phrase/client/model/ScreenshotMarkerUpdateParameters.java index de9d2944f3..dcb8a6451c 100644 --- a/src/main/java/com/phrase/client/model/ScreenshotMarkerUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/ScreenshotMarkerUpdateParameters.java @@ -26,7 +26,7 @@ /** * ScreenshotMarkerUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ScreenshotMarkerUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/ScreenshotUpdateParameters.java b/src/main/java/com/phrase/client/model/ScreenshotUpdateParameters.java index c4a3e31a03..45e417693f 100644 --- a/src/main/java/com/phrase/client/model/ScreenshotUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/ScreenshotUpdateParameters.java @@ -27,7 +27,7 @@ /** * ScreenshotUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class ScreenshotUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/SearchInAccountParameters.java b/src/main/java/com/phrase/client/model/SearchInAccountParameters.java index 0d3a0ce53a..59f0b8e321 100644 --- a/src/main/java/com/phrase/client/model/SearchInAccountParameters.java +++ b/src/main/java/com/phrase/client/model/SearchInAccountParameters.java @@ -26,7 +26,7 @@ /** * SearchInAccountParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class SearchInAccountParameters { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/src/main/java/com/phrase/client/model/Space.java b/src/main/java/com/phrase/client/model/Space.java index 54ede92d45..4e555b230e 100644 --- a/src/main/java/com/phrase/client/model/Space.java +++ b/src/main/java/com/phrase/client/model/Space.java @@ -30,7 +30,7 @@ /** * Space */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Space { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/Space1.java b/src/main/java/com/phrase/client/model/Space1.java index ec73de281d..bd648c9dc9 100644 --- a/src/main/java/com/phrase/client/model/Space1.java +++ b/src/main/java/com/phrase/client/model/Space1.java @@ -27,7 +27,7 @@ /** * Space1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Space1 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/SpaceCreateParameters.java b/src/main/java/com/phrase/client/model/SpaceCreateParameters.java index 2346112908..d97d30aba2 100644 --- a/src/main/java/com/phrase/client/model/SpaceCreateParameters.java +++ b/src/main/java/com/phrase/client/model/SpaceCreateParameters.java @@ -26,7 +26,7 @@ /** * SpaceCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class SpaceCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/SpaceUpdateParameters.java b/src/main/java/com/phrase/client/model/SpaceUpdateParameters.java index e12cabea3a..f2ef9be795 100644 --- a/src/main/java/com/phrase/client/model/SpaceUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/SpaceUpdateParameters.java @@ -26,7 +26,7 @@ /** * SpaceUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class SpaceUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/SpacesProjectsCreateParameters.java b/src/main/java/com/phrase/client/model/SpacesProjectsCreateParameters.java index ad7b7c8825..212fb0aee8 100644 --- a/src/main/java/com/phrase/client/model/SpacesProjectsCreateParameters.java +++ b/src/main/java/com/phrase/client/model/SpacesProjectsCreateParameters.java @@ -26,7 +26,7 @@ /** * SpacesProjectsCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class SpacesProjectsCreateParameters { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/Styleguide.java b/src/main/java/com/phrase/client/model/Styleguide.java index c4a424c2d7..f38f6b8ebd 100644 --- a/src/main/java/com/phrase/client/model/Styleguide.java +++ b/src/main/java/com/phrase/client/model/Styleguide.java @@ -27,7 +27,7 @@ /** * Styleguide */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Styleguide { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/StyleguideCreateParameters.java b/src/main/java/com/phrase/client/model/StyleguideCreateParameters.java index 8fb659c942..42181f702b 100644 --- a/src/main/java/com/phrase/client/model/StyleguideCreateParameters.java +++ b/src/main/java/com/phrase/client/model/StyleguideCreateParameters.java @@ -26,7 +26,7 @@ /** * StyleguideCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class StyleguideCreateParameters { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) diff --git a/src/main/java/com/phrase/client/model/StyleguideDetails.java b/src/main/java/com/phrase/client/model/StyleguideDetails.java index 8d73804865..dc50a1ff81 100644 --- a/src/main/java/com/phrase/client/model/StyleguideDetails.java +++ b/src/main/java/com/phrase/client/model/StyleguideDetails.java @@ -27,7 +27,7 @@ /** * StyleguideDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class StyleguideDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/StyleguidePreview.java b/src/main/java/com/phrase/client/model/StyleguidePreview.java index 246db9bddb..66b49d040a 100644 --- a/src/main/java/com/phrase/client/model/StyleguidePreview.java +++ b/src/main/java/com/phrase/client/model/StyleguidePreview.java @@ -26,7 +26,7 @@ /** * StyleguidePreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class StyleguidePreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/StyleguideUpdateParameters.java b/src/main/java/com/phrase/client/model/StyleguideUpdateParameters.java index 58172ee0d0..811ae5eefe 100644 --- a/src/main/java/com/phrase/client/model/StyleguideUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/StyleguideUpdateParameters.java @@ -26,7 +26,7 @@ /** * StyleguideUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class StyleguideUpdateParameters { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) diff --git a/src/main/java/com/phrase/client/model/Subscription.java b/src/main/java/com/phrase/client/model/Subscription.java index 96f0d71791..93f5574e8a 100644 --- a/src/main/java/com/phrase/client/model/Subscription.java +++ b/src/main/java/com/phrase/client/model/Subscription.java @@ -26,7 +26,7 @@ /** * Subscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Subscription { public static final String SERIALIZED_NAME_IS_CURRENT = "is_current"; @SerializedName(SERIALIZED_NAME_IS_CURRENT) diff --git a/src/main/java/com/phrase/client/model/Tag.java b/src/main/java/com/phrase/client/model/Tag.java index b8d4167d5d..54e1a6d4f0 100644 --- a/src/main/java/com/phrase/client/model/Tag.java +++ b/src/main/java/com/phrase/client/model/Tag.java @@ -27,7 +27,7 @@ /** * Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Tag { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/TagCreateParameters.java b/src/main/java/com/phrase/client/model/TagCreateParameters.java index 93b449681b..446f5a94c0 100644 --- a/src/main/java/com/phrase/client/model/TagCreateParameters.java +++ b/src/main/java/com/phrase/client/model/TagCreateParameters.java @@ -26,7 +26,7 @@ /** * TagCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TagCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TagWithStats.java b/src/main/java/com/phrase/client/model/TagWithStats.java index 68a6cd40de..54c95683be 100644 --- a/src/main/java/com/phrase/client/model/TagWithStats.java +++ b/src/main/java/com/phrase/client/model/TagWithStats.java @@ -30,7 +30,7 @@ /** * TagWithStats */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TagWithStats { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/TagWithStats1Statistics.java b/src/main/java/com/phrase/client/model/TagWithStats1Statistics.java index 62b95440d5..24311e1a4f 100644 --- a/src/main/java/com/phrase/client/model/TagWithStats1Statistics.java +++ b/src/main/java/com/phrase/client/model/TagWithStats1Statistics.java @@ -26,7 +26,7 @@ /** * TagWithStats1Statistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TagWithStats1Statistics { public static final String SERIALIZED_NAME_KEYS_TOTAL_COUNT = "keys_total_count"; @SerializedName(SERIALIZED_NAME_KEYS_TOTAL_COUNT) diff --git a/src/main/java/com/phrase/client/model/TagWithStats1Statistics1.java b/src/main/java/com/phrase/client/model/TagWithStats1Statistics1.java index 97056471df..e60dd9d0a0 100644 --- a/src/main/java/com/phrase/client/model/TagWithStats1Statistics1.java +++ b/src/main/java/com/phrase/client/model/TagWithStats1Statistics1.java @@ -28,7 +28,7 @@ /** * TagWithStats1Statistics1 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TagWithStats1Statistics1 { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) diff --git a/src/main/java/com/phrase/client/model/Team.java b/src/main/java/com/phrase/client/model/Team.java index 7b98470353..40014adf69 100644 --- a/src/main/java/com/phrase/client/model/Team.java +++ b/src/main/java/com/phrase/client/model/Team.java @@ -32,7 +32,7 @@ /** * Team */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Team { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TeamCreateParameters.java b/src/main/java/com/phrase/client/model/TeamCreateParameters.java index b4c663999a..9193e1b520 100644 --- a/src/main/java/com/phrase/client/model/TeamCreateParameters.java +++ b/src/main/java/com/phrase/client/model/TeamCreateParameters.java @@ -26,7 +26,7 @@ /** * TeamCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/TeamDetail.java b/src/main/java/com/phrase/client/model/TeamDetail.java index e3b054728e..46428fe5f8 100644 --- a/src/main/java/com/phrase/client/model/TeamDetail.java +++ b/src/main/java/com/phrase/client/model/TeamDetail.java @@ -32,7 +32,7 @@ /** * TeamDetail */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamDetail { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TeamShort.java b/src/main/java/com/phrase/client/model/TeamShort.java index fc08d22bd4..f76915d09c 100644 --- a/src/main/java/com/phrase/client/model/TeamShort.java +++ b/src/main/java/com/phrase/client/model/TeamShort.java @@ -27,7 +27,7 @@ /** * TeamShort */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamShort { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TeamUpdateParameters.java b/src/main/java/com/phrase/client/model/TeamUpdateParameters.java index e0e528b736..64161761bb 100644 --- a/src/main/java/com/phrase/client/model/TeamUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/TeamUpdateParameters.java @@ -26,7 +26,7 @@ /** * TeamUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/TeamsProjectsCreateParameters.java b/src/main/java/com/phrase/client/model/TeamsProjectsCreateParameters.java index 3043b417a1..2caf2c6e58 100644 --- a/src/main/java/com/phrase/client/model/TeamsProjectsCreateParameters.java +++ b/src/main/java/com/phrase/client/model/TeamsProjectsCreateParameters.java @@ -26,7 +26,7 @@ /** * TeamsProjectsCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamsProjectsCreateParameters { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TeamsSpacesCreateParameters.java b/src/main/java/com/phrase/client/model/TeamsSpacesCreateParameters.java index 04c41fbf09..3af97679f5 100644 --- a/src/main/java/com/phrase/client/model/TeamsSpacesCreateParameters.java +++ b/src/main/java/com/phrase/client/model/TeamsSpacesCreateParameters.java @@ -26,7 +26,7 @@ /** * TeamsSpacesCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamsSpacesCreateParameters { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TeamsUsersCreateParameters.java b/src/main/java/com/phrase/client/model/TeamsUsersCreateParameters.java index 5859d04b67..e79079d911 100644 --- a/src/main/java/com/phrase/client/model/TeamsUsersCreateParameters.java +++ b/src/main/java/com/phrase/client/model/TeamsUsersCreateParameters.java @@ -26,7 +26,7 @@ /** * TeamsUsersCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TeamsUsersCreateParameters { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/Translation.java b/src/main/java/com/phrase/client/model/Translation.java index 92a209a362..85b4147da0 100644 --- a/src/main/java/com/phrase/client/model/Translation.java +++ b/src/main/java/com/phrase/client/model/Translation.java @@ -31,7 +31,7 @@ /** * Translation */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Translation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TranslationCreateParameters.java b/src/main/java/com/phrase/client/model/TranslationCreateParameters.java index 0a77a29a56..23422e7bfb 100644 --- a/src/main/java/com/phrase/client/model/TranslationCreateParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationCreateParameters.java @@ -26,7 +26,7 @@ /** * TranslationCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationCreateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationDetails.java b/src/main/java/com/phrase/client/model/TranslationDetails.java index ed2003eb3d..4332ce049b 100644 --- a/src/main/java/com/phrase/client/model/TranslationDetails.java +++ b/src/main/java/com/phrase/client/model/TranslationDetails.java @@ -32,7 +32,7 @@ /** * TranslationDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TranslationExcludeParameters.java b/src/main/java/com/phrase/client/model/TranslationExcludeParameters.java index bb676aa49e..08807cc21b 100644 --- a/src/main/java/com/phrase/client/model/TranslationExcludeParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationExcludeParameters.java @@ -26,7 +26,7 @@ /** * TranslationExcludeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationExcludeParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationIncludeParameters.java b/src/main/java/com/phrase/client/model/TranslationIncludeParameters.java index 26f8360109..08d766ef09 100644 --- a/src/main/java/com/phrase/client/model/TranslationIncludeParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationIncludeParameters.java @@ -26,7 +26,7 @@ /** * TranslationIncludeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationIncludeParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationKey.java b/src/main/java/com/phrase/client/model/TranslationKey.java index 0f4ea13fc0..cc703966fc 100644 --- a/src/main/java/com/phrase/client/model/TranslationKey.java +++ b/src/main/java/com/phrase/client/model/TranslationKey.java @@ -29,7 +29,7 @@ /** * TranslationKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationKey { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TranslationKeyDetails.java b/src/main/java/com/phrase/client/model/TranslationKeyDetails.java index b08da3be14..2e57f2b2e2 100644 --- a/src/main/java/com/phrase/client/model/TranslationKeyDetails.java +++ b/src/main/java/com/phrase/client/model/TranslationKeyDetails.java @@ -23,14 +23,16 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; +import java.util.Map; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * TranslationKeyDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationKeyDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -104,6 +106,10 @@ public class TranslationKeyDetails { @SerializedName(SERIALIZED_NAME_CREATOR) private UserPreview creator; + public static final String SERIALIZED_NAME_CUSTOM_METADATA = "custom_metadata"; + @SerializedName(SERIALIZED_NAME_CUSTOM_METADATA) + private Map customMetadata = new HashMap<>(); + public TranslationKeyDetails() { } @@ -510,6 +516,36 @@ public void setCreator(UserPreview creator) { this.creator = creator; } + + public TranslationKeyDetails customMetadata(Map customMetadata) { + + this.customMetadata = customMetadata; + return this; + } + + public TranslationKeyDetails putCustomMetadataItem(String key, String customMetadataItem) { + if (this.customMetadata == null) { + this.customMetadata = new HashMap<>(); + } + this.customMetadata.put(key, customMetadataItem); + return this; + } + + /** + * Get customMetadata + * @return customMetadata + **/ + @javax.annotation.Nullable + + public Map getCustomMetadata() { + return customMetadata; + } + + + public void setCustomMetadata(Map customMetadata) { + this.customMetadata = customMetadata; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -536,12 +572,13 @@ public boolean equals(Object o) { Objects.equals(this.xmlSpacePreserve, translationKeyDetails.xmlSpacePreserve) && Objects.equals(this.originalFile, translationKeyDetails.originalFile) && Objects.equals(this.formatValueType, translationKeyDetails.formatValueType) && - Objects.equals(this.creator, translationKeyDetails.creator); + Objects.equals(this.creator, translationKeyDetails.creator) && + Objects.equals(this.customMetadata, translationKeyDetails.customMetadata); } @Override public int hashCode() { - return Objects.hash(id, name, description, nameHash, plural, tags, dataType, createdAt, updatedAt, namePlural, commentsCount, maxCharactersAllowed, screenshotUrl, unformatted, xmlSpacePreserve, originalFile, formatValueType, creator); + return Objects.hash(id, name, description, nameHash, plural, tags, dataType, createdAt, updatedAt, namePlural, commentsCount, maxCharactersAllowed, screenshotUrl, unformatted, xmlSpacePreserve, originalFile, formatValueType, creator, customMetadata); } @Override @@ -566,6 +603,7 @@ public String toString() { sb.append(" originalFile: ").append(toIndentedString(originalFile)).append("\n"); sb.append(" formatValueType: ").append(toIndentedString(formatValueType)).append("\n"); sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" customMetadata: ").append(toIndentedString(customMetadata)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/phrase/client/model/TranslationOrder.java b/src/main/java/com/phrase/client/model/TranslationOrder.java index 26ac3e4936..5d1040eee4 100644 --- a/src/main/java/com/phrase/client/model/TranslationOrder.java +++ b/src/main/java/com/phrase/client/model/TranslationOrder.java @@ -31,7 +31,7 @@ /** * TranslationOrder */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationOrder { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TranslationReviewParameters.java b/src/main/java/com/phrase/client/model/TranslationReviewParameters.java index 78bc31c215..24a8cad13c 100644 --- a/src/main/java/com/phrase/client/model/TranslationReviewParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationReviewParameters.java @@ -26,7 +26,7 @@ /** * TranslationReviewParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationReviewParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationUnverifyParameters.java b/src/main/java/com/phrase/client/model/TranslationUnverifyParameters.java index 987882e24a..06b8393122 100644 --- a/src/main/java/com/phrase/client/model/TranslationUnverifyParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationUnverifyParameters.java @@ -26,7 +26,7 @@ /** * TranslationUnverifyParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationUnverifyParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationUpdateParameters.java b/src/main/java/com/phrase/client/model/TranslationUpdateParameters.java index 83df55a423..259385736d 100644 --- a/src/main/java/com/phrase/client/model/TranslationUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationUpdateParameters.java @@ -26,7 +26,7 @@ /** * TranslationUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationUpdateParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationVerifyParameters.java b/src/main/java/com/phrase/client/model/TranslationVerifyParameters.java index e669e40593..b89d5fa6df 100644 --- a/src/main/java/com/phrase/client/model/TranslationVerifyParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationVerifyParameters.java @@ -26,7 +26,7 @@ /** * TranslationVerifyParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationVerifyParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationVersion.java b/src/main/java/com/phrase/client/model/TranslationVersion.java index 03ed295c83..efb8d8e901 100644 --- a/src/main/java/com/phrase/client/model/TranslationVersion.java +++ b/src/main/java/com/phrase/client/model/TranslationVersion.java @@ -29,7 +29,7 @@ /** * TranslationVersion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TranslationVersionWithUser.java b/src/main/java/com/phrase/client/model/TranslationVersionWithUser.java index c63a619237..d62335d4c8 100644 --- a/src/main/java/com/phrase/client/model/TranslationVersionWithUser.java +++ b/src/main/java/com/phrase/client/model/TranslationVersionWithUser.java @@ -30,7 +30,7 @@ /** * TranslationVersionWithUser */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationVersionWithUser { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/TranslationsExcludeParameters.java b/src/main/java/com/phrase/client/model/TranslationsExcludeParameters.java index 01327a55d3..0ad90e7442 100644 --- a/src/main/java/com/phrase/client/model/TranslationsExcludeParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationsExcludeParameters.java @@ -26,7 +26,7 @@ /** * TranslationsExcludeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationsExcludeParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationsIncludeParameters.java b/src/main/java/com/phrase/client/model/TranslationsIncludeParameters.java index c5a6c19bf7..c2505b9cea 100644 --- a/src/main/java/com/phrase/client/model/TranslationsIncludeParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationsIncludeParameters.java @@ -26,7 +26,7 @@ /** * TranslationsIncludeParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationsIncludeParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationsReviewParameters.java b/src/main/java/com/phrase/client/model/TranslationsReviewParameters.java index 728988a148..2afcffc7a9 100644 --- a/src/main/java/com/phrase/client/model/TranslationsReviewParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationsReviewParameters.java @@ -26,7 +26,7 @@ /** * TranslationsReviewParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationsReviewParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationsSearchParameters.java b/src/main/java/com/phrase/client/model/TranslationsSearchParameters.java index e23a42c0b3..8dcfe89a6b 100644 --- a/src/main/java/com/phrase/client/model/TranslationsSearchParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationsSearchParameters.java @@ -26,7 +26,7 @@ /** * TranslationsSearchParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationsSearchParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationsUnverifyParameters.java b/src/main/java/com/phrase/client/model/TranslationsUnverifyParameters.java index 81c9fc9207..e185e7a3c4 100644 --- a/src/main/java/com/phrase/client/model/TranslationsUnverifyParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationsUnverifyParameters.java @@ -26,7 +26,7 @@ /** * TranslationsUnverifyParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationsUnverifyParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/TranslationsVerifyParameters.java b/src/main/java/com/phrase/client/model/TranslationsVerifyParameters.java index a9cfe1de99..6af0c682a7 100644 --- a/src/main/java/com/phrase/client/model/TranslationsVerifyParameters.java +++ b/src/main/java/com/phrase/client/model/TranslationsVerifyParameters.java @@ -26,7 +26,7 @@ /** * TranslationsVerifyParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class TranslationsVerifyParameters { public static final String SERIALIZED_NAME_BRANCH = "branch"; @SerializedName(SERIALIZED_NAME_BRANCH) diff --git a/src/main/java/com/phrase/client/model/Upload.java b/src/main/java/com/phrase/client/model/Upload.java index 614ec987f2..7c6231656b 100644 --- a/src/main/java/com/phrase/client/model/Upload.java +++ b/src/main/java/com/phrase/client/model/Upload.java @@ -28,7 +28,7 @@ /** * Upload */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Upload { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/UploadSummary.java b/src/main/java/com/phrase/client/model/UploadSummary.java index f6480e989d..cbef2e461d 100644 --- a/src/main/java/com/phrase/client/model/UploadSummary.java +++ b/src/main/java/com/phrase/client/model/UploadSummary.java @@ -26,7 +26,7 @@ /** * UploadSummary */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class UploadSummary { public static final String SERIALIZED_NAME_LOCALES_CREATED = "locales_created"; @SerializedName(SERIALIZED_NAME_LOCALES_CREATED) diff --git a/src/main/java/com/phrase/client/model/User.java b/src/main/java/com/phrase/client/model/User.java index ab4e108554..fb6aa6b887 100644 --- a/src/main/java/com/phrase/client/model/User.java +++ b/src/main/java/com/phrase/client/model/User.java @@ -27,7 +27,7 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/UserPreview.java b/src/main/java/com/phrase/client/model/UserPreview.java index 967661acfb..92f924d614 100644 --- a/src/main/java/com/phrase/client/model/UserPreview.java +++ b/src/main/java/com/phrase/client/model/UserPreview.java @@ -26,7 +26,7 @@ /** * UserPreview */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class UserPreview { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/Variable.java b/src/main/java/com/phrase/client/model/Variable.java index b7efe50f0c..7d49929587 100644 --- a/src/main/java/com/phrase/client/model/Variable.java +++ b/src/main/java/com/phrase/client/model/Variable.java @@ -27,7 +27,7 @@ /** * Variable */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Variable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/VariableCreateParameters.java b/src/main/java/com/phrase/client/model/VariableCreateParameters.java index 35143beac1..ed961fec57 100644 --- a/src/main/java/com/phrase/client/model/VariableCreateParameters.java +++ b/src/main/java/com/phrase/client/model/VariableCreateParameters.java @@ -26,7 +26,7 @@ /** * VariableCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class VariableCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/VariableUpdateParameters.java b/src/main/java/com/phrase/client/model/VariableUpdateParameters.java index 96fcb71f28..e86f700b58 100644 --- a/src/main/java/com/phrase/client/model/VariableUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/VariableUpdateParameters.java @@ -26,7 +26,7 @@ /** * VariableUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class VariableUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/phrase/client/model/Webhook.java b/src/main/java/com/phrase/client/model/Webhook.java index f316cdb0df..e86e8b1aed 100644 --- a/src/main/java/com/phrase/client/model/Webhook.java +++ b/src/main/java/com/phrase/client/model/Webhook.java @@ -29,7 +29,7 @@ /** * Webhook */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class Webhook { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/WebhookCreateParameters.java b/src/main/java/com/phrase/client/model/WebhookCreateParameters.java index 1646de4740..0ffdfef333 100644 --- a/src/main/java/com/phrase/client/model/WebhookCreateParameters.java +++ b/src/main/java/com/phrase/client/model/WebhookCreateParameters.java @@ -26,7 +26,7 @@ /** * WebhookCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class WebhookCreateParameters { public static final String SERIALIZED_NAME_CALLBACK_URL = "callback_url"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) diff --git a/src/main/java/com/phrase/client/model/WebhookDelivery.java b/src/main/java/com/phrase/client/model/WebhookDelivery.java index 4029d3bf4c..a6d11362a2 100644 --- a/src/main/java/com/phrase/client/model/WebhookDelivery.java +++ b/src/main/java/com/phrase/client/model/WebhookDelivery.java @@ -27,7 +27,7 @@ /** * WebhookDelivery */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class WebhookDelivery { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/phrase/client/model/WebhookUpdateParameters.java b/src/main/java/com/phrase/client/model/WebhookUpdateParameters.java index d8f4f2fa0d..528f4a5851 100644 --- a/src/main/java/com/phrase/client/model/WebhookUpdateParameters.java +++ b/src/main/java/com/phrase/client/model/WebhookUpdateParameters.java @@ -26,7 +26,7 @@ /** * WebhookUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:14:22.871694Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-13T11:27:10.938287Z[Etc/UTC]") public class WebhookUpdateParameters { public static final String SERIALIZED_NAME_CALLBACK_URL = "callback_url"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) diff --git a/src/test/java/com/phrase/client/api/CustomMetadataApiTest.java b/src/test/java/com/phrase/client/api/CustomMetadataApiTest.java new file mode 100644 index 0000000000..06e072f076 --- /dev/null +++ b/src/test/java/com/phrase/client/api/CustomMetadataApiTest.java @@ -0,0 +1,139 @@ +/* + * Phrase Strings API Reference + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@phrase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.phrase.client.api; + +import com.phrase.client.ApiException; +import com.phrase.client.model.CustomMetadataDataType; +import com.phrase.client.model.CustomMetadataProperty; +import com.phrase.client.model.CustomMetadataPropertyCreate422Response; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CustomMetadataApi + */ +@Ignore +public class CustomMetadataApiTest { + + private final CustomMetadataApi api = new CustomMetadataApi(); + + + /** + * Destroy property + * + * Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void customMetadataPropertiesDeleteTest() throws ApiException { + String accountId = null; + String id = null; + String xPhraseAppOTP = null; + api.customMetadataPropertiesDelete(accountId, id, xPhraseAppOTP); + + // TODO: test validations + } + + /** + * List properties + * + * List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void customMetadataPropertiesListTest() throws ApiException { + String accountId = null; + String xPhraseAppOTP = null; + CustomMetadataDataType dataType = null; + String projectId = null; + Integer page = null; + Integer perPage = null; + String sort = null; + String order = null; + List response = api.customMetadataPropertiesList(accountId, xPhraseAppOTP, dataType, projectId, page, perPage, sort, order); + + // TODO: test validations + } + + /** + * Create a property + * + * Create a new custom metadata property. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void customMetadataPropertyCreateTest() throws ApiException { + String accountId = null; + String name = null; + CustomMetadataDataType dataType = null; + String xPhraseAppOTP = null; + String description = null; + List projectIds = null; + List valueOptions = null; + CustomMetadataProperty response = api.customMetadataPropertyCreate(accountId, name, dataType, xPhraseAppOTP, description, projectIds, valueOptions); + + // TODO: test validations + } + + /** + * Get a single property + * + * Get details of a single custom property. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void customMetadataPropertyShowTest() throws ApiException { + String accountId = null; + String id = null; + String xPhraseAppOTP = null; + CustomMetadataProperty response = api.customMetadataPropertyShow(accountId, id, xPhraseAppOTP); + + // TODO: test validations + } + + /** + * Update a property + * + * Update an existing custom metadata property. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void customMetadataPropertyUpdateTest() throws ApiException { + String accountId = null; + String id = null; + String xPhraseAppOTP = null; + String name = null; + String description = null; + List projectIds = null; + List valueOptions = null; + CustomMetadataProperty response = api.customMetadataPropertyUpdate(accountId, id, xPhraseAppOTP, name, description, projectIds, valueOptions); + + // TODO: test validations + } + +} diff --git a/src/test/java/com/phrase/client/api/GitHubSyncApiTest.java b/src/test/java/com/phrase/client/api/GitHubSyncApiTest.java index 3decf260a8..0d2f688929 100644 --- a/src/test/java/com/phrase/client/api/GitHubSyncApiTest.java +++ b/src/test/java/com/phrase/client/api/GitHubSyncApiTest.java @@ -13,9 +13,9 @@ package com.phrase.client.api; import com.phrase.client.ApiException; +import com.phrase.client.model.CustomMetadataPropertyCreate422Response; import com.phrase.client.model.GithubSyncExportParameters; import com.phrase.client.model.GithubSyncImportParameters; -import com.phrase.client.model.InvitationCreate422Response; import org.junit.Test; import org.junit.Ignore; diff --git a/src/test/java/com/phrase/client/api/InvitationsApiTest.java b/src/test/java/com/phrase/client/api/InvitationsApiTest.java index 1412fed199..48c830cc09 100644 --- a/src/test/java/com/phrase/client/api/InvitationsApiTest.java +++ b/src/test/java/com/phrase/client/api/InvitationsApiTest.java @@ -13,8 +13,8 @@ package com.phrase.client.api; import com.phrase.client.ApiException; +import com.phrase.client.model.CustomMetadataPropertyCreate422Response; import com.phrase.client.model.Invitation; -import com.phrase.client.model.InvitationCreate422Response; import com.phrase.client.model.InvitationCreateParameters; import com.phrase.client.model.InvitationUpdateParameters; import com.phrase.client.model.InvitationUpdateSettingsParameters; diff --git a/src/test/java/com/phrase/client/model/CustomMetadataDataTypeTest.java b/src/test/java/com/phrase/client/model/CustomMetadataDataTypeTest.java new file mode 100644 index 0000000000..e310ba82ef --- /dev/null +++ b/src/test/java/com/phrase/client/model/CustomMetadataDataTypeTest.java @@ -0,0 +1,33 @@ +/* + * Phrase Strings API Reference + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@phrase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.phrase.client.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CustomMetadataDataType + */ +public class CustomMetadataDataTypeTest { + /** + * Model tests for CustomMetadataDataType + */ + @Test + public void testCustomMetadataDataType() { + // TODO: test CustomMetadataDataType + } + +} diff --git a/src/test/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInnerTest.java b/src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInnerTest.java similarity index 68% rename from src/test/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInnerTest.java rename to src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInnerTest.java index f08c65d00c..6b8df5b988 100644 --- a/src/test/java/com/phrase/client/model/InvitationCreate422ResponseErrorsInnerTest.java +++ b/src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseErrorsInnerTest.java @@ -25,17 +25,17 @@ /** - * Model tests for InvitationCreate422ResponseErrorsInner + * Model tests for CustomMetadataPropertyCreate422ResponseErrorsInner */ -public class InvitationCreate422ResponseErrorsInnerTest { - private final InvitationCreate422ResponseErrorsInner model = new InvitationCreate422ResponseErrorsInner(); +public class CustomMetadataPropertyCreate422ResponseErrorsInnerTest { + private final CustomMetadataPropertyCreate422ResponseErrorsInner model = new CustomMetadataPropertyCreate422ResponseErrorsInner(); /** - * Model tests for InvitationCreate422ResponseErrorsInner + * Model tests for CustomMetadataPropertyCreate422ResponseErrorsInner */ @Test - public void testInvitationCreate422ResponseErrorsInner() { - // TODO: test InvitationCreate422ResponseErrorsInner + public void testCustomMetadataPropertyCreate422ResponseErrorsInner() { + // TODO: test CustomMetadataPropertyCreate422ResponseErrorsInner } /** diff --git a/src/test/java/com/phrase/client/model/InvitationCreate422ResponseTest.java b/src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseTest.java similarity index 66% rename from src/test/java/com/phrase/client/model/InvitationCreate422ResponseTest.java rename to src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseTest.java index 6073c473c4..824db33cd4 100644 --- a/src/test/java/com/phrase/client/model/InvitationCreate422ResponseTest.java +++ b/src/test/java/com/phrase/client/model/CustomMetadataPropertyCreate422ResponseTest.java @@ -17,7 +17,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import com.phrase.client.model.InvitationCreate422ResponseErrorsInner; +import com.phrase.client.model.CustomMetadataPropertyCreate422ResponseErrorsInner; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -28,17 +28,17 @@ /** - * Model tests for InvitationCreate422Response + * Model tests for CustomMetadataPropertyCreate422Response */ -public class InvitationCreate422ResponseTest { - private final InvitationCreate422Response model = new InvitationCreate422Response(); +public class CustomMetadataPropertyCreate422ResponseTest { + private final CustomMetadataPropertyCreate422Response model = new CustomMetadataPropertyCreate422Response(); /** - * Model tests for InvitationCreate422Response + * Model tests for CustomMetadataPropertyCreate422Response */ @Test - public void testInvitationCreate422Response() { - // TODO: test InvitationCreate422Response + public void testCustomMetadataPropertyCreate422Response() { + // TODO: test CustomMetadataPropertyCreate422Response } /** diff --git a/src/test/java/com/phrase/client/model/CustomMetadataPropertyTest.java b/src/test/java/com/phrase/client/model/CustomMetadataPropertyTest.java new file mode 100644 index 0000000000..bffaab5765 --- /dev/null +++ b/src/test/java/com/phrase/client/model/CustomMetadataPropertyTest.java @@ -0,0 +1,119 @@ +/* + * Phrase Strings API Reference + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@phrase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.phrase.client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.phrase.client.model.CustomMetadataDataType; +import com.phrase.client.model.ProjectShort; +import com.phrase.client.model.UserPreview; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CustomMetadataProperty + */ +public class CustomMetadataPropertyTest { + private final CustomMetadataProperty model = new CustomMetadataProperty(); + + /** + * Model tests for CustomMetadataProperty + */ + @Test + public void testCustomMetadataProperty() { + // TODO: test CustomMetadataProperty + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + + /** + * Test the property 'projects' + */ + @Test + public void projectsTest() { + // TODO: test projects + } + + /** + * Test the property 'valueOptions' + */ + @Test + public void valueOptionsTest() { + // TODO: test valueOptions + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/phrase/client/model/KeyCreateParametersTest.java b/src/test/java/com/phrase/client/model/KeyCreateParametersTest.java index b80d2ccf26..6fdd902a25 100644 --- a/src/test/java/com/phrase/client/model/KeyCreateParametersTest.java +++ b/src/test/java/com/phrase/client/model/KeyCreateParametersTest.java @@ -167,4 +167,12 @@ public void localizedFormatKeyTest() { // TODO: test localizedFormatKey } + /** + * Test the property 'customMetadata' + */ + @Test + public void customMetadataTest() { + // TODO: test customMetadata + } + } diff --git a/src/test/java/com/phrase/client/model/KeyUpdateParametersTest.java b/src/test/java/com/phrase/client/model/KeyUpdateParametersTest.java index 4a08a12b35..e77e49deb7 100644 --- a/src/test/java/com/phrase/client/model/KeyUpdateParametersTest.java +++ b/src/test/java/com/phrase/client/model/KeyUpdateParametersTest.java @@ -159,4 +159,12 @@ public void localizedFormatKeyTest() { // TODO: test localizedFormatKey } + /** + * Test the property 'customMetadata' + */ + @Test + public void customMetadataTest() { + // TODO: test customMetadata + } + } diff --git a/src/test/java/com/phrase/client/model/TranslationKeyDetailsTest.java b/src/test/java/com/phrase/client/model/TranslationKeyDetailsTest.java index a7dc5f8da3..3d661deb28 100644 --- a/src/test/java/com/phrase/client/model/TranslationKeyDetailsTest.java +++ b/src/test/java/com/phrase/client/model/TranslationKeyDetailsTest.java @@ -22,7 +22,9 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; +import java.util.Map; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -186,4 +188,12 @@ public void creatorTest() { // TODO: test creator } + /** + * Test the property 'customMetadata' + */ + @Test + public void customMetadataTest() { + // TODO: test customMetadata + } + }