phrase 2.17.0 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +14 -29
- data/docs/Account.md +2 -2
- data/docs/AccountDetails.md +2 -2
- data/docs/Authorization.md +3 -3
- data/docs/AuthorizationCreateParameters.md +1 -1
- data/docs/AuthorizationUpdateParameters.md +1 -1
- data/docs/AuthorizationWithToken.md +3 -3
- data/docs/BitbucketSync.md +2 -2
- data/docs/BlacklistedKey.md +2 -2
- data/docs/Branch.md +3 -3
- data/docs/Comment.md +2 -2
- data/docs/CommentReaction.md +2 -2
- data/docs/CommentRepliesApi.md +3 -1
- data/docs/CommentsApi.md +5 -3
- data/docs/CommentsListParameters.md +3 -1
- data/docs/CurrentUser.md +2 -2
- data/docs/Distribution.md +2 -2
- data/docs/DistributionCreateParameters.md +1 -1
- data/docs/DistributionPreview.md +2 -2
- data/docs/Document.md +2 -2
- data/docs/FigmaAttachment.md +2 -2
- data/docs/GitlabSync.md +2 -2
- data/docs/GitlabSyncHistory.md +3 -3
- data/docs/{GitlabSyncHistoryErrors.md → GitlabSyncHistoryErrorsInner.md} +2 -2
- data/docs/Glossary.md +2 -2
- data/docs/GlossaryTerm.md +2 -2
- data/docs/GlossaryTermTranslation.md +2 -2
- data/docs/Invitation.md +5 -5
- data/docs/{InlineResponse422.md → InvitationCreate422Response.md} +3 -3
- data/docs/{InlineResponse422Errors.md → InvitationCreate422ResponseErrorsInner.md} +2 -2
- data/docs/Job.md +3 -3
- data/docs/JobComment.md +2 -2
- data/docs/JobCommentsApi.md +3 -1
- data/docs/JobCreateParameters.md +1 -1
- data/docs/JobDetails.md +3 -3
- data/docs/JobLocale.md +2 -2
- data/docs/JobLocalesApi.md +1 -1
- data/docs/JobTemplate.md +2 -2
- data/docs/JobTemplateDetails.md +2 -2
- data/docs/JobTemplateLocalesApi.md +1 -1
- data/docs/JobTemplatesApi.md +2 -2
- data/docs/JobUpdateParameters.md +1 -1
- data/docs/JobsApi.md +1 -1
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/Locale.md +2 -2
- data/docs/LocaleDetails.md +2 -2
- data/docs/LocalesApi.md +1 -1
- data/docs/Member.md +4 -4
- data/docs/MemberProjectDetail.md +3 -3
- data/docs/{MemberProjectDetailProjectRoles.md → MemberProjectDetailProjectRolesInner.md} +2 -2
- data/docs/{MemberSpaces.md → MemberSpacesInner.md} +4 -4
- data/docs/Notification.md +6 -6
- data/docs/NotificationGroup.md +2 -2
- data/docs/NotificationGroupDetail.md +2 -2
- data/docs/OrganizationJobTemplate.md +2 -2
- data/docs/OrganizationJobTemplateDetails.md +2 -2
- data/docs/OrganizationJobTemplateLocalesApi.md +1 -1
- data/docs/OrganizationJobTemplatesApi.md +2 -2
- data/docs/Project.md +2 -2
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectDetails.md +2 -2
- data/docs/ProjectLocales.md +2 -2
- data/docs/ProjectShort.md +2 -2
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ProjectsApi.md +1 -1
- data/docs/Release.md +2 -2
- data/docs/ReleasePreview.md +2 -2
- data/docs/RepliesListParameters.md +3 -1
- data/docs/Screenshot.md +2 -2
- data/docs/ScreenshotMarker.md +2 -2
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/ScreenshotsApi.md +1 -1
- data/docs/Space.md +2 -2
- data/docs/Space1.md +2 -2
- data/docs/Styleguide.md +2 -2
- data/docs/StyleguideCreateParameters.md +1 -1
- data/docs/StyleguideDetails.md +2 -2
- data/docs/StyleguideUpdateParameters.md +1 -1
- data/docs/Tag.md +2 -2
- data/docs/TagWithStats.md +2 -2
- data/docs/Team.md +2 -2
- data/docs/TeamDetail.md +2 -2
- data/docs/TeamShort.md +2 -2
- data/docs/Translation.md +2 -2
- data/docs/TranslationDetails.md +2 -2
- data/docs/TranslationKey.md +2 -2
- data/docs/TranslationKeyDetails.md +2 -2
- data/docs/TranslationOrder.md +2 -2
- data/docs/TranslationVersion.md +3 -3
- data/docs/TranslationVersionWithUser.md +3 -3
- data/docs/Upload.md +2 -2
- data/docs/UploadsApi.md +4 -4
- data/docs/User.md +2 -2
- data/docs/Variable.md +2 -2
- data/docs/Webhook.md +2 -2
- data/docs/WebhookDelivery.md +3 -3
- data/lib/phrase/api/comment_replies_api.rb +3 -0
- data/lib/phrase/api/comments_api.rb +3 -0
- data/lib/phrase/api/job_comments_api.rb +3 -0
- data/lib/phrase/configuration.rb +6 -6
- data/lib/phrase/models/account.rb +3 -1
- data/lib/phrase/models/account_details.rb +4 -3
- data/lib/phrase/models/account_search_result.rb +3 -1
- data/lib/phrase/models/affected_count.rb +3 -1
- data/lib/phrase/models/affected_resources.rb +3 -1
- data/lib/phrase/models/authorization.rb +3 -1
- data/lib/phrase/models/authorization_create_parameters.rb +3 -1
- data/lib/phrase/models/authorization_update_parameters.rb +3 -1
- data/lib/phrase/models/authorization_with_token.rb +4 -3
- data/lib/phrase/models/bitbucket_sync.rb +3 -1
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +3 -1
- data/lib/phrase/models/bitbucket_sync_export_response.rb +3 -1
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +3 -1
- data/lib/phrase/models/blacklisted_key.rb +3 -1
- data/lib/phrase/models/blacklisted_key_create_parameters.rb +3 -1
- data/lib/phrase/models/blacklisted_key_update_parameters.rb +3 -1
- data/lib/phrase/models/branch.rb +3 -1
- data/lib/phrase/models/branch_create_parameters.rb +3 -1
- data/lib/phrase/models/branch_merge_parameters.rb +3 -1
- data/lib/phrase/models/branch_name.rb +3 -1
- data/lib/phrase/models/branch_update_parameters.rb +3 -1
- data/lib/phrase/models/comment.rb +3 -1
- data/lib/phrase/models/comment_create_parameters.rb +3 -1
- data/lib/phrase/models/comment_mark_read_parameters.rb +3 -1
- data/lib/phrase/models/comment_reaction.rb +3 -1
- data/lib/phrase/models/comment_update_parameters.rb +3 -1
- data/lib/phrase/models/comments_list_parameters.rb +17 -5
- data/lib/phrase/models/current_user.rb +3 -1
- data/lib/phrase/models/distribution.rb +3 -1
- data/lib/phrase/models/distribution_create_parameters.rb +4 -2
- data/lib/phrase/models/distribution_preview.rb +3 -1
- data/lib/phrase/models/distribution_update_parameters.rb +3 -1
- data/lib/phrase/models/document.rb +3 -1
- data/lib/phrase/models/figma_attachment.rb +3 -1
- data/lib/phrase/models/figma_attachment_create_parameters.rb +3 -1
- data/lib/phrase/models/figma_attachment_update_parameters.rb +3 -1
- data/lib/phrase/models/format.rb +3 -1
- data/lib/phrase/models/github_sync_export_parameters.rb +3 -1
- data/lib/phrase/models/github_sync_import_parameters.rb +3 -1
- data/lib/phrase/models/gitlab_sync.rb +3 -1
- data/lib/phrase/models/gitlab_sync_export.rb +3 -1
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +3 -1
- data/lib/phrase/models/gitlab_sync_history.rb +4 -2
- data/lib/phrase/models/{gitlab_sync_history_errors.rb → gitlab_sync_history_errors_inner.rb} +6 -4
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +3 -1
- data/lib/phrase/models/glossary.rb +3 -1
- data/lib/phrase/models/glossary_create_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term.rb +3 -1
- data/lib/phrase/models/glossary_term_create_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term_translation.rb +3 -1
- data/lib/phrase/models/glossary_term_translation_create_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term_translation_update_parameters.rb +3 -1
- data/lib/phrase/models/glossary_term_update_parameters.rb +3 -1
- data/lib/phrase/models/glossary_update_parameters.rb +3 -1
- data/lib/phrase/models/icu.rb +3 -1
- data/lib/phrase/models/icu_skeleton_parameters.rb +3 -1
- data/lib/phrase/models/invitation.rb +4 -2
- data/lib/phrase/models/{inline_response422.rb → invitation_create422_response.rb} +7 -5
- data/lib/phrase/models/{inline_response422_errors.rb → invitation_create422_response_errors_inner.rb} +6 -4
- data/lib/phrase/models/invitation_create_parameters.rb +3 -1
- data/lib/phrase/models/invitation_update_parameters.rb +3 -1
- data/lib/phrase/models/invitation_update_settings_parameters.rb +3 -1
- data/lib/phrase/models/job.rb +3 -1
- data/lib/phrase/models/job_comment.rb +3 -1
- data/lib/phrase/models/job_comment_create_parameters.rb +3 -1
- data/lib/phrase/models/job_comment_update_parameters.rb +3 -1
- data/lib/phrase/models/job_complete_parameters.rb +3 -1
- data/lib/phrase/models/job_create_parameters.rb +3 -1
- data/lib/phrase/models/job_details.rb +4 -3
- data/lib/phrase/models/job_keys_create_parameters.rb +3 -1
- data/lib/phrase/models/job_locale.rb +3 -1
- data/lib/phrase/models/job_locale_complete_parameters.rb +3 -1
- data/lib/phrase/models/job_locale_complete_review_parameters.rb +3 -1
- data/lib/phrase/models/job_locale_reopen_parameters.rb +3 -1
- data/lib/phrase/models/job_locale_update_parameters.rb +3 -1
- data/lib/phrase/models/job_locales_create_parameters.rb +3 -1
- data/lib/phrase/models/job_preview.rb +3 -1
- data/lib/phrase/models/job_reopen_parameters.rb +3 -1
- data/lib/phrase/models/job_start_parameters.rb +3 -1
- data/lib/phrase/models/job_template.rb +3 -1
- data/lib/phrase/models/job_template_create_parameters.rb +3 -1
- data/lib/phrase/models/job_template_details.rb +4 -3
- data/lib/phrase/models/job_template_locale_update_parameters.rb +3 -1
- data/lib/phrase/models/job_template_locales.rb +3 -1
- data/lib/phrase/models/job_template_locales_create_parameters.rb +3 -1
- data/lib/phrase/models/job_template_preview.rb +3 -1
- data/lib/phrase/models/job_template_update_parameters.rb +3 -1
- data/lib/phrase/models/job_update_parameters.rb +3 -1
- data/lib/phrase/models/key_create_parameters.rb +3 -1
- data/lib/phrase/models/key_preview.rb +3 -1
- data/lib/phrase/models/key_update_parameters.rb +3 -1
- data/lib/phrase/models/keys_exclude_parameters.rb +3 -1
- data/lib/phrase/models/keys_include_parameters.rb +3 -1
- data/lib/phrase/models/keys_search_parameters.rb +3 -1
- data/lib/phrase/models/keys_tag_parameters.rb +3 -1
- data/lib/phrase/models/keys_untag_parameters.rb +3 -1
- data/lib/phrase/models/locale.rb +3 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -1
- data/lib/phrase/models/locale_details.rb +4 -3
- data/lib/phrase/models/locale_preview.rb +3 -1
- data/lib/phrase/models/locale_preview1.rb +3 -1
- data/lib/phrase/models/locale_statistics.rb +3 -1
- data/lib/phrase/models/locale_team_preview.rb +3 -1
- data/lib/phrase/models/locale_update_parameters.rb +3 -1
- data/lib/phrase/models/locale_user_preview.rb +3 -1
- data/lib/phrase/models/member.rb +4 -2
- data/lib/phrase/models/member_project_detail.rb +5 -3
- data/lib/phrase/models/{member_project_detail_project_roles.rb → member_project_detail_project_roles_inner.rb} +6 -4
- data/lib/phrase/models/{member_spaces.rb → member_spaces_inner.rb} +6 -4
- data/lib/phrase/models/member_update_parameters.rb +3 -1
- data/lib/phrase/models/member_update_settings_parameters.rb +3 -1
- data/lib/phrase/models/notification.rb +3 -1
- data/lib/phrase/models/notification_group.rb +3 -1
- data/lib/phrase/models/notification_group_detail.rb +3 -1
- data/lib/phrase/models/order_confirm_parameters.rb +3 -1
- data/lib/phrase/models/order_create_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template.rb +3 -1
- data/lib/phrase/models/organization_job_template_create_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template_details.rb +3 -2
- data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +3 -1
- data/lib/phrase/models/organization_job_template_update_parameters.rb +3 -1
- data/lib/phrase/models/project.rb +3 -1
- data/lib/phrase/models/project_create_parameters.rb +3 -1
- data/lib/phrase/models/project_details.rb +4 -3
- data/lib/phrase/models/project_locales.rb +3 -9
- data/lib/phrase/models/project_short.rb +3 -1
- data/lib/phrase/models/project_update_parameters.rb +3 -1
- data/lib/phrase/models/release.rb +3 -1
- data/lib/phrase/models/release_create_parameters.rb +3 -1
- data/lib/phrase/models/release_preview.rb +3 -1
- data/lib/phrase/models/release_update_parameters.rb +3 -1
- data/lib/phrase/models/replies_list_parameters.rb +17 -5
- data/lib/phrase/models/screenshot.rb +3 -1
- data/lib/phrase/models/screenshot_marker.rb +3 -1
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +3 -1
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +3 -1
- data/lib/phrase/models/screenshot_update_parameters.rb +3 -1
- data/lib/phrase/models/search_in_account_parameters.rb +3 -1
- data/lib/phrase/models/space.rb +3 -1
- data/lib/phrase/models/space1.rb +3 -1
- data/lib/phrase/models/space_create_parameters.rb +3 -1
- data/lib/phrase/models/space_update_parameters.rb +3 -1
- data/lib/phrase/models/spaces_projects_create_parameters.rb +3 -1
- data/lib/phrase/models/styleguide.rb +3 -1
- data/lib/phrase/models/styleguide_create_parameters.rb +3 -1
- data/lib/phrase/models/styleguide_details.rb +4 -3
- data/lib/phrase/models/styleguide_preview.rb +3 -1
- data/lib/phrase/models/styleguide_update_parameters.rb +3 -1
- data/lib/phrase/models/subscription.rb +3 -1
- data/lib/phrase/models/tag.rb +3 -1
- data/lib/phrase/models/tag_create_parameters.rb +3 -1
- data/lib/phrase/models/tag_with_stats.rb +4 -3
- data/lib/phrase/models/tag_with_stats1_statistics.rb +3 -1
- data/lib/phrase/models/tag_with_stats1_statistics1.rb +3 -1
- data/lib/phrase/models/team.rb +3 -1
- data/lib/phrase/models/team_create_parameters.rb +3 -1
- data/lib/phrase/models/team_detail.rb +3 -1
- data/lib/phrase/models/team_short.rb +3 -1
- data/lib/phrase/models/team_update_parameters.rb +3 -1
- data/lib/phrase/models/teams_projects_create_parameters.rb +3 -1
- data/lib/phrase/models/teams_spaces_create_parameters.rb +3 -1
- data/lib/phrase/models/teams_users_create_parameters.rb +3 -1
- data/lib/phrase/models/translation.rb +3 -1
- data/lib/phrase/models/translation_create_parameters.rb +3 -1
- data/lib/phrase/models/translation_details.rb +4 -3
- data/lib/phrase/models/translation_exclude_parameters.rb +3 -1
- data/lib/phrase/models/translation_include_parameters.rb +3 -1
- data/lib/phrase/models/translation_key.rb +3 -1
- data/lib/phrase/models/translation_key_details.rb +4 -3
- data/lib/phrase/models/translation_order.rb +3 -1
- data/lib/phrase/models/translation_review_parameters.rb +3 -1
- data/lib/phrase/models/translation_unverify_parameters.rb +3 -1
- data/lib/phrase/models/translation_update_parameters.rb +3 -1
- data/lib/phrase/models/translation_verify_parameters.rb +3 -1
- data/lib/phrase/models/translation_version.rb +3 -1
- data/lib/phrase/models/translation_version_with_user.rb +4 -3
- data/lib/phrase/models/translations_exclude_parameters.rb +3 -1
- data/lib/phrase/models/translations_include_parameters.rb +3 -1
- data/lib/phrase/models/translations_review_parameters.rb +3 -1
- data/lib/phrase/models/translations_search_parameters.rb +3 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +3 -1
- data/lib/phrase/models/translations_verify_parameters.rb +3 -1
- data/lib/phrase/models/upload.rb +3 -1
- data/lib/phrase/models/upload_summary.rb +3 -1
- data/lib/phrase/models/user.rb +3 -1
- data/lib/phrase/models/user_preview.rb +3 -1
- data/lib/phrase/models/variable.rb +3 -1
- data/lib/phrase/models/variable_create_parameters.rb +3 -1
- data/lib/phrase/models/variable_update_parameters.rb +3 -1
- data/lib/phrase/models/webhook.rb +3 -1
- data/lib/phrase/models/webhook_create_parameters.rb +3 -1
- data/lib/phrase/models/webhook_delivery.rb +3 -1
- data/lib/phrase/models/webhook_update_parameters.rb +3 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +5 -20
- data/spec/api/comment_replies_api_spec.rb +1 -0
- data/spec/api/comments_api_spec.rb +1 -0
- data/spec/api/job_comments_api_spec.rb +1 -0
- data/spec/models/comments_list_parameters_spec.rb +6 -0
- data/spec/models/{gitlab_sync_history_errors_spec.rb → gitlab_sync_history_errors_inner_spec.rb} +6 -6
- data/spec/models/{inline_response422_errors_spec.rb → invitation_create422_response_errors_inner_spec.rb} +6 -6
- data/spec/models/{inline_response422_spec.rb → invitation_create422_response_spec.rb} +6 -6
- data/spec/models/{member_project_detail_project_roles_spec.rb → member_project_detail_project_roles_inner_spec.rb} +6 -6
- data/spec/models/{member_spaces_spec.rb → member_spaces_inner_spec.rb} +6 -6
- data/spec/models/replies_list_parameters_spec.rb +6 -0
- metadata +226 -286
- data/docs/AccountDetails1.md +0 -19
- data/docs/AuthorizationWithToken1.md +0 -17
- data/docs/JobDetails1.md +0 -25
- data/docs/JobTemplateDetails1.md +0 -21
- data/docs/LocaleDetails1.md +0 -17
- data/docs/ProjectDetails1.md +0 -19
- data/docs/ProjectLocales1.md +0 -17
- data/docs/ProjectMemberSpecific.md +0 -27
- data/docs/ScreenshotCreateParameters.md +0 -23
- data/docs/StyleguideDetails1.md +0 -41
- data/docs/TagWithStats1.md +0 -17
- data/docs/TranslationDetails1.md +0 -19
- data/docs/TranslationKeyDetails1.md +0 -33
- data/docs/TranslationVersionWithUser1.md +0 -17
- data/docs/UploadCreateParameters.md +0 -47
- data/lib/phrase/models/account_details1.rb +0 -203
- data/lib/phrase/models/authorization_with_token1.rb +0 -194
- data/lib/phrase/models/job_details1.rb +0 -234
- data/lib/phrase/models/job_template_details1.rb +0 -214
- data/lib/phrase/models/locale_details1.rb +0 -194
- data/lib/phrase/models/project_details1.rb +0 -203
- data/lib/phrase/models/project_locales1.rb +0 -196
- data/lib/phrase/models/project_member_specific.rb +0 -239
- data/lib/phrase/models/screenshot_create_parameters.rb +0 -225
- data/lib/phrase/models/styleguide_details1.rb +0 -302
- data/lib/phrase/models/tag_with_stats1.rb +0 -196
- data/lib/phrase/models/translation_details1.rb +0 -203
- data/lib/phrase/models/translation_key_details1.rb +0 -266
- data/lib/phrase/models/translation_version_with_user1.rb +0 -194
- data/lib/phrase/models/upload_create_parameters.rb +0 -347
- data/spec/models/account_details1_spec.rb +0 -35
- data/spec/models/authorization_with_token1_spec.rb +0 -29
- data/spec/models/job_details1_spec.rb +0 -53
- data/spec/models/job_template_details1_spec.rb +0 -41
- data/spec/models/locale_details1_spec.rb +0 -29
- data/spec/models/project_details1_spec.rb +0 -35
- data/spec/models/project_locales1_spec.rb +0 -29
- data/spec/models/project_member_specific_spec.rb +0 -59
- data/spec/models/screenshot_create_parameters_spec.rb +0 -47
- data/spec/models/styleguide_details1_spec.rb +0 -101
- data/spec/models/tag_with_stats1_spec.rb +0 -29
- data/spec/models/translation_details1_spec.rb +0 -35
- data/spec/models/translation_key_details1_spec.rb +0 -77
- data/spec/models/translation_version_with_user1_spec.rb +0 -29
- data/spec/models/upload_create_parameters_spec.rb +0 -119
@@ -1,266 +0,0 @@
|
|
1
|
-
require 'date'
|
2
|
-
|
3
|
-
module Phrase
|
4
|
-
class TranslationKeyDetails1
|
5
|
-
attr_accessor :name_plural
|
6
|
-
|
7
|
-
attr_accessor :comments_count
|
8
|
-
|
9
|
-
attr_accessor :max_characters_allowed
|
10
|
-
|
11
|
-
attr_accessor :screenshot_url
|
12
|
-
|
13
|
-
attr_accessor :unformatted
|
14
|
-
|
15
|
-
attr_accessor :xml_space_preserve
|
16
|
-
|
17
|
-
attr_accessor :original_file
|
18
|
-
|
19
|
-
attr_accessor :format_value_type
|
20
|
-
|
21
|
-
attr_accessor :creator
|
22
|
-
|
23
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
-
def self.attribute_map
|
25
|
-
{
|
26
|
-
:'name_plural' => :'name_plural',
|
27
|
-
:'comments_count' => :'comments_count',
|
28
|
-
:'max_characters_allowed' => :'max_characters_allowed',
|
29
|
-
:'screenshot_url' => :'screenshot_url',
|
30
|
-
:'unformatted' => :'unformatted',
|
31
|
-
:'xml_space_preserve' => :'xml_space_preserve',
|
32
|
-
:'original_file' => :'original_file',
|
33
|
-
:'format_value_type' => :'format_value_type',
|
34
|
-
:'creator' => :'creator'
|
35
|
-
}
|
36
|
-
end
|
37
|
-
|
38
|
-
# Attribute type mapping.
|
39
|
-
def self.openapi_types
|
40
|
-
{
|
41
|
-
:'name_plural' => :'String',
|
42
|
-
:'comments_count' => :'Integer',
|
43
|
-
:'max_characters_allowed' => :'Integer',
|
44
|
-
:'screenshot_url' => :'String',
|
45
|
-
:'unformatted' => :'Boolean',
|
46
|
-
:'xml_space_preserve' => :'Boolean',
|
47
|
-
:'original_file' => :'String',
|
48
|
-
:'format_value_type' => :'String',
|
49
|
-
:'creator' => :'UserPreview'
|
50
|
-
}
|
51
|
-
end
|
52
|
-
|
53
|
-
# List of attributes with nullable: true
|
54
|
-
def self.openapi_nullable
|
55
|
-
Set.new([
|
56
|
-
])
|
57
|
-
end
|
58
|
-
|
59
|
-
# Initializes the object
|
60
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
-
def initialize(attributes = {})
|
62
|
-
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::TranslationKeyDetails1` initialize method"
|
64
|
-
end
|
65
|
-
|
66
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::TranslationKeyDetails1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
|
-
end
|
71
|
-
h[k.to_sym] = v
|
72
|
-
}
|
73
|
-
|
74
|
-
if attributes.key?(:'name_plural')
|
75
|
-
self.name_plural = attributes[:'name_plural']
|
76
|
-
end
|
77
|
-
|
78
|
-
if attributes.key?(:'comments_count')
|
79
|
-
self.comments_count = attributes[:'comments_count']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'max_characters_allowed')
|
83
|
-
self.max_characters_allowed = attributes[:'max_characters_allowed']
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes.key?(:'screenshot_url')
|
87
|
-
self.screenshot_url = attributes[:'screenshot_url']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'unformatted')
|
91
|
-
self.unformatted = attributes[:'unformatted']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.key?(:'xml_space_preserve')
|
95
|
-
self.xml_space_preserve = attributes[:'xml_space_preserve']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.key?(:'original_file')
|
99
|
-
self.original_file = attributes[:'original_file']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'format_value_type')
|
103
|
-
self.format_value_type = attributes[:'format_value_type']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.key?(:'creator')
|
107
|
-
self.creator = attributes[:'creator']
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
112
|
-
# @return Array for valid properties with the reasons
|
113
|
-
def list_invalid_properties
|
114
|
-
invalid_properties = Array.new
|
115
|
-
invalid_properties
|
116
|
-
end
|
117
|
-
|
118
|
-
# Check to see if the all the properties in the model are valid
|
119
|
-
# @return true if the model is valid
|
120
|
-
def valid?
|
121
|
-
true
|
122
|
-
end
|
123
|
-
|
124
|
-
# Checks equality by comparing each attribute.
|
125
|
-
# @param [Object] Object to be compared
|
126
|
-
def ==(o)
|
127
|
-
return true if self.equal?(o)
|
128
|
-
self.class == o.class &&
|
129
|
-
name_plural == o.name_plural &&
|
130
|
-
comments_count == o.comments_count &&
|
131
|
-
max_characters_allowed == o.max_characters_allowed &&
|
132
|
-
screenshot_url == o.screenshot_url &&
|
133
|
-
unformatted == o.unformatted &&
|
134
|
-
xml_space_preserve == o.xml_space_preserve &&
|
135
|
-
original_file == o.original_file &&
|
136
|
-
format_value_type == o.format_value_type &&
|
137
|
-
creator == o.creator
|
138
|
-
end
|
139
|
-
|
140
|
-
# @see the `==` method
|
141
|
-
# @param [Object] Object to be compared
|
142
|
-
def eql?(o)
|
143
|
-
self == o
|
144
|
-
end
|
145
|
-
|
146
|
-
# Calculates hash code according to all attributes.
|
147
|
-
# @return [Integer] Hash code
|
148
|
-
def hash
|
149
|
-
[name_plural, comments_count, max_characters_allowed, screenshot_url, unformatted, xml_space_preserve, original_file, format_value_type, creator].hash
|
150
|
-
end
|
151
|
-
|
152
|
-
# Builds the object from hash
|
153
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
-
# @return [Object] Returns the model itself
|
155
|
-
def self.build_from_hash(attributes)
|
156
|
-
new.build_from_hash(attributes)
|
157
|
-
end
|
158
|
-
|
159
|
-
# Builds the object from hash
|
160
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
161
|
-
# @return [Object] Returns the model itself
|
162
|
-
def build_from_hash(attributes)
|
163
|
-
return nil unless attributes.is_a?(Hash)
|
164
|
-
self.class.openapi_types.each_pair do |key, type|
|
165
|
-
if type =~ /\AArray<(.*)>/i
|
166
|
-
# check to ensure the input is an array given that the attribute
|
167
|
-
# is documented as an array but the input is not
|
168
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
169
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
170
|
-
end
|
171
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
172
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
173
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
174
|
-
end
|
175
|
-
|
176
|
-
self
|
177
|
-
end
|
178
|
-
|
179
|
-
# Deserializes the data based on type
|
180
|
-
# @param string type Data type
|
181
|
-
# @param string value Value to be deserialized
|
182
|
-
# @return [Object] Deserialized data
|
183
|
-
def _deserialize(type, value)
|
184
|
-
case type.to_sym
|
185
|
-
when :DateTime
|
186
|
-
DateTime.parse(value)
|
187
|
-
when :Date
|
188
|
-
Date.parse(value)
|
189
|
-
when :String
|
190
|
-
value.to_s
|
191
|
-
when :Integer
|
192
|
-
value.to_i
|
193
|
-
when :Float
|
194
|
-
value.to_f
|
195
|
-
when :Boolean
|
196
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
197
|
-
true
|
198
|
-
else
|
199
|
-
false
|
200
|
-
end
|
201
|
-
when :Object
|
202
|
-
# generic object (usually a Hash), return directly
|
203
|
-
value
|
204
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
205
|
-
inner_type = Regexp.last_match[:inner_type]
|
206
|
-
value.map { |v| _deserialize(inner_type, v) }
|
207
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
208
|
-
k_type = Regexp.last_match[:k_type]
|
209
|
-
v_type = Regexp.last_match[:v_type]
|
210
|
-
{}.tap do |hash|
|
211
|
-
value.each do |k, v|
|
212
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
|
-
end
|
214
|
-
end
|
215
|
-
else # model
|
216
|
-
Phrase.const_get(type).build_from_hash(value)
|
217
|
-
end
|
218
|
-
end
|
219
|
-
|
220
|
-
# Returns the string representation of the object
|
221
|
-
# @return [String] String presentation of the object
|
222
|
-
def to_s
|
223
|
-
to_hash.to_s
|
224
|
-
end
|
225
|
-
|
226
|
-
# to_body is an alias to to_hash (backward compatibility)
|
227
|
-
# @return [Hash] Returns the object in the form of hash
|
228
|
-
def to_body
|
229
|
-
to_hash
|
230
|
-
end
|
231
|
-
|
232
|
-
# Returns the object in the form of hash
|
233
|
-
# @return [Hash] Returns the object in the form of hash
|
234
|
-
def to_hash
|
235
|
-
hash = {}
|
236
|
-
self.class.attribute_map.each_pair do |attr, param|
|
237
|
-
value = self.send(attr)
|
238
|
-
if value.nil?
|
239
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
240
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
241
|
-
end
|
242
|
-
|
243
|
-
hash[param] = _to_hash(value)
|
244
|
-
end
|
245
|
-
hash
|
246
|
-
end
|
247
|
-
|
248
|
-
# Outputs non-array value in the form of hash
|
249
|
-
# For object, use to_hash. Otherwise, just return the value
|
250
|
-
# @param [Object] value Any valid value
|
251
|
-
# @return [Hash] Returns the value in the form of hash
|
252
|
-
def _to_hash(value)
|
253
|
-
if value.is_a?(Array)
|
254
|
-
value.compact.map { |v| _to_hash(v) }
|
255
|
-
elsif value.is_a?(Hash)
|
256
|
-
{}.tap do |hash|
|
257
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
258
|
-
end
|
259
|
-
elsif value.respond_to? :to_hash
|
260
|
-
value.to_hash
|
261
|
-
else
|
262
|
-
value
|
263
|
-
end
|
264
|
-
end
|
265
|
-
end
|
266
|
-
end
|
@@ -1,194 +0,0 @@
|
|
1
|
-
require 'date'
|
2
|
-
|
3
|
-
module Phrase
|
4
|
-
class TranslationVersionWithUser1
|
5
|
-
attr_accessor :user
|
6
|
-
|
7
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
8
|
-
def self.attribute_map
|
9
|
-
{
|
10
|
-
:'user' => :'user'
|
11
|
-
}
|
12
|
-
end
|
13
|
-
|
14
|
-
# Attribute type mapping.
|
15
|
-
def self.openapi_types
|
16
|
-
{
|
17
|
-
:'user' => :'UserPreview'
|
18
|
-
}
|
19
|
-
end
|
20
|
-
|
21
|
-
# List of attributes with nullable: true
|
22
|
-
def self.openapi_nullable
|
23
|
-
Set.new([
|
24
|
-
])
|
25
|
-
end
|
26
|
-
|
27
|
-
# Initializes the object
|
28
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
29
|
-
def initialize(attributes = {})
|
30
|
-
if (!attributes.is_a?(Hash))
|
31
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::TranslationVersionWithUser1` initialize method"
|
32
|
-
end
|
33
|
-
|
34
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
35
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
36
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
37
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::TranslationVersionWithUser1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
38
|
-
end
|
39
|
-
h[k.to_sym] = v
|
40
|
-
}
|
41
|
-
|
42
|
-
if attributes.key?(:'user')
|
43
|
-
self.user = attributes[:'user']
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
48
|
-
# @return Array for valid properties with the reasons
|
49
|
-
def list_invalid_properties
|
50
|
-
invalid_properties = Array.new
|
51
|
-
invalid_properties
|
52
|
-
end
|
53
|
-
|
54
|
-
# Check to see if the all the properties in the model are valid
|
55
|
-
# @return true if the model is valid
|
56
|
-
def valid?
|
57
|
-
true
|
58
|
-
end
|
59
|
-
|
60
|
-
# Checks equality by comparing each attribute.
|
61
|
-
# @param [Object] Object to be compared
|
62
|
-
def ==(o)
|
63
|
-
return true if self.equal?(o)
|
64
|
-
self.class == o.class &&
|
65
|
-
user == o.user
|
66
|
-
end
|
67
|
-
|
68
|
-
# @see the `==` method
|
69
|
-
# @param [Object] Object to be compared
|
70
|
-
def eql?(o)
|
71
|
-
self == o
|
72
|
-
end
|
73
|
-
|
74
|
-
# Calculates hash code according to all attributes.
|
75
|
-
# @return [Integer] Hash code
|
76
|
-
def hash
|
77
|
-
[user].hash
|
78
|
-
end
|
79
|
-
|
80
|
-
# Builds the object from hash
|
81
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
82
|
-
# @return [Object] Returns the model itself
|
83
|
-
def self.build_from_hash(attributes)
|
84
|
-
new.build_from_hash(attributes)
|
85
|
-
end
|
86
|
-
|
87
|
-
# Builds the object from hash
|
88
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
-
# @return [Object] Returns the model itself
|
90
|
-
def build_from_hash(attributes)
|
91
|
-
return nil unless attributes.is_a?(Hash)
|
92
|
-
self.class.openapi_types.each_pair do |key, type|
|
93
|
-
if type =~ /\AArray<(.*)>/i
|
94
|
-
# check to ensure the input is an array given that the attribute
|
95
|
-
# is documented as an array but the input is not
|
96
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
98
|
-
end
|
99
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
100
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
101
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
102
|
-
end
|
103
|
-
|
104
|
-
self
|
105
|
-
end
|
106
|
-
|
107
|
-
# Deserializes the data based on type
|
108
|
-
# @param string type Data type
|
109
|
-
# @param string value Value to be deserialized
|
110
|
-
# @return [Object] Deserialized data
|
111
|
-
def _deserialize(type, value)
|
112
|
-
case type.to_sym
|
113
|
-
when :DateTime
|
114
|
-
DateTime.parse(value)
|
115
|
-
when :Date
|
116
|
-
Date.parse(value)
|
117
|
-
when :String
|
118
|
-
value.to_s
|
119
|
-
when :Integer
|
120
|
-
value.to_i
|
121
|
-
when :Float
|
122
|
-
value.to_f
|
123
|
-
when :Boolean
|
124
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
125
|
-
true
|
126
|
-
else
|
127
|
-
false
|
128
|
-
end
|
129
|
-
when :Object
|
130
|
-
# generic object (usually a Hash), return directly
|
131
|
-
value
|
132
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
133
|
-
inner_type = Regexp.last_match[:inner_type]
|
134
|
-
value.map { |v| _deserialize(inner_type, v) }
|
135
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
136
|
-
k_type = Regexp.last_match[:k_type]
|
137
|
-
v_type = Regexp.last_match[:v_type]
|
138
|
-
{}.tap do |hash|
|
139
|
-
value.each do |k, v|
|
140
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
141
|
-
end
|
142
|
-
end
|
143
|
-
else # model
|
144
|
-
Phrase.const_get(type).build_from_hash(value)
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
# Returns the string representation of the object
|
149
|
-
# @return [String] String presentation of the object
|
150
|
-
def to_s
|
151
|
-
to_hash.to_s
|
152
|
-
end
|
153
|
-
|
154
|
-
# to_body is an alias to to_hash (backward compatibility)
|
155
|
-
# @return [Hash] Returns the object in the form of hash
|
156
|
-
def to_body
|
157
|
-
to_hash
|
158
|
-
end
|
159
|
-
|
160
|
-
# Returns the object in the form of hash
|
161
|
-
# @return [Hash] Returns the object in the form of hash
|
162
|
-
def to_hash
|
163
|
-
hash = {}
|
164
|
-
self.class.attribute_map.each_pair do |attr, param|
|
165
|
-
value = self.send(attr)
|
166
|
-
if value.nil?
|
167
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
168
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
169
|
-
end
|
170
|
-
|
171
|
-
hash[param] = _to_hash(value)
|
172
|
-
end
|
173
|
-
hash
|
174
|
-
end
|
175
|
-
|
176
|
-
# Outputs non-array value in the form of hash
|
177
|
-
# For object, use to_hash. Otherwise, just return the value
|
178
|
-
# @param [Object] value Any valid value
|
179
|
-
# @return [Hash] Returns the value in the form of hash
|
180
|
-
def _to_hash(value)
|
181
|
-
if value.is_a?(Array)
|
182
|
-
value.compact.map { |v| _to_hash(v) }
|
183
|
-
elsif value.is_a?(Hash)
|
184
|
-
{}.tap do |hash|
|
185
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
-
end
|
187
|
-
elsif value.respond_to? :to_hash
|
188
|
-
value.to_hash
|
189
|
-
else
|
190
|
-
value
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|