phrase 2.17.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
data/lib/phrase/models/branch.rb
CHANGED
@@ -186,6 +186,8 @@ module Phrase
|
|
186
186
|
DateTime.parse(value)
|
187
187
|
when :Date
|
188
188
|
Date.parse(value)
|
189
|
+
when :Time
|
190
|
+
Time.parse(value)
|
189
191
|
when :String
|
190
192
|
value.to_s
|
191
193
|
when :Integer
|
@@ -239,7 +241,7 @@ module Phrase
|
|
239
241
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
240
242
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
241
243
|
end
|
242
|
-
|
244
|
+
|
243
245
|
hash[param] = _to_hash(value)
|
244
246
|
end
|
245
247
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -114,6 +114,8 @@ module Phrase
|
|
114
114
|
DateTime.parse(value)
|
115
115
|
when :Date
|
116
116
|
Date.parse(value)
|
117
|
+
when :Time
|
118
|
+
Time.parse(value)
|
117
119
|
when :String
|
118
120
|
value.to_s
|
119
121
|
when :Integer
|
@@ -167,7 +169,7 @@ module Phrase
|
|
167
169
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
168
170
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
169
171
|
end
|
170
|
-
|
172
|
+
|
171
173
|
hash[param] = _to_hash(value)
|
172
174
|
end
|
173
175
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -181,6 +181,8 @@ module Phrase
|
|
181
181
|
DateTime.parse(value)
|
182
182
|
when :Date
|
183
183
|
Date.parse(value)
|
184
|
+
when :Time
|
185
|
+
Time.parse(value)
|
184
186
|
when :String
|
185
187
|
value.to_s
|
186
188
|
when :Integer
|
@@ -234,7 +236,7 @@ module Phrase
|
|
234
236
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
235
237
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
236
238
|
end
|
237
|
-
|
239
|
+
|
238
240
|
hash[param] = _to_hash(value)
|
239
241
|
end
|
240
242
|
hash
|
@@ -125,6 +125,8 @@ module Phrase
|
|
125
125
|
DateTime.parse(value)
|
126
126
|
when :Date
|
127
127
|
Date.parse(value)
|
128
|
+
when :Time
|
129
|
+
Time.parse(value)
|
128
130
|
when :String
|
129
131
|
value.to_s
|
130
132
|
when :Integer
|
@@ -178,7 +180,7 @@ module Phrase
|
|
178
180
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
179
181
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
180
182
|
end
|
181
|
-
|
183
|
+
|
182
184
|
hash[param] = _to_hash(value)
|
183
185
|
end
|
184
186
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -159,6 +159,8 @@ module Phrase
|
|
159
159
|
DateTime.parse(value)
|
160
160
|
when :Date
|
161
161
|
Date.parse(value)
|
162
|
+
when :Time
|
163
|
+
Time.parse(value)
|
162
164
|
when :String
|
163
165
|
value.to_s
|
164
166
|
when :Integer
|
@@ -212,7 +214,7 @@ module Phrase
|
|
212
214
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
215
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
216
|
end
|
215
|
-
|
217
|
+
|
216
218
|
hash[param] = _to_hash(value)
|
217
219
|
end
|
218
220
|
hash
|
@@ -125,6 +125,8 @@ module Phrase
|
|
125
125
|
DateTime.parse(value)
|
126
126
|
when :Date
|
127
127
|
Date.parse(value)
|
128
|
+
when :Time
|
129
|
+
Time.parse(value)
|
128
130
|
when :String
|
129
131
|
value.to_s
|
130
132
|
when :Integer
|
@@ -178,7 +180,7 @@ module Phrase
|
|
178
180
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
179
181
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
180
182
|
end
|
181
|
-
|
183
|
+
|
182
184
|
hash[param] = _to_hash(value)
|
183
185
|
end
|
184
186
|
hash
|
@@ -14,13 +14,17 @@ module Phrase
|
|
14
14
|
# Specify filters to find comments by
|
15
15
|
attr_accessor :filters
|
16
16
|
|
17
|
+
# Specify ordering of comments
|
18
|
+
attr_accessor :order
|
19
|
+
|
17
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
21
|
def self.attribute_map
|
19
22
|
{
|
20
23
|
:'branch' => :'branch',
|
21
24
|
:'query' => :'query',
|
22
25
|
:'locale_ids' => :'locale_ids',
|
23
|
-
:'filters' => :'filters'
|
26
|
+
:'filters' => :'filters',
|
27
|
+
:'order' => :'order'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
@@ -30,7 +34,8 @@ module Phrase
|
|
30
34
|
:'branch' => :'String',
|
31
35
|
:'query' => :'String',
|
32
36
|
:'locale_ids' => :'Array<String>',
|
33
|
-
:'filters' => :'Array<String>'
|
37
|
+
:'filters' => :'Array<String>',
|
38
|
+
:'order' => :'String'
|
34
39
|
}
|
35
40
|
end
|
36
41
|
|
@@ -74,6 +79,10 @@ module Phrase
|
|
74
79
|
self.filters = value
|
75
80
|
end
|
76
81
|
end
|
82
|
+
|
83
|
+
if attributes.key?(:'order')
|
84
|
+
self.order = attributes[:'order']
|
85
|
+
end
|
77
86
|
end
|
78
87
|
|
79
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -97,7 +106,8 @@ module Phrase
|
|
97
106
|
branch == o.branch &&
|
98
107
|
query == o.query &&
|
99
108
|
locale_ids == o.locale_ids &&
|
100
|
-
filters == o.filters
|
109
|
+
filters == o.filters &&
|
110
|
+
order == o.order
|
101
111
|
end
|
102
112
|
|
103
113
|
# @see the `==` method
|
@@ -109,7 +119,7 @@ module Phrase
|
|
109
119
|
# Calculates hash code according to all attributes.
|
110
120
|
# @return [Integer] Hash code
|
111
121
|
def hash
|
112
|
-
[branch, query, locale_ids, filters].hash
|
122
|
+
[branch, query, locale_ids, filters, order].hash
|
113
123
|
end
|
114
124
|
|
115
125
|
# Builds the object from hash
|
@@ -149,6 +159,8 @@ module Phrase
|
|
149
159
|
DateTime.parse(value)
|
150
160
|
when :Date
|
151
161
|
Date.parse(value)
|
162
|
+
when :Time
|
163
|
+
Time.parse(value)
|
152
164
|
when :String
|
153
165
|
value.to_s
|
154
166
|
when :Integer
|
@@ -202,7 +214,7 @@ module Phrase
|
|
202
214
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
203
215
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
204
216
|
end
|
205
|
-
|
217
|
+
|
206
218
|
hash[param] = _to_hash(value)
|
207
219
|
end
|
208
220
|
hash
|
@@ -177,6 +177,8 @@ module Phrase
|
|
177
177
|
DateTime.parse(value)
|
178
178
|
when :Date
|
179
179
|
Date.parse(value)
|
180
|
+
when :Time
|
181
|
+
Time.parse(value)
|
180
182
|
when :String
|
181
183
|
value.to_s
|
182
184
|
when :Integer
|
@@ -230,7 +232,7 @@ module Phrase
|
|
230
232
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
231
233
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
232
234
|
end
|
233
|
-
|
235
|
+
|
234
236
|
hash[param] = _to_hash(value)
|
235
237
|
end
|
236
238
|
hash
|
@@ -183,6 +183,8 @@ module Phrase
|
|
183
183
|
DateTime.parse(value)
|
184
184
|
when :Date
|
185
185
|
Date.parse(value)
|
186
|
+
when :Time
|
187
|
+
Time.parse(value)
|
186
188
|
when :String
|
187
189
|
value.to_s
|
188
190
|
when :Integer
|
@@ -236,7 +238,7 @@ module Phrase
|
|
236
238
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
237
239
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
238
240
|
end
|
239
|
-
|
241
|
+
|
240
242
|
hash[param] = _to_hash(value)
|
241
243
|
end
|
242
244
|
hash
|
@@ -8,7 +8,7 @@ module Phrase
|
|
8
8
|
# Project id the distribution should be assigned to.
|
9
9
|
attr_accessor :project_id
|
10
10
|
|
11
|
-
# List of platforms the distribution should support. Valid values are: * `android` * `ios` * `flutter` * `i18next`
|
11
|
+
# List of platforms the distribution should support. Valid values are: * `android` * `ios` * `flutter` * `i18next` * `rails`
|
12
12
|
attr_accessor :platforms
|
13
13
|
|
14
14
|
# List of locale ids that will be part of distribution releases
|
@@ -201,6 +201,8 @@ module Phrase
|
|
201
201
|
DateTime.parse(value)
|
202
202
|
when :Date
|
203
203
|
Date.parse(value)
|
204
|
+
when :Time
|
205
|
+
Time.parse(value)
|
204
206
|
when :String
|
205
207
|
value.to_s
|
206
208
|
when :Integer
|
@@ -254,7 +256,7 @@ module Phrase
|
|
254
256
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
255
257
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
256
258
|
end
|
257
|
-
|
259
|
+
|
258
260
|
hash[param] = _to_hash(value)
|
259
261
|
end
|
260
262
|
hash
|
@@ -170,6 +170,8 @@ module Phrase
|
|
170
170
|
DateTime.parse(value)
|
171
171
|
when :Date
|
172
172
|
Date.parse(value)
|
173
|
+
when :Time
|
174
|
+
Time.parse(value)
|
173
175
|
when :String
|
174
176
|
value.to_s
|
175
177
|
when :Integer
|
@@ -223,7 +225,7 @@ module Phrase
|
|
223
225
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
224
226
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
225
227
|
end
|
226
|
-
|
228
|
+
|
227
229
|
hash[param] = _to_hash(value)
|
228
230
|
end
|
229
231
|
hash
|
@@ -201,6 +201,8 @@ module Phrase
|
|
201
201
|
DateTime.parse(value)
|
202
202
|
when :Date
|
203
203
|
Date.parse(value)
|
204
|
+
when :Time
|
205
|
+
Time.parse(value)
|
204
206
|
when :String
|
205
207
|
value.to_s
|
206
208
|
when :Integer
|
@@ -254,7 +256,7 @@ module Phrase
|
|
254
256
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
255
257
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
256
258
|
end
|
257
|
-
|
259
|
+
|
258
260
|
hash[param] = _to_hash(value)
|
259
261
|
end
|
260
262
|
hash
|
@@ -141,6 +141,8 @@ module Phrase
|
|
141
141
|
DateTime.parse(value)
|
142
142
|
when :Date
|
143
143
|
Date.parse(value)
|
144
|
+
when :Time
|
145
|
+
Time.parse(value)
|
144
146
|
when :String
|
145
147
|
value.to_s
|
146
148
|
when :Integer
|
@@ -194,7 +196,7 @@ module Phrase
|
|
194
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
198
|
end
|
197
|
-
|
199
|
+
|
198
200
|
hash[param] = _to_hash(value)
|
199
201
|
end
|
200
202
|
hash
|
@@ -141,6 +141,8 @@ module Phrase
|
|
141
141
|
DateTime.parse(value)
|
142
142
|
when :Date
|
143
143
|
Date.parse(value)
|
144
|
+
when :Time
|
145
|
+
Time.parse(value)
|
144
146
|
when :String
|
145
147
|
value.to_s
|
146
148
|
when :Integer
|
@@ -194,7 +196,7 @@ module Phrase
|
|
194
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
198
|
end
|
197
|
-
|
199
|
+
|
198
200
|
hash[param] = _to_hash(value)
|
199
201
|
end
|
200
202
|
hash
|
@@ -125,6 +125,8 @@ module Phrase
|
|
125
125
|
DateTime.parse(value)
|
126
126
|
when :Date
|
127
127
|
Date.parse(value)
|
128
|
+
when :Time
|
129
|
+
Time.parse(value)
|
128
130
|
when :String
|
129
131
|
value.to_s
|
130
132
|
when :Integer
|
@@ -178,7 +180,7 @@ module Phrase
|
|
178
180
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
179
181
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
180
182
|
end
|
181
|
-
|
183
|
+
|
182
184
|
hash[param] = _to_hash(value)
|
183
185
|
end
|
184
186
|
hash
|
@@ -125,6 +125,8 @@ module Phrase
|
|
125
125
|
DateTime.parse(value)
|
126
126
|
when :Date
|
127
127
|
Date.parse(value)
|
128
|
+
when :Time
|
129
|
+
Time.parse(value)
|
128
130
|
when :String
|
129
131
|
value.to_s
|
130
132
|
when :Integer
|
@@ -178,7 +180,7 @@ module Phrase
|
|
178
180
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
179
181
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
180
182
|
end
|
181
|
-
|
183
|
+
|
182
184
|
hash[param] = _to_hash(value)
|
183
185
|
end
|
184
186
|
hash
|
data/lib/phrase/models/format.rb
CHANGED
@@ -195,6 +195,8 @@ module Phrase
|
|
195
195
|
DateTime.parse(value)
|
196
196
|
when :Date
|
197
197
|
Date.parse(value)
|
198
|
+
when :Time
|
199
|
+
Time.parse(value)
|
198
200
|
when :String
|
199
201
|
value.to_s
|
200
202
|
when :Integer
|
@@ -248,7 +250,7 @@ module Phrase
|
|
248
250
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
249
251
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
250
252
|
end
|
251
|
-
|
253
|
+
|
252
254
|
hash[param] = _to_hash(value)
|
253
255
|
end
|
254
256
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -204,6 +204,8 @@ module Phrase
|
|
204
204
|
DateTime.parse(value)
|
205
205
|
when :Date
|
206
206
|
Date.parse(value)
|
207
|
+
when :Time
|
208
|
+
Time.parse(value)
|
207
209
|
when :String
|
208
210
|
value.to_s
|
209
211
|
when :Integer
|
@@ -257,7 +259,7 @@ module Phrase
|
|
257
259
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
258
260
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
259
261
|
end
|
260
|
-
|
262
|
+
|
261
263
|
hash[param] = _to_hash(value)
|
262
264
|
end
|
263
265
|
hash
|
@@ -123,6 +123,8 @@ module Phrase
|
|
123
123
|
DateTime.parse(value)
|
124
124
|
when :Date
|
125
125
|
Date.parse(value)
|
126
|
+
when :Time
|
127
|
+
Time.parse(value)
|
126
128
|
when :String
|
127
129
|
value.to_s
|
128
130
|
when :Integer
|
@@ -176,7 +178,7 @@ module Phrase
|
|
176
178
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
177
179
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
178
180
|
end
|
179
|
-
|
181
|
+
|
180
182
|
hash[param] = _to_hash(value)
|
181
183
|
end
|
182
184
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|
@@ -28,7 +28,7 @@ module Phrase
|
|
28
28
|
{
|
29
29
|
:'status' => :'String',
|
30
30
|
:'action' => :'String',
|
31
|
-
:'errors' => :'Array<
|
31
|
+
:'errors' => :'Array<GitlabSyncHistoryErrorsInner>',
|
32
32
|
:'date' => :'DateTime',
|
33
33
|
:'details' => :'Object'
|
34
34
|
}
|
@@ -152,6 +152,8 @@ module Phrase
|
|
152
152
|
DateTime.parse(value)
|
153
153
|
when :Date
|
154
154
|
Date.parse(value)
|
155
|
+
when :Time
|
156
|
+
Time.parse(value)
|
155
157
|
when :String
|
156
158
|
value.to_s
|
157
159
|
when :Integer
|
@@ -205,7 +207,7 @@ module Phrase
|
|
205
207
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
206
208
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
207
209
|
end
|
208
|
-
|
210
|
+
|
209
211
|
hash[param] = _to_hash(value)
|
210
212
|
end
|
211
213
|
hash
|
data/lib/phrase/models/{gitlab_sync_history_errors.rb → gitlab_sync_history_errors_inner.rb}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module Phrase
|
4
|
-
class
|
4
|
+
class GitlabSyncHistoryErrorsInner
|
5
5
|
attr_accessor :error
|
6
6
|
|
7
7
|
attr_accessor :message
|
@@ -32,13 +32,13 @@ module Phrase
|
|
32
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
33
33
|
def initialize(attributes = {})
|
34
34
|
if (!attributes.is_a?(Hash))
|
35
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::
|
35
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::GitlabSyncHistoryErrorsInner` initialize method"
|
36
36
|
end
|
37
37
|
|
38
38
|
# check to see if the attribute exists and convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
40
40
|
if (!self.class.attribute_map.key?(k.to_sym))
|
41
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::
|
41
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::GitlabSyncHistoryErrorsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
42
42
|
end
|
43
43
|
h[k.to_sym] = v
|
44
44
|
}
|
@@ -123,6 +123,8 @@ module Phrase
|
|
123
123
|
DateTime.parse(value)
|
124
124
|
when :Date
|
125
125
|
Date.parse(value)
|
126
|
+
when :Time
|
127
|
+
Time.parse(value)
|
126
128
|
when :String
|
127
129
|
value.to_s
|
128
130
|
when :Integer
|
@@ -176,7 +178,7 @@ module Phrase
|
|
176
178
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
177
179
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
178
180
|
end
|
179
|
-
|
181
|
+
|
180
182
|
hash[param] = _to_hash(value)
|
181
183
|
end
|
182
184
|
hash
|
@@ -115,6 +115,8 @@ module Phrase
|
|
115
115
|
DateTime.parse(value)
|
116
116
|
when :Date
|
117
117
|
Date.parse(value)
|
118
|
+
when :Time
|
119
|
+
Time.parse(value)
|
118
120
|
when :String
|
119
121
|
value.to_s
|
120
122
|
when :Integer
|
@@ -168,7 +170,7 @@ module Phrase
|
|
168
170
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
169
171
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
170
172
|
end
|
171
|
-
|
173
|
+
|
172
174
|
hash[param] = _to_hash(value)
|
173
175
|
end
|
174
176
|
hash
|