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,347 +0,0 @@
|
|
1
|
-
require 'date'
|
2
|
-
|
3
|
-
module Phrase
|
4
|
-
class UploadCreateParameters
|
5
|
-
# specify the branch to use
|
6
|
-
attr_accessor :branch
|
7
|
-
|
8
|
-
# File to be imported
|
9
|
-
attr_accessor :file
|
10
|
-
|
11
|
-
# File format. Auto-detected when possible and not specified.
|
12
|
-
attr_accessor :file_format
|
13
|
-
|
14
|
-
# Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
|
15
|
-
attr_accessor :locale_id
|
16
|
-
|
17
|
-
# List of tags separated by comma to be associated with the new keys contained in the upload.
|
18
|
-
attr_accessor :tags
|
19
|
-
|
20
|
-
# Indicates whether existing translations should be updated with the file content.
|
21
|
-
attr_accessor :update_translations
|
22
|
-
|
23
|
-
# Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
|
24
|
-
attr_accessor :update_descriptions
|
25
|
-
|
26
|
-
# This option is obsolete. Providing the option will cause a bad request error.
|
27
|
-
attr_accessor :convert_emoji
|
28
|
-
|
29
|
-
# Indicates whether the upload should not create upload tags.
|
30
|
-
attr_accessor :skip_upload_tags
|
31
|
-
|
32
|
-
# Indicates whether the upload should unverify updated translations.
|
33
|
-
attr_accessor :skip_unverification
|
34
|
-
|
35
|
-
# Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
36
|
-
attr_accessor :file_encoding
|
37
|
-
|
38
|
-
# Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
|
39
|
-
attr_accessor :locale_mapping
|
40
|
-
|
41
|
-
# Additional options available for specific formats. See our format guide for complete list.
|
42
|
-
attr_accessor :format_options
|
43
|
-
|
44
|
-
# If set, translations for the uploaded language will be fetched automatically.
|
45
|
-
attr_accessor :autotranslate
|
46
|
-
|
47
|
-
# Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
|
48
|
-
attr_accessor :mark_reviewed
|
49
|
-
|
50
|
-
# Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is `false`
|
51
|
-
attr_accessor :tag_only_affected_keys
|
52
|
-
|
53
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
-
def self.attribute_map
|
55
|
-
{
|
56
|
-
:'branch' => :'branch',
|
57
|
-
:'file' => :'file',
|
58
|
-
:'file_format' => :'file_format',
|
59
|
-
:'locale_id' => :'locale_id',
|
60
|
-
:'tags' => :'tags',
|
61
|
-
:'update_translations' => :'update_translations',
|
62
|
-
:'update_descriptions' => :'update_descriptions',
|
63
|
-
:'convert_emoji' => :'convert_emoji',
|
64
|
-
:'skip_upload_tags' => :'skip_upload_tags',
|
65
|
-
:'skip_unverification' => :'skip_unverification',
|
66
|
-
:'file_encoding' => :'file_encoding',
|
67
|
-
:'locale_mapping' => :'locale_mapping',
|
68
|
-
:'format_options' => :'format_options',
|
69
|
-
:'autotranslate' => :'autotranslate',
|
70
|
-
:'mark_reviewed' => :'mark_reviewed',
|
71
|
-
:'tag_only_affected_keys' => :'tag_only_affected_keys'
|
72
|
-
}
|
73
|
-
end
|
74
|
-
|
75
|
-
# Attribute type mapping.
|
76
|
-
def self.openapi_types
|
77
|
-
{
|
78
|
-
:'branch' => :'String',
|
79
|
-
:'file' => :'File',
|
80
|
-
:'file_format' => :'String',
|
81
|
-
:'locale_id' => :'String',
|
82
|
-
:'tags' => :'String',
|
83
|
-
:'update_translations' => :'Boolean',
|
84
|
-
:'update_descriptions' => :'Boolean',
|
85
|
-
:'convert_emoji' => :'Boolean',
|
86
|
-
:'skip_upload_tags' => :'Boolean',
|
87
|
-
:'skip_unverification' => :'Boolean',
|
88
|
-
:'file_encoding' => :'String',
|
89
|
-
:'locale_mapping' => :'Object',
|
90
|
-
:'format_options' => :'Object',
|
91
|
-
:'autotranslate' => :'Boolean',
|
92
|
-
:'mark_reviewed' => :'Boolean',
|
93
|
-
:'tag_only_affected_keys' => :'Boolean'
|
94
|
-
}
|
95
|
-
end
|
96
|
-
|
97
|
-
# List of attributes with nullable: true
|
98
|
-
def self.openapi_nullable
|
99
|
-
Set.new([
|
100
|
-
])
|
101
|
-
end
|
102
|
-
|
103
|
-
# Initializes the object
|
104
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
-
def initialize(attributes = {})
|
106
|
-
if (!attributes.is_a?(Hash))
|
107
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::UploadCreateParameters` initialize method"
|
108
|
-
end
|
109
|
-
|
110
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
111
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
112
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
113
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::UploadCreateParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
114
|
-
end
|
115
|
-
h[k.to_sym] = v
|
116
|
-
}
|
117
|
-
|
118
|
-
if attributes.key?(:'branch')
|
119
|
-
self.branch = attributes[:'branch']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.key?(:'file')
|
123
|
-
self.file = attributes[:'file']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.key?(:'file_format')
|
127
|
-
self.file_format = attributes[:'file_format']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.key?(:'locale_id')
|
131
|
-
self.locale_id = attributes[:'locale_id']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.key?(:'tags')
|
135
|
-
self.tags = attributes[:'tags']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.key?(:'update_translations')
|
139
|
-
self.update_translations = attributes[:'update_translations']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.key?(:'update_descriptions')
|
143
|
-
self.update_descriptions = attributes[:'update_descriptions']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.key?(:'convert_emoji')
|
147
|
-
self.convert_emoji = attributes[:'convert_emoji']
|
148
|
-
end
|
149
|
-
|
150
|
-
if attributes.key?(:'skip_upload_tags')
|
151
|
-
self.skip_upload_tags = attributes[:'skip_upload_tags']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.key?(:'skip_unverification')
|
155
|
-
self.skip_unverification = attributes[:'skip_unverification']
|
156
|
-
end
|
157
|
-
|
158
|
-
if attributes.key?(:'file_encoding')
|
159
|
-
self.file_encoding = attributes[:'file_encoding']
|
160
|
-
end
|
161
|
-
|
162
|
-
if attributes.key?(:'locale_mapping')
|
163
|
-
self.locale_mapping = attributes[:'locale_mapping']
|
164
|
-
end
|
165
|
-
|
166
|
-
if attributes.key?(:'format_options')
|
167
|
-
self.format_options = attributes[:'format_options']
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.key?(:'autotranslate')
|
171
|
-
self.autotranslate = attributes[:'autotranslate']
|
172
|
-
end
|
173
|
-
|
174
|
-
if attributes.key?(:'mark_reviewed')
|
175
|
-
self.mark_reviewed = attributes[:'mark_reviewed']
|
176
|
-
end
|
177
|
-
|
178
|
-
if attributes.key?(:'tag_only_affected_keys')
|
179
|
-
self.tag_only_affected_keys = attributes[:'tag_only_affected_keys']
|
180
|
-
else
|
181
|
-
self.tag_only_affected_keys = false
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
186
|
-
# @return Array for valid properties with the reasons
|
187
|
-
def list_invalid_properties
|
188
|
-
invalid_properties = Array.new
|
189
|
-
invalid_properties
|
190
|
-
end
|
191
|
-
|
192
|
-
# Check to see if the all the properties in the model are valid
|
193
|
-
# @return true if the model is valid
|
194
|
-
def valid?
|
195
|
-
true
|
196
|
-
end
|
197
|
-
|
198
|
-
# Checks equality by comparing each attribute.
|
199
|
-
# @param [Object] Object to be compared
|
200
|
-
def ==(o)
|
201
|
-
return true if self.equal?(o)
|
202
|
-
self.class == o.class &&
|
203
|
-
branch == o.branch &&
|
204
|
-
file == o.file &&
|
205
|
-
file_format == o.file_format &&
|
206
|
-
locale_id == o.locale_id &&
|
207
|
-
tags == o.tags &&
|
208
|
-
update_translations == o.update_translations &&
|
209
|
-
update_descriptions == o.update_descriptions &&
|
210
|
-
convert_emoji == o.convert_emoji &&
|
211
|
-
skip_upload_tags == o.skip_upload_tags &&
|
212
|
-
skip_unverification == o.skip_unverification &&
|
213
|
-
file_encoding == o.file_encoding &&
|
214
|
-
locale_mapping == o.locale_mapping &&
|
215
|
-
format_options == o.format_options &&
|
216
|
-
autotranslate == o.autotranslate &&
|
217
|
-
mark_reviewed == o.mark_reviewed &&
|
218
|
-
tag_only_affected_keys == o.tag_only_affected_keys
|
219
|
-
end
|
220
|
-
|
221
|
-
# @see the `==` method
|
222
|
-
# @param [Object] Object to be compared
|
223
|
-
def eql?(o)
|
224
|
-
self == o
|
225
|
-
end
|
226
|
-
|
227
|
-
# Calculates hash code according to all attributes.
|
228
|
-
# @return [Integer] Hash code
|
229
|
-
def hash
|
230
|
-
[branch, file, file_format, locale_id, tags, update_translations, update_descriptions, convert_emoji, skip_upload_tags, skip_unverification, file_encoding, locale_mapping, format_options, autotranslate, mark_reviewed, tag_only_affected_keys].hash
|
231
|
-
end
|
232
|
-
|
233
|
-
# Builds the object from hash
|
234
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
235
|
-
# @return [Object] Returns the model itself
|
236
|
-
def self.build_from_hash(attributes)
|
237
|
-
new.build_from_hash(attributes)
|
238
|
-
end
|
239
|
-
|
240
|
-
# Builds the object from hash
|
241
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
242
|
-
# @return [Object] Returns the model itself
|
243
|
-
def build_from_hash(attributes)
|
244
|
-
return nil unless attributes.is_a?(Hash)
|
245
|
-
self.class.openapi_types.each_pair do |key, type|
|
246
|
-
if type =~ /\AArray<(.*)>/i
|
247
|
-
# check to ensure the input is an array given that the attribute
|
248
|
-
# is documented as an array but the input is not
|
249
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
250
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
251
|
-
end
|
252
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
253
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
254
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
255
|
-
end
|
256
|
-
|
257
|
-
self
|
258
|
-
end
|
259
|
-
|
260
|
-
# Deserializes the data based on type
|
261
|
-
# @param string type Data type
|
262
|
-
# @param string value Value to be deserialized
|
263
|
-
# @return [Object] Deserialized data
|
264
|
-
def _deserialize(type, value)
|
265
|
-
case type.to_sym
|
266
|
-
when :DateTime
|
267
|
-
DateTime.parse(value)
|
268
|
-
when :Date
|
269
|
-
Date.parse(value)
|
270
|
-
when :String
|
271
|
-
value.to_s
|
272
|
-
when :Integer
|
273
|
-
value.to_i
|
274
|
-
when :Float
|
275
|
-
value.to_f
|
276
|
-
when :Boolean
|
277
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
278
|
-
true
|
279
|
-
else
|
280
|
-
false
|
281
|
-
end
|
282
|
-
when :Object
|
283
|
-
# generic object (usually a Hash), return directly
|
284
|
-
value
|
285
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
286
|
-
inner_type = Regexp.last_match[:inner_type]
|
287
|
-
value.map { |v| _deserialize(inner_type, v) }
|
288
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
289
|
-
k_type = Regexp.last_match[:k_type]
|
290
|
-
v_type = Regexp.last_match[:v_type]
|
291
|
-
{}.tap do |hash|
|
292
|
-
value.each do |k, v|
|
293
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
294
|
-
end
|
295
|
-
end
|
296
|
-
else # model
|
297
|
-
Phrase.const_get(type).build_from_hash(value)
|
298
|
-
end
|
299
|
-
end
|
300
|
-
|
301
|
-
# Returns the string representation of the object
|
302
|
-
# @return [String] String presentation of the object
|
303
|
-
def to_s
|
304
|
-
to_hash.to_s
|
305
|
-
end
|
306
|
-
|
307
|
-
# to_body is an alias to to_hash (backward compatibility)
|
308
|
-
# @return [Hash] Returns the object in the form of hash
|
309
|
-
def to_body
|
310
|
-
to_hash
|
311
|
-
end
|
312
|
-
|
313
|
-
# Returns the object in the form of hash
|
314
|
-
# @return [Hash] Returns the object in the form of hash
|
315
|
-
def to_hash
|
316
|
-
hash = {}
|
317
|
-
self.class.attribute_map.each_pair do |attr, param|
|
318
|
-
value = self.send(attr)
|
319
|
-
if value.nil?
|
320
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
321
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
322
|
-
end
|
323
|
-
|
324
|
-
hash[param] = _to_hash(value)
|
325
|
-
end
|
326
|
-
hash
|
327
|
-
end
|
328
|
-
|
329
|
-
# Outputs non-array value in the form of hash
|
330
|
-
# For object, use to_hash. Otherwise, just return the value
|
331
|
-
# @param [Object] value Any valid value
|
332
|
-
# @return [Hash] Returns the value in the form of hash
|
333
|
-
def _to_hash(value)
|
334
|
-
if value.is_a?(Array)
|
335
|
-
value.compact.map { |v| _to_hash(v) }
|
336
|
-
elsif value.is_a?(Hash)
|
337
|
-
{}.tap do |hash|
|
338
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
339
|
-
end
|
340
|
-
elsif value.respond_to? :to_hash
|
341
|
-
value.to_hash
|
342
|
-
else
|
343
|
-
value
|
344
|
-
end
|
345
|
-
end
|
346
|
-
end
|
347
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::AccountDetails1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'AccountDetails1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::AccountDetails1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of AccountDetails1' do
|
19
|
-
it 'should create an instance of AccountDetails1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::AccountDetails1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "subscription"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test attribute "slug"' do
|
30
|
-
it 'should work' do
|
31
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::AuthorizationWithToken1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'AuthorizationWithToken1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::AuthorizationWithToken1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of AuthorizationWithToken1' do
|
19
|
-
it 'should create an instance of AuthorizationWithToken1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::AuthorizationWithToken1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "token"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::JobDetails1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'JobDetails1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::JobDetails1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of JobDetails1' do
|
19
|
-
it 'should create an instance of JobDetails1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::JobDetails1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "owner"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test attribute "job_tag_name"' do
|
30
|
-
it 'should work' do
|
31
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
describe 'test attribute "source_locale"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "locales"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "keys"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::JobTemplateDetails1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'JobTemplateDetails1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::JobTemplateDetails1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of JobTemplateDetails1' do
|
19
|
-
it 'should create an instance of JobTemplateDetails1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::JobTemplateDetails1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "owner"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test attribute "creator"' do
|
30
|
-
it 'should work' do
|
31
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
describe 'test attribute "locales"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::LocaleDetails1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'LocaleDetails1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::LocaleDetails1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of LocaleDetails1' do
|
19
|
-
it 'should create an instance of LocaleDetails1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::LocaleDetails1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "statistics"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::ProjectDetails1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'ProjectDetails1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::ProjectDetails1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of ProjectDetails1' do
|
19
|
-
it 'should create an instance of ProjectDetails1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::ProjectDetails1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "slug"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test attribute "shares_translation_memory"' do
|
30
|
-
it 'should work' do
|
31
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::ProjectLocales1
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'ProjectLocales1' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::ProjectLocales1.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of ProjectLocales1' do
|
19
|
-
it 'should create an instance of ProjectLocales1' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::ProjectLocales1)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "locales"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::ProjectMemberSpecific
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'ProjectMemberSpecific' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::ProjectMemberSpecific.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of ProjectMemberSpecific' do
|
19
|
-
it 'should create an instance of ProjectMemberSpecific' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::ProjectMemberSpecific)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test attribute "name"' do
|
30
|
-
it 'should work' do
|
31
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
describe 'test attribute "project_role"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "main_format"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "created_at"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "updated_at"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|