diff --git a/Gemfile.lock b/Gemfile.lock index 362e3d8..4274611 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - fastcomments (1.2.0) + fastcomments (2.0.0) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/README.md b/README.md index c795c24..07e9515 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,7 @@ This library contains the generated API client and the SSO utilities to make wor For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains api calls that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` contains the methods that power the moderator dashboard. -The `ModerationApi` covers comment moderation (list, count, search, logs, export), moderation actions (remove/restore, flag, set review/spam/approval status, votes, reopen/close thread), -bans (ban from a comment, undo, pre-ban summaries, ban status/preferences, banned-user counts), and badges & trust (award/remove badge, manual badges, get/set trust factor, user internal profile). -Each `ModerationApi` method accepts an `sso` parameter so the request can be made on behalf of an SSO-authenticated moderator. +The `ModerationApi` provides an extensive suite of live and fast moderation APIs. Every `ModerationApi` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. ## Quick Start @@ -86,8 +84,8 @@ public_api = FastCommentsClient::PublicApi.new begin response = public_api.get_comments_public( - tenant_id: 'YOUR_TENANT_ID', - url_id: 'page-url-id' + 'YOUR_TENANT_ID', + 'page-url-id' ) puts response rescue FastCommentsClient::ApiError => e @@ -157,8 +155,8 @@ api_client = FastCommentsClient::ApiClient.new(config) public_api = FastCommentsClient::PublicApi.new(api_client) response = public_api.get_comments_public( - tenant_id: 'your-tenant-id', - url_id: 'your-page-url-id', + 'your-tenant-id', + 'your-page-url-id', sso: token ) @@ -190,8 +188,8 @@ api_client = FastCommentsClient::ApiClient.new(config) public_api = FastCommentsClient::PublicApi.new(api_client) response = public_api.get_comments_public( - tenant_id: 'your-tenant-id', - url_id: 'your-page-url-id', + 'your-tenant-id', + 'your-page-url-id', sso: token ) diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 0685dbd..8eac7f4 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -268,7 +268,7 @@ docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PostRemoveCommentResponse.md +docs/PostRemoveCommentApiResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -368,7 +368,6 @@ docs/UsersListLocation.md docs/VoteBodyParams.md docs/VoteDeleteResponse.md docs/VoteResponse.md -docs/VoteResponseStatus.md docs/VoteResponseUser.md docs/VoteStyle.md fastcomments-client.gemspec @@ -379,6 +378,7 @@ lib/fastcomments-client/api/moderation_api.rb lib/fastcomments-client/api/public_api.rb lib/fastcomments-client/api_client.rb lib/fastcomments-client/api_error.rb +lib/fastcomments-client/api_model_base.rb lib/fastcomments-client/configuration.rb lib/fastcomments-client/models/add_domain_config_params.rb lib/fastcomments-client/models/add_domain_config_response.rb @@ -639,7 +639,7 @@ lib/fastcomments-client/models/patch_domain_config_response.rb lib/fastcomments-client/models/patch_page_api_response.rb lib/fastcomments-client/models/patch_sso_user_api_response.rb lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb -lib/fastcomments-client/models/post_remove_comment_response.rb +lib/fastcomments-client/models/post_remove_comment_api_response.rb lib/fastcomments-client/models/pre_ban_summary.rb lib/fastcomments-client/models/pub_sub_comment.rb lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -738,7 +738,6 @@ lib/fastcomments-client/models/users_list_location.rb lib/fastcomments-client/models/vote_body_params.rb lib/fastcomments-client/models/vote_delete_response.rb lib/fastcomments-client/models/vote_response.rb -lib/fastcomments-client/models/vote_response_status.rb lib/fastcomments-client/models/vote_response_user.rb lib/fastcomments-client/models/vote_style.rb lib/fastcomments-client/version.rb @@ -1004,7 +1003,7 @@ spec/models/patch_domain_config_response_spec.rb spec/models/patch_page_api_response_spec.rb spec/models/patch_sso_user_api_response_spec.rb spec/models/pending_comment_to_sync_outbound_spec.rb -spec/models/post_remove_comment_response_spec.rb +spec/models/post_remove_comment_api_response_spec.rb spec/models/pre_ban_summary_spec.rb spec/models/pub_sub_comment_base_spec.rb spec/models/pub_sub_comment_spec.rb @@ -1103,7 +1102,6 @@ spec/models/users_list_location_spec.rb spec/models/vote_body_params_spec.rb spec/models/vote_delete_response_spec.rb spec/models/vote_response_spec.rb -spec/models/vote_response_status_spec.rb spec/models/vote_response_user_spec.rb spec/models/vote_style_spec.rb spec/spec_helper.rb diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index e465da4..ca7bf6e 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.14.0 +7.23.0-SNAPSHOT diff --git a/client/.travis.yml b/client/.travis.yml index a643c47..ba9155b 100644 --- a/client/.travis.yml +++ b/client/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build fastcomments-client.gemspec - - gem install ./fastcomments-client-1.2.1.gem + - gem install ./fastcomments-client-3.0.0.gem diff --git a/client/README.md b/client/README.md index f05866d..b715c99 100644 --- a/client/README.md +++ b/client/README.md @@ -7,8 +7,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.0 -- Package version: 1.2.1 -- Generator version: 7.14.0 +- Package version: 3.0.0 +- Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.RubyClientCodegen ## Installation @@ -24,16 +24,16 @@ gem build fastcomments-client.gemspec Then either install the gem locally: ```shell -gem install ./fastcomments-client-1.2.1.gem +gem install ./fastcomments-client-3.0.0.gem ``` -(for development, run `gem install --dev ./fastcomments-client-1.2.1.gem` to install the development dependencies) +(for development, run `gem install --dev ./fastcomments-client-3.0.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'fastcomments-client', '~> 1.2.1' + gem 'fastcomments-client', '~> 3.0.0' ### Install from Git @@ -198,49 +198,49 @@ Class | Method | HTTP request | Description *FastCommentsClient::DefaultApi* | [**update_tenant_package**](docs/DefaultApi.md#update_tenant_package) | **PATCH** /api/v1/tenant-packages/{id} | *FastCommentsClient::DefaultApi* | [**update_tenant_user**](docs/DefaultApi.md#update_tenant_user) | **PATCH** /api/v1/tenant-users/{id} | *FastCommentsClient::DefaultApi* | [**update_user_badge**](docs/DefaultApi.md#update_user_badge) | **PUT** /api/v1/user-badges/{id} | -*FastCommentsClient::ModerationApi* | [**delete_moderation_vote**](docs/ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -*FastCommentsClient::ModerationApi* | [**get_api_comments**](docs/ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/api/comments | -*FastCommentsClient::ModerationApi* | [**get_api_export_status**](docs/ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/api/export/status | -*FastCommentsClient::ModerationApi* | [**get_api_ids**](docs/ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/api/ids | -*FastCommentsClient::ModerationApi* | [**get_ban_users_from_comment**](docs/ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_comment_ban_status**](docs/ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_comment_children**](docs/ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_count**](docs/ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/count | -*FastCommentsClient::ModerationApi* | [**get_counts**](docs/ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -*FastCommentsClient::ModerationApi* | [**get_logs**](docs/ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_manual_badges**](docs/ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -*FastCommentsClient::ModerationApi* | [**get_manual_badges_for_user**](docs/ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -*FastCommentsClient::ModerationApi* | [**get_moderation_comment**](docs/ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_moderation_comment_text**](docs/ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_pre_ban_summary**](docs/ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -*FastCommentsClient::ModerationApi* | [**get_search_comments_summary**](docs/ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -*FastCommentsClient::ModerationApi* | [**get_search_pages**](docs/ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/search/pages | -*FastCommentsClient::ModerationApi* | [**get_search_sites**](docs/ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/search/sites | -*FastCommentsClient::ModerationApi* | [**get_search_suggest**](docs/ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -*FastCommentsClient::ModerationApi* | [**get_search_users**](docs/ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/search/users | -*FastCommentsClient::ModerationApi* | [**get_trust_factor**](docs/ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -*FastCommentsClient::ModerationApi* | [**get_user_ban_preference**](docs/ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -*FastCommentsClient::ModerationApi* | [**get_user_internal_profile**](docs/ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -*FastCommentsClient::ModerationApi* | [**post_adjust_comment_votes**](docs/ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_api_export**](docs/ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/api/export | -*FastCommentsClient::ModerationApi* | [**post_ban_user_from_comment**](docs/ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_ban_user_undo**](docs/ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -*FastCommentsClient::ModerationApi* | [**post_bulk_pre_ban_summary**](docs/ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -*FastCommentsClient::ModerationApi* | [**post_comments_by_ids**](docs/ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -*FastCommentsClient::ModerationApi* | [**post_flag_comment**](docs/ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_remove_comment**](docs/ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_restore_deleted_comment**](docs/ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_approval_status**](docs/ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_review_status**](docs/ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_spam_status**](docs/ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_set_comment_text**](docs/ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_un_flag_comment**](docs/ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -*FastCommentsClient::ModerationApi* | [**post_vote**](docs/ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -*FastCommentsClient::ModerationApi* | [**put_award_badge**](docs/ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/award-badge | -*FastCommentsClient::ModerationApi* | [**put_close_thread**](docs/ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/close-thread | -*FastCommentsClient::ModerationApi* | [**put_remove_badge**](docs/ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -*FastCommentsClient::ModerationApi* | [**put_reopen_thread**](docs/ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -*FastCommentsClient::ModerationApi* | [**set_trust_factor**](docs/ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +*FastCommentsClient::ModerationApi* | [**delete_moderation_vote**](docs/ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*FastCommentsClient::ModerationApi* | [**get_api_comments**](docs/ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*FastCommentsClient::ModerationApi* | [**get_api_export_status**](docs/ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*FastCommentsClient::ModerationApi* | [**get_api_ids**](docs/ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*FastCommentsClient::ModerationApi* | [**get_ban_users_from_comment**](docs/ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_comment_ban_status**](docs/ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_comment_children**](docs/ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_count**](docs/ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*FastCommentsClient::ModerationApi* | [**get_counts**](docs/ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*FastCommentsClient::ModerationApi* | [**get_logs**](docs/ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_manual_badges**](docs/ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*FastCommentsClient::ModerationApi* | [**get_manual_badges_for_user**](docs/ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*FastCommentsClient::ModerationApi* | [**get_moderation_comment**](docs/ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_moderation_comment_text**](docs/ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_pre_ban_summary**](docs/ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*FastCommentsClient::ModerationApi* | [**get_search_comments_summary**](docs/ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*FastCommentsClient::ModerationApi* | [**get_search_pages**](docs/ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*FastCommentsClient::ModerationApi* | [**get_search_sites**](docs/ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*FastCommentsClient::ModerationApi* | [**get_search_suggest**](docs/ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*FastCommentsClient::ModerationApi* | [**get_search_users**](docs/ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*FastCommentsClient::ModerationApi* | [**get_trust_factor**](docs/ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*FastCommentsClient::ModerationApi* | [**get_user_ban_preference**](docs/ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*FastCommentsClient::ModerationApi* | [**get_user_internal_profile**](docs/ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*FastCommentsClient::ModerationApi* | [**post_adjust_comment_votes**](docs/ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_api_export**](docs/ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*FastCommentsClient::ModerationApi* | [**post_ban_user_from_comment**](docs/ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_ban_user_undo**](docs/ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*FastCommentsClient::ModerationApi* | [**post_bulk_pre_ban_summary**](docs/ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*FastCommentsClient::ModerationApi* | [**post_comments_by_ids**](docs/ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*FastCommentsClient::ModerationApi* | [**post_flag_comment**](docs/ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_remove_comment**](docs/ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_restore_deleted_comment**](docs/ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_approval_status**](docs/ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_review_status**](docs/ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_spam_status**](docs/ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_set_comment_text**](docs/ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_un_flag_comment**](docs/ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*FastCommentsClient::ModerationApi* | [**post_vote**](docs/ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*FastCommentsClient::ModerationApi* | [**put_award_badge**](docs/ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*FastCommentsClient::ModerationApi* | [**put_close_thread**](docs/ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*FastCommentsClient::ModerationApi* | [**put_remove_badge**](docs/ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*FastCommentsClient::ModerationApi* | [**put_reopen_thread**](docs/ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*FastCommentsClient::ModerationApi* | [**set_trust_factor**](docs/ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | *FastCommentsClient::PublicApi* | [**block_from_comment_public**](docs/PublicApi.md#block_from_comment_public) | **POST** /block-from-comment/{commentId} | *FastCommentsClient::PublicApi* | [**checked_comments_for_blocked**](docs/PublicApi.md#checked_comments_for_blocked) | **GET** /check-blocked-comments | *FastCommentsClient::PublicApi* | [**create_comment_public**](docs/PublicApi.md#create_comment_public) | **POST** /comments/{tenantId} | @@ -556,7 +556,7 @@ Class | Method | HTTP request | Description - [FastCommentsClient::PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [FastCommentsClient::PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [FastCommentsClient::PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [FastCommentsClient::PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [FastCommentsClient::PostRemoveCommentApiResponse](docs/PostRemoveCommentApiResponse.md) - [FastCommentsClient::PreBanSummary](docs/PreBanSummary.md) - [FastCommentsClient::PubSubComment](docs/PubSubComment.md) - [FastCommentsClient::PubSubCommentBase](docs/PubSubCommentBase.md) @@ -655,7 +655,6 @@ Class | Method | HTTP request | Description - [FastCommentsClient::VoteBodyParams](docs/VoteBodyParams.md) - [FastCommentsClient::VoteDeleteResponse](docs/VoteDeleteResponse.md) - [FastCommentsClient::VoteResponse](docs/VoteResponse.md) - - [FastCommentsClient::VoteResponseStatus](docs/VoteResponseStatus.md) - [FastCommentsClient::VoteResponseUser](docs/VoteResponseUser.md) - [FastCommentsClient::VoteStyle](docs/VoteStyle.md) diff --git a/client/docs/AddDomainConfigResponse.md b/client/docs/AddDomainConfigResponse.md index 0c97a67..233b670 100644 --- a/client/docs/AddDomainConfigResponse.md +++ b/client/docs/AddDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **status** | **Object** | | | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | ## Example diff --git a/client/docs/AggregateResponse.md b/client/docs/AggregateResponse.md index 53c2340..3c541c3 100644 --- a/client/docs/AggregateResponse.md +++ b/client/docs/AggregateResponse.md @@ -5,10 +5,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **data** | [**Array<AggregationItem>**](AggregationItem.md) | | | +| **data** | [**Array<AggregationItem>**](AggregationItem.md) | | [optional] | | **stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **valid_resource_names** | **Array<String>** | | [optional] | ## Example diff --git a/client/docs/BulkCreateHashTagsResponseResultsInner.md b/client/docs/BulkCreateHashTagsResponseResultsInner.md index bee12bf..eb750c6 100644 --- a/client/docs/BulkCreateHashTagsResponseResultsInner.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -5,9 +5,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **secondary_code** | **String** | | [optional] | | **banned_until** | **Integer** | | [optional] | | **max_character_length** | **Integer** | | [optional] | diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 7b9d22b..cec3ba4 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ end ## add_hash_tag -> add_hash_tag(opts) +> add_hash_tag(tenant_id, create_hash_tag_body) @@ -211,14 +211,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | - create_hash_tag_body: FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}) # CreateHashTagBody | -} +tenant_id = 'tenant_id_example' # String | +create_hash_tag_body = FastCommentsClient::CreateHashTagBody.new({tag: 'tag_example'}) # CreateHashTagBody | begin - result = api_instance.add_hash_tag(opts) + result = api_instance.add_hash_tag(tenant_id, create_hash_tag_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tag: #{e}" @@ -229,12 +227,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tag_with_http_info(opts) +> , Integer, Hash)> add_hash_tag_with_http_info(tenant_id, create_hash_tag_body) ```ruby begin - data, status_code, headers = api_instance.add_hash_tag_with_http_info(opts) + data, status_code, headers = api_instance.add_hash_tag_with_http_info(tenant_id, create_hash_tag_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -247,7 +245,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **create_hash_tag_body** | [**CreateHashTagBody**](CreateHashTagBody.md) | | [optional] | ### Return type @@ -266,7 +264,7 @@ end ## add_hash_tags_bulk -> add_hash_tags_bulk(opts) +> add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body) @@ -284,14 +282,12 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new -opts = { - tenant_id: 'tenant_id_example', # String | - bulk_create_hash_tags_body: FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}) # BulkCreateHashTagsBody | -} +tenant_id = 'tenant_id_example' # String | +bulk_create_hash_tags_body = FastCommentsClient::BulkCreateHashTagsBody.new({tags: [FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new({tag: 'tag_example'})]}) # BulkCreateHashTagsBody | begin - result = api_instance.add_hash_tags_bulk(opts) + result = api_instance.add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->add_hash_tags_bulk: #{e}" @@ -302,12 +298,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> add_hash_tags_bulk_with_http_info(opts) +> , Integer, Hash)> add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body) ```ruby begin - data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(opts) + data, status_code, headers = api_instance.add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -320,7 +316,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **tenant_id** | **String** | | [optional] | +| **tenant_id** | **String** | | | | **bulk_create_hash_tags_body** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md) | | [optional] | ### Return type @@ -2123,7 +2119,7 @@ end ## delete_hash_tag -> delete_hash_tag(tag, opts) +> delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body) @@ -2141,15 +2137,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | tag = 'tag_example' # String | -opts = { - tenant_id: 'tenant_id_example', # String | - delete_hash_tag_request_body: FastCommentsClient::DeleteHashTagRequestBody.new # DeleteHashTagRequestBody | -} +delete_hash_tag_request_body = FastCommentsClient::DeleteHashTagRequestBody.new # DeleteHashTagRequestBody | begin - result = api_instance.delete_hash_tag(tag, opts) + result = api_instance.delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->delete_hash_tag: #{e}" @@ -2160,12 +2154,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body) ```ruby begin - data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tag, opts) + data, status_code, headers = api_instance.delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -2178,8 +2172,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **tag** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **delete_hash_tag_request_body** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md) | | [optional] | ### Return type @@ -6666,7 +6660,7 @@ end ## patch_hash_tag -> patch_hash_tag(tag, opts) +> patch_hash_tag(tenant_id, tag, update_hash_tag_body) @@ -6684,15 +6678,13 @@ FastCommentsClient.configure do |config| end api_instance = FastCommentsClient::DefaultApi.new +tenant_id = 'tenant_id_example' # String | tag = 'tag_example' # String | -opts = { - tenant_id: 'tenant_id_example', # String | - update_hash_tag_body: FastCommentsClient::UpdateHashTagBody.new # UpdateHashTagBody | -} +update_hash_tag_body = FastCommentsClient::UpdateHashTagBody.new # UpdateHashTagBody | begin - result = api_instance.patch_hash_tag(tag, opts) + result = api_instance.patch_hash_tag(tenant_id, tag, update_hash_tag_body) p result rescue FastCommentsClient::ApiError => e puts "Error when calling DefaultApi->patch_hash_tag: #{e}" @@ -6703,12 +6695,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_hash_tag_with_http_info(tag, opts) +> , Integer, Hash)> patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body) ```ruby begin - data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tag, opts) + data, status_code, headers = api_instance.patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body) p status_code # => 2xx p headers # => { ... } p data # => @@ -6721,8 +6713,8 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **tag** | **String** | | | -| **tenant_id** | **String** | | [optional] | | **update_hash_tag_body** | [**UpdateHashTagBody**](UpdateHashTagBody.md) | | [optional] | ### Return type diff --git a/client/docs/GetDomainConfigResponse.md b/client/docs/GetDomainConfigResponse.md index 3c3869b..dcc47cb 100644 --- a/client/docs/GetDomainConfigResponse.md +++ b/client/docs/GetDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/GetDomainConfigsResponse.md b/client/docs/GetDomainConfigsResponse.md index a31d299..47812f3 100644 --- a/client/docs/GetDomainConfigsResponse.md +++ b/client/docs/GetDomainConfigsResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configurations** | **Object** | | | +| **configurations** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md index 8e22fde..fb1fe1e 100644 --- a/client/docs/GetGifsSearchResponse.md +++ b/client/docs/GetGifsSearchResponse.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | | +| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | [optional] | | **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/GetGifsTrendingResponse.md b/client/docs/GetGifsTrendingResponse.md index 59081c8..fc90e31 100644 --- a/client/docs/GetGifsTrendingResponse.md +++ b/client/docs/GetGifsTrendingResponse.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | | +| **images** | **Array<Array<GifSearchResponseImagesInnerInner>>** | | [optional] | | **status** | [**APIStatus**](APIStatus.md) | | | -| **code** | **String** | | | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index e3b5b8c..4a85891 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -4,54 +4,54 @@ All URIs are relative to *https://fastcomments.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**delete_moderation_vote**](ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | -| [**get_api_comments**](ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/api/comments | | -| [**get_api_export_status**](ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/api/export/status | | -| [**get_api_ids**](ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/api/ids | | -| [**get_ban_users_from_comment**](ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | -| [**get_comment_ban_status**](ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | -| [**get_comment_children**](ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | -| [**get_count**](ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/count | | -| [**get_counts**](ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | -| [**get_logs**](ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | -| [**get_manual_badges**](ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | -| [**get_manual_badges_for_user**](ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | -| [**get_moderation_comment**](ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | -| [**get_moderation_comment_text**](ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | -| [**get_pre_ban_summary**](ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | -| [**get_search_comments_summary**](ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | -| [**get_search_pages**](ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/search/pages | | -| [**get_search_sites**](ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/search/sites | | -| [**get_search_suggest**](ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | -| [**get_search_users**](ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/search/users | | -| [**get_trust_factor**](ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | -| [**get_user_ban_preference**](ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | -| [**get_user_internal_profile**](ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | -| [**post_adjust_comment_votes**](ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | -| [**post_api_export**](ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/api/export | | -| [**post_ban_user_from_comment**](ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | -| [**post_ban_user_undo**](ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | -| [**post_bulk_pre_ban_summary**](ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | -| [**post_comments_by_ids**](ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | -| [**post_flag_comment**](ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | -| [**post_remove_comment**](ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | -| [**post_restore_deleted_comment**](ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | -| [**post_set_comment_approval_status**](ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | -| [**post_set_comment_review_status**](ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | -| [**post_set_comment_spam_status**](ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | -| [**post_set_comment_text**](ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | -| [**post_un_flag_comment**](ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | -| [**post_vote**](ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | -| [**put_award_badge**](ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/award-badge | | -| [**put_close_thread**](ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/close-thread | | -| [**put_remove_badge**](ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | -| [**put_reopen_thread**](ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | -| [**set_trust_factor**](ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | +| [**delete_moderation_vote**](ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | | +| [**get_api_comments**](ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | | +| [**get_api_export_status**](ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | | +| [**get_api_ids**](ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | | +| [**get_ban_users_from_comment**](ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | | +| [**get_comment_ban_status**](ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | | +| [**get_comment_children**](ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | | +| [**get_count**](ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/mod_api/count | | +| [**get_counts**](ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | | +| [**get_logs**](ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | | +| [**get_manual_badges**](ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | | +| [**get_manual_badges_for_user**](ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | | +| [**get_moderation_comment**](ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | | +| [**get_moderation_comment_text**](ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | | +| [**get_pre_ban_summary**](ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | | +| [**get_search_comments_summary**](ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | | +| [**get_search_pages**](ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | | +| [**get_search_sites**](ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | | +| [**get_search_suggest**](ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | | +| [**get_search_users**](ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | | +| [**get_trust_factor**](ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | | +| [**get_user_ban_preference**](ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | | +| [**get_user_internal_profile**](ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | | +| [**post_adjust_comment_votes**](ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | | +| [**post_api_export**](ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | | +| [**post_ban_user_from_comment**](ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | | +| [**post_ban_user_undo**](ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | | +| [**post_bulk_pre_ban_summary**](ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | | +| [**post_comments_by_ids**](ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | | +| [**post_flag_comment**](ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | | +| [**post_remove_comment**](ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | | +| [**post_restore_deleted_comment**](ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | | +| [**post_set_comment_approval_status**](ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | | +| [**post_set_comment_review_status**](ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | | +| [**post_set_comment_spam_status**](ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | | +| [**post_set_comment_text**](ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | | +| [**post_un_flag_comment**](ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | | +| [**post_vote**](ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | | +| [**put_award_badge**](ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | | +| [**put_close_thread**](ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | | +| [**put_remove_badge**](ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | | +| [**put_reopen_thread**](ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | | +| [**set_trust_factor**](ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | | ## delete_moderation_vote -> delete_moderation_vote(comment_id, vote_id, opts) +> delete_moderation_vote(tenant_id, comment_id, vote_id, opts) @@ -62,15 +62,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | vote_id = 'vote_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.delete_moderation_vote(comment_id, vote_id, opts) + result = api_instance.delete_moderation_vote(tenant_id, comment_id, vote_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->delete_moderation_vote: #{e}" @@ -81,12 +83,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> delete_moderation_vote_with_http_info(comment_id, vote_id, opts) +> , Integer, Hash)> delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts) ```ruby begin - data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(comment_id, vote_id, opts) + data, status_code, headers = api_instance.delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -99,8 +101,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **vote_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -119,7 +123,7 @@ No authorization required ## get_api_comments -> get_api_comments(opts) +> get_api_comments(tenant_id, opts) @@ -130,6 +134,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { page: 1.2, # Float | count: 1.2, # Float | @@ -144,7 +149,7 @@ opts = { begin - result = api_instance.get_api_comments(opts) + result = api_instance.get_api_comments(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_comments: #{e}" @@ -155,12 +160,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_comments_with_http_info(opts) +> , Integer, Hash)> get_api_comments_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_api_comments_with_http_info(opts) + data, status_code, headers = api_instance.get_api_comments_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -173,6 +178,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **page** | **Float** | | [optional] | | **count** | **Float** | | [optional] | | **text_search** | **String** | | [optional] | @@ -199,7 +205,7 @@ No authorization required ## get_api_export_status -> get_api_export_status(opts) +> get_api_export_status(tenant_id, opts) @@ -210,6 +216,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { batch_job_id: 'batch_job_id_example', # String | sso: 'sso_example' # String | @@ -217,7 +224,7 @@ opts = { begin - result = api_instance.get_api_export_status(opts) + result = api_instance.get_api_export_status(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_export_status: #{e}" @@ -228,12 +235,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_export_status_with_http_info(opts) +> , Integer, Hash)> get_api_export_status_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_api_export_status_with_http_info(opts) + data, status_code, headers = api_instance.get_api_export_status_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -246,6 +253,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **batch_job_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -265,7 +273,7 @@ No authorization required ## get_api_ids -> get_api_ids(opts) +> get_api_ids(tenant_id, opts) @@ -276,6 +284,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | by_ip_from_comment: 'by_ip_from_comment_example', # String | @@ -288,7 +297,7 @@ opts = { begin - result = api_instance.get_api_ids(opts) + result = api_instance.get_api_ids(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_api_ids: #{e}" @@ -299,12 +308,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_ids_with_http_info(opts) +> , Integer, Hash)> get_api_ids_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_api_ids_with_http_info(opts) + data, status_code, headers = api_instance.get_api_ids_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -317,6 +326,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **by_ip_from_comment** | **String** | | [optional] | | **filters** | **String** | | [optional] | @@ -341,7 +351,7 @@ No authorization required ## get_ban_users_from_comment -> get_ban_users_from_comment(comment_id, opts) +> get_ban_users_from_comment(tenant_id, comment_id, opts) @@ -352,6 +362,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { sso: 'sso_example' # String | @@ -359,7 +370,7 @@ opts = { begin - result = api_instance.get_ban_users_from_comment(comment_id, opts) + result = api_instance.get_ban_users_from_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_ban_users_from_comment: #{e}" @@ -370,12 +381,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_ban_users_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -388,6 +399,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -407,7 +419,7 @@ No authorization required ## get_comment_ban_status -> get_comment_ban_status(comment_id, opts) +> get_comment_ban_status(tenant_id, comment_id, opts) @@ -418,6 +430,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { sso: 'sso_example' # String | @@ -425,7 +438,7 @@ opts = { begin - result = api_instance.get_comment_ban_status(comment_id, opts) + result = api_instance.get_comment_ban_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_ban_status: #{e}" @@ -436,12 +449,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_ban_status_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_ban_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_comment_ban_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -454,6 +467,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -473,7 +487,7 @@ No authorization required ## get_comment_children -> get_comment_children(comment_id, opts) +> get_comment_children(tenant_id, comment_id, opts) @@ -484,6 +498,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { sso: 'sso_example' # String | @@ -491,7 +506,7 @@ opts = { begin - result = api_instance.get_comment_children(comment_id, opts) + result = api_instance.get_comment_children(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_comment_children: #{e}" @@ -502,12 +517,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_comment_children_with_http_info(comment_id, opts) +> , Integer, Hash)> get_comment_children_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_comment_children_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_comment_children_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -520,6 +535,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -539,7 +555,7 @@ No authorization required ## get_count -> get_count(opts) +> get_count(tenant_id, opts) @@ -550,6 +566,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | by_ip_from_comment: 'by_ip_from_comment_example', # String | @@ -561,7 +578,7 @@ opts = { begin - result = api_instance.get_count(opts) + result = api_instance.get_count(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_count: #{e}" @@ -572,12 +589,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_count_with_http_info(opts) +> , Integer, Hash)> get_count_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_count_with_http_info(opts) + data, status_code, headers = api_instance.get_count_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -590,6 +607,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **by_ip_from_comment** | **String** | | [optional] | | **filter** | **String** | | [optional] | @@ -613,7 +631,7 @@ No authorization required ## get_counts -> get_counts(opts) +> get_counts(tenant_id, opts) @@ -624,13 +642,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { sso: 'sso_example' # String | } begin - result = api_instance.get_counts(opts) + result = api_instance.get_counts(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_counts: #{e}" @@ -641,12 +660,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_counts_with_http_info(opts) +> , Integer, Hash)> get_counts_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_counts_with_http_info(opts) + data, status_code, headers = api_instance.get_counts_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -659,6 +678,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **sso** | **String** | | [optional] | ### Return type @@ -677,7 +697,7 @@ No authorization required ## get_logs -> get_logs(comment_id, opts) +> get_logs(tenant_id, comment_id, opts) @@ -688,6 +708,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { sso: 'sso_example' # String | @@ -695,7 +716,7 @@ opts = { begin - result = api_instance.get_logs(comment_id, opts) + result = api_instance.get_logs(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_logs: #{e}" @@ -706,12 +727,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_logs_with_http_info(comment_id, opts) +> , Integer, Hash)> get_logs_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_logs_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_logs_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -724,6 +745,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -743,7 +765,7 @@ No authorization required ## get_manual_badges -> get_manual_badges(opts) +> get_manual_badges(tenant_id, opts) @@ -754,13 +776,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { sso: 'sso_example' # String | } begin - result = api_instance.get_manual_badges(opts) + result = api_instance.get_manual_badges(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges: #{e}" @@ -771,12 +794,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_manual_badges_with_http_info(opts) + data, status_code, headers = api_instance.get_manual_badges_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -789,6 +812,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **sso** | **String** | | [optional] | ### Return type @@ -807,7 +831,7 @@ No authorization required ## get_manual_badges_for_user -> get_manual_badges_for_user(opts) +> get_manual_badges_for_user(tenant_id, opts) @@ -818,6 +842,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { badges_user_id: 'badges_user_id_example', # String | comment_id: 'comment_id_example', # String | @@ -826,7 +851,7 @@ opts = { begin - result = api_instance.get_manual_badges_for_user(opts) + result = api_instance.get_manual_badges_for_user(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_manual_badges_for_user: #{e}" @@ -837,12 +862,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_manual_badges_for_user_with_http_info(opts) +> , Integer, Hash)> get_manual_badges_for_user_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_manual_badges_for_user_with_http_info(opts) + data, status_code, headers = api_instance.get_manual_badges_for_user_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -855,6 +880,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **badges_user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -875,7 +901,7 @@ No authorization required ## get_moderation_comment -> get_moderation_comment(comment_id, opts) +> get_moderation_comment(tenant_id, comment_id, opts) @@ -886,6 +912,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { include_email: true, # Boolean | @@ -895,7 +922,7 @@ opts = { begin - result = api_instance.get_moderation_comment(comment_id, opts) + result = api_instance.get_moderation_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment: #{e}" @@ -906,12 +933,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_moderation_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -924,6 +951,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **include_email** | **Boolean** | | [optional] | | **include_ip** | **Boolean** | | [optional] | @@ -945,7 +973,7 @@ No authorization required ## get_moderation_comment_text -> get_moderation_comment_text(comment_id, opts) +> get_moderation_comment_text(tenant_id, comment_id, opts) @@ -956,6 +984,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { sso: 'sso_example' # String | @@ -963,7 +992,7 @@ opts = { begin - result = api_instance.get_moderation_comment_text(comment_id, opts) + result = api_instance.get_moderation_comment_text(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_moderation_comment_text: #{e}" @@ -974,12 +1003,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_moderation_comment_text_with_http_info(comment_id, opts) +> , Integer, Hash)> get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -992,6 +1021,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -1011,7 +1041,7 @@ No authorization required ## get_pre_ban_summary -> get_pre_ban_summary(comment_id, opts) +> get_pre_ban_summary(tenant_id, comment_id, opts) @@ -1022,6 +1052,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { include_by_user_id_and_email: true, # Boolean | @@ -1032,7 +1063,7 @@ opts = { begin - result = api_instance.get_pre_ban_summary(comment_id, opts) + result = api_instance.get_pre_ban_summary(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_pre_ban_summary: #{e}" @@ -1043,12 +1074,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_pre_ban_summary_with_http_info(comment_id, opts) +> , Integer, Hash)> get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1061,6 +1092,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **include_by_user_id_and_email** | **Boolean** | | [optional] | | **include_by_ip** | **Boolean** | | [optional] | @@ -1083,7 +1115,7 @@ No authorization required ## get_search_comments_summary -> get_search_comments_summary(opts) +> get_search_comments_summary(tenant_id, opts) @@ -1094,6 +1126,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | filters: 'filters_example', # String | @@ -1103,7 +1136,7 @@ opts = { begin - result = api_instance.get_search_comments_summary(opts) + result = api_instance.get_search_comments_summary(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_comments_summary: #{e}" @@ -1114,12 +1147,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_comments_summary_with_http_info(opts) +> , Integer, Hash)> get_search_comments_summary_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_comments_summary_with_http_info(opts) + data, status_code, headers = api_instance.get_search_comments_summary_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1132,6 +1165,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | | **filters** | **String** | | [optional] | | **search_filters** | **String** | | [optional] | @@ -1153,7 +1187,7 @@ No authorization required ## get_search_pages -> get_search_pages(opts) +> get_search_pages(tenant_id, opts) @@ -1164,6 +1198,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | sso: 'sso_example' # String | @@ -1171,7 +1206,7 @@ opts = { begin - result = api_instance.get_search_pages(opts) + result = api_instance.get_search_pages(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_pages: #{e}" @@ -1182,12 +1217,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_pages_with_http_info(opts) +> , Integer, Hash)> get_search_pages_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_pages_with_http_info(opts) + data, status_code, headers = api_instance.get_search_pages_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1200,6 +1235,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1219,7 +1255,7 @@ No authorization required ## get_search_sites -> get_search_sites(opts) +> get_search_sites(tenant_id, opts) @@ -1230,6 +1266,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | sso: 'sso_example' # String | @@ -1237,7 +1274,7 @@ opts = { begin - result = api_instance.get_search_sites(opts) + result = api_instance.get_search_sites(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_sites: #{e}" @@ -1248,12 +1285,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_sites_with_http_info(opts) +> , Integer, Hash)> get_search_sites_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_sites_with_http_info(opts) + data, status_code, headers = api_instance.get_search_sites_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1266,6 +1303,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1285,7 +1323,7 @@ No authorization required ## get_search_suggest -> get_search_suggest(opts) +> get_search_suggest(tenant_id, opts) @@ -1296,6 +1334,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | sso: 'sso_example' # String | @@ -1303,7 +1342,7 @@ opts = { begin - result = api_instance.get_search_suggest(opts) + result = api_instance.get_search_suggest(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_suggest: #{e}" @@ -1314,12 +1353,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_suggest_with_http_info(opts) +> , Integer, Hash)> get_search_suggest_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_suggest_with_http_info(opts) + data, status_code, headers = api_instance.get_search_suggest_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1332,6 +1371,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1351,7 +1391,7 @@ No authorization required ## get_search_users -> get_search_users(opts) +> get_search_users(tenant_id, opts) @@ -1362,6 +1402,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { value: 'value_example', # String | sso: 'sso_example' # String | @@ -1369,7 +1410,7 @@ opts = { begin - result = api_instance.get_search_users(opts) + result = api_instance.get_search_users(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_search_users: #{e}" @@ -1380,12 +1421,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_search_users_with_http_info(opts) +> , Integer, Hash)> get_search_users_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_search_users_with_http_info(opts) + data, status_code, headers = api_instance.get_search_users_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1398,6 +1439,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **value** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1417,7 +1459,7 @@ No authorization required ## get_trust_factor -> get_trust_factor(opts) +> get_trust_factor(tenant_id, opts) @@ -1428,6 +1470,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { user_id: 'user_id_example', # String | sso: 'sso_example' # String | @@ -1435,7 +1478,7 @@ opts = { begin - result = api_instance.get_trust_factor(opts) + result = api_instance.get_trust_factor(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_trust_factor: #{e}" @@ -1446,12 +1489,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_trust_factor_with_http_info(opts) +> , Integer, Hash)> get_trust_factor_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_trust_factor_with_http_info(opts) + data, status_code, headers = api_instance.get_trust_factor_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1464,6 +1507,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **user_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1483,7 +1527,7 @@ No authorization required ## get_user_ban_preference -> get_user_ban_preference(opts) +> get_user_ban_preference(tenant_id, opts) @@ -1494,13 +1538,14 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { sso: 'sso_example' # String | } begin - result = api_instance.get_user_ban_preference(opts) + result = api_instance.get_user_ban_preference(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_ban_preference: #{e}" @@ -1511,12 +1556,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_ban_preference_with_http_info(opts) +> , Integer, Hash)> get_user_ban_preference_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_ban_preference_with_http_info(opts) + data, status_code, headers = api_instance.get_user_ban_preference_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1529,6 +1574,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **sso** | **String** | | [optional] | ### Return type @@ -1547,7 +1593,7 @@ No authorization required ## get_user_internal_profile -> get_user_internal_profile(opts) +> get_user_internal_profile(tenant_id, opts) @@ -1558,6 +1604,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { comment_id: 'comment_id_example', # String | sso: 'sso_example' # String | @@ -1565,7 +1612,7 @@ opts = { begin - result = api_instance.get_user_internal_profile(opts) + result = api_instance.get_user_internal_profile(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->get_user_internal_profile: #{e}" @@ -1576,12 +1623,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_user_internal_profile_with_http_info(opts) +> , Integer, Hash)> get_user_internal_profile_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.get_user_internal_profile_with_http_info(opts) + data, status_code, headers = api_instance.get_user_internal_profile_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1594,6 +1641,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | @@ -1613,7 +1661,7 @@ No authorization required ## post_adjust_comment_votes -> post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) +> post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts) @@ -1624,15 +1672,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | adjust_comment_votes_params = FastCommentsClient::AdjustCommentVotesParams.new({adjust_vote_amount: 3.56}) # AdjustCommentVotesParams | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts) + result = api_instance.post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_adjust_comment_votes: #{e}" @@ -1643,12 +1693,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) +> , Integer, Hash)> post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) + data, status_code, headers = api_instance.post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1661,8 +1711,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -1681,7 +1733,7 @@ No authorization required ## post_api_export -> post_api_export(opts) +> post_api_export(tenant_id, opts) @@ -1692,6 +1744,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { text_search: 'text_search_example', # String | by_ip_from_comment: 'by_ip_from_comment_example', # String | @@ -1703,7 +1756,7 @@ opts = { begin - result = api_instance.post_api_export(opts) + result = api_instance.post_api_export(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_api_export: #{e}" @@ -1714,12 +1767,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_api_export_with_http_info(opts) +> , Integer, Hash)> post_api_export_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_api_export_with_http_info(opts) + data, status_code, headers = api_instance.post_api_export_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1732,6 +1785,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **text_search** | **String** | | [optional] | | **by_ip_from_comment** | **String** | | [optional] | | **filters** | **String** | | [optional] | @@ -1755,7 +1809,7 @@ No authorization required ## post_ban_user_from_comment -> post_ban_user_from_comment(comment_id, opts) +> post_ban_user_from_comment(tenant_id, comment_id, opts) @@ -1766,6 +1820,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { ban_email: true, # Boolean | @@ -1781,7 +1836,7 @@ opts = { begin - result = api_instance.post_ban_user_from_comment(comment_id, opts) + result = api_instance.post_ban_user_from_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_from_comment: #{e}" @@ -1792,12 +1847,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_from_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1810,6 +1865,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **ban_email** | **Boolean** | | [optional] | | **ban_email_domain** | **Boolean** | | [optional] | @@ -1837,7 +1893,7 @@ No authorization required ## post_ban_user_undo -> post_ban_user_undo(ban_user_undo_params, opts) +> post_ban_user_undo(tenant_id, ban_user_undo_params, opts) @@ -1848,6 +1904,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | ban_user_undo_params = FastCommentsClient::BanUserUndoParams.new({changelog: FastCommentsClient::APIBanUserChangeLog.new}) # BanUserUndoParams | opts = { sso: 'sso_example' # String | @@ -1855,7 +1912,7 @@ opts = { begin - result = api_instance.post_ban_user_undo(ban_user_undo_params, opts) + result = api_instance.post_ban_user_undo(tenant_id, ban_user_undo_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_ban_user_undo: #{e}" @@ -1866,12 +1923,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_ban_user_undo_with_http_info(ban_user_undo_params, opts) +> , Integer, Hash)> post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(ban_user_undo_params, opts) + data, status_code, headers = api_instance.post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1884,6 +1941,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **ban_user_undo_params** | [**BanUserUndoParams**](BanUserUndoParams.md) | | | | **sso** | **String** | | [optional] | @@ -1903,7 +1961,7 @@ No authorization required ## post_bulk_pre_ban_summary -> post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) +> post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts) @@ -1914,6 +1972,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | bulk_pre_ban_params = FastCommentsClient::BulkPreBanParams.new({comment_ids: ['comment_ids_example']}) # BulkPreBanParams | opts = { include_by_user_id_and_email: true, # Boolean | @@ -1924,7 +1983,7 @@ opts = { begin - result = api_instance.post_bulk_pre_ban_summary(bulk_pre_ban_params, opts) + result = api_instance.post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_bulk_pre_ban_summary: #{e}" @@ -1935,12 +1994,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) +> , Integer, Hash)> post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) + data, status_code, headers = api_instance.post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -1953,6 +2012,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **bulk_pre_ban_params** | [**BulkPreBanParams**](BulkPreBanParams.md) | | | | **include_by_user_id_and_email** | **Boolean** | | [optional] | | **include_by_ip** | **Boolean** | | [optional] | @@ -1975,7 +2035,7 @@ No authorization required ## post_comments_by_ids -> post_comments_by_ids(comments_by_ids_params, opts) +> post_comments_by_ids(tenant_id, comments_by_ids_params, opts) @@ -1986,6 +2046,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comments_by_ids_params = FastCommentsClient::CommentsByIdsParams.new({ids: ['ids_example']}) # CommentsByIdsParams | opts = { sso: 'sso_example' # String | @@ -1993,7 +2054,7 @@ opts = { begin - result = api_instance.post_comments_by_ids(comments_by_ids_params, opts) + result = api_instance.post_comments_by_ids(tenant_id, comments_by_ids_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_comments_by_ids: #{e}" @@ -2004,12 +2065,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_comments_by_ids_with_http_info(comments_by_ids_params, opts) +> , Integer, Hash)> post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(comments_by_ids_params, opts) + data, status_code, headers = api_instance.post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2022,6 +2083,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comments_by_ids_params** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | | | **sso** | **String** | | [optional] | @@ -2041,7 +2103,7 @@ No authorization required ## post_flag_comment -> post_flag_comment(comment_id, opts) +> post_flag_comment(tenant_id, comment_id, opts) @@ -2052,14 +2114,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_flag_comment(comment_id, opts) + result = api_instance.post_flag_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_flag_comment: #{e}" @@ -2070,12 +2134,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_flag_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_flag_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_flag_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2088,7 +2152,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2107,7 +2173,7 @@ No authorization required ## post_remove_comment -> post_remove_comment(comment_id, opts) +> post_remove_comment(tenant_id, comment_id, opts) @@ -2118,14 +2184,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_remove_comment(comment_id, opts) + result = api_instance.post_remove_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_remove_comment: #{e}" @@ -2136,15 +2204,15 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_remove_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_remove_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_remove_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_remove_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_remove_comment_with_http_info: #{e}" end @@ -2154,12 +2222,14 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -2173,7 +2243,7 @@ No authorization required ## post_restore_deleted_comment -> post_restore_deleted_comment(comment_id, opts) +> post_restore_deleted_comment(tenant_id, comment_id, opts) @@ -2184,14 +2254,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_restore_deleted_comment(comment_id, opts) + result = api_instance.post_restore_deleted_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_restore_deleted_comment: #{e}" @@ -2202,12 +2274,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_restore_deleted_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2220,7 +2292,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2239,7 +2313,7 @@ No authorization required ## post_set_comment_approval_status -> post_set_comment_approval_status(comment_id, opts) +> post_set_comment_approval_status(tenant_id, comment_id, opts) @@ -2250,15 +2324,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { approved: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_approval_status(comment_id, opts) + result = api_instance.post_set_comment_approval_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_approval_status: #{e}" @@ -2269,12 +2345,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_approval_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2287,8 +2363,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **approved** | **Boolean** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2307,7 +2385,7 @@ No authorization required ## post_set_comment_review_status -> post_set_comment_review_status(comment_id, opts) +> post_set_comment_review_status(tenant_id, comment_id, opts) @@ -2318,15 +2396,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { reviewed: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_review_status(comment_id, opts) + result = api_instance.post_set_comment_review_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_review_status: #{e}" @@ -2337,12 +2417,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_review_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2355,8 +2435,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **reviewed** | **Boolean** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2375,7 +2457,7 @@ No authorization required ## post_set_comment_spam_status -> post_set_comment_spam_status(comment_id, opts) +> post_set_comment_spam_status(tenant_id, comment_id, opts) @@ -2386,16 +2468,18 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { spam: true, # Boolean | perm_not_spam: true, # Boolean | + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_spam_status(comment_id, opts) + result = api_instance.post_set_comment_spam_status(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_spam_status: #{e}" @@ -2406,12 +2490,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_spam_status_with_http_info(comment_id, opts) +> , Integer, Hash)> post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2424,9 +2508,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **spam** | **Boolean** | | [optional] | | **perm_not_spam** | **Boolean** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2445,7 +2531,7 @@ No authorization required ## post_set_comment_text -> post_set_comment_text(comment_id, set_comment_text_params, opts) +> post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts) @@ -2456,15 +2542,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | set_comment_text_params = FastCommentsClient::SetCommentTextParams.new({comment: 'comment_example'}) # SetCommentTextParams | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_set_comment_text(comment_id, set_comment_text_params, opts) + result = api_instance.post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_set_comment_text: #{e}" @@ -2475,12 +2563,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) +> , Integer, Hash)> post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts) ```ruby begin - data, status_code, headers = api_instance.post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) + data, status_code, headers = api_instance.post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2493,8 +2581,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md) | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2513,7 +2603,7 @@ No authorization required ## post_un_flag_comment -> post_un_flag_comment(comment_id, opts) +> post_un_flag_comment(tenant_id, comment_id, opts) @@ -2524,14 +2614,16 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_un_flag_comment(comment_id, opts) + result = api_instance.post_un_flag_comment(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_un_flag_comment: #{e}" @@ -2542,12 +2634,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_un_flag_comment_with_http_info(comment_id, opts) +> , Integer, Hash)> post_un_flag_comment_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_un_flag_comment_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2560,7 +2652,9 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2579,7 +2673,7 @@ No authorization required ## post_vote -> post_vote(comment_id, opts) +> post_vote(tenant_id, comment_id, opts) @@ -2590,15 +2684,17 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | comment_id = 'comment_id_example' # String | opts = { direction: 'direction_example', # String | + broadcast_id: 'broadcast_id_example', # String | sso: 'sso_example' # String | } begin - result = api_instance.post_vote(comment_id, opts) + result = api_instance.post_vote(tenant_id, comment_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->post_vote: #{e}" @@ -2609,12 +2705,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> post_vote_with_http_info(comment_id, opts) +> , Integer, Hash)> post_vote_with_http_info(tenant_id, comment_id, opts) ```ruby begin - data, status_code, headers = api_instance.post_vote_with_http_info(comment_id, opts) + data, status_code, headers = api_instance.post_vote_with_http_info(tenant_id, comment_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2627,8 +2723,10 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **comment_id** | **String** | | | | **direction** | **String** | | [optional] | +| **broadcast_id** | **String** | | [optional] | | **sso** | **String** | | [optional] | ### Return type @@ -2647,7 +2745,7 @@ No authorization required ## put_award_badge -> put_award_badge(badge_id, opts) +> put_award_badge(tenant_id, badge_id, opts) @@ -2658,6 +2756,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | badge_id = 'badge_id_example' # String | opts = { user_id: 'user_id_example', # String | @@ -2668,7 +2767,7 @@ opts = { begin - result = api_instance.put_award_badge(badge_id, opts) + result = api_instance.put_award_badge(tenant_id, badge_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_award_badge: #{e}" @@ -2679,12 +2778,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_award_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_award_badge_with_http_info(tenant_id, badge_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_award_badge_with_http_info(badge_id, opts) + data, status_code, headers = api_instance.put_award_badge_with_http_info(tenant_id, badge_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2697,6 +2796,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **badge_id** | **String** | | | | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | @@ -2719,7 +2819,7 @@ No authorization required ## put_close_thread -> put_close_thread(url_id, opts) +> put_close_thread(tenant_id, url_id, opts) @@ -2730,6 +2830,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | url_id = 'url_id_example' # String | opts = { sso: 'sso_example' # String | @@ -2737,7 +2838,7 @@ opts = { begin - result = api_instance.put_close_thread(url_id, opts) + result = api_instance.put_close_thread(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_close_thread: #{e}" @@ -2748,12 +2849,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_close_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_close_thread_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_close_thread_with_http_info(url_id, opts) + data, status_code, headers = api_instance.put_close_thread_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2766,6 +2867,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **url_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -2785,7 +2887,7 @@ No authorization required ## put_remove_badge -> put_remove_badge(badge_id, opts) +> put_remove_badge(tenant_id, badge_id, opts) @@ -2796,6 +2898,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | badge_id = 'badge_id_example' # String | opts = { user_id: 'user_id_example', # String | @@ -2806,7 +2909,7 @@ opts = { begin - result = api_instance.put_remove_badge(badge_id, opts) + result = api_instance.put_remove_badge(tenant_id, badge_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_remove_badge: #{e}" @@ -2817,12 +2920,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_remove_badge_with_http_info(badge_id, opts) +> , Integer, Hash)> put_remove_badge_with_http_info(tenant_id, badge_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_remove_badge_with_http_info(badge_id, opts) + data, status_code, headers = api_instance.put_remove_badge_with_http_info(tenant_id, badge_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2835,6 +2938,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **badge_id** | **String** | | | | **user_id** | **String** | | [optional] | | **comment_id** | **String** | | [optional] | @@ -2857,7 +2961,7 @@ No authorization required ## put_reopen_thread -> put_reopen_thread(url_id, opts) +> put_reopen_thread(tenant_id, url_id, opts) @@ -2868,6 +2972,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | url_id = 'url_id_example' # String | opts = { sso: 'sso_example' # String | @@ -2875,7 +2980,7 @@ opts = { begin - result = api_instance.put_reopen_thread(url_id, opts) + result = api_instance.put_reopen_thread(tenant_id, url_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->put_reopen_thread: #{e}" @@ -2886,12 +2991,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> put_reopen_thread_with_http_info(url_id, opts) +> , Integer, Hash)> put_reopen_thread_with_http_info(tenant_id, url_id, opts) ```ruby begin - data, status_code, headers = api_instance.put_reopen_thread_with_http_info(url_id, opts) + data, status_code, headers = api_instance.put_reopen_thread_with_http_info(tenant_id, url_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2904,6 +3009,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **url_id** | **String** | | | | **sso** | **String** | | [optional] | @@ -2923,7 +3029,7 @@ No authorization required ## set_trust_factor -> set_trust_factor(opts) +> set_trust_factor(tenant_id, opts) @@ -2934,6 +3040,7 @@ require 'time' require 'fastcomments-client' api_instance = FastCommentsClient::ModerationApi.new +tenant_id = 'tenant_id_example' # String | opts = { user_id: 'user_id_example', # String | trust_factor: 'trust_factor_example', # String | @@ -2942,7 +3049,7 @@ opts = { begin - result = api_instance.set_trust_factor(opts) + result = api_instance.set_trust_factor(tenant_id, opts) p result rescue FastCommentsClient::ApiError => e puts "Error when calling ModerationApi->set_trust_factor: #{e}" @@ -2953,12 +3060,12 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> set_trust_factor_with_http_info(opts) +> , Integer, Hash)> set_trust_factor_with_http_info(tenant_id, opts) ```ruby begin - data, status_code, headers = api_instance.set_trust_factor_with_http_info(opts) + data, status_code, headers = api_instance.set_trust_factor_with_http_info(tenant_id, opts) p status_code # => 2xx p headers # => { ... } p data # => @@ -2971,6 +3078,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **tenant_id** | **String** | | | | **user_id** | **String** | | [optional] | | **trust_factor** | **String** | | [optional] | | **sso** | **String** | | [optional] | diff --git a/client/docs/PatchDomainConfigResponse.md b/client/docs/PatchDomainConfigResponse.md index 23ac8eb..bbe7825 100644 --- a/client/docs/PatchDomainConfigResponse.md +++ b/client/docs/PatchDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 68% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index 2c1425c..0a782a1 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# FastCommentsClient::PostRemoveCommentResponse +# FastCommentsClient::PostRemoveCommentApiResponse ## Properties @@ -12,7 +12,7 @@ ```ruby require 'fastcomments-client' -instance = FastCommentsClient::PostRemoveCommentResponse.new( +instance = FastCommentsClient::PostRemoveCommentApiResponse.new( action: null, status: null ) diff --git a/client/docs/PutDomainConfigResponse.md b/client/docs/PutDomainConfigResponse.md index 3e582eb..e0d0fa3 100644 --- a/client/docs/PutDomainConfigResponse.md +++ b/client/docs/PutDomainConfigResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **configuration** | **Object** | | | +| **configuration** | **Object** | | [optional] | | **status** | **Object** | | | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | ## Example diff --git a/client/docs/SaveCommentsBulkResponse.md b/client/docs/SaveCommentsBulkResponse.md index 0c1fae0..c8cb46f 100644 --- a/client/docs/SaveCommentsBulkResponse.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -5,11 +5,11 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **comment** | [**APIComment**](APIComment.md) | | | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | | +| **comment** | [**APIComment**](APIComment.md) | | [optional] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] | | **module_data** | **Hash<String, Object>** | Construct a type with a set of properties K of type T | [optional] | -| **reason** | **String** | | | -| **code** | **String** | | | +| **reason** | **String** | | [optional] | +| **code** | **String** | | [optional] | | **secondary_code** | **String** | | [optional] | | **banned_until** | **Integer** | | [optional] | | **max_character_length** | **Integer** | | [optional] | diff --git a/client/docs/SearchUsersResult.md b/client/docs/SearchUsersResult.md index 13bb5f7..339866d 100644 --- a/client/docs/SearchUsersResult.md +++ b/client/docs/SearchUsersResult.md @@ -5,8 +5,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **sections** | [**Array<UserSearchSectionResult>**](UserSearchSectionResult.md) | | | -| **users** | [**Array<UserSearchResult>**](UserSearchResult.md) | | | +| **sections** | [**Array<UserSearchSectionResult>**](UserSearchSectionResult.md) | | [optional] | +| **users** | [**Array<UserSearchResult>**](UserSearchResult.md) | | [optional] | ## Example diff --git a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 88166a5..40740f8 100644 --- a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -5,9 +5,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **matched_count** | **Integer** | | | -| **modified_count** | **Integer** | | | -| **note** | **String** | | | +| **matched_count** | **Integer** | | [optional] | +| **modified_count** | **Integer** | | [optional] | +| **note** | **String** | | [optional] | ## Example diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md index f256bb9..3c1af69 100644 --- a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -5,9 +5,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **matched_count** | **Integer** | | | -| **modified_count** | **Integer** | | | -| **note** | **String** | | | +| **matched_count** | **Integer** | | [optional] | +| **modified_count** | **Integer** | | [optional] | +| **note** | **String** | | [optional] | ## Example diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md index 892bf84..5bc7763 100644 --- a/client/docs/UpdateUserNotificationStatusResponse.md +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -5,9 +5,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **status** | [**APIStatus**](APIStatus.md) | | | -| **matched_count** | **Integer** | | | -| **modified_count** | **Integer** | | | -| **note** | **String** | | | +| **matched_count** | **Integer** | | [optional] | +| **modified_count** | **Integer** | | [optional] | +| **note** | **String** | | [optional] | ## Example diff --git a/client/docs/VoteResponse.md b/client/docs/VoteResponse.md index a83ce95..511bacc 100644 --- a/client/docs/VoteResponse.md +++ b/client/docs/VoteResponse.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **status** | [**VoteResponseStatus**](VoteResponseStatus.md) | | | +| **status** | **String** | | | | **vote_id** | **String** | | [optional] | | **is_verified** | **Boolean** | | [optional] | | **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] | diff --git a/client/docs/VoteResponseStatus.md b/client/docs/VoteResponseStatus.md deleted file mode 100644 index b6ab642..0000000 --- a/client/docs/VoteResponseStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# FastCommentsClient::VoteResponseStatus - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | - -## Example - -```ruby -require 'fastcomments-client' - -instance = FastCommentsClient::VoteResponseStatus.new() -``` - diff --git a/client/fastcomments-client.gemspec b/client/fastcomments-client.gemspec index 0639b13..4cf5b37 100644 --- a/client/fastcomments-client.gemspec +++ b/client/fastcomments-client.gemspec @@ -8,7 +8,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client.rb b/client/lib/fastcomments-client.rb index 155489e..dfd410c 100644 --- a/client/lib/fastcomments-client.rb +++ b/client/lib/fastcomments-client.rb @@ -6,13 +6,14 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end # Common files require 'fastcomments-client/api_client' require 'fastcomments-client/api_error' +require 'fastcomments-client/api_model_base' require 'fastcomments-client/version' require 'fastcomments-client/configuration' @@ -276,7 +277,7 @@ require 'fastcomments-client/models/patch_page_api_response' require 'fastcomments-client/models/patch_sso_user_api_response' require 'fastcomments-client/models/pending_comment_to_sync_outbound' -require 'fastcomments-client/models/post_remove_comment_response' +require 'fastcomments-client/models/post_remove_comment_api_response' require 'fastcomments-client/models/pre_ban_summary' require 'fastcomments-client/models/pub_sub_comment' require 'fastcomments-client/models/pub_sub_comment_base' @@ -375,7 +376,6 @@ require 'fastcomments-client/models/vote_body_params' require 'fastcomments-client/models/vote_delete_response' require 'fastcomments-client/models/vote_response' -require 'fastcomments-client/models/vote_response_status' require 'fastcomments-client/models/vote_response_user' require 'fastcomments-client/models/vote_style' diff --git a/client/lib/fastcomments-client/api/default_api.rb b/client/lib/fastcomments-client/api/default_api.rb index 2b3ce3c..723f05f 100644 --- a/client/lib/fastcomments-client/api/default_api.rb +++ b/client/lib/fastcomments-client/api/default_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -90,29 +90,33 @@ def add_domain_config_with_http_info(tenant_id, add_domain_config_params, opts = return data, status_code, headers end + # @param tenant_id [String] + # @param create_hash_tag_body [CreateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [CreateHashTagResponse] - def add_hash_tag(opts = {}) - data, _status_code, _headers = add_hash_tag_with_http_info(opts) + def add_hash_tag(tenant_id, create_hash_tag_body, opts = {}) + data, _status_code, _headers = add_hash_tag_with_http_info(tenant_id, create_hash_tag_body, opts) data end + # @param tenant_id [String] + # @param create_hash_tag_body [CreateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [Array<(CreateHashTagResponse, Integer, Hash)>] CreateHashTagResponse data, response status code and response headers - def add_hash_tag_with_http_info(opts = {}) + def add_hash_tag_with_http_info(tenant_id, create_hash_tag_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tag ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_hash_tag" + end # resource path local_var_path = '/api/v1/hash-tags' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -128,7 +132,7 @@ def add_hash_tag_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_hash_tag_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(create_hash_tag_body) # return_type return_type = opts[:debug_return_type] || 'CreateHashTagResponse' @@ -153,29 +157,33 @@ def add_hash_tag_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] + # @param bulk_create_hash_tags_body [BulkCreateHashTagsBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [BulkCreateHashTagsResponse] - def add_hash_tags_bulk(opts = {}) - data, _status_code, _headers = add_hash_tags_bulk_with_http_info(opts) + def add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body, opts = {}) + data, _status_code, _headers = add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body, opts) data end + # @param tenant_id [String] + # @param bulk_create_hash_tags_body [BulkCreateHashTagsBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [Array<(BulkCreateHashTagsResponse, Integer, Hash)>] BulkCreateHashTagsResponse data, response status code and response headers - def add_hash_tags_bulk_with_http_info(opts = {}) + def add_hash_tags_bulk_with_http_info(tenant_id, bulk_create_hash_tags_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.add_hash_tags_bulk ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.add_hash_tags_bulk" + end # resource path local_var_path = '/api/v1/hash-tags/bulk' # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -191,7 +199,7 @@ def add_hash_tags_bulk_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'bulk_create_hash_tags_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_create_hash_tags_body) # return_type return_type = opts[:debug_return_type] || 'BulkCreateHashTagsResponse' @@ -551,7 +559,7 @@ def block_user_from_comment_with_http_info(tenant_id, id, block_from_comment_par fail ArgumentError, "Missing the required parameter 'block_from_comment_params' when calling DefaultApi.block_user_from_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/block'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/block'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -710,7 +718,7 @@ def change_ticket_state_with_http_info(tenant_id, user_id, id, change_ticket_sta fail ArgumentError, "Missing the required parameter 'change_ticket_state_body' when calling DefaultApi.change_ticket_state" end # resource path - local_var_path = '/api/v1/tickets/{id}/state'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tickets/{id}/state'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1755,7 +1763,7 @@ def delete_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_comment" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1823,7 +1831,7 @@ def delete_domain_config_with_http_info(tenant_id, domain, opts = {}) fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.delete_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s)) + local_var_path = '/api/v1/domain-configs/{domain}'.sub('{domain}', CGI.escape(domain.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1889,7 +1897,7 @@ def delete_email_template_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_email_template" end # resource path - local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1961,7 +1969,7 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o fail ArgumentError, "Missing the required parameter 'error_id' when calling DefaultApi.delete_email_template_render_error" end # resource path - local_var_path = '/api/v1/email-templates/{id}/render-errors/{errorId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'errorId' + '}', CGI.escape(error_id.to_s)) + local_var_path = '/api/v1/email-templates/{id}/render-errors/{errorId}'.sub('{id}', CGI.escape(id.to_s)).sub('{errorId}', CGI.escape(error_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2001,35 +2009,39 @@ def delete_email_template_render_error_with_http_info(tenant_id, id, error_id, o return data, status_code, headers end + # @param tenant_id [String] # @param tag [String] + # @param delete_hash_tag_request_body [DeleteHashTagRequestBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [APIEmptyResponse] - def delete_hash_tag(tag, opts = {}) - data, _status_code, _headers = delete_hash_tag_with_http_info(tag, opts) + def delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body, opts = {}) + data, _status_code, _headers = delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body, opts) data end + # @param tenant_id [String] # @param tag [String] + # @param delete_hash_tag_request_body [DeleteHashTagRequestBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def delete_hash_tag_with_http_info(tag, opts = {}) + def delete_hash_tag_with_http_info(tenant_id, tag, delete_hash_tag_request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_hash_tag ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.delete_hash_tag" + end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.delete_hash_tag" end # resource path - local_var_path = '/api/v1/hash-tags/{tag}'.sub('{' + 'tag' + '}', CGI.escape(tag.to_s)) + local_var_path = '/api/v1/hash-tags/{tag}'.sub('{tag}', CGI.escape(tag.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -2045,7 +2057,7 @@ def delete_hash_tag_with_http_info(tag, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'delete_hash_tag_request_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_hash_tag_request_body) # return_type return_type = opts[:debug_return_type] || 'APIEmptyResponse' @@ -2098,7 +2110,7 @@ def delete_moderator_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_moderator" end # resource path - local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2165,7 +2177,7 @@ def delete_notification_count_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_notification_count" end # resource path - local_var_path = '/api/v1/notification-count/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/notification-count/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2231,7 +2243,7 @@ def delete_page_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_page" end # resource path - local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/pages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2297,7 +2309,7 @@ def delete_pending_webhook_event_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_pending_webhook_event" end # resource path - local_var_path = '/api/v1/pending-webhook-events/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/pending-webhook-events/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2363,7 +2375,7 @@ def delete_question_config_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_question_config" end # resource path - local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-configs/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2429,7 +2441,7 @@ def delete_question_result_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_question_result" end # resource path - local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2499,7 +2511,7 @@ def delete_sso_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_sso_user" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2569,7 +2581,7 @@ def delete_subscription_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_subscription" end # resource path - local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/subscriptions/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2638,7 +2650,7 @@ def delete_tenant_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant" end # resource path - local_var_path = '/api/v1/tenants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2705,7 +2717,7 @@ def delete_tenant_package_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2775,7 +2787,7 @@ def delete_tenant_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2843,7 +2855,7 @@ def delete_user_badge_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_user_badge" end # resource path - local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badges/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2911,7 +2923,7 @@ def delete_vote_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_vote" end # resource path - local_var_path = '/api/v1/votes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/votes/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2982,7 +2994,7 @@ def flag_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.flag_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/flag'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3125,7 +3137,7 @@ def get_cached_notification_count_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_cached_notification_count" end # resource path - local_var_path = '/api/v1/notification-count/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/notification-count/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3191,7 +3203,7 @@ def get_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_comment" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3365,7 +3377,7 @@ def get_domain_config_with_http_info(tenant_id, domain, opts = {}) fail ArgumentError, "Missing the required parameter 'domain' when calling DefaultApi.get_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domain}'.sub('{' + 'domain' + '}', CGI.escape(domain.to_s)) + local_var_path = '/api/v1/domain-configs/{domain}'.sub('{domain}', CGI.escape(domain.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3491,7 +3503,7 @@ def get_email_template_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_email_template" end # resource path - local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3619,7 +3631,7 @@ def get_email_template_render_errors_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_email_template_render_errors" end # resource path - local_var_path = '/api/v1/email-templates/{id}/render-errors'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}/render-errors'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3883,7 +3895,7 @@ def get_moderator_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_moderator" end # resource path - local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4451,7 +4463,7 @@ def get_question_config_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_question_config" end # resource path - local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-configs/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4580,7 +4592,7 @@ def get_question_result_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_question_result" end # resource path - local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4724,7 +4736,7 @@ def get_sso_user_by_email_with_http_info(tenant_id, email, opts = {}) fail ArgumentError, "Missing the required parameter 'email' when calling DefaultApi.get_sso_user_by_email" end # resource path - local_var_path = '/api/v1/sso-users/by-email/{email}'.sub('{' + 'email' + '}', CGI.escape(email.to_s)) + local_var_path = '/api/v1/sso-users/by-email/{email}'.sub('{email}', CGI.escape(email.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4790,7 +4802,7 @@ def get_sso_user_by_id_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_sso_user_by_id" end # resource path - local_var_path = '/api/v1/sso-users/by-id/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/by-id/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4982,7 +4994,7 @@ def get_tenant_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_tenant" end # resource path - local_var_path = '/api/v1/tenants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5120,7 +5132,7 @@ def get_tenant_package_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5249,7 +5261,7 @@ def get_tenant_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5446,7 +5458,7 @@ def get_ticket_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_ticket" end # resource path - local_var_path = '/api/v1/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tickets/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5585,7 +5597,7 @@ def get_user_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user" end # resource path - local_var_path = '/api/v1/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5651,7 +5663,7 @@ def get_user_badge_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge" end # resource path - local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badges/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5717,7 +5729,7 @@ def get_user_badge_progress_by_id_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.get_user_badge_progress_by_id" end # resource path - local_var_path = '/api/v1/user-badge-progress/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badge-progress/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5783,7 +5795,7 @@ def get_user_badge_progress_by_user_id_with_http_info(tenant_id, user_id, opts = fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.get_user_badge_progress_by_user_id" end # resource path - local_var_path = '/api/v1/user-badge-progress/user/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v1/user-badge-progress/user/{userId}'.sub('{userId}', CGI.escape(user_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6142,7 +6154,7 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain fail ArgumentError, "Missing the required parameter 'patch_domain_config_params' when calling DefaultApi.patch_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{' + 'domainToUpdate' + '}', CGI.escape(domain_to_update.to_s)) + local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{domainToUpdate}', CGI.escape(domain_to_update.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6187,35 +6199,39 @@ def patch_domain_config_with_http_info(tenant_id, domain_to_update, patch_domain return data, status_code, headers end + # @param tenant_id [String] # @param tag [String] + # @param update_hash_tag_body [UpdateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [UpdateHashTagResponse] - def patch_hash_tag(tag, opts = {}) - data, _status_code, _headers = patch_hash_tag_with_http_info(tag, opts) + def patch_hash_tag(tenant_id, tag, update_hash_tag_body, opts = {}) + data, _status_code, _headers = patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body, opts) data end + # @param tenant_id [String] # @param tag [String] + # @param update_hash_tag_body [UpdateHashTagBody] # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id - # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [Array<(UpdateHashTagResponse, Integer, Hash)>] UpdateHashTagResponse data, response status code and response headers - def patch_hash_tag_with_http_info(tag, opts = {}) + def patch_hash_tag_with_http_info(tenant_id, tag, update_hash_tag_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_hash_tag ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling DefaultApi.patch_hash_tag" + end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.patch_hash_tag" end # resource path - local_var_path = '/api/v1/hash-tags/{tag}'.sub('{' + 'tag' + '}', CGI.escape(tag.to_s)) + local_var_path = '/api/v1/hash-tags/{tag}'.sub('{tag}', CGI.escape(tag.to_s)) # query parameters query_params = opts[:query_params] || {} - query_params[:'tenantId'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil? + query_params[:'tenantId'] = tenant_id # header parameters header_params = opts[:header_params] || {} @@ -6231,7 +6247,7 @@ def patch_hash_tag_with_http_info(tag, opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_hash_tag_body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(update_hash_tag_body) # return_type return_type = opts[:debug_return_type] || 'UpdateHashTagResponse' @@ -6288,7 +6304,7 @@ def patch_page_with_http_info(tenant_id, id, update_api_page_data, opts = {}) fail ArgumentError, "Missing the required parameter 'update_api_page_data' when calling DefaultApi.patch_page" end # resource path - local_var_path = '/api/v1/pages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/pages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6367,7 +6383,7 @@ def patch_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.patch_sso_user" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6445,7 +6461,7 @@ def put_domain_config_with_http_info(tenant_id, domain_to_update, update_domain_ fail ArgumentError, "Missing the required parameter 'update_domain_config_params' when calling DefaultApi.put_domain_config" end # resource path - local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{' + 'domainToUpdate' + '}', CGI.escape(domain_to_update.to_s)) + local_var_path = '/api/v1/domain-configs/{domainToUpdate}'.sub('{domainToUpdate}', CGI.escape(domain_to_update.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6524,7 +6540,7 @@ def put_sso_user_with_http_info(tenant_id, id, update_apisso_user_data, opts = { fail ArgumentError, "Missing the required parameter 'update_apisso_user_data' when calling DefaultApi.put_sso_user" end # resource path - local_var_path = '/api/v1/sso-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/sso-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6676,7 +6692,7 @@ def replace_tenant_package_with_http_info(tenant_id, id, replace_tenant_package_ fail ArgumentError, "Missing the required parameter 'replace_tenant_package_body' when calling DefaultApi.replace_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6755,7 +6771,7 @@ def replace_tenant_user_with_http_info(tenant_id, id, replace_tenant_user_body, fail ArgumentError, "Missing the required parameter 'replace_tenant_user_body' when calling DefaultApi.replace_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6999,7 +7015,7 @@ def send_invite_with_http_info(tenant_id, id, from_name, opts = {}) fail ArgumentError, "Missing the required parameter 'from_name' when calling DefaultApi.send_invite" end # resource path - local_var_path = '/api/v1/moderators/{id}/send-invite'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}/send-invite'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7068,7 +7084,7 @@ def send_login_link_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.send_login_link" end # resource path - local_var_path = '/api/v1/tenant-users/{id}/send-login-link'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}/send-login-link'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7145,7 +7161,7 @@ def un_block_user_from_comment_with_http_info(tenant_id, id, un_block_from_comme fail ArgumentError, "Missing the required parameter 'un_block_from_comment_params' when calling DefaultApi.un_block_user_from_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/un-block'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/un-block'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7222,7 +7238,7 @@ def un_flag_comment_with_http_info(tenant_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.un_flag_comment" end # resource path - local_var_path = '/api/v1/comments/{id}/un-flag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}/un-flag'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7302,7 +7318,7 @@ def update_comment_with_http_info(tenant_id, id, updatable_comment_params, opts fail ArgumentError, "Missing the required parameter 'updatable_comment_params' when calling DefaultApi.update_comment" end # resource path - local_var_path = '/api/v1/comments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/comments/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7382,7 +7398,7 @@ def update_email_template_with_http_info(tenant_id, id, update_email_template_bo fail ArgumentError, "Missing the required parameter 'update_email_template_body' when calling DefaultApi.update_email_template" end # resource path - local_var_path = '/api/v1/email-templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/email-templates/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7459,7 +7475,7 @@ def update_feed_post_with_http_info(tenant_id, id, feed_post, opts = {}) fail ArgumentError, "Missing the required parameter 'feed_post' when calling DefaultApi.update_feed_post" end # resource path - local_var_path = '/api/v1/feed-posts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/feed-posts/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7536,7 +7552,7 @@ def update_moderator_with_http_info(tenant_id, id, update_moderator_body, opts = fail ArgumentError, "Missing the required parameter 'update_moderator_body' when calling DefaultApi.update_moderator" end # resource path - local_var_path = '/api/v1/moderators/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/moderators/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7615,7 +7631,7 @@ def update_notification_with_http_info(tenant_id, id, update_notification_body, fail ArgumentError, "Missing the required parameter 'update_notification_body' when calling DefaultApi.update_notification" end # resource path - local_var_path = '/api/v1/notifications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/notifications/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7693,7 +7709,7 @@ def update_question_config_with_http_info(tenant_id, id, update_question_config_ fail ArgumentError, "Missing the required parameter 'update_question_config_body' when calling DefaultApi.update_question_config" end # resource path - local_var_path = '/api/v1/question-configs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-configs/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7770,7 +7786,7 @@ def update_question_result_with_http_info(tenant_id, id, update_question_result_ fail ArgumentError, "Missing the required parameter 'update_question_result_body' when calling DefaultApi.update_question_result" end # resource path - local_var_path = '/api/v1/question-results/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/question-results/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7849,7 +7865,7 @@ def update_subscription_with_http_info(tenant_id, id, update_api_user_subscripti fail ArgumentError, "Missing the required parameter 'update_api_user_subscription_data' when calling DefaultApi.update_subscription" end # resource path - local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/subscriptions/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7927,7 +7943,7 @@ def update_tenant_with_http_info(tenant_id, id, update_tenant_body, opts = {}) fail ArgumentError, "Missing the required parameter 'update_tenant_body' when calling DefaultApi.update_tenant" end # resource path - local_var_path = '/api/v1/tenants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenants/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8004,7 +8020,7 @@ def update_tenant_package_with_http_info(tenant_id, id, update_tenant_package_bo fail ArgumentError, "Missing the required parameter 'update_tenant_package_body' when calling DefaultApi.update_tenant_package" end # resource path - local_var_path = '/api/v1/tenant-packages/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-packages/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8083,7 +8099,7 @@ def update_tenant_user_with_http_info(tenant_id, id, update_tenant_user_body, op fail ArgumentError, "Missing the required parameter 'update_tenant_user_body' when calling DefaultApi.update_tenant_user" end # resource path - local_var_path = '/api/v1/tenant-users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/tenant-users/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8161,7 +8177,7 @@ def update_user_badge_with_http_info(tenant_id, id, update_user_badge_params, op fail ArgumentError, "Missing the required parameter 'update_user_badge_params' when calling DefaultApi.update_user_badge" end # resource path - local_var_path = '/api/v1/user-badges/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) + local_var_path = '/api/v1/user-badges/{id}'.sub('{id}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/client/lib/fastcomments-client/api/moderation_api.rb b/client/lib/fastcomments-client/api/moderation_api.rb index 0c0126d..ea2cdc6 100644 --- a/client/lib/fastcomments-client/api/moderation_api.rb +++ b/client/lib/fastcomments-client/api/moderation_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -19,25 +19,33 @@ class ModerationApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # @param tenant_id [String] # @param comment_id [String] # @param vote_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] - def delete_moderation_vote(comment_id, vote_id, opts = {}) - data, _status_code, _headers = delete_moderation_vote_with_http_info(comment_id, vote_id, opts) + def delete_moderation_vote(tenant_id, comment_id, vote_id, opts = {}) + data, _status_code, _headers = delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param vote_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteDeleteResponse, Integer, Hash)>] VoteDeleteResponse data, response status code and response headers - def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) + def delete_moderation_vote_with_http_info(tenant_id, comment_id, vote_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.delete_moderation_vote ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.delete_moderation_vote" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.delete_moderation_vote" @@ -47,10 +55,12 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'vote_id' when calling ModerationApi.delete_moderation_vote" end # resource path - local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}/{voteId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)).sub('{' + 'voteId' + '}', CGI.escape(vote_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}'.sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -87,6 +97,7 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count @@ -98,11 +109,12 @@ def delete_moderation_vote_with_http_info(comment_id, vote_id, opts = {}) # @option opts [Boolean] :demo # @option opts [String] :sso # @return [ModerationAPIGetCommentsResponse] - def get_api_comments(opts = {}) - data, _status_code, _headers = get_api_comments_with_http_info(opts) + def get_api_comments(tenant_id, opts = {}) + data, _status_code, _headers = get_api_comments_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count @@ -114,15 +126,20 @@ def get_api_comments(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :sso # @return [Array<(ModerationAPIGetCommentsResponse, Integer, Hash)>] ModerationAPIGetCommentsResponse data, response status code and response headers - def get_api_comments_with_http_info(opts = {}) + def get_api_comments_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_comments ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_comments" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/comments' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/comments' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? @@ -167,28 +184,35 @@ def get_api_comments_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id # @option opts [String] :sso # @return [ModerationExportStatusResponse] - def get_api_export_status(opts = {}) - data, _status_code, _headers = get_api_export_status_with_http_info(opts) + def get_api_export_status(tenant_id, opts = {}) + data, _status_code, _headers = get_api_export_status_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id # @option opts [String] :sso # @return [Array<(ModerationExportStatusResponse, Integer, Hash)>] ModerationExportStatusResponse data, response status code and response headers - def get_api_export_status_with_http_info(opts = {}) + def get_api_export_status_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_export_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_export_status" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/export/status' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/export/status' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'batchJobId'] = opts[:'batch_job_id'] if !opts[:'batch_job_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -226,6 +250,7 @@ def get_api_export_status_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -235,11 +260,12 @@ def get_api_export_status_with_http_info(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :sso # @return [ModerationAPIGetCommentIdsResponse] - def get_api_ids(opts = {}) - data, _status_code, _headers = get_api_ids_with_http_info(opts) + def get_api_ids(tenant_id, opts = {}) + data, _status_code, _headers = get_api_ids_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -249,15 +275,20 @@ def get_api_ids(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :sso # @return [Array<(ModerationAPIGetCommentIdsResponse, Integer, Hash)>] ModerationAPIGetCommentIdsResponse data, response status code and response headers - def get_api_ids_with_http_info(opts = {}) + def get_api_ids_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_api_ids ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_api_ids" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/ids' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/ids' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? @@ -300,32 +331,39 @@ def get_api_ids_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetBannedUsersFromCommentResponse] - def get_ban_users_from_comment(comment_id, opts = {}) - data, _status_code, _headers = get_ban_users_from_comment_with_http_info(comment_id, opts) + def get_ban_users_from_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetBannedUsersFromCommentResponse, Integer, Hash)>] GetBannedUsersFromCommentResponse data, response status code and response headers - def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) + def get_ban_users_from_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_ban_users_from_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_ban_users_from_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_ban_users_from_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -362,32 +400,39 @@ def get_ban_users_from_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetCommentBanStatusResponse] - def get_comment_ban_status(comment_id, opts = {}) - data, _status_code, _headers = get_comment_ban_status_with_http_info(comment_id, opts) + def get_comment_ban_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_comment_ban_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetCommentBanStatusResponse, Integer, Hash)>] GetCommentBanStatusResponse data, response status code and response headers - def get_comment_ban_status_with_http_info(comment_id, opts = {}) + def get_comment_ban_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_ban_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_comment_ban_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_ban_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -424,32 +469,39 @@ def get_comment_ban_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def get_comment_children(comment_id, opts = {}) - data, _status_code, _headers = get_comment_children_with_http_info(comment_id, opts) + def get_comment_children(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_comment_children_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def get_comment_children_with_http_info(comment_id, opts = {}) + def get_comment_children_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_comment_children ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_comment_children" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_comment_children" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comment-children/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -486,6 +538,7 @@ def get_comment_children_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -494,11 +547,12 @@ def get_comment_children_with_http_info(comment_id, opts = {}) # @option opts [Boolean] :demo # @option opts [String] :sso # @return [ModerationAPICountCommentsResponse] - def get_count(opts = {}) - data, _status_code, _headers = get_count_with_http_info(opts) + def get_count(tenant_id, opts = {}) + data, _status_code, _headers = get_count_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -507,15 +561,20 @@ def get_count(opts = {}) # @option opts [Boolean] :demo # @option opts [String] :sso # @return [Array<(ModerationAPICountCommentsResponse, Integer, Hash)>] ModerationAPICountCommentsResponse data, response status code and response headers - def get_count_with_http_info(opts = {}) + def get_count_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_count ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_count" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/count' + local_var_path = '/auth/my-account/moderate-comments/mod_api/count' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? @@ -557,26 +616,33 @@ def get_count_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetBannedUsersCountResponse] - def get_counts(opts = {}) - data, _status_code, _headers = get_counts_with_http_info(opts) + def get_counts(tenant_id, opts = {}) + data, _status_code, _headers = get_counts_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetBannedUsersCountResponse, Integer, Hash)>] GetBannedUsersCountResponse data, response status code and response headers - def get_counts_with_http_info(opts = {}) + def get_counts_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_counts ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_counts" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/banned-users/counts' + local_var_path = '/auth/my-account/moderate-comments/banned-users/mod_api/counts' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -613,32 +679,39 @@ def get_counts_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [ModerationAPIGetLogsResponse] - def get_logs(comment_id, opts = {}) - data, _status_code, _headers = get_logs_with_http_info(comment_id, opts) + def get_logs(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_logs_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(ModerationAPIGetLogsResponse, Integer, Hash)>] ModerationAPIGetLogsResponse data, response status code and response headers - def get_logs_with_http_info(comment_id, opts = {}) + def get_logs_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_logs ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_logs" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_logs" end # resource path - local_var_path = '/auth/my-account/moderate-comments/logs/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/logs/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -675,26 +748,33 @@ def get_logs_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetTenantManualBadgesResponse] - def get_manual_badges(opts = {}) - data, _status_code, _headers = get_manual_badges_with_http_info(opts) + def get_manual_badges(tenant_id, opts = {}) + data, _status_code, _headers = get_manual_badges_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetTenantManualBadgesResponse, Integer, Hash)>] GetTenantManualBadgesResponse data, response status code and response headers - def get_manual_badges_with_http_info(opts = {}) + def get_manual_badges_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_manual_badges" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-manual-badges' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-manual-badges' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -731,30 +811,37 @@ def get_manual_badges_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id # @option opts [String] :sso # @return [GetUserManualBadgesResponse] - def get_manual_badges_for_user(opts = {}) - data, _status_code, _headers = get_manual_badges_for_user_with_http_info(opts) + def get_manual_badges_for_user(tenant_id, opts = {}) + data, _status_code, _headers = get_manual_badges_for_user_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id # @option opts [String] :sso # @return [Array<(GetUserManualBadgesResponse, Integer, Hash)>] GetUserManualBadgesResponse data, response status code and response headers - def get_manual_badges_for_user_with_http_info(opts = {}) + def get_manual_badges_for_user_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_manual_badges_for_user ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_manual_badges_for_user" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-manual-badges-for-user' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'badgesUserId'] = opts[:'badges_user_id'] if !opts[:'badges_user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -793,36 +880,43 @@ def get_manual_badges_for_user_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip # @option opts [String] :sso # @return [ModerationAPICommentResponse] - def get_moderation_comment(comment_id, opts = {}) - data, _status_code, _headers = get_moderation_comment_with_http_info(comment_id, opts) + def get_moderation_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_moderation_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email # @option opts [Boolean] :include_ip # @option opts [String] :sso # @return [Array<(ModerationAPICommentResponse, Integer, Hash)>] ModerationAPICommentResponse data, response status code and response headers - def get_moderation_comment_with_http_info(comment_id, opts = {}) + def get_moderation_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_moderation_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'includeEmail'] = opts[:'include_email'] if !opts[:'include_email'].nil? query_params[:'includeIP'] = opts[:'include_ip'] if !opts[:'include_ip'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -861,32 +955,39 @@ def get_moderation_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetCommentTextResponse] - def get_moderation_comment_text(comment_id, opts = {}) - data, _status_code, _headers = get_moderation_comment_text_with_http_info(comment_id, opts) + def get_moderation_comment_text(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(GetCommentTextResponse, Integer, Hash)>] GetCommentTextResponse data, response status code and response headers - def get_moderation_comment_text_with_http_info(comment_id, opts = {}) + def get_moderation_comment_text_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_moderation_comment_text ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_moderation_comment_text" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_moderation_comment_text" end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-comment-text/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -923,6 +1024,7 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email @@ -930,11 +1032,12 @@ def get_moderation_comment_text_with_http_info(comment_id, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :sso # @return [PreBanSummary] - def get_pre_ban_summary(comment_id, opts = {}) - data, _status_code, _headers = get_pre_ban_summary_with_http_info(comment_id, opts) + def get_pre_ban_summary(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email @@ -942,19 +1045,24 @@ def get_pre_ban_summary(comment_id, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :sso # @return [Array<(PreBanSummary, Integer, Hash)>] PreBanSummary data, response status code and response headers - def get_pre_ban_summary_with_http_info(comment_id, opts = {}) + def get_pre_ban_summary_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_pre_ban_summary ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_pre_ban_summary" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.get_pre_ban_summary" end # resource path - local_var_path = '/auth/my-account/moderate-comments/pre-ban-summary/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil? query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil? query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil? @@ -994,32 +1102,39 @@ def get_pre_ban_summary_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sso # @return [ModerationCommentSearchResponse] - def get_search_comments_summary(opts = {}) - data, _status_code, _headers = get_search_comments_summary_with_http_info(opts) + def get_search_comments_summary(tenant_id, opts = {}) + data, _status_code, _headers = get_search_comments_summary_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters # @option opts [String] :search_filters # @option opts [String] :sso # @return [Array<(ModerationCommentSearchResponse, Integer, Hash)>] ModerationCommentSearchResponse data, response status code and response headers - def get_search_comments_summary_with_http_info(opts = {}) + def get_search_comments_summary_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_comments_summary ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_comments_summary" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/comments/summary' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/comments/summary' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? query_params[:'searchFilters'] = opts[:'search_filters'] if !opts[:'search_filters'].nil? @@ -1059,28 +1174,35 @@ def get_search_comments_summary_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso # @return [ModerationPageSearchResponse] - def get_search_pages(opts = {}) - data, _status_code, _headers = get_search_pages_with_http_info(opts) + def get_search_pages(tenant_id, opts = {}) + data, _status_code, _headers = get_search_pages_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso # @return [Array<(ModerationPageSearchResponse, Integer, Hash)>] ModerationPageSearchResponse data, response status code and response headers - def get_search_pages_with_http_info(opts = {}) + def get_search_pages_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_pages ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_pages" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/pages' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/pages' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1118,28 +1240,35 @@ def get_search_pages_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso # @return [ModerationSiteSearchResponse] - def get_search_sites(opts = {}) - data, _status_code, _headers = get_search_sites_with_http_info(opts) + def get_search_sites(tenant_id, opts = {}) + data, _status_code, _headers = get_search_sites_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso # @return [Array<(ModerationSiteSearchResponse, Integer, Hash)>] ModerationSiteSearchResponse data, response status code and response headers - def get_search_sites_with_http_info(opts = {}) + def get_search_sites_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_sites ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_sites" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/sites' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/sites' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1177,28 +1306,35 @@ def get_search_sites_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :sso # @return [ModerationSuggestResponse] - def get_search_suggest(opts = {}) - data, _status_code, _headers = get_search_suggest_with_http_info(opts) + def get_search_suggest(tenant_id, opts = {}) + data, _status_code, _headers = get_search_suggest_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :sso # @return [Array<(ModerationSuggestResponse, Integer, Hash)>] ModerationSuggestResponse data, response status code and response headers - def get_search_suggest_with_http_info(opts = {}) + def get_search_suggest_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_suggest ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_suggest" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/suggest' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/suggest' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1236,28 +1372,35 @@ def get_search_suggest_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso # @return [ModerationUserSearchResponse] - def get_search_users(opts = {}) - data, _status_code, _headers = get_search_users_with_http_info(opts) + def get_search_users(tenant_id, opts = {}) + data, _status_code, _headers = get_search_users_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso # @return [Array<(ModerationUserSearchResponse, Integer, Hash)>] ModerationUserSearchResponse data, response status code and response headers - def get_search_users_with_http_info(opts = {}) + def get_search_users_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_search_users ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_search_users" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/search/users' + local_var_path = '/auth/my-account/moderate-comments/mod_api/search/users' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1295,28 +1438,35 @@ def get_search_users_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :sso # @return [GetUserTrustFactorResponse] - def get_trust_factor(opts = {}) - data, _status_code, _headers = get_trust_factor_with_http_info(opts) + def get_trust_factor(tenant_id, opts = {}) + data, _status_code, _headers = get_trust_factor_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :sso # @return [Array<(GetUserTrustFactorResponse, Integer, Hash)>] GetUserTrustFactorResponse data, response status code and response headers - def get_trust_factor_with_http_info(opts = {}) + def get_trust_factor_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_trust_factor ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_trust_factor" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-trust-factor' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-trust-factor' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1354,26 +1504,33 @@ def get_trust_factor_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIModerateGetUserBanPreferencesResponse] - def get_user_ban_preference(opts = {}) - data, _status_code, _headers = get_user_ban_preference_with_http_info(opts) + def get_user_ban_preference(tenant_id, opts = {}) + data, _status_code, _headers = get_user_ban_preference_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIModerateGetUserBanPreferencesResponse, Integer, Hash)>] APIModerateGetUserBanPreferencesResponse data, response status code and response headers - def get_user_ban_preference_with_http_info(opts = {}) + def get_user_ban_preference_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_ban_preference ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_user_ban_preference" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/user-ban-preference' + local_var_path = '/auth/my-account/moderate-comments/mod_api/user-ban-preference' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1410,28 +1567,35 @@ def get_user_ban_preference_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :sso # @return [GetUserInternalProfileResponse] - def get_user_internal_profile(opts = {}) - data, _status_code, _headers = get_user_internal_profile_with_http_info(opts) + def get_user_internal_profile(tenant_id, opts = {}) + data, _status_code, _headers = get_user_internal_profile_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :sso # @return [Array<(GetUserInternalProfileResponse, Integer, Hash)>] GetUserInternalProfileResponse data, response status code and response headers - def get_user_internal_profile_with_http_info(opts = {}) + def get_user_internal_profile_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.get_user_internal_profile ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.get_user_internal_profile" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/get-user-internal-profile' + local_var_path = '/auth/my-account/moderate-comments/mod_api/get-user-internal-profile' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -1469,25 +1633,33 @@ def get_user_internal_profile_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param adjust_comment_votes_params [AdjustCommentVotesParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] - def post_adjust_comment_votes(comment_id, adjust_comment_votes_params, opts = {}) - data, _status_code, _headers = post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts) + def post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, opts = {}) + data, _status_code, _headers = post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param adjust_comment_votes_params [AdjustCommentVotesParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AdjustVotesResponse, Integer, Hash)>] AdjustVotesResponse data, response status code and response headers - def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_params, opts = {}) + def post_adjust_comment_votes_with_http_info(tenant_id, comment_id, adjust_comment_votes_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_adjust_comment_votes ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_adjust_comment_votes" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_adjust_comment_votes" @@ -1497,10 +1669,12 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa fail ArgumentError, "Missing the required parameter 'adjust_comment_votes_params' when calling ModerationApi.post_adjust_comment_votes" end # resource path - local_var_path = '/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1542,6 +1716,7 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -1550,11 +1725,12 @@ def post_adjust_comment_votes_with_http_info(comment_id, adjust_comment_votes_pa # @option opts [String] :sorts # @option opts [String] :sso # @return [ModerationExportResponse] - def post_api_export(opts = {}) - data, _status_code, _headers = post_api_export_with_http_info(opts) + def post_api_export(tenant_id, opts = {}) + data, _status_code, _headers = post_api_export_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -1563,15 +1739,20 @@ def post_api_export(opts = {}) # @option opts [String] :sorts # @option opts [String] :sso # @return [Array<(ModerationExportResponse, Integer, Hash)>] ModerationExportResponse data, response status code and response headers - def post_api_export_with_http_info(opts = {}) + def post_api_export_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_api_export ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_api_export" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/api/export' + local_var_path = '/auth/my-account/moderate-comments/mod_api/api/export' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'text-search'] = opts[:'text_search'] if !opts[:'text_search'].nil? query_params[:'byIPFromComment'] = opts[:'by_ip_from_comment'] if !opts[:'by_ip_from_comment'].nil? query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil? @@ -1613,6 +1794,7 @@ def post_api_export_with_http_info(opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email @@ -1625,11 +1807,12 @@ def post_api_export_with_http_info(opts = {}) # @option opts [String] :ban_reason # @option opts [String] :sso # @return [BanUserFromCommentResult] - def post_ban_user_from_comment(comment_id, opts = {}) - data, _status_code, _headers = post_ban_user_from_comment_with_http_info(comment_id, opts) + def post_ban_user_from_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email @@ -1642,19 +1825,24 @@ def post_ban_user_from_comment(comment_id, opts = {}) # @option opts [String] :ban_reason # @option opts [String] :sso # @return [Array<(BanUserFromCommentResult, Integer, Hash)>] BanUserFromCommentResult data, response status code and response headers - def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) + def post_ban_user_from_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_from_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_ban_user_from_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_ban_user_from_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'banEmail'] = opts[:'ban_email'] if !opts[:'ban_email'].nil? query_params[:'banEmailDomain'] = opts[:'ban_email_domain'] if !opts[:'ban_email_domain'].nil? query_params[:'banIP'] = opts[:'ban_ip'] if !opts[:'ban_ip'].nil? @@ -1699,32 +1887,39 @@ def post_ban_user_from_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param ban_user_undo_params [BanUserUndoParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIEmptyResponse] - def post_ban_user_undo(ban_user_undo_params, opts = {}) - data, _status_code, _headers = post_ban_user_undo_with_http_info(ban_user_undo_params, opts) + def post_ban_user_undo(tenant_id, ban_user_undo_params, opts = {}) + data, _status_code, _headers = post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts) data end + # @param tenant_id [String] # @param ban_user_undo_params [BanUserUndoParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) + def post_ban_user_undo_with_http_info(tenant_id, ban_user_undo_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_ban_user_undo ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_ban_user_undo" + end # verify the required parameter 'ban_user_undo_params' is set if @api_client.config.client_side_validation && ban_user_undo_params.nil? fail ArgumentError, "Missing the required parameter 'ban_user_undo_params' when calling ModerationApi.post_ban_user_undo" end # resource path - local_var_path = '/auth/my-account/moderate-comments/ban-user/undo' + local_var_path = '/auth/my-account/moderate-comments/mod_api/ban-user/undo' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1766,6 +1961,7 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param bulk_pre_ban_params [BulkPreBanParams] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email @@ -1773,11 +1969,12 @@ def post_ban_user_undo_with_http_info(ban_user_undo_params, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :sso # @return [BulkPreBanSummary] - def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) - data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts) + def post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, opts = {}) + data, _status_code, _headers = post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts) data end + # @param tenant_id [String] # @param bulk_pre_ban_params [BulkPreBanParams] # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email @@ -1785,19 +1982,24 @@ def post_bulk_pre_ban_summary(bulk_pre_ban_params, opts = {}) # @option opts [Boolean] :include_by_email_domain # @option opts [String] :sso # @return [Array<(BulkPreBanSummary, Integer, Hash)>] BulkPreBanSummary data, response status code and response headers - def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) + def post_bulk_pre_ban_summary_with_http_info(tenant_id, bulk_pre_ban_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_bulk_pre_ban_summary ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_bulk_pre_ban_summary" + end # verify the required parameter 'bulk_pre_ban_params' is set if @api_client.config.client_side_validation && bulk_pre_ban_params.nil? fail ArgumentError, "Missing the required parameter 'bulk_pre_ban_params' when calling ModerationApi.post_bulk_pre_ban_summary" end # resource path - local_var_path = '/auth/my-account/moderate-comments/bulk-pre-ban-summary' + local_var_path = '/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'includeByUserIdAndEmail'] = opts[:'include_by_user_id_and_email'] if !opts[:'include_by_user_id_and_email'].nil? query_params[:'includeByIP'] = opts[:'include_by_ip'] if !opts[:'include_by_ip'].nil? query_params[:'includeByEmailDomain'] = opts[:'include_by_email_domain'] if !opts[:'include_by_email_domain'].nil? @@ -1842,32 +2044,39 @@ def post_bulk_pre_ban_summary_with_http_info(bulk_pre_ban_params, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comments_by_ids_params [CommentsByIdsParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [ModerationAPIChildCommentsResponse] - def post_comments_by_ids(comments_by_ids_params, opts = {}) - data, _status_code, _headers = post_comments_by_ids_with_http_info(comments_by_ids_params, opts) + def post_comments_by_ids(tenant_id, comments_by_ids_params, opts = {}) + data, _status_code, _headers = post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts) data end + # @param tenant_id [String] # @param comments_by_ids_params [CommentsByIdsParams] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(ModerationAPIChildCommentsResponse, Integer, Hash)>] ModerationAPIChildCommentsResponse data, response status code and response headers - def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) + def post_comments_by_ids_with_http_info(tenant_id, comments_by_ids_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_comments_by_ids ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_comments_by_ids" + end # verify the required parameter 'comments_by_ids_params' is set if @api_client.config.client_side_validation && comments_by_ids_params.nil? fail ArgumentError, "Missing the required parameter 'comments_by_ids_params' when calling ModerationApi.post_comments_by_ids" end # resource path - local_var_path = '/auth/my-account/moderate-comments/comments-by-ids' + local_var_path = '/auth/my-account/moderate-comments/mod_api/comments-by-ids' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1909,32 +2118,42 @@ def post_comments_by_ids_with_http_info(comments_by_ids_params, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_flag_comment(comment_id, opts = {}) - data, _status_code, _headers = post_flag_comment_with_http_info(comment_id, opts) + def post_flag_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_flag_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_flag_comment_with_http_info(comment_id, opts = {}) + def post_flag_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_flag_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_flag_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_flag_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -1971,32 +2190,42 @@ def post_flag_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [PostRemoveCommentResponse] - def post_remove_comment(comment_id, opts = {}) - data, _status_code, _headers = post_remove_comment_with_http_info(comment_id, opts) + # @return [PostRemoveCommentApiResponse] + def post_remove_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_remove_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [Array<(PostRemoveCommentResponse, Integer, Hash)>] PostRemoveCommentResponse data, response status code and response headers - def post_remove_comment_with_http_info(comment_id, opts = {}) + # @return [Array<(PostRemoveCommentApiResponse, Integer, Hash)>] PostRemoveCommentApiResponse data, response status code and response headers + def post_remove_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_remove_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_remove_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_remove_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/remove-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2011,7 +2240,7 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'PostRemoveCommentResponse' + return_type = opts[:debug_return_type] || 'PostRemoveCommentApiResponse' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2033,32 +2262,42 @@ def post_remove_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_restore_deleted_comment(comment_id, opts = {}) - data, _status_code, _headers = post_restore_deleted_comment_with_http_info(comment_id, opts) + def post_restore_deleted_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) + def post_restore_deleted_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_restore_deleted_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_restore_deleted_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_restore_deleted_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2095,35 +2334,45 @@ def post_restore_deleted_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] - def post_set_comment_approval_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_approval_status_with_http_info(comment_id, opts) + def post_set_comment_approval_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentApprovedResponse, Integer, Hash)>] SetCommentApprovedResponse data, response status code and response headers - def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) + def post_set_comment_approval_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_approval_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_approval_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_approval_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'approved'] = opts[:'approved'] if !opts[:'approved'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2160,35 +2409,45 @@ def post_set_comment_approval_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_review_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_review_status_with_http_info(comment_id, opts) + def post_set_comment_review_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_review_status_with_http_info(comment_id, opts = {}) + def post_set_comment_review_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_review_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_review_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_review_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-review-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'reviewed'] = opts[:'reviewed'] if !opts[:'reviewed'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2225,38 +2484,48 @@ def post_set_comment_review_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_set_comment_spam_status(comment_id, opts = {}) - data, _status_code, _headers = post_set_comment_spam_status_with_http_info(comment_id, opts) + def post_set_comment_spam_status(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) + def post_set_comment_spam_status_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_spam_status ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_spam_status" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_spam_status" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'spam'] = opts[:'spam'] if !opts[:'spam'].nil? query_params[:'permNotSpam'] = opts[:'perm_not_spam'] if !opts[:'perm_not_spam'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2293,25 +2562,33 @@ def post_set_comment_spam_status_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param set_comment_text_params [SetCommentTextParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] - def post_set_comment_text(comment_id, set_comment_text_params, opts = {}) - data, _status_code, _headers = post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts) + def post_set_comment_text(tenant_id, comment_id, set_comment_text_params, opts = {}) + data, _status_code, _headers = post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param set_comment_text_params [SetCommentTextParams] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(SetCommentTextResponse, Integer, Hash)>] SetCommentTextResponse data, response status code and response headers - def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, opts = {}) + def post_set_comment_text_with_http_info(tenant_id, comment_id, set_comment_text_params, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_set_comment_text ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_set_comment_text" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_set_comment_text" @@ -2321,10 +2598,12 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op fail ArgumentError, "Missing the required parameter 'set_comment_text_params' when calling ModerationApi.post_set_comment_text" end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-comment-text/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2366,32 +2645,42 @@ def post_set_comment_text_with_http_info(comment_id, set_comment_text_params, op return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] - def post_un_flag_comment(comment_id, opts = {}) - data, _status_code, _headers = post_un_flag_comment_with_http_info(comment_id, opts) + def post_un_flag_comment(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_un_flag_comment_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def post_un_flag_comment_with_http_info(comment_id, opts = {}) + def post_un_flag_comment_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_un_flag_comment ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_un_flag_comment" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_un_flag_comment" end # resource path - local_var_path = '/auth/my-account/moderate-comments/un-flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2428,35 +2717,45 @@ def post_un_flag_comment_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :direction + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] - def post_vote(comment_id, opts = {}) - data, _status_code, _headers = post_vote_with_http_info(comment_id, opts) + def post_vote(tenant_id, comment_id, opts = {}) + data, _status_code, _headers = post_vote_with_http_info(tenant_id, comment_id, opts) data end + # @param tenant_id [String] # @param comment_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :direction + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(VoteResponse, Integer, Hash)>] VoteResponse data, response status code and response headers - def post_vote_with_http_info(comment_id, opts = {}) + def post_vote_with_http_info(tenant_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.post_vote ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.post_vote" + end # verify the required parameter 'comment_id' is set if @api_client.config.client_side_validation && comment_id.nil? fail ArgumentError, "Missing the required parameter 'comment_id' when calling ModerationApi.post_vote" end # resource path - local_var_path = '/auth/my-account/moderate-comments/vote/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/auth/my-account/moderate-comments/mod_api/vote/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil? + query_params[:'broadcastId'] = opts[:'broadcast_id'] if !opts[:'broadcast_id'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? # header parameters @@ -2493,6 +2792,7 @@ def post_vote_with_http_info(comment_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id @@ -2500,11 +2800,12 @@ def post_vote_with_http_info(comment_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AwardUserBadgeResponse] - def put_award_badge(badge_id, opts = {}) - data, _status_code, _headers = put_award_badge_with_http_info(badge_id, opts) + def put_award_badge(tenant_id, badge_id, opts = {}) + data, _status_code, _headers = put_award_badge_with_http_info(tenant_id, badge_id, opts) data end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id @@ -2512,19 +2813,24 @@ def put_award_badge(badge_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(AwardUserBadgeResponse, Integer, Hash)>] AwardUserBadgeResponse data, response status code and response headers - def put_award_badge_with_http_info(badge_id, opts = {}) + def put_award_badge_with_http_info(tenant_id, badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_award_badge ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_award_badge" + end # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_award_badge" end # resource path - local_var_path = '/auth/my-account/moderate-comments/award-badge' + local_var_path = '/auth/my-account/moderate-comments/mod_api/award-badge' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'badgeId'] = badge_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? @@ -2565,32 +2871,39 @@ def put_award_badge_with_http_info(badge_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIEmptyResponse] - def put_close_thread(url_id, opts = {}) - data, _status_code, _headers = put_close_thread_with_http_info(url_id, opts) + def put_close_thread(tenant_id, url_id, opts = {}) + data, _status_code, _headers = put_close_thread_with_http_info(tenant_id, url_id, opts) data end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_close_thread_with_http_info(url_id, opts = {}) + def put_close_thread_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_close_thread ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_close_thread" + end # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_close_thread" end # resource path - local_var_path = '/auth/my-account/moderate-comments/close-thread' + local_var_path = '/auth/my-account/moderate-comments/mod_api/close-thread' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'urlId'] = url_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2628,6 +2941,7 @@ def put_close_thread_with_http_info(url_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id @@ -2635,11 +2949,12 @@ def put_close_thread_with_http_info(url_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [RemoveUserBadgeResponse] - def put_remove_badge(badge_id, opts = {}) - data, _status_code, _headers = put_remove_badge_with_http_info(badge_id, opts) + def put_remove_badge(tenant_id, badge_id, opts = {}) + data, _status_code, _headers = put_remove_badge_with_http_info(tenant_id, badge_id, opts) data end + # @param tenant_id [String] # @param badge_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id @@ -2647,19 +2962,24 @@ def put_remove_badge(badge_id, opts = {}) # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [Array<(RemoveUserBadgeResponse, Integer, Hash)>] RemoveUserBadgeResponse data, response status code and response headers - def put_remove_badge_with_http_info(badge_id, opts = {}) + def put_remove_badge_with_http_info(tenant_id, badge_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_remove_badge ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_remove_badge" + end # verify the required parameter 'badge_id' is set if @api_client.config.client_side_validation && badge_id.nil? fail ArgumentError, "Missing the required parameter 'badge_id' when calling ModerationApi.put_remove_badge" end # resource path - local_var_path = '/auth/my-account/moderate-comments/remove-badge' + local_var_path = '/auth/my-account/moderate-comments/mod_api/remove-badge' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'badgeId'] = badge_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'commentId'] = opts[:'comment_id'] if !opts[:'comment_id'].nil? @@ -2700,32 +3020,39 @@ def put_remove_badge_with_http_info(badge_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIEmptyResponse] - def put_reopen_thread(url_id, opts = {}) - data, _status_code, _headers = put_reopen_thread_with_http_info(url_id, opts) + def put_reopen_thread(tenant_id, url_id, opts = {}) + data, _status_code, _headers = put_reopen_thread_with_http_info(tenant_id, url_id, opts) data end + # @param tenant_id [String] # @param url_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [Array<(APIEmptyResponse, Integer, Hash)>] APIEmptyResponse data, response status code and response headers - def put_reopen_thread_with_http_info(url_id, opts = {}) + def put_reopen_thread_with_http_info(tenant_id, url_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.put_reopen_thread ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.put_reopen_thread" + end # verify the required parameter 'url_id' is set if @api_client.config.client_side_validation && url_id.nil? fail ArgumentError, "Missing the required parameter 'url_id' when calling ModerationApi.put_reopen_thread" end # resource path - local_var_path = '/auth/my-account/moderate-comments/reopen-thread' + local_var_path = '/auth/my-account/moderate-comments/mod_api/reopen-thread' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'urlId'] = url_id query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? @@ -2763,30 +3090,37 @@ def put_reopen_thread_with_http_info(url_id, opts = {}) return data, status_code, headers end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor # @option opts [String] :sso # @return [SetUserTrustFactorResponse] - def set_trust_factor(opts = {}) - data, _status_code, _headers = set_trust_factor_with_http_info(opts) + def set_trust_factor(tenant_id, opts = {}) + data, _status_code, _headers = set_trust_factor_with_http_info(tenant_id, opts) data end + # @param tenant_id [String] # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor # @option opts [String] :sso # @return [Array<(SetUserTrustFactorResponse, Integer, Hash)>] SetUserTrustFactorResponse data, response status code and response headers - def set_trust_factor_with_http_info(opts = {}) + def set_trust_factor_with_http_info(tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModerationApi.set_trust_factor ...' end + # verify the required parameter 'tenant_id' is set + if @api_client.config.client_side_validation && tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'tenant_id' when calling ModerationApi.set_trust_factor" + end # resource path - local_var_path = '/auth/my-account/moderate-comments/set-trust-factor' + local_var_path = '/auth/my-account/moderate-comments/mod_api/set-trust-factor' # query parameters query_params = opts[:query_params] || {} + query_params[:'tenantId'] = tenant_id query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'trustFactor'] = opts[:'trust_factor'] if !opts[:'trust_factor'].nil? query_params[:'sso'] = opts[:'sso'] if !opts[:'sso'].nil? diff --git a/client/lib/fastcomments-client/api/public_api.rb b/client/lib/fastcomments-client/api/public_api.rb index 0a863cb..4e5e672 100644 --- a/client/lib/fastcomments-client/api/public_api.rb +++ b/client/lib/fastcomments-client/api/public_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -53,7 +53,7 @@ def block_from_comment_public_with_http_info(tenant_id, comment_id, public_block fail ArgumentError, "Missing the required parameter 'public_block_from_comment_params' when calling PublicApi.block_from_comment_public" end # resource path - local_var_path = '/block-from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/block-from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -211,7 +211,7 @@ def create_comment_public_with_http_info(tenant_id, url_id, broadcast_id, commen fail ArgumentError, "Missing the required parameter 'comment_data' when calling PublicApi.create_comment_public" end # resource path - local_var_path = '/comments/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/comments/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -289,7 +289,7 @@ def create_feed_post_public_with_http_info(tenant_id, create_feed_post_params, o fail ArgumentError, "Missing the required parameter 'create_feed_post_params' when calling PublicApi.create_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -363,7 +363,7 @@ def create_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.create_v1_page_react" end # resource path - local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -438,7 +438,7 @@ def create_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling PublicApi.create_v2_page_react" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -516,7 +516,7 @@ def delete_comment_public_with_http_info(tenant_id, comment_id, broadcast_id, op fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.delete_comment_public" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -606,7 +606,7 @@ def delete_comment_vote_with_http_info(tenant_id, comment_id, vote_id, url_id, b fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.delete_comment_vote" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/vote/{voteId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)).sub('{' + 'voteId' + '}', CGI.escape(vote_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/vote/{voteId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)).sub('{voteId}', CGI.escape(vote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -679,7 +679,7 @@ def delete_feed_post_public_with_http_info(tenant_id, post_id, opts = {}) fail ArgumentError, "Missing the required parameter 'post_id' when calling PublicApi.delete_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{postId}', CGI.escape(post_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -746,7 +746,7 @@ def delete_v1_page_react_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.delete_v1_page_react" end # resource path - local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -818,7 +818,7 @@ def delete_v2_page_react_with_http_info(tenant_id, url_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling PublicApi.delete_v2_page_react" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -893,7 +893,7 @@ def flag_comment_public_with_http_info(tenant_id, comment_id, is_flagged, opts = fail ArgumentError, "Missing the required parameter 'is_flagged' when calling PublicApi.flag_comment_public" end # resource path - local_var_path = '/flag-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/flag-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -965,7 +965,7 @@ def get_comment_text_with_http_info(tenant_id, comment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.get_comment_text" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/text'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/text'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1040,7 +1040,7 @@ def get_comment_vote_user_names_with_http_info(tenant_id, comment_id, dir, opts fail ArgumentError, "Missing the required parameter 'dir' when calling PublicApi.get_comment_vote_user_names" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/votes'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/votes'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1235,7 +1235,7 @@ def get_comments_public_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_comments_public" end # resource path - local_var_path = '/comments/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/comments/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1343,7 +1343,7 @@ def get_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_time, opts fail ArgumentError, "Missing the required parameter 'start_time' when calling PublicApi.get_event_log" end # resource path - local_var_path = '/event-log/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/event-log/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1420,7 +1420,7 @@ def get_feed_posts_public_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_feed_posts_public" end # resource path - local_var_path = '/feed-posts/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1493,7 +1493,7 @@ def get_feed_posts_stats_with_http_info(tenant_id, post_ids, opts = {}) fail ArgumentError, "Missing the required parameter 'post_ids' when calling PublicApi.get_feed_posts_stats" end # resource path - local_var_path = '/feed-posts/{tenantId}/stats'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/stats'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1560,7 +1560,7 @@ def get_gif_large_with_http_info(tenant_id, large_internal_url_sanitized, opts = fail ArgumentError, "Missing the required parameter 'large_internal_url_sanitized' when calling PublicApi.get_gif_large" end # resource path - local_var_path = '/gifs/get-large/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/gifs/get-large/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1632,7 +1632,7 @@ def get_gifs_search_with_http_info(tenant_id, search, opts = {}) fail ArgumentError, "Missing the required parameter 'search' when calling PublicApi.get_gifs_search" end # resource path - local_var_path = '/gifs/search/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/gifs/search/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1701,7 +1701,7 @@ def get_gifs_trending_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_gifs_trending" end # resource path - local_var_path = '/gifs/trending/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/gifs/trending/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1785,7 +1785,7 @@ def get_global_event_log_with_http_info(tenant_id, url_id, user_id_ws, start_tim fail ArgumentError, "Missing the required parameter 'start_time' when calling PublicApi.get_global_event_log" end # resource path - local_var_path = '/event-log/global/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/event-log/global/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1860,7 +1860,7 @@ def get_offline_users_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_offline_users" end # resource path - local_var_path = '/pages/{tenantId}/users/offline'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}/users/offline'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1934,7 +1934,7 @@ def get_online_users_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_online_users" end # resource path - local_var_path = '/pages/{tenantId}/users/online'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}/users/online'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2008,7 +2008,7 @@ def get_pages_public_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_pages_public" end # resource path - local_var_path = '/pages/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2082,7 +2082,7 @@ def get_translations_with_http_info(namespace, component, opts = {}) fail ArgumentError, "Missing the required parameter 'component' when calling PublicApi.get_translations" end # resource path - local_var_path = '/translations/{namespace}/{component}'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'component' + '}', CGI.escape(component.to_s)) + local_var_path = '/translations/{namespace}/{component}'.sub('{namespace}', CGI.escape(namespace.to_s)).sub('{component}', CGI.escape(component.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2377,7 +2377,7 @@ def get_user_reacts_public_with_http_info(tenant_id, opts = {}) fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PublicApi.get_user_reacts_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/user-reacts'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/user-reacts'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2446,7 +2446,7 @@ def get_users_info_with_http_info(tenant_id, ids, opts = {}) fail ArgumentError, "Missing the required parameter 'ids' when calling PublicApi.get_users_info" end # resource path - local_var_path = '/pages/{tenantId}/users/info'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/pages/{tenantId}/users/info'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2512,7 +2512,7 @@ def get_v1_page_likes_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_v1_page_likes" end # resource path - local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v1/likes/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2584,7 +2584,7 @@ def get_v2_page_react_users_with_http_info(tenant_id, url_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling PublicApi.get_v2_page_react_users" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}/list'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}/list'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2651,7 +2651,7 @@ def get_v2_page_reacts_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "Missing the required parameter 'url_id' when calling PublicApi.get_v2_page_reacts" end # resource path - local_var_path = '/page-reacts/v2/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/page-reacts/v2/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2725,7 +2725,7 @@ def lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.lock_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/lock'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/lock'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2853,7 +2853,7 @@ def pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {}) fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.pin_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/pin'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/pin'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2932,7 +2932,7 @@ def react_feed_post_public_with_http_info(tenant_id, post_id, react_body_params, fail ArgumentError, "Missing the required parameter 'react_body_params' when calling PublicApi.react_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/react/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/react/{postId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{postId}', CGI.escape(post_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3158,7 +3158,7 @@ def search_users_with_http_info(tenant_id, url_id, opts = {}) fail ArgumentError, "invalid value for \"search_section\", must be one of #{allowable_values}" end # resource path - local_var_path = '/user-search/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/user-search/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3244,7 +3244,7 @@ def set_comment_text_with_http_info(tenant_id, comment_id, broadcast_id, comment fail ArgumentError, "Missing the required parameter 'comment_text_update_request' when calling PublicApi.set_comment_text" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/update-text'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/update-text'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3325,7 +3325,7 @@ def un_block_comment_public_with_http_info(tenant_id, comment_id, public_block_f fail ArgumentError, "Missing the required parameter 'public_block_from_comment_params' when calling PublicApi.un_block_comment_public" end # resource path - local_var_path = '/block-from-comment/{commentId}'.sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/block-from-comment/{commentId}'.sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3405,7 +3405,7 @@ def un_lock_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = { fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.un_lock_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/unlock'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/unlock'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3480,7 +3480,7 @@ def un_pin_comment_with_http_info(tenant_id, comment_id, broadcast_id, opts = {} fail ArgumentError, "Missing the required parameter 'broadcast_id' when calling PublicApi.un_pin_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/unpin'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/unpin'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3557,7 +3557,7 @@ def update_feed_post_public_with_http_info(tenant_id, post_id, update_feed_post_ fail ArgumentError, "Missing the required parameter 'update_feed_post_params' when calling PublicApi.update_feed_post_public" end # resource path - local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'postId' + '}', CGI.escape(post_id.to_s)) + local_var_path = '/feed-posts/{tenantId}/{postId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{postId}', CGI.escape(post_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3650,7 +3650,7 @@ def update_user_notification_comment_subscription_status_with_http_info(tenant_i fail ArgumentError, "Missing the required parameter 'comment_id' when calling PublicApi.update_user_notification_comment_subscription_status" end # resource path - local_var_path = '/user-notifications/{notificationId}/mark-opted/{optedInOrOut}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'optedInOrOut' + '}', CGI.escape(opted_in_or_out.to_s)) + local_var_path = '/user-notifications/{notificationId}/mark-opted/{optedInOrOut}'.sub('{notificationId}', CGI.escape(notification_id.to_s)).sub('{optedInOrOut}', CGI.escape(opted_in_or_out.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3745,7 +3745,7 @@ def update_user_notification_page_subscription_status_with_http_info(tenant_id, fail ArgumentError, "invalid value for \"subscribed_or_unsubscribed\", must be one of #{allowable_values}" end # resource path - local_var_path = '/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}'.sub('{' + 'subscribedOrUnsubscribed' + '}', CGI.escape(subscribed_or_unsubscribed.to_s)) + local_var_path = '/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}'.sub('{subscribedOrUnsubscribed}', CGI.escape(subscribed_or_unsubscribed.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3828,7 +3828,7 @@ def update_user_notification_status_with_http_info(tenant_id, notification_id, n fail ArgumentError, "invalid value for \"new_status\", must be one of #{allowable_values}" end # resource path - local_var_path = '/user-notifications/{notificationId}/mark/{newStatus}'.sub('{' + 'notificationId' + '}', CGI.escape(notification_id.to_s)).sub('{' + 'newStatus' + '}', CGI.escape(new_status.to_s)) + local_var_path = '/user-notifications/{notificationId}/mark/{newStatus}'.sub('{notificationId}', CGI.escape(notification_id.to_s)).sub('{newStatus}', CGI.escape(new_status.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3901,7 +3901,7 @@ def upload_image_with_http_info(tenant_id, file, opts = {}) fail ArgumentError, "Missing the required parameter 'file' when calling PublicApi.upload_image" end # resource path - local_var_path = '/upload-image/{tenantId}'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) + local_var_path = '/upload-image/{tenantId}'.sub('{tenantId}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3996,7 +3996,7 @@ def vote_comment_with_http_info(tenant_id, comment_id, url_id, broadcast_id, vot fail ArgumentError, "Missing the required parameter 'vote_body_params' when calling PublicApi.vote_comment" end # resource path - local_var_path = '/comments/{tenantId}/{commentId}/vote'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'commentId' + '}', CGI.escape(comment_id.to_s)) + local_var_path = '/comments/{tenantId}/{commentId}/vote'.sub('{tenantId}', CGI.escape(tenant_id.to_s)).sub('{commentId}', CGI.escape(comment_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/client/lib/fastcomments-client/api_client.rb b/client/lib/fastcomments-client/api_client.rb index 6edf407..a56359e 100644 --- a/client/lib/fastcomments-client/api_client.rb +++ b/client/lib/fastcomments-client/api_client.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -278,9 +278,13 @@ def convert_to_type(data, return_type) data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else - # models (e.g. Pet) or oneOf + # models (e.g. Pet) or oneOf/anyOf klass = FastCommentsClient.const_get(return_type) - klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) + if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) + klass.build(data) + else + klass.build_from_hash(data) + end end end diff --git a/client/lib/fastcomments-client/api_error.rb b/client/lib/fastcomments-client/api_error.rb index fb5d552..84257b2 100644 --- a/client/lib/fastcomments-client/api_error.rb +++ b/client/lib/fastcomments-client/api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/api_model_base.rb b/client/lib/fastcomments-client/api_model_base.rb new file mode 100644 index 0000000..1affa2b --- /dev/null +++ b/client/lib/fastcomments-client/api_model_base.rb @@ -0,0 +1,88 @@ +=begin +#fastcomments + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +The version of the OpenAPI document: 0.0.0 + +Generated by: https://openapi-generator.tech +Generator version: 7.23.0-SNAPSHOT + +=end + +module FastCommentsClient + class ApiModelBase + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = FastCommentsClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/client/lib/fastcomments-client/configuration.rb b/client/lib/fastcomments-client/configuration.rb index 531c441..bcb0b1d 100644 --- a/client/lib/fastcomments-client/configuration.rb +++ b/client/lib/fastcomments-client/configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/add_domain_config_params.rb b/client/lib/fastcomments-client/models/add_domain_config_params.rb index 5adb578..872d70a 100644 --- a/client/lib/fastcomments-client/models/add_domain_config_params.rb +++ b/client/lib/fastcomments-client/models/add_domain_config_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddDomainConfigParams + class AddDomainConfigParams < ApiModelBase attr_accessor :domain attr_accessor :email_from_name @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/add_domain_config_response.rb b/client/lib/fastcomments-client/models/add_domain_config_response.rb index 5673cba..5b4de85 100644 --- a/client/lib/fastcomments-client/models/add_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/add_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb b/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb index 24ef689..b92109a 100644 --- a/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb +++ b/client/lib/fastcomments-client/models/add_domain_config_response_any_of.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddDomainConfigResponseAnyOf + class AddDomainConfigResponseAnyOf < ApiModelBase attr_accessor :configuration attr_accessor :status @@ -141,61 +141,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -212,24 +157,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/add_page_api_response.rb b/client/lib/fastcomments-client/models/add_page_api_response.rb index 1450e37..1823fd6 100644 --- a/client/lib/fastcomments-client/models/add_page_api_response.rb +++ b/client/lib/fastcomments-client/models/add_page_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddPageAPIResponse + class AddPageAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/add_sso_user_api_response.rb b/client/lib/fastcomments-client/models/add_sso_user_api_response.rb index d29a7de..42cb4c8 100644 --- a/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/add_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AddSSOUserAPIResponse + class AddSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb b/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb index f30d550..1a73d2b 100644 --- a/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb +++ b/client/lib/fastcomments-client/models/adjust_comment_votes_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AdjustCommentVotesParams + class AdjustCommentVotesParams < ApiModelBase attr_accessor :adjust_vote_amount # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/adjust_votes_response.rb b/client/lib/fastcomments-client/models/adjust_votes_response.rb index 8d1985f..42b35c0 100644 --- a/client/lib/fastcomments-client/models/adjust_votes_response.rb +++ b/client/lib/fastcomments-client/models/adjust_votes_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AdjustVotesResponse + class AdjustVotesResponse < ApiModelBase attr_accessor :status attr_accessor :new_comment_votes @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregate_question_results_response.rb b/client/lib/fastcomments-client/models/aggregate_question_results_response.rb index 08b80e2..401e838 100644 --- a/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +++ b/client/lib/fastcomments-client/models/aggregate_question_results_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregateQuestionResultsResponse + class AggregateQuestionResultsResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregate_response.rb b/client/lib/fastcomments-client/models/aggregate_response.rb index 89c69bb..b802916 100644 --- a/client/lib/fastcomments-client/models/aggregate_response.rb +++ b/client/lib/fastcomments-client/models/aggregate_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/aggregate_time_bucket.rb b/client/lib/fastcomments-client/models/aggregate_time_bucket.rb index 0f5854e..fa98b1a 100644 --- a/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +++ b/client/lib/fastcomments-client/models/aggregate_time_bucket.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/aggregation_api_error.rb b/client/lib/fastcomments-client/models/aggregation_api_error.rb index c0115f2..195395b 100644 --- a/client/lib/fastcomments-client/models/aggregation_api_error.rb +++ b/client/lib/fastcomments-client/models/aggregation_api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationAPIError + class AggregationAPIError < ApiModelBase attr_accessor :status attr_accessor :reason @@ -228,61 +228,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -299,24 +244,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_item.rb b/client/lib/fastcomments-client/models/aggregation_item.rb index 746f943..34dc4a5 100644 --- a/client/lib/fastcomments-client/models/aggregation_item.rb +++ b/client/lib/fastcomments-client/models/aggregation_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationItem + class AggregationItem < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :groups @@ -129,61 +129,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -200,24 +145,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_op_type.rb b/client/lib/fastcomments-client/models/aggregation_op_type.rb index fadfdb5..64ef2ec 100644 --- a/client/lib/fastcomments-client/models/aggregation_op_type.rb +++ b/client/lib/fastcomments-client/models/aggregation_op_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/aggregation_operation.rb b/client/lib/fastcomments-client/models/aggregation_operation.rb index 5f87916..739e4b3 100644 --- a/client/lib/fastcomments-client/models/aggregation_operation.rb +++ b/client/lib/fastcomments-client/models/aggregation_operation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -15,7 +15,7 @@ module FastCommentsClient # An operation that will be applied on a field - class AggregationOperation + class AggregationOperation < ApiModelBase # The field to operate on attr_accessor :field @@ -212,61 +212,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -283,24 +228,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_request.rb b/client/lib/fastcomments-client/models/aggregation_request.rb index fb9516e..bb336af 100644 --- a/client/lib/fastcomments-client/models/aggregation_request.rb +++ b/client/lib/fastcomments-client/models/aggregation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -15,7 +15,7 @@ module FastCommentsClient # The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort - class AggregationRequest + class AggregationRequest < ApiModelBase attr_accessor :query attr_accessor :resource_name @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_request_sort.rb b/client/lib/fastcomments-client/models/aggregation_request_sort.rb index f672889..58ad1f2 100644 --- a/client/lib/fastcomments-client/models/aggregation_request_sort.rb +++ b/client/lib/fastcomments-client/models/aggregation_request_sort.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationRequestSort + class AggregationRequestSort < ApiModelBase attr_accessor :dir attr_accessor :field @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_response.rb b/client/lib/fastcomments-client/models/aggregation_response.rb index b41e3d0..31d65d4 100644 --- a/client/lib/fastcomments-client/models/aggregation_response.rb +++ b/client/lib/fastcomments-client/models/aggregation_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -15,7 +15,7 @@ module FastCommentsClient # The API response returns the aggregated data along with simple stats - class AggregationResponse + class AggregationResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_response_stats.rb b/client/lib/fastcomments-client/models/aggregation_response_stats.rb index 2a86e0f..70b1a6c 100644 --- a/client/lib/fastcomments-client/models/aggregation_response_stats.rb +++ b/client/lib/fastcomments-client/models/aggregation_response_stats.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationResponseStats + class AggregationResponseStats < ApiModelBase attr_accessor :time_ms attr_accessor :scanned @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/aggregation_value.rb b/client/lib/fastcomments-client/models/aggregation_value.rb index f611301..ba3c77f 100644 --- a/client/lib/fastcomments-client/models/aggregation_value.rb +++ b/client/lib/fastcomments-client/models/aggregation_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AggregationValue + class AggregationValue < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :groups @@ -168,61 +168,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -239,24 +184,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_audit_log.rb b/client/lib/fastcomments-client/models/api_audit_log.rb index 20ea1d2..ea636df 100644 --- a/client/lib/fastcomments-client/models/api_audit_log.rb +++ b/client/lib/fastcomments-client/models/api_audit_log.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIAuditLog + class APIAuditLog < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -318,61 +318,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -389,24 +334,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ban_user_change_log.rb b/client/lib/fastcomments-client/models/api_ban_user_change_log.rb index ee071df..4a68151 100644 --- a/client/lib/fastcomments-client/models/api_ban_user_change_log.rb +++ b/client/lib/fastcomments-client/models/api_ban_user_change_log.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBanUserChangeLog + class APIBanUserChangeLog < ApiModelBase attr_accessor :created_banned_user_id attr_accessor :updated_banned_user_id @@ -155,61 +155,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -226,24 +171,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb b/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb index 754c0e2..0f6f8dc 100644 --- a/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb +++ b/client/lib/fastcomments-client/models/api_ban_user_changed_values.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBanUserChangedValues + class APIBanUserChangedValues < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -239,61 +239,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -310,24 +255,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_banned_user.rb b/client/lib/fastcomments-client/models/api_banned_user.rb index 0fc2679..bf303f5 100644 --- a/client/lib/fastcomments-client/models/api_banned_user.rb +++ b/client/lib/fastcomments-client/models/api_banned_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBannedUser + class APIBannedUser < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -360,61 +360,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -431,24 +376,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb b/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb index 1f8fecc..3dd3c98 100644 --- a/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb +++ b/client/lib/fastcomments-client/models/api_banned_user_with_multi_match_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIBannedUserWithMultiMatchInfo + class APIBannedUserWithMultiMatchInfo < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -281,61 +281,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -352,24 +297,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment.rb b/client/lib/fastcomments-client/models/api_comment.rb index 7371255..667cf97 100644 --- a/client/lib/fastcomments-client/models/api_comment.rb +++ b/client/lib/fastcomments-client/models/api_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIComment + class APIComment < ApiModelBase attr_accessor :id attr_accessor :ai_determined_spam @@ -794,61 +794,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -865,24 +810,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment_base.rb b/client/lib/fastcomments-client/models/api_comment_base.rb index 37b0e79..747914b 100644 --- a/client/lib/fastcomments-client/models/api_comment_base.rb +++ b/client/lib/fastcomments-client/models/api_comment_base.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICommentBase + class APICommentBase < ApiModelBase attr_accessor :id attr_accessor :ai_determined_spam @@ -787,61 +787,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -858,24 +803,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment_base_meta.rb b/client/lib/fastcomments-client/models/api_comment_base_meta.rb index c63aa6f..28f4deb 100644 --- a/client/lib/fastcomments-client/models/api_comment_base_meta.rb +++ b/client/lib/fastcomments-client/models/api_comment_base_meta.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICommentBaseMeta + class APICommentBaseMeta < ApiModelBase attr_accessor :wp_user_id attr_accessor :wp_post_id @@ -135,61 +135,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -206,24 +151,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb b/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb index b18c65f..38c0b1b 100644 --- a/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb +++ b/client/lib/fastcomments-client/models/api_comment_common_banned_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICommentCommonBannedUser + class APICommentCommonBannedUser < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -246,61 +246,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -317,24 +262,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_create_user_badge_response.rb b/client/lib/fastcomments-client/models/api_create_user_badge_response.rb index b67732c..e42608b 100644 --- a/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/api_create_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APICreateUserBadgeResponse + class APICreateUserBadgeResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge @@ -202,61 +202,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -273,24 +218,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_domain_configuration.rb b/client/lib/fastcomments-client/models/api_domain_configuration.rb index a90308c..8eaef95 100644 --- a/client/lib/fastcomments-client/models/api_domain_configuration.rb +++ b/client/lib/fastcomments-client/models/api_domain_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIDomainConfiguration + class APIDomainConfiguration < ApiModelBase attr_accessor :id attr_accessor :domain @@ -334,61 +334,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -405,24 +350,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_empty_response.rb b/client/lib/fastcomments-client/models/api_empty_response.rb index 15e3bb3..41144eb 100644 --- a/client/lib/fastcomments-client/models/api_empty_response.rb +++ b/client/lib/fastcomments-client/models/api_empty_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIEmptyResponse + class APIEmptyResponse < ApiModelBase attr_accessor :status class EnumAttributeValidator @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_empty_success_response.rb b/client/lib/fastcomments-client/models/api_empty_success_response.rb index 694931e..36fd425 100644 --- a/client/lib/fastcomments-client/models/api_empty_success_response.rb +++ b/client/lib/fastcomments-client/models/api_empty_success_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIEmptySuccessResponse + class APIEmptySuccessResponse < ApiModelBase attr_accessor :status class EnumAttributeValidator @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_error.rb b/client/lib/fastcomments-client/models/api_error.rb index 025c011..5ce6bb1 100644 --- a/client/lib/fastcomments-client/models/api_error.rb +++ b/client/lib/fastcomments-client/models/api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIError + class APIError < ApiModelBase attr_accessor :status attr_accessor :reason @@ -262,61 +262,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -333,24 +278,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_comment_response.rb b/client/lib/fastcomments-client/models/api_get_comment_response.rb index 9a9a9e7..a80d6d6 100644 --- a/client/lib/fastcomments-client/models/api_get_comment_response.rb +++ b/client/lib/fastcomments-client/models/api_get_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetCommentResponse + class APIGetCommentResponse < ApiModelBase attr_accessor :status attr_accessor :comment @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_comments_response.rb b/client/lib/fastcomments-client/models/api_get_comments_response.rb index 5e15f4c..913801a 100644 --- a/client/lib/fastcomments-client/models/api_get_comments_response.rb +++ b/client/lib/fastcomments-client/models/api_get_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetCommentsResponse + class APIGetCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :comments @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb b/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb index e7b380a..665130c 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgeProgressListResponse + class APIGetUserBadgeProgressListResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge_progresses @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb b/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb index 17a7b9f..6818407 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgeProgressResponse + class APIGetUserBadgeProgressResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge_progress @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badge_response.rb b/client/lib/fastcomments-client/models/api_get_user_badge_response.rb index 30f4404..4a0e343 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgeResponse + class APIGetUserBadgeResponse < ApiModelBase attr_accessor :status attr_accessor :user_badge @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_get_user_badges_response.rb b/client/lib/fastcomments-client/models/api_get_user_badges_response.rb index ce20ca9..bfb5714 100644 --- a/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +++ b/client/lib/fastcomments-client/models/api_get_user_badges_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIGetUserBadgesResponse + class APIGetUserBadgesResponse < ApiModelBase attr_accessor :status attr_accessor :user_badges @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb b/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb index 02bc065..610eff9 100644 --- a/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb +++ b/client/lib/fastcomments-client/models/api_moderate_get_user_ban_preferences_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIModerateGetUserBanPreferencesResponse + class APIModerateGetUserBanPreferencesResponse < ApiModelBase attr_accessor :preferences attr_accessor :status @@ -177,61 +177,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -248,24 +193,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb b/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb index b89d3f9..153733b 100644 --- a/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb +++ b/client/lib/fastcomments-client/models/api_moderate_user_ban_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIModerateUserBanPreferences + class APIModerateUserBanPreferences < ApiModelBase attr_accessor :should_ban_email attr_accessor :should_ban_by_ip @@ -221,61 +221,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -292,24 +237,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_page.rb b/client/lib/fastcomments-client/models/api_page.rb index b3a6f21..f59e539 100644 --- a/client/lib/fastcomments-client/models/api_page.rb +++ b/client/lib/fastcomments-client/models/api_page.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIPage + class APIPage < ApiModelBase attr_accessor :is_closed attr_accessor :accessible_by_group_ids @@ -302,61 +302,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -373,24 +318,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_save_comment_response.rb b/client/lib/fastcomments-client/models/api_save_comment_response.rb index 8c17e75..d03ade7 100644 --- a/client/lib/fastcomments-client/models/api_save_comment_response.rb +++ b/client/lib/fastcomments-client/models/api_save_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APISaveCommentResponse + class APISaveCommentResponse < ApiModelBase attr_accessor :status attr_accessor :comment @@ -215,61 +215,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -286,24 +231,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_status.rb b/client/lib/fastcomments-client/models/api_status.rb index 0612e35..87b4b85 100644 --- a/client/lib/fastcomments-client/models/api_status.rb +++ b/client/lib/fastcomments-client/models/api_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/api_tenant.rb b/client/lib/fastcomments-client/models/api_tenant.rb index 2766edc..1704546 100644 --- a/client/lib/fastcomments-client/models/api_tenant.rb +++ b/client/lib/fastcomments-client/models/api_tenant.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITenant + class APITenant < ApiModelBase attr_accessor :id attr_accessor :name @@ -562,61 +562,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -633,24 +578,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb b/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb index 97b5351..688eac8 100644 --- a/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +++ b/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITenantDailyUsage + class APITenantDailyUsage < ApiModelBase attr_accessor :id attr_accessor :tenant_id @@ -611,61 +611,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -682,24 +627,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ticket.rb b/client/lib/fastcomments-client/models/api_ticket.rb index 83acd63..8a8ec4c 100644 --- a/client/lib/fastcomments-client/models/api_ticket.rb +++ b/client/lib/fastcomments-client/models/api_ticket.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITicket + class APITicket < ApiModelBase attr_accessor :_id attr_accessor :url_id @@ -353,61 +353,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -424,24 +369,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ticket_detail.rb b/client/lib/fastcomments-client/models/api_ticket_detail.rb index 8013b4a..df4d7f0 100644 --- a/client/lib/fastcomments-client/models/api_ticket_detail.rb +++ b/client/lib/fastcomments-client/models/api_ticket_detail.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITicketDetail + class APITicketDetail < ApiModelBase attr_accessor :_id attr_accessor :url_id @@ -411,61 +411,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -482,24 +427,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_ticket_file.rb b/client/lib/fastcomments-client/models/api_ticket_file.rb index f48d2d5..71300ba 100644 --- a/client/lib/fastcomments-client/models/api_ticket_file.rb +++ b/client/lib/fastcomments-client/models/api_ticket_file.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APITicketFile + class APITicketFile < ApiModelBase attr_accessor :id attr_accessor :s3_key @@ -360,61 +360,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -431,24 +376,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/api_user_subscription.rb b/client/lib/fastcomments-client/models/api_user_subscription.rb index c761e2e..9944349 100644 --- a/client/lib/fastcomments-client/models/api_user_subscription.rb +++ b/client/lib/fastcomments-client/models/api_user_subscription.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APIUserSubscription + class APIUserSubscription < ApiModelBase attr_accessor :notification_frequency attr_accessor :created_at @@ -240,61 +240,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -311,24 +256,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/apisso_user.rb b/client/lib/fastcomments-client/models/apisso_user.rb index 878b51b..46bacad 100644 --- a/client/lib/fastcomments-client/models/apisso_user.rb +++ b/client/lib/fastcomments-client/models/apisso_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class APISSOUser + class APISSOUser < ApiModelBase attr_accessor :id attr_accessor :username @@ -503,61 +503,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -574,24 +519,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/award_user_badge_response.rb b/client/lib/fastcomments-client/models/award_user_badge_response.rb index dc7207e..e470c96 100644 --- a/client/lib/fastcomments-client/models/award_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/award_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class AwardUserBadgeResponse + class AwardUserBadgeResponse < ApiModelBase attr_accessor :notes attr_accessor :badges @@ -187,61 +187,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -258,24 +203,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb b/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb index 18a6c4d..9b22477 100644 --- a/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb +++ b/client/lib/fastcomments-client/models/ban_user_from_comment_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BanUserFromCommentResult + class BanUserFromCommentResult < ApiModelBase attr_accessor :status attr_accessor :changelog @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/ban_user_undo_params.rb b/client/lib/fastcomments-client/models/ban_user_undo_params.rb index 7b2e2b4..cebe187 100644 --- a/client/lib/fastcomments-client/models/ban_user_undo_params.rb +++ b/client/lib/fastcomments-client/models/ban_user_undo_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BanUserUndoParams + class BanUserUndoParams < ApiModelBase attr_accessor :changelog # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/banned_user_match.rb b/client/lib/fastcomments-client/models/banned_user_match.rb index 99fa09a..886bad2 100644 --- a/client/lib/fastcomments-client/models/banned_user_match.rb +++ b/client/lib/fastcomments-client/models/banned_user_match.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BannedUserMatch + class BannedUserMatch < ApiModelBase attr_accessor :matched_on attr_accessor :matched_on_value @@ -177,61 +177,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -248,24 +193,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb b/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb index 4f4e389..fd2768c 100644 --- a/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb +++ b/client/lib/fastcomments-client/models/banned_user_match_matched_on_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/banned_user_match_type.rb b/client/lib/fastcomments-client/models/banned_user_match_type.rb index 23e9fac..b54116d 100644 --- a/client/lib/fastcomments-client/models/banned_user_match_type.rb +++ b/client/lib/fastcomments-client/models/banned_user_match_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/billing_info.rb b/client/lib/fastcomments-client/models/billing_info.rb index 9e18887..3a568ba 100644 --- a/client/lib/fastcomments-client/models/billing_info.rb +++ b/client/lib/fastcomments-client/models/billing_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BillingInfo + class BillingInfo < ApiModelBase attr_accessor :name attr_accessor :address @@ -294,61 +294,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -365,24 +310,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/block_from_comment_params.rb b/client/lib/fastcomments-client/models/block_from_comment_params.rb index 18b4e66..764b3df 100644 --- a/client/lib/fastcomments-client/models/block_from_comment_params.rb +++ b/client/lib/fastcomments-client/models/block_from_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BlockFromCommentParams + class BlockFromCommentParams < ApiModelBase attr_accessor :comment_ids_to_check # Attribute mapping from ruby-style variable name to JSON key. @@ -128,61 +128,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -199,24 +144,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/block_success.rb b/client/lib/fastcomments-client/models/block_success.rb index 76d1728..5e06b16 100644 --- a/client/lib/fastcomments-client/models/block_success.rb +++ b/client/lib/fastcomments-client/models/block_success.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BlockSuccess + class BlockSuccess < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/build_moderation_filter_params.rb b/client/lib/fastcomments-client/models/build_moderation_filter_params.rb index adb0fad..6261174 100644 --- a/client/lib/fastcomments-client/models/build_moderation_filter_params.rb +++ b/client/lib/fastcomments-client/models/build_moderation_filter_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BuildModerationFilterParams + class BuildModerationFilterParams < ApiModelBase attr_accessor :user_id attr_accessor :tenant_id @@ -196,61 +196,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -267,24 +212,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/build_moderation_filter_response.rb b/client/lib/fastcomments-client/models/build_moderation_filter_response.rb index 72384f1..6d03d69 100644 --- a/client/lib/fastcomments-client/models/build_moderation_filter_response.rb +++ b/client/lib/fastcomments-client/models/build_moderation_filter_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BuildModerationFilterResponse + class BuildModerationFilterResponse < ApiModelBase attr_accessor :status attr_accessor :moderation_filter @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb index 464c5a8..f782d27 100644 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkAggregateQuestionItem + class BulkAggregateQuestionItem < ApiModelBase attr_accessor :agg_id attr_accessor :question_id @@ -212,61 +212,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -283,24 +228,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb index c5b48bd..465d85d 100644 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkAggregateQuestionResultsRequest + class BulkAggregateQuestionResultsRequest < ApiModelBase attr_accessor :aggregations # Attribute mapping from ruby-style variable name to JSON key. @@ -145,61 +145,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -216,24 +161,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb index ef11934..01530ae 100644 --- a/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +++ b/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkAggregateQuestionResultsResponse + class BulkAggregateQuestionResultsResponse < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb index 36ce551..7379205 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkCreateHashTagsBody + class BulkCreateHashTagsBody < ApiModelBase attr_accessor :tenant_id attr_accessor :tags @@ -154,61 +154,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -225,24 +170,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb index 8b53525..b5cacf5 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkCreateHashTagsBodyTagsInner + class BulkCreateHashTagsBodyTagsInner < ApiModelBase attr_accessor :url attr_accessor :tag @@ -152,61 +152,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -223,24 +168,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb index 49ce957..46d8607 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkCreateHashTagsResponse + class BulkCreateHashTagsResponse < ApiModelBase attr_accessor :status attr_accessor :results @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb index be91e63..9de25c7 100644 --- a/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb +++ b/client/lib/fastcomments-client/models/bulk_create_hash_tags_response_results_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb b/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb index 30b02ec..7919d10 100644 --- a/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb +++ b/client/lib/fastcomments-client/models/bulk_pre_ban_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkPreBanParams + class BulkPreBanParams < ApiModelBase attr_accessor :comment_ids # Attribute mapping from ruby-style variable name to JSON key. @@ -145,61 +145,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -216,24 +161,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb b/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb index 838b815..90ec6d1 100644 --- a/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb +++ b/client/lib/fastcomments-client/models/bulk_pre_ban_summary.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class BulkPreBanSummary + class BulkPreBanSummary < ApiModelBase attr_accessor :status attr_accessor :total_related_comment_count @@ -281,61 +281,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -352,24 +297,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb b/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb index 7aec64e..29135ea 100644 --- a/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +++ b/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ChangeCommentPinStatusResponse + class ChangeCommentPinStatusResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :comment_positions @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_ticket_state_body.rb b/client/lib/fastcomments-client/models/change_ticket_state_body.rb index ed7b76a..7c2d7c0 100644 --- a/client/lib/fastcomments-client/models/change_ticket_state_body.rb +++ b/client/lib/fastcomments-client/models/change_ticket_state_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ChangeTicketStateBody + class ChangeTicketStateBody < ApiModelBase attr_accessor :state # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/change_ticket_state_response.rb b/client/lib/fastcomments-client/models/change_ticket_state_response.rb index cabdf0b..9f660bb 100644 --- a/client/lib/fastcomments-client/models/change_ticket_state_response.rb +++ b/client/lib/fastcomments-client/models/change_ticket_state_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ChangeTicketStateResponse + class ChangeTicketStateResponse < ApiModelBase attr_accessor :status attr_accessor :ticket @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/check_blocked_comments_response.rb b/client/lib/fastcomments-client/models/check_blocked_comments_response.rb index 8dc73fc..976e327 100644 --- a/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +++ b/client/lib/fastcomments-client/models/check_blocked_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CheckBlockedCommentsResponse + class CheckBlockedCommentsResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :comment_statuses @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb b/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb index 4f9b729..caee289 100644 --- a/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +++ b/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CombineQuestionResultsWithCommentsResponse + class CombineQuestionResultsWithCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_data.rb b/client/lib/fastcomments-client/models/comment_data.rb index a0b04b6..d260ffa 100644 --- a/client/lib/fastcomments-client/models/comment_data.rb +++ b/client/lib/fastcomments-client/models/comment_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentData + class CommentData < ApiModelBase attr_accessor :date attr_accessor :local_date_string @@ -435,61 +435,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -506,24 +451,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb b/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb index 411fdd9..ca7fb08 100644 --- a/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +++ b/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_log_data.rb b/client/lib/fastcomments-client/models/comment_log_data.rb index 30c0506..50c1507 100644 --- a/client/lib/fastcomments-client/models/comment_log_data.rb +++ b/client/lib/fastcomments-client/models/comment_log_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentLogData + class CommentLogData < ApiModelBase attr_accessor :clear_content attr_accessor :is_deleted_user @@ -584,61 +584,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -655,24 +600,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_log_entry.rb b/client/lib/fastcomments-client/models/comment_log_entry.rb index 931e9f1..c709791 100644 --- a/client/lib/fastcomments-client/models/comment_log_entry.rb +++ b/client/lib/fastcomments-client/models/comment_log_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentLogEntry + class CommentLogEntry < ApiModelBase attr_accessor :d attr_accessor :t @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_log_type.rb b/client/lib/fastcomments-client/models/comment_log_type.rb index 3b4ce98..e920fe3 100644 --- a/client/lib/fastcomments-client/models/comment_log_type.rb +++ b/client/lib/fastcomments-client/models/comment_log_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb b/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb index e309851..3d5de08 100644 --- a/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +++ b/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_questions_required.rb b/client/lib/fastcomments-client/models/comment_questions_required.rb index df4e891..28bf954 100644 --- a/client/lib/fastcomments-client/models/comment_questions_required.rb +++ b/client/lib/fastcomments-client/models/comment_questions_required.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_text_update_request.rb b/client/lib/fastcomments-client/models/comment_text_update_request.rb index ce56e5d..d26c6e5 100644 --- a/client/lib/fastcomments-client/models/comment_text_update_request.rb +++ b/client/lib/fastcomments-client/models/comment_text_update_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentTextUpdateRequest + class CommentTextUpdateRequest < ApiModelBase attr_accessor :comment attr_accessor :mentions @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb b/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb index 61b3d63..89958e0 100644 --- a/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +++ b/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comment_user_badge_info.rb b/client/lib/fastcomments-client/models/comment_user_badge_info.rb index 16a8f15..e6e1bb0 100644 --- a/client/lib/fastcomments-client/models/comment_user_badge_info.rb +++ b/client/lib/fastcomments-client/models/comment_user_badge_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentUserBadgeInfo + class CommentUserBadgeInfo < ApiModelBase attr_accessor :id attr_accessor :type @@ -255,61 +255,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -326,24 +271,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb b/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb index b8ad908..d9ef9bd 100644 --- a/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +++ b/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentUserHashTagInfo + class CommentUserHashTagInfo < ApiModelBase attr_accessor :id attr_accessor :tag @@ -190,61 +190,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -261,24 +206,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/comment_user_mention_info.rb b/client/lib/fastcomments-client/models/comment_user_mention_info.rb index 52ae622..9450048 100644 --- a/client/lib/fastcomments-client/models/comment_user_mention_info.rb +++ b/client/lib/fastcomments-client/models/comment_user_mention_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentUserMentionInfo + class CommentUserMentionInfo < ApiModelBase attr_accessor :id attr_accessor :tag @@ -230,61 +230,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -301,24 +246,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/commenter_name_formats.rb b/client/lib/fastcomments-client/models/commenter_name_formats.rb index 3b893fe..ccaf22d 100644 --- a/client/lib/fastcomments-client/models/commenter_name_formats.rb +++ b/client/lib/fastcomments-client/models/commenter_name_formats.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/comments_by_ids_params.rb b/client/lib/fastcomments-client/models/comments_by_ids_params.rb index 1be71dc..bf279dd 100644 --- a/client/lib/fastcomments-client/models/comments_by_ids_params.rb +++ b/client/lib/fastcomments-client/models/comments_by_ids_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CommentsByIdsParams + class CommentsByIdsParams < ApiModelBase attr_accessor :ids # Attribute mapping from ruby-style variable name to JSON key. @@ -145,61 +145,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -216,24 +161,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_api_page_data.rb b/client/lib/fastcomments-client/models/create_api_page_data.rb index a8d81af..18e6982 100644 --- a/client/lib/fastcomments-client/models/create_api_page_data.rb +++ b/client/lib/fastcomments-client/models/create_api_page_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateAPIPageData + class CreateAPIPageData < ApiModelBase attr_accessor :accessible_by_group_ids attr_accessor :root_comment_count @@ -224,61 +224,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -295,24 +240,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb b/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb index 286569b..92b32ec 100644 --- a/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +++ b/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateAPIUserSubscriptionData + class CreateAPIUserSubscriptionData < ApiModelBase attr_accessor :notification_frequency attr_accessor :page_title @@ -188,61 +188,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -259,24 +204,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_apisso_user_data.rb b/client/lib/fastcomments-client/models/create_apisso_user_data.rb index 515720b..bb94f5e 100644 --- a/client/lib/fastcomments-client/models/create_apisso_user_data.rb +++ b/client/lib/fastcomments-client/models/create_apisso_user_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateAPISSOUserData + class CreateAPISSOUserData < ApiModelBase attr_accessor :group_ids attr_accessor :has_blocked_users @@ -350,61 +350,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -421,24 +366,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_comment_params.rb b/client/lib/fastcomments-client/models/create_comment_params.rb index b358b2d..d6373f0 100644 --- a/client/lib/fastcomments-client/models/create_comment_params.rb +++ b/client/lib/fastcomments-client/models/create_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateCommentParams + class CreateCommentParams < ApiModelBase attr_accessor :date attr_accessor :local_date_string @@ -543,61 +543,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -614,24 +559,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_email_template_body.rb b/client/lib/fastcomments-client/models/create_email_template_body.rb index 0bdc503..39f90c6 100644 --- a/client/lib/fastcomments-client/models/create_email_template_body.rb +++ b/client/lib/fastcomments-client/models/create_email_template_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateEmailTemplateBody + class CreateEmailTemplateBody < ApiModelBase attr_accessor :email_template_id attr_accessor :display_name @@ -228,61 +228,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -299,24 +244,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_email_template_response.rb b/client/lib/fastcomments-client/models/create_email_template_response.rb index 1739a49..929f92e 100644 --- a/client/lib/fastcomments-client/models/create_email_template_response.rb +++ b/client/lib/fastcomments-client/models/create_email_template_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateEmailTemplateResponse + class CreateEmailTemplateResponse < ApiModelBase attr_accessor :status attr_accessor :email_template @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_feed_post_params.rb b/client/lib/fastcomments-client/models/create_feed_post_params.rb index e2505d8..e3a12e5 100644 --- a/client/lib/fastcomments-client/models/create_feed_post_params.rb +++ b/client/lib/fastcomments-client/models/create_feed_post_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateFeedPostParams + class CreateFeedPostParams < ApiModelBase attr_accessor :title attr_accessor :content_html @@ -198,61 +198,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -269,24 +214,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_feed_post_response.rb b/client/lib/fastcomments-client/models/create_feed_post_response.rb index f32da97..0eff5a4 100644 --- a/client/lib/fastcomments-client/models/create_feed_post_response.rb +++ b/client/lib/fastcomments-client/models/create_feed_post_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateFeedPostResponse + class CreateFeedPostResponse < ApiModelBase attr_accessor :status attr_accessor :feed_post @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_feed_posts_response.rb b/client/lib/fastcomments-client/models/create_feed_posts_response.rb index a80f0ab..5fd4508 100644 --- a/client/lib/fastcomments-client/models/create_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/create_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateFeedPostsResponse + class CreateFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_post @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_hash_tag_body.rb b/client/lib/fastcomments-client/models/create_hash_tag_body.rb index 133cac7..854e221 100644 --- a/client/lib/fastcomments-client/models/create_hash_tag_body.rb +++ b/client/lib/fastcomments-client/models/create_hash_tag_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateHashTagBody + class CreateHashTagBody < ApiModelBase attr_accessor :tenant_id attr_accessor :tag @@ -161,61 +161,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -232,24 +177,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_hash_tag_response.rb b/client/lib/fastcomments-client/models/create_hash_tag_response.rb index f29e56b..897c77d 100644 --- a/client/lib/fastcomments-client/models/create_hash_tag_response.rb +++ b/client/lib/fastcomments-client/models/create_hash_tag_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateHashTagResponse + class CreateHashTagResponse < ApiModelBase attr_accessor :status attr_accessor :hash_tag @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_moderator_body.rb b/client/lib/fastcomments-client/models/create_moderator_body.rb index 24727d8..baf81dc 100644 --- a/client/lib/fastcomments-client/models/create_moderator_body.rb +++ b/client/lib/fastcomments-client/models/create_moderator_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateModeratorBody + class CreateModeratorBody < ApiModelBase attr_accessor :name attr_accessor :email @@ -189,61 +189,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -260,24 +205,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_moderator_response.rb b/client/lib/fastcomments-client/models/create_moderator_response.rb index 39a7df2..ff42086 100644 --- a/client/lib/fastcomments-client/models/create_moderator_response.rb +++ b/client/lib/fastcomments-client/models/create_moderator_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateModeratorResponse + class CreateModeratorResponse < ApiModelBase attr_accessor :status attr_accessor :moderator @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_config_body.rb b/client/lib/fastcomments-client/models/create_question_config_body.rb index c9d6301..11a78bb 100644 --- a/client/lib/fastcomments-client/models/create_question_config_body.rb +++ b/client/lib/fastcomments-client/models/create_question_config_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionConfigBody + class CreateQuestionConfigBody < ApiModelBase attr_accessor :name attr_accessor :question @@ -315,61 +315,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -386,24 +331,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_config_response.rb b/client/lib/fastcomments-client/models/create_question_config_response.rb index 6ccb4af..697f03d 100644 --- a/client/lib/fastcomments-client/models/create_question_config_response.rb +++ b/client/lib/fastcomments-client/models/create_question_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionConfigResponse + class CreateQuestionConfigResponse < ApiModelBase attr_accessor :status attr_accessor :question_config @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_result_body.rb b/client/lib/fastcomments-client/models/create_question_result_body.rb index d8e349b..2b78028 100644 --- a/client/lib/fastcomments-client/models/create_question_result_body.rb +++ b/client/lib/fastcomments-client/models/create_question_result_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionResultBody + class CreateQuestionResultBody < ApiModelBase attr_accessor :url_id attr_accessor :value @@ -234,61 +234,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -305,24 +250,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_question_result_response.rb b/client/lib/fastcomments-client/models/create_question_result_response.rb index e87fd3e..d44d358 100644 --- a/client/lib/fastcomments-client/models/create_question_result_response.rb +++ b/client/lib/fastcomments-client/models/create_question_result_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateQuestionResultResponse + class CreateQuestionResultResponse < ApiModelBase attr_accessor :status attr_accessor :question_result @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_subscription_api_response.rb b/client/lib/fastcomments-client/models/create_subscription_api_response.rb index 79f2bd5..20776fc 100644 --- a/client/lib/fastcomments-client/models/create_subscription_api_response.rb +++ b/client/lib/fastcomments-client/models/create_subscription_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateSubscriptionAPIResponse + class CreateSubscriptionAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_body.rb b/client/lib/fastcomments-client/models/create_tenant_body.rb index 1cfb80b..1da15c5 100644 --- a/client/lib/fastcomments-client/models/create_tenant_body.rb +++ b/client/lib/fastcomments-client/models/create_tenant_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantBody + class CreateTenantBody < ApiModelBase attr_accessor :name attr_accessor :domain_configuration @@ -363,61 +363,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -434,24 +379,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_package_body.rb b/client/lib/fastcomments-client/models/create_tenant_package_body.rb index b4a18b8..b069a40 100644 --- a/client/lib/fastcomments-client/models/create_tenant_package_body.rb +++ b/client/lib/fastcomments-client/models/create_tenant_package_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantPackageBody + class CreateTenantPackageBody < ApiModelBase attr_accessor :name attr_accessor :monthly_cost_usd @@ -785,61 +785,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -856,24 +801,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_package_response.rb b/client/lib/fastcomments-client/models/create_tenant_package_response.rb index 08c99da..3903266 100644 --- a/client/lib/fastcomments-client/models/create_tenant_package_response.rb +++ b/client/lib/fastcomments-client/models/create_tenant_package_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantPackageResponse + class CreateTenantPackageResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_package @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_response.rb b/client/lib/fastcomments-client/models/create_tenant_response.rb index 0647ab5..20b9ca7 100644 --- a/client/lib/fastcomments-client/models/create_tenant_response.rb +++ b/client/lib/fastcomments-client/models/create_tenant_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantResponse + class CreateTenantResponse < ApiModelBase attr_accessor :status attr_accessor :tenant @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_user_body.rb b/client/lib/fastcomments-client/models/create_tenant_user_body.rb index 3579103..dfa013f 100644 --- a/client/lib/fastcomments-client/models/create_tenant_user_body.rb +++ b/client/lib/fastcomments-client/models/create_tenant_user_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantUserBody + class CreateTenantUserBody < ApiModelBase attr_accessor :username attr_accessor :email @@ -369,61 +369,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -440,24 +385,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_tenant_user_response.rb b/client/lib/fastcomments-client/models/create_tenant_user_response.rb index f27f791..d513887 100644 --- a/client/lib/fastcomments-client/models/create_tenant_user_response.rb +++ b/client/lib/fastcomments-client/models/create_tenant_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTenantUserResponse + class CreateTenantUserResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_user @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_ticket_body.rb b/client/lib/fastcomments-client/models/create_ticket_body.rb index e35a0d1..97f2425 100644 --- a/client/lib/fastcomments-client/models/create_ticket_body.rb +++ b/client/lib/fastcomments-client/models/create_ticket_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTicketBody + class CreateTicketBody < ApiModelBase attr_accessor :subject # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_ticket_response.rb b/client/lib/fastcomments-client/models/create_ticket_response.rb index 2122527..63bb281 100644 --- a/client/lib/fastcomments-client/models/create_ticket_response.rb +++ b/client/lib/fastcomments-client/models/create_ticket_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateTicketResponse + class CreateTicketResponse < ApiModelBase attr_accessor :status attr_accessor :ticket @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_user_badge_params.rb b/client/lib/fastcomments-client/models/create_user_badge_params.rb index 94c2c98..67fa667 100644 --- a/client/lib/fastcomments-client/models/create_user_badge_params.rb +++ b/client/lib/fastcomments-client/models/create_user_badge_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateUserBadgeParams + class CreateUserBadgeParams < ApiModelBase attr_accessor :user_id attr_accessor :badge_id @@ -178,61 +178,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -249,24 +194,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/create_v1_page_react.rb b/client/lib/fastcomments-client/models/create_v1_page_react.rb index ad2823f..ba646a8 100644 --- a/client/lib/fastcomments-client/models/create_v1_page_react.rb +++ b/client/lib/fastcomments-client/models/create_v1_page_react.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CreateV1PageReact + class CreateV1PageReact < ApiModelBase attr_accessor :code attr_accessor :status @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/custom_config_parameters.rb b/client/lib/fastcomments-client/models/custom_config_parameters.rb index d9395d4..fc9327c 100644 --- a/client/lib/fastcomments-client/models/custom_config_parameters.rb +++ b/client/lib/fastcomments-client/models/custom_config_parameters.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CustomConfigParameters + class CustomConfigParameters < ApiModelBase attr_accessor :absolute_and_relative_dates attr_accessor :absolute_dates @@ -962,61 +962,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -1033,24 +978,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/custom_email_template.rb b/client/lib/fastcomments-client/models/custom_email_template.rb index 3baa6e0..a798685 100644 --- a/client/lib/fastcomments-client/models/custom_email_template.rb +++ b/client/lib/fastcomments-client/models/custom_email_template.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class CustomEmailTemplate + class CustomEmailTemplate < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -348,61 +348,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -419,24 +364,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_comment_action.rb b/client/lib/fastcomments-client/models/delete_comment_action.rb index a75057c..50a9e9b 100644 --- a/client/lib/fastcomments-client/models/delete_comment_action.rb +++ b/client/lib/fastcomments-client/models/delete_comment_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/delete_comment_result.rb b/client/lib/fastcomments-client/models/delete_comment_result.rb index 1fddde0..4a98eba 100644 --- a/client/lib/fastcomments-client/models/delete_comment_result.rb +++ b/client/lib/fastcomments-client/models/delete_comment_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteCommentResult + class DeleteCommentResult < ApiModelBase attr_accessor :action attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_domain_config_response.rb b/client/lib/fastcomments-client/models/delete_domain_config_response.rb index 9fe4b5b..a65c3a4 100644 --- a/client/lib/fastcomments-client/models/delete_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/delete_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteDomainConfigResponse + class DeleteDomainConfigResponse < ApiModelBase attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -129,61 +129,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -200,24 +145,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb b/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb index 7971180..4b299b9 100644 --- a/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb +++ b/client/lib/fastcomments-client/models/delete_feed_post_public_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteFeedPostPublicResponse + class DeleteFeedPostPublicResponse < ApiModelBase attr_accessor :status class EnumAttributeValidator @@ -165,61 +165,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -236,24 +181,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb b/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb index 1c787ed..7272073 100644 --- a/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb +++ b/client/lib/fastcomments-client/models/delete_hash_tag_request_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteHashTagRequestBody + class DeleteHashTagRequestBody < ApiModelBase attr_accessor :tenant_id # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_page_api_response.rb b/client/lib/fastcomments-client/models/delete_page_api_response.rb index a4d137e..bc5d50b 100644 --- a/client/lib/fastcomments-client/models/delete_page_api_response.rb +++ b/client/lib/fastcomments-client/models/delete_page_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeletePageAPIResponse + class DeletePageAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -161,61 +161,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -232,24 +177,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb b/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb index f43d076..76512db 100644 --- a/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteSSOUserAPIResponse + class DeleteSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/delete_subscription_api_response.rb b/client/lib/fastcomments-client/models/delete_subscription_api_response.rb index 7ae9a33..cce5940 100644 --- a/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +++ b/client/lib/fastcomments-client/models/delete_subscription_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeleteSubscriptionAPIResponse + class DeleteSubscriptionAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -161,61 +161,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -232,24 +177,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb b/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb index feac24e..076a186 100644 --- a/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +++ b/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class DeletedCommentResultComment + class DeletedCommentResultComment < ApiModelBase attr_accessor :is_deleted attr_accessor :comment_html @@ -188,61 +188,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -259,24 +204,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/digest_email_frequency.rb b/client/lib/fastcomments-client/models/digest_email_frequency.rb index 3bb0541..961ee4f 100644 --- a/client/lib/fastcomments-client/models/digest_email_frequency.rb +++ b/client/lib/fastcomments-client/models/digest_email_frequency.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/email_template_definition.rb b/client/lib/fastcomments-client/models/email_template_definition.rb index 38da101..9cab10f 100644 --- a/client/lib/fastcomments-client/models/email_template_definition.rb +++ b/client/lib/fastcomments-client/models/email_template_definition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class EmailTemplateDefinition + class EmailTemplateDefinition < ApiModelBase attr_accessor :email_template_id # Construct a type with a set of properties K of type T @@ -227,61 +227,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -298,24 +243,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/email_template_render_error_response.rb b/client/lib/fastcomments-client/models/email_template_render_error_response.rb index c19aa87..86c971f 100644 --- a/client/lib/fastcomments-client/models/email_template_render_error_response.rb +++ b/client/lib/fastcomments-client/models/email_template_render_error_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class EmailTemplateRenderErrorResponse + class EmailTemplateRenderErrorResponse < ApiModelBase attr_accessor :id attr_accessor :tenant_id @@ -299,61 +299,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -370,24 +315,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/event_log_entry.rb b/client/lib/fastcomments-client/models/event_log_entry.rb index 359bcbc..cd94f2f 100644 --- a/client/lib/fastcomments-client/models/event_log_entry.rb +++ b/client/lib/fastcomments-client/models/event_log_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class EventLogEntry + class EventLogEntry < ApiModelBase attr_accessor :_id attr_accessor :created_at @@ -273,61 +273,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -344,24 +289,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/f_comment.rb b/client/lib/fastcomments-client/models/f_comment.rb index a97a4e8..bf8a3b3 100644 --- a/client/lib/fastcomments-client/models/f_comment.rb +++ b/client/lib/fastcomments-client/models/f_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FComment + class FComment < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -978,61 +978,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -1049,24 +994,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/f_comment_meta.rb b/client/lib/fastcomments-client/models/f_comment_meta.rb index 07d979e..0af7631 100644 --- a/client/lib/fastcomments-client/models/f_comment_meta.rb +++ b/client/lib/fastcomments-client/models/f_comment_meta.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FCommentMeta + class FCommentMeta < ApiModelBase attr_accessor :wp_id attr_accessor :wp_user_id @@ -144,61 +144,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -215,24 +160,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post.rb b/client/lib/fastcomments-client/models/feed_post.rb index b37d867..29ac5a4 100644 --- a/client/lib/fastcomments-client/models/feed_post.rb +++ b/client/lib/fastcomments-client/models/feed_post.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPost + class FeedPost < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -326,61 +326,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -397,24 +342,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_link.rb b/client/lib/fastcomments-client/models/feed_post_link.rb index 200d273..8bf1a43 100644 --- a/client/lib/fastcomments-client/models/feed_post_link.rb +++ b/client/lib/fastcomments-client/models/feed_post_link.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostLink + class FeedPostLink < ApiModelBase attr_accessor :text attr_accessor :title @@ -153,61 +153,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -224,24 +169,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_media_item.rb b/client/lib/fastcomments-client/models/feed_post_media_item.rb index 7945146..f9514a8 100644 --- a/client/lib/fastcomments-client/models/feed_post_media_item.rb +++ b/client/lib/fastcomments-client/models/feed_post_media_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostMediaItem + class FeedPostMediaItem < ApiModelBase attr_accessor :title attr_accessor :link_url @@ -163,61 +163,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -234,24 +179,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb b/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb index e3e07c3..fb5d24c 100644 --- a/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +++ b/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostMediaItemAsset + class FeedPostMediaItemAsset < ApiModelBase attr_accessor :w attr_accessor :h @@ -195,61 +195,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -266,24 +211,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_post_stats.rb b/client/lib/fastcomments-client/models/feed_post_stats.rb index d4c4330..786f2d5 100644 --- a/client/lib/fastcomments-client/models/feed_post_stats.rb +++ b/client/lib/fastcomments-client/models/feed_post_stats.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostStats + class FeedPostStats < ApiModelBase attr_accessor :reacts attr_accessor :comment_count @@ -137,61 +137,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -208,24 +153,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/feed_posts_stats_response.rb b/client/lib/fastcomments-client/models/feed_posts_stats_response.rb index 0d9bc6f..ef4586d 100644 --- a/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +++ b/client/lib/fastcomments-client/models/feed_posts_stats_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FeedPostsStatsResponse + class FeedPostsStatsResponse < ApiModelBase attr_accessor :status attr_accessor :stats @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/find_comments_by_range_item.rb b/client/lib/fastcomments-client/models/find_comments_by_range_item.rb index 694bbd6..2cc30e7 100644 --- a/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +++ b/client/lib/fastcomments-client/models/find_comments_by_range_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FindCommentsByRangeItem + class FindCommentsByRangeItem < ApiModelBase attr_accessor :comment attr_accessor :result @@ -155,61 +155,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -226,24 +171,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/find_comments_by_range_response.rb b/client/lib/fastcomments-client/models/find_comments_by_range_response.rb index 7311d8b..9242cae 100644 --- a/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +++ b/client/lib/fastcomments-client/models/find_comments_by_range_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FindCommentsByRangeResponse + class FindCommentsByRangeResponse < ApiModelBase attr_accessor :results attr_accessor :created_at @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/flag_comment_response.rb b/client/lib/fastcomments-client/models/flag_comment_response.rb index 366f53d..ad7e47c 100644 --- a/client/lib/fastcomments-client/models/flag_comment_response.rb +++ b/client/lib/fastcomments-client/models/flag_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class FlagCommentResponse + class FlagCommentResponse < ApiModelBase attr_accessor :status_code attr_accessor :status @@ -201,61 +201,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -272,24 +217,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_audit_logs_response.rb b/client/lib/fastcomments-client/models/get_audit_logs_response.rb index 3749295..91e3b84 100644 --- a/client/lib/fastcomments-client/models/get_audit_logs_response.rb +++ b/client/lib/fastcomments-client/models/get_audit_logs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetAuditLogsResponse + class GetAuditLogsResponse < ApiModelBase attr_accessor :status attr_accessor :audit_logs @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_banned_users_count_response.rb b/client/lib/fastcomments-client/models/get_banned_users_count_response.rb index 952c79c..f99fc70 100644 --- a/client/lib/fastcomments-client/models/get_banned_users_count_response.rb +++ b/client/lib/fastcomments-client/models/get_banned_users_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetBannedUsersCountResponse + class GetBannedUsersCountResponse < ApiModelBase attr_accessor :total_count attr_accessor :status @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb b/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb index a5b8775..14f425d 100644 --- a/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb +++ b/client/lib/fastcomments-client/models/get_banned_users_from_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetBannedUsersFromCommentResponse + class GetBannedUsersFromCommentResponse < ApiModelBase attr_accessor :banned_users attr_accessor :code @@ -214,61 +214,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -285,24 +230,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb b/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb index f2ba1f4..e0b9d92 100644 --- a/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +++ b/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCachedNotificationCountResponse + class GetCachedNotificationCountResponse < ApiModelBase attr_accessor :status attr_accessor :data @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb b/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb index 5036baf..30f1e9a 100644 --- a/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb +++ b/client/lib/fastcomments-client/models/get_comment_ban_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentBanStatusResponse + class GetCommentBanStatusResponse < ApiModelBase attr_accessor :status attr_accessor :email_domain @@ -167,61 +167,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -238,24 +183,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comment_text_response.rb b/client/lib/fastcomments-client/models/get_comment_text_response.rb index f40def9..3eebad9 100644 --- a/client/lib/fastcomments-client/models/get_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/get_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentTextResponse + class GetCommentTextResponse < ApiModelBase attr_accessor :comment attr_accessor :status @@ -175,61 +175,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -246,24 +191,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb b/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb index 29c4c96..5856d96 100644 --- a/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +++ b/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentVoteUserNamesSuccessResponse + class GetCommentVoteUserNamesSuccessResponse < ApiModelBase attr_accessor :status attr_accessor :vote_user_names @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comments_for_user_response.rb b/client/lib/fastcomments-client/models/get_comments_for_user_response.rb index 93884d8..b7da5ae 100644 --- a/client/lib/fastcomments-client/models/get_comments_for_user_response.rb +++ b/client/lib/fastcomments-client/models/get_comments_for_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentsForUserResponse + class GetCommentsForUserResponse < ApiModelBase attr_accessor :moderating_tenant_ids # Attribute mapping from ruby-style variable name to JSON key. @@ -128,61 +128,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -199,24 +144,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb b/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb index 8bf80a4..a700506 100644 --- a/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +++ b/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentsResponsePublicComment + class GetCommentsResponsePublicComment < ApiModelBase attr_accessor :status_code attr_accessor :status @@ -393,61 +393,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -464,24 +409,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb b/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb index 1f9ba15..77726bf 100644 --- a/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +++ b/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetCommentsResponseWithPresencePublicComment + class GetCommentsResponseWithPresencePublicComment < ApiModelBase attr_accessor :status_code attr_accessor :status @@ -428,61 +428,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -499,24 +444,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_domain_config_response.rb b/client/lib/fastcomments-client/models/get_domain_config_response.rb index 13d3978..f9744b6 100644 --- a/client/lib/fastcomments-client/models/get_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/get_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_domain_configs_response.rb b/client/lib/fastcomments-client/models/get_domain_configs_response.rb index 289db1b..d5a6362 100644 --- a/client/lib/fastcomments-client/models/get_domain_configs_response.rb +++ b/client/lib/fastcomments-client/models/get_domain_configs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb index 7533976..878d70a 100644 --- a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb +++ b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetDomainConfigsResponseAnyOf + class GetDomainConfigsResponseAnyOf < ApiModelBase attr_accessor :configurations attr_accessor :status @@ -141,61 +141,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -212,24 +157,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb index 5977047..a37d4b7 100644 --- a/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb +++ b/client/lib/fastcomments-client/models/get_domain_configs_response_any_of1.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetDomainConfigsResponseAnyOf1 + class GetDomainConfigsResponseAnyOf1 < ApiModelBase attr_accessor :reason attr_accessor :code @@ -181,61 +181,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -252,24 +197,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb b/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb index b0ddd65..7d3a5c5 100644 --- a/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +++ b/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplateDefinitionsResponse + class GetEmailTemplateDefinitionsResponse < ApiModelBase attr_accessor :status attr_accessor :definitions @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb b/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb index 84ffb02..6fcc3ab 100644 --- a/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +++ b/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplateRenderErrorsResponse + class GetEmailTemplateRenderErrorsResponse < ApiModelBase attr_accessor :status attr_accessor :render_errors @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_template_response.rb b/client/lib/fastcomments-client/models/get_email_template_response.rb index 7d36bb4..5db900d 100644 --- a/client/lib/fastcomments-client/models/get_email_template_response.rb +++ b/client/lib/fastcomments-client/models/get_email_template_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplateResponse + class GetEmailTemplateResponse < ApiModelBase attr_accessor :status attr_accessor :email_template @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_email_templates_response.rb b/client/lib/fastcomments-client/models/get_email_templates_response.rb index c450a7b..400a476 100644 --- a/client/lib/fastcomments-client/models/get_email_templates_response.rb +++ b/client/lib/fastcomments-client/models/get_email_templates_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEmailTemplatesResponse + class GetEmailTemplatesResponse < ApiModelBase attr_accessor :status attr_accessor :email_templates @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_event_log_response.rb b/client/lib/fastcomments-client/models/get_event_log_response.rb index 6961526..b4bef4d 100644 --- a/client/lib/fastcomments-client/models/get_event_log_response.rb +++ b/client/lib/fastcomments-client/models/get_event_log_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetEventLogResponse + class GetEventLogResponse < ApiModelBase attr_accessor :events attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_feed_posts_response.rb b/client/lib/fastcomments-client/models/get_feed_posts_response.rb index fdc7330..4764670 100644 --- a/client/lib/fastcomments-client/models/get_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/get_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetFeedPostsResponse + class GetFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_posts @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_gifs_search_response.rb b/client/lib/fastcomments-client/models/get_gifs_search_response.rb index c00a6af..4d673c8 100644 --- a/client/lib/fastcomments-client/models/get_gifs_search_response.rb +++ b/client/lib/fastcomments-client/models/get_gifs_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_gifs_trending_response.rb b/client/lib/fastcomments-client/models/get_gifs_trending_response.rb index d813496..bf40ec3 100644 --- a/client/lib/fastcomments-client/models/get_gifs_trending_response.rb +++ b/client/lib/fastcomments-client/models/get_gifs_trending_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/get_hash_tags_response.rb b/client/lib/fastcomments-client/models/get_hash_tags_response.rb index 4a61824..0d4e997 100644 --- a/client/lib/fastcomments-client/models/get_hash_tags_response.rb +++ b/client/lib/fastcomments-client/models/get_hash_tags_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetHashTagsResponse + class GetHashTagsResponse < ApiModelBase attr_accessor :status attr_accessor :hash_tags @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_moderator_response.rb b/client/lib/fastcomments-client/models/get_moderator_response.rb index 031c39f..6af01ab 100644 --- a/client/lib/fastcomments-client/models/get_moderator_response.rb +++ b/client/lib/fastcomments-client/models/get_moderator_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetModeratorResponse + class GetModeratorResponse < ApiModelBase attr_accessor :status attr_accessor :moderator @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_moderators_response.rb b/client/lib/fastcomments-client/models/get_moderators_response.rb index 6a20f53..ca21564 100644 --- a/client/lib/fastcomments-client/models/get_moderators_response.rb +++ b/client/lib/fastcomments-client/models/get_moderators_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetModeratorsResponse + class GetModeratorsResponse < ApiModelBase attr_accessor :status attr_accessor :moderators @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_my_notifications_response.rb b/client/lib/fastcomments-client/models/get_my_notifications_response.rb index 46b9d36..13b2140 100644 --- a/client/lib/fastcomments-client/models/get_my_notifications_response.rb +++ b/client/lib/fastcomments-client/models/get_my_notifications_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetMyNotificationsResponse + class GetMyNotificationsResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :translations @@ -257,61 +257,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -328,24 +273,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_notification_count_response.rb b/client/lib/fastcomments-client/models/get_notification_count_response.rb index 7ec1894..5535402 100644 --- a/client/lib/fastcomments-client/models/get_notification_count_response.rb +++ b/client/lib/fastcomments-client/models/get_notification_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetNotificationCountResponse + class GetNotificationCountResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_notifications_response.rb b/client/lib/fastcomments-client/models/get_notifications_response.rb index 278f698..c185c14 100644 --- a/client/lib/fastcomments-client/models/get_notifications_response.rb +++ b/client/lib/fastcomments-client/models/get_notifications_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetNotificationsResponse + class GetNotificationsResponse < ApiModelBase attr_accessor :status attr_accessor :notifications @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb b/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb index 32d1270..e68a7e3 100644 --- a/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +++ b/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPageByURLIdAPIResponse + class GetPageByURLIdAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pages_api_response.rb b/client/lib/fastcomments-client/models/get_pages_api_response.rb index fc818d3..a0558ef 100644 --- a/client/lib/fastcomments-client/models/get_pages_api_response.rb +++ b/client/lib/fastcomments-client/models/get_pages_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPagesAPIResponse + class GetPagesAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -172,61 +172,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -243,24 +188,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb index 57c05be..3b01a85 100644 --- a/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +++ b/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPendingWebhookEventCountResponse + class GetPendingWebhookEventCountResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb b/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb index ee19adf..448c9c2 100644 --- a/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +++ b/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPendingWebhookEventsResponse + class GetPendingWebhookEventsResponse < ApiModelBase attr_accessor :status attr_accessor :pending_webhook_events @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb b/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb index a225a2c..23cc7e7 100644 --- a/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPublicFeedPostsResponse + class GetPublicFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_posts @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_public_pages_response.rb b/client/lib/fastcomments-client/models/get_public_pages_response.rb index 7ba8332..329ebdb 100644 --- a/client/lib/fastcomments-client/models/get_public_pages_response.rb +++ b/client/lib/fastcomments-client/models/get_public_pages_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetPublicPagesResponse + class GetPublicPagesResponse < ApiModelBase attr_accessor :next_cursor attr_accessor :pages @@ -205,61 +205,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -276,24 +221,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_config_response.rb b/client/lib/fastcomments-client/models/get_question_config_response.rb index 3bc1572..005f6aa 100644 --- a/client/lib/fastcomments-client/models/get_question_config_response.rb +++ b/client/lib/fastcomments-client/models/get_question_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionConfigResponse + class GetQuestionConfigResponse < ApiModelBase attr_accessor :status attr_accessor :question_config @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_configs_response.rb b/client/lib/fastcomments-client/models/get_question_configs_response.rb index 37353a1..27b2369 100644 --- a/client/lib/fastcomments-client/models/get_question_configs_response.rb +++ b/client/lib/fastcomments-client/models/get_question_configs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionConfigsResponse + class GetQuestionConfigsResponse < ApiModelBase attr_accessor :status attr_accessor :question_configs @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_result_response.rb b/client/lib/fastcomments-client/models/get_question_result_response.rb index d0775d1..1b160c1 100644 --- a/client/lib/fastcomments-client/models/get_question_result_response.rb +++ b/client/lib/fastcomments-client/models/get_question_result_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionResultResponse + class GetQuestionResultResponse < ApiModelBase attr_accessor :status attr_accessor :question_result @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_question_results_response.rb b/client/lib/fastcomments-client/models/get_question_results_response.rb index 331c3c9..74fca59 100644 --- a/client/lib/fastcomments-client/models/get_question_results_response.rb +++ b/client/lib/fastcomments-client/models/get_question_results_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetQuestionResultsResponse + class GetQuestionResultsResponse < ApiModelBase attr_accessor :status attr_accessor :question_results @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb b/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb index 65f3444..9bea0be 100644 --- a/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +++ b/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSSOUserByEmailAPIResponse + class GetSSOUserByEmailAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb b/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb index 63db1b0..4c96c7f 100644 --- a/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +++ b/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSSOUserByIdAPIResponse + class GetSSOUserByIdAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_sso_users_response.rb b/client/lib/fastcomments-client/models/get_sso_users_response.rb index 5841ca9..66b04ef 100644 --- a/client/lib/fastcomments-client/models/get_sso_users_response.rb +++ b/client/lib/fastcomments-client/models/get_sso_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSSOUsersResponse + class GetSSOUsersResponse < ApiModelBase attr_accessor :users attr_accessor :status @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb b/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb index 993b6d9..dcdb42a 100644 --- a/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +++ b/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetSubscriptionsAPIResponse + class GetSubscriptionsAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -172,61 +172,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -243,24 +188,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb index d301465..b43724e 100644 --- a/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantDailyUsagesResponse + class GetTenantDailyUsagesResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_daily_usages @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb b/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb index 5709cfb..764bcf7 100644 --- a/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_manual_badges_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantManualBadgesResponse + class GetTenantManualBadgesResponse < ApiModelBase attr_accessor :badges attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_package_response.rb b/client/lib/fastcomments-client/models/get_tenant_package_response.rb index 491e421..af68a06 100644 --- a/client/lib/fastcomments-client/models/get_tenant_package_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_package_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantPackageResponse + class GetTenantPackageResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_package @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_packages_response.rb b/client/lib/fastcomments-client/models/get_tenant_packages_response.rb index def384a..fa1c69b 100644 --- a/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_packages_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantPackagesResponse + class GetTenantPackagesResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_packages @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_response.rb b/client/lib/fastcomments-client/models/get_tenant_response.rb index 1ef29a5..f101f23 100644 --- a/client/lib/fastcomments-client/models/get_tenant_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantResponse + class GetTenantResponse < ApiModelBase attr_accessor :status attr_accessor :tenant @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_user_response.rb b/client/lib/fastcomments-client/models/get_tenant_user_response.rb index 4dc93ba..8c13169 100644 --- a/client/lib/fastcomments-client/models/get_tenant_user_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantUserResponse + class GetTenantUserResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_user @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenant_users_response.rb b/client/lib/fastcomments-client/models/get_tenant_users_response.rb index 7d4a362..52be0ba 100644 --- a/client/lib/fastcomments-client/models/get_tenant_users_response.rb +++ b/client/lib/fastcomments-client/models/get_tenant_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantUsersResponse + class GetTenantUsersResponse < ApiModelBase attr_accessor :status attr_accessor :tenant_users @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tenants_response.rb b/client/lib/fastcomments-client/models/get_tenants_response.rb index 7f758ad..c2a6a73 100644 --- a/client/lib/fastcomments-client/models/get_tenants_response.rb +++ b/client/lib/fastcomments-client/models/get_tenants_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTenantsResponse + class GetTenantsResponse < ApiModelBase attr_accessor :status attr_accessor :tenants @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_ticket_response.rb b/client/lib/fastcomments-client/models/get_ticket_response.rb index 635e4a6..2ee6167 100644 --- a/client/lib/fastcomments-client/models/get_ticket_response.rb +++ b/client/lib/fastcomments-client/models/get_ticket_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTicketResponse + class GetTicketResponse < ApiModelBase attr_accessor :status attr_accessor :ticket @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_tickets_response.rb b/client/lib/fastcomments-client/models/get_tickets_response.rb index 8c8220b..b072c0f 100644 --- a/client/lib/fastcomments-client/models/get_tickets_response.rb +++ b/client/lib/fastcomments-client/models/get_tickets_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTicketsResponse + class GetTicketsResponse < ApiModelBase attr_accessor :status attr_accessor :tickets @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_translations_response.rb b/client/lib/fastcomments-client/models/get_translations_response.rb index 5d68015..1a50d50 100644 --- a/client/lib/fastcomments-client/models/get_translations_response.rb +++ b/client/lib/fastcomments-client/models/get_translations_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetTranslationsResponse + class GetTranslationsResponse < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :translations @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb b/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb index 1f8373a..6736078 100644 --- a/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb +++ b/client/lib/fastcomments-client/models/get_user_internal_profile_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserInternalProfileResponse + class GetUserInternalProfileResponse < ApiModelBase attr_accessor :profile attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb b/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb index b53e2b7..7c8c9cf 100644 --- a/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb +++ b/client/lib/fastcomments-client/models/get_user_internal_profile_response_profile.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserInternalProfileResponseProfile + class GetUserInternalProfileResponseProfile < ApiModelBase attr_accessor :commenter_name attr_accessor :first_comment_date @@ -277,61 +277,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -348,24 +293,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb b/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb index 2024d6f..0d10a02 100644 --- a/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb +++ b/client/lib/fastcomments-client/models/get_user_manual_badges_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserManualBadgesResponse + class GetUserManualBadgesResponse < ApiModelBase attr_accessor :badges attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_notification_count_response.rb b/client/lib/fastcomments-client/models/get_user_notification_count_response.rb index 30f94a5..67efb42 100644 --- a/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +++ b/client/lib/fastcomments-client/models/get_user_notification_count_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserNotificationCountResponse + class GetUserNotificationCountResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb b/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb index b3314a3..78f365a 100644 --- a/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +++ b/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserPresenceStatusesResponse + class GetUserPresenceStatusesResponse < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_response.rb b/client/lib/fastcomments-client/models/get_user_response.rb index d6050bf..28290ba 100644 --- a/client/lib/fastcomments-client/models/get_user_response.rb +++ b/client/lib/fastcomments-client/models/get_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserResponse + class GetUserResponse < ApiModelBase attr_accessor :status attr_accessor :user @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb b/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb index cd36359..1e78c7c 100644 --- a/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb +++ b/client/lib/fastcomments-client/models/get_user_trust_factor_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetUserTrustFactorResponse + class GetUserTrustFactorResponse < ApiModelBase attr_accessor :manual_trust_factor attr_accessor :auto_trust_factor @@ -183,61 +183,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -254,24 +199,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_v1_page_likes.rb b/client/lib/fastcomments-client/models/get_v1_page_likes.rb index 092e2e3..7118bfc 100644 --- a/client/lib/fastcomments-client/models/get_v1_page_likes.rb +++ b/client/lib/fastcomments-client/models/get_v1_page_likes.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetV1PageLikes + class GetV1PageLikes < ApiModelBase attr_accessor :url_id_ws attr_accessor :did_like @@ -269,61 +269,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -340,24 +285,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb b/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb index a7cb7ff..baf9157 100644 --- a/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb +++ b/client/lib/fastcomments-client/models/get_v2_page_react_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetV2PageReactUsersResponse + class GetV2PageReactUsersResponse < ApiModelBase attr_accessor :user_names attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_v2_page_reacts.rb b/client/lib/fastcomments-client/models/get_v2_page_reacts.rb index fc4e99c..794b026 100644 --- a/client/lib/fastcomments-client/models/get_v2_page_reacts.rb +++ b/client/lib/fastcomments-client/models/get_v2_page_reacts.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetV2PageReacts + class GetV2PageReacts < ApiModelBase attr_accessor :reacted_ids # Construct a type with a set of properties K of type T @@ -188,61 +188,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -259,24 +204,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_votes_for_user_response.rb b/client/lib/fastcomments-client/models/get_votes_for_user_response.rb index 8a1a24a..8c3219b 100644 --- a/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +++ b/client/lib/fastcomments-client/models/get_votes_for_user_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetVotesForUserResponse + class GetVotesForUserResponse < ApiModelBase attr_accessor :status attr_accessor :applied_authorized_votes @@ -249,61 +249,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -320,24 +265,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/get_votes_response.rb b/client/lib/fastcomments-client/models/get_votes_response.rb index 68a0ab8..0367ff6 100644 --- a/client/lib/fastcomments-client/models/get_votes_response.rb +++ b/client/lib/fastcomments-client/models/get_votes_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GetVotesResponse + class GetVotesResponse < ApiModelBase attr_accessor :status attr_accessor :applied_authorized_votes @@ -249,61 +249,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -320,24 +265,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_get_large_response.rb b/client/lib/fastcomments-client/models/gif_get_large_response.rb index 35711fa..6f87a5e 100644 --- a/client/lib/fastcomments-client/models/gif_get_large_response.rb +++ b/client/lib/fastcomments-client/models/gif_get_large_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GifGetLargeResponse + class GifGetLargeResponse < ApiModelBase attr_accessor :src attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_rating.rb b/client/lib/fastcomments-client/models/gif_rating.rb index 98a9eaf..886d005 100644 --- a/client/lib/fastcomments-client/models/gif_rating.rb +++ b/client/lib/fastcomments-client/models/gif_rating.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/gif_search_internal_error.rb b/client/lib/fastcomments-client/models/gif_search_internal_error.rb index aa1e4b7..325326e 100644 --- a/client/lib/fastcomments-client/models/gif_search_internal_error.rb +++ b/client/lib/fastcomments-client/models/gif_search_internal_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GifSearchInternalError + class GifSearchInternalError < ApiModelBase attr_accessor :code attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_search_response.rb b/client/lib/fastcomments-client/models/gif_search_response.rb index e47f761..659cdab 100644 --- a/client/lib/fastcomments-client/models/gif_search_response.rb +++ b/client/lib/fastcomments-client/models/gif_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class GifSearchResponse + class GifSearchResponse < ApiModelBase attr_accessor :images attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb b/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb index 14c33aa..50e1984 100644 --- a/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb +++ b/client/lib/fastcomments-client/models/gif_search_response_images_inner_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/header_account_notification.rb b/client/lib/fastcomments-client/models/header_account_notification.rb index 0c58ab0..7d858c2 100644 --- a/client/lib/fastcomments-client/models/header_account_notification.rb +++ b/client/lib/fastcomments-client/models/header_account_notification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class HeaderAccountNotification + class HeaderAccountNotification < ApiModelBase attr_accessor :_id attr_accessor :title @@ -312,61 +312,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -383,24 +328,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/header_state.rb b/client/lib/fastcomments-client/models/header_state.rb index da3137a..7224bca 100644 --- a/client/lib/fastcomments-client/models/header_state.rb +++ b/client/lib/fastcomments-client/models/header_state.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class HeaderState + class HeaderState < ApiModelBase attr_accessor :status attr_accessor :notification_type @@ -299,61 +299,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -370,24 +315,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/ignored_response.rb b/client/lib/fastcomments-client/models/ignored_response.rb index e7c5837..543bcb3 100644 --- a/client/lib/fastcomments-client/models/ignored_response.rb +++ b/client/lib/fastcomments-client/models/ignored_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class IgnoredResponse + class IgnoredResponse < ApiModelBase attr_accessor :status attr_accessor :note @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/image_content_profanity_level.rb b/client/lib/fastcomments-client/models/image_content_profanity_level.rb index d0573b5..03bace5 100644 --- a/client/lib/fastcomments-client/models/image_content_profanity_level.rb +++ b/client/lib/fastcomments-client/models/image_content_profanity_level.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb b/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb index 6f778b4..32f7873 100644 --- a/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb +++ b/client/lib/fastcomments-client/models/imported_agent_approval_notification_frequency.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/imported_site_type.rb b/client/lib/fastcomments-client/models/imported_site_type.rb index 34240ce..5814f46 100644 --- a/client/lib/fastcomments-client/models/imported_site_type.rb +++ b/client/lib/fastcomments-client/models/imported_site_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/live_event.rb b/client/lib/fastcomments-client/models/live_event.rb index 24a4324..7615223 100644 --- a/client/lib/fastcomments-client/models/live_event.rb +++ b/client/lib/fastcomments-client/models/live_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class LiveEvent + class LiveEvent < ApiModelBase attr_accessor :type attr_accessor :timestamp @@ -317,61 +317,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -388,24 +333,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/live_event_extra_info.rb b/client/lib/fastcomments-client/models/live_event_extra_info.rb index 9ff09d0..38a97b7 100644 --- a/client/lib/fastcomments-client/models/live_event_extra_info.rb +++ b/client/lib/fastcomments-client/models/live_event_extra_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class LiveEventExtraInfo + class LiveEventExtraInfo < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :comment_positions @@ -129,61 +129,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -200,24 +145,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/live_event_type.rb b/client/lib/fastcomments-client/models/live_event_type.rb index 401d1e1..d6cd0e4 100644 --- a/client/lib/fastcomments-client/models/live_event_type.rb +++ b/client/lib/fastcomments-client/models/live_event_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/media_asset.rb b/client/lib/fastcomments-client/models/media_asset.rb index b817d3a..23c3a68 100644 --- a/client/lib/fastcomments-client/models/media_asset.rb +++ b/client/lib/fastcomments-client/models/media_asset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class MediaAsset + class MediaAsset < ApiModelBase attr_accessor :w attr_accessor :h @@ -195,61 +195,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -266,24 +211,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb b/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb index 1a1d914..85a4164 100644 --- a/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +++ b/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/meta_item.rb b/client/lib/fastcomments-client/models/meta_item.rb index 8b02b95..fe072c5 100644 --- a/client/lib/fastcomments-client/models/meta_item.rb +++ b/client/lib/fastcomments-client/models/meta_item.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class MetaItem + class MetaItem < ApiModelBase attr_accessor :name attr_accessor :values @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb b/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb index 9a24dfa..118acf5 100644 --- a/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_child_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIChildCommentsResponse + class ModerationAPIChildCommentsResponse < ApiModelBase attr_accessor :comments attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_comment.rb b/client/lib/fastcomments-client/models/moderation_api_comment.rb index ca1b435..8dbdac5 100644 --- a/client/lib/fastcomments-client/models/moderation_api_comment.rb +++ b/client/lib/fastcomments-client/models/moderation_api_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIComment + class ModerationAPIComment < ApiModelBase attr_accessor :is_local_deleted attr_accessor :reply_count @@ -659,61 +659,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -730,24 +675,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_comment_log.rb b/client/lib/fastcomments-client/models/moderation_api_comment_log.rb index 52ad38c..52a53dd 100644 --- a/client/lib/fastcomments-client/models/moderation_api_comment_log.rb +++ b/client/lib/fastcomments-client/models/moderation_api_comment_log.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPICommentLog + class ModerationAPICommentLog < ApiModelBase attr_accessor :date attr_accessor :username @@ -204,61 +204,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -275,24 +220,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_comment_response.rb b/client/lib/fastcomments-client/models/moderation_api_comment_response.rb index 8d39eaa..60be820 100644 --- a/client/lib/fastcomments-client/models/moderation_api_comment_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPICommentResponse + class ModerationAPICommentResponse < ApiModelBase attr_accessor :comment attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb b/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb index 30f70a3..88ebcf0 100644 --- a/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_count_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPICountCommentsResponse + class ModerationAPICountCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb b/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb index f59856f..fe208fc 100644 --- a/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_get_comment_ids_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIGetCommentIdsResponse + class ModerationAPIGetCommentIdsResponse < ApiModelBase attr_accessor :ids attr_accessor :has_more @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb b/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb index 02d9bbc..938eb01 100644 --- a/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_get_comments_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIGetCommentsResponse + class ModerationAPIGetCommentsResponse < ApiModelBase attr_accessor :status attr_accessor :translations @@ -228,61 +228,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -299,24 +244,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb b/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb index 9c2c9e2..3ef695b 100644 --- a/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb +++ b/client/lib/fastcomments-client/models/moderation_api_get_logs_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationAPIGetLogsResponse + class ModerationAPIGetLogsResponse < ApiModelBase attr_accessor :logs attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_comment_search_response.rb b/client/lib/fastcomments-client/models/moderation_comment_search_response.rb index cf3c139..c93dcd1 100644 --- a/client/lib/fastcomments-client/models/moderation_comment_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_comment_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationCommentSearchResponse + class ModerationCommentSearchResponse < ApiModelBase attr_accessor :comment_count attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_export_response.rb b/client/lib/fastcomments-client/models/moderation_export_response.rb index c96b20f..7a37cda 100644 --- a/client/lib/fastcomments-client/models/moderation_export_response.rb +++ b/client/lib/fastcomments-client/models/moderation_export_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationExportResponse + class ModerationExportResponse < ApiModelBase attr_accessor :status attr_accessor :batch_job_id @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_export_status_response.rb b/client/lib/fastcomments-client/models/moderation_export_status_response.rb index 8cc349d..206d84e 100644 --- a/client/lib/fastcomments-client/models/moderation_export_status_response.rb +++ b/client/lib/fastcomments-client/models/moderation_export_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationExportStatusResponse + class ModerationExportStatusResponse < ApiModelBase attr_accessor :status attr_accessor :job_status @@ -204,61 +204,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -275,24 +220,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_filter.rb b/client/lib/fastcomments-client/models/moderation_filter.rb index f4f2aba..d91780f 100644 --- a/client/lib/fastcomments-client/models/moderation_filter.rb +++ b/client/lib/fastcomments-client/models/moderation_filter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationFilter + class ModerationFilter < ApiModelBase attr_accessor :reviewed attr_accessor :approved @@ -231,61 +231,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -302,24 +247,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_page_search_projected.rb b/client/lib/fastcomments-client/models/moderation_page_search_projected.rb index 3d9300c..e3d0b11 100644 --- a/client/lib/fastcomments-client/models/moderation_page_search_projected.rb +++ b/client/lib/fastcomments-client/models/moderation_page_search_projected.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationPageSearchProjected + class ModerationPageSearchProjected < ApiModelBase attr_accessor :url_id attr_accessor :url @@ -221,61 +221,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -292,24 +237,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_page_search_response.rb b/client/lib/fastcomments-client/models/moderation_page_search_response.rb index 9a62ab0..e371ca0 100644 --- a/client/lib/fastcomments-client/models/moderation_page_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_page_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationPageSearchResponse + class ModerationPageSearchResponse < ApiModelBase attr_accessor :pages attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_site_search_projected.rb b/client/lib/fastcomments-client/models/moderation_site_search_projected.rb index 330ad61..f386dca 100644 --- a/client/lib/fastcomments-client/models/moderation_site_search_projected.rb +++ b/client/lib/fastcomments-client/models/moderation_site_search_projected.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationSiteSearchProjected + class ModerationSiteSearchProjected < ApiModelBase attr_accessor :domain attr_accessor :logo_src100px @@ -153,61 +153,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -224,24 +169,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_site_search_response.rb b/client/lib/fastcomments-client/models/moderation_site_search_response.rb index ccf6009..6b19014 100644 --- a/client/lib/fastcomments-client/models/moderation_site_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_site_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationSiteSearchResponse + class ModerationSiteSearchResponse < ApiModelBase attr_accessor :sites attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_suggest_response.rb b/client/lib/fastcomments-client/models/moderation_suggest_response.rb index b9cdd00..13b6229 100644 --- a/client/lib/fastcomments-client/models/moderation_suggest_response.rb +++ b/client/lib/fastcomments-client/models/moderation_suggest_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationSuggestResponse + class ModerationSuggestResponse < ApiModelBase attr_accessor :status attr_accessor :pages @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_user_search_projected.rb b/client/lib/fastcomments-client/models/moderation_user_search_projected.rb index d5c61bd..1c7a195 100644 --- a/client/lib/fastcomments-client/models/moderation_user_search_projected.rb +++ b/client/lib/fastcomments-client/models/moderation_user_search_projected.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationUserSearchProjected + class ModerationUserSearchProjected < ApiModelBase attr_accessor :_id attr_accessor :username @@ -189,61 +189,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -260,24 +205,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderation_user_search_response.rb b/client/lib/fastcomments-client/models/moderation_user_search_response.rb index c6b12d8..655a950 100644 --- a/client/lib/fastcomments-client/models/moderation_user_search_response.rb +++ b/client/lib/fastcomments-client/models/moderation_user_search_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ModerationUserSearchResponse + class ModerationUserSearchResponse < ApiModelBase attr_accessor :users attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/moderator.rb b/client/lib/fastcomments-client/models/moderator.rb index 15fb420..0e72f33 100644 --- a/client/lib/fastcomments-client/models/moderator.rb +++ b/client/lib/fastcomments-client/models/moderator.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class Moderator + class Moderator < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -526,61 +526,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -597,24 +542,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/notification_and_count.rb b/client/lib/fastcomments-client/models/notification_and_count.rb index c4122d9..5597b49 100644 --- a/client/lib/fastcomments-client/models/notification_and_count.rb +++ b/client/lib/fastcomments-client/models/notification_and_count.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class NotificationAndCount + class NotificationAndCount < ApiModelBase attr_accessor :type attr_accessor :count @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/notification_object_type.rb b/client/lib/fastcomments-client/models/notification_object_type.rb index 8978509..2956f99 100644 --- a/client/lib/fastcomments-client/models/notification_object_type.rb +++ b/client/lib/fastcomments-client/models/notification_object_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/notification_type.rb b/client/lib/fastcomments-client/models/notification_type.rb index 9dca431..b0977cd 100644 --- a/client/lib/fastcomments-client/models/notification_type.rb +++ b/client/lib/fastcomments-client/models/notification_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/page_user_entry.rb b/client/lib/fastcomments-client/models/page_user_entry.rb index 8430c3d..e703899 100644 --- a/client/lib/fastcomments-client/models/page_user_entry.rb +++ b/client/lib/fastcomments-client/models/page_user_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUserEntry + class PageUserEntry < ApiModelBase attr_accessor :is_private attr_accessor :avatar_src @@ -187,61 +187,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -258,24 +203,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/page_users_info_response.rb b/client/lib/fastcomments-client/models/page_users_info_response.rb index 9d8098e..82476e9 100644 --- a/client/lib/fastcomments-client/models/page_users_info_response.rb +++ b/client/lib/fastcomments-client/models/page_users_info_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUsersInfoResponse + class PageUsersInfoResponse < ApiModelBase attr_accessor :users attr_accessor :status @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/page_users_offline_response.rb b/client/lib/fastcomments-client/models/page_users_offline_response.rb index 6b016cf..60c7ead 100644 --- a/client/lib/fastcomments-client/models/page_users_offline_response.rb +++ b/client/lib/fastcomments-client/models/page_users_offline_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUsersOfflineResponse + class PageUsersOfflineResponse < ApiModelBase attr_accessor :next_after_user_id attr_accessor :next_after_name @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/page_users_online_response.rb b/client/lib/fastcomments-client/models/page_users_online_response.rb index 1fedec9..a886778 100644 --- a/client/lib/fastcomments-client/models/page_users_online_response.rb +++ b/client/lib/fastcomments-client/models/page_users_online_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PageUsersOnlineResponse + class PageUsersOnlineResponse < ApiModelBase attr_accessor :next_after_user_id attr_accessor :next_after_name @@ -269,61 +269,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -340,24 +285,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pages_sort_by.rb b/client/lib/fastcomments-client/models/pages_sort_by.rb index 33368dc..b93cfb6 100644 --- a/client/lib/fastcomments-client/models/pages_sort_by.rb +++ b/client/lib/fastcomments-client/models/pages_sort_by.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/patch_domain_config_params.rb b/client/lib/fastcomments-client/models/patch_domain_config_params.rb index aadec6d..cce3d53 100644 --- a/client/lib/fastcomments-client/models/patch_domain_config_params.rb +++ b/client/lib/fastcomments-client/models/patch_domain_config_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PatchDomainConfigParams + class PatchDomainConfigParams < ApiModelBase attr_accessor :domain attr_accessor :email_from_name @@ -183,61 +183,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -254,24 +199,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/patch_domain_config_response.rb b/client/lib/fastcomments-client/models/patch_domain_config_response.rb index 6456523..d49c9fc 100644 --- a/client/lib/fastcomments-client/models/patch_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/patch_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/patch_page_api_response.rb b/client/lib/fastcomments-client/models/patch_page_api_response.rb index 0618bed..82f3967 100644 --- a/client/lib/fastcomments-client/models/patch_page_api_response.rb +++ b/client/lib/fastcomments-client/models/patch_page_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PatchPageAPIResponse + class PatchPageAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -179,61 +179,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -250,24 +195,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb b/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb index 57e29a6..ed63197 100644 --- a/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PatchSSOUserAPIResponse + class PatchSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb b/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb index 0153f95..af5b374 100644 --- a/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +++ b/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PendingCommentToSyncOutbound + class PendingCommentToSyncOutbound < ApiModelBase attr_accessor :_id attr_accessor :comment_id @@ -407,61 +407,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -478,24 +423,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/post_remove_comment_response.rb b/client/lib/fastcomments-client/models/post_remove_comment_api_response.rb similarity index 95% rename from client/lib/fastcomments-client/models/post_remove_comment_response.rb rename to client/lib/fastcomments-client/models/post_remove_comment_api_response.rb index 27cc60b..7245a1d 100644 --- a/client/lib/fastcomments-client/models/post_remove_comment_response.rb +++ b/client/lib/fastcomments-client/models/post_remove_comment_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - module PostRemoveCommentResponse + module PostRemoveCommentApiResponse class << self # List of class defined in anyOf (OpenAPI v3) def openapi_any_of @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/pre_ban_summary.rb b/client/lib/fastcomments-client/models/pre_ban_summary.rb index 08163c4..107d9ea 100644 --- a/client/lib/fastcomments-client/models/pre_ban_summary.rb +++ b/client/lib/fastcomments-client/models/pre_ban_summary.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PreBanSummary + class PreBanSummary < ApiModelBase attr_accessor :status attr_accessor :usernames @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pub_sub_comment.rb b/client/lib/fastcomments-client/models/pub_sub_comment.rb index 878c891..10611d7 100644 --- a/client/lib/fastcomments-client/models/pub_sub_comment.rb +++ b/client/lib/fastcomments-client/models/pub_sub_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PubSubComment + class PubSubComment < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -709,61 +709,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -780,24 +725,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pub_sub_comment_base.rb b/client/lib/fastcomments-client/models/pub_sub_comment_base.rb index 07de243..e210401 100644 --- a/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +++ b/client/lib/fastcomments-client/models/pub_sub_comment_base.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PubSubCommentBase + class PubSubCommentBase < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -658,61 +658,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -729,24 +674,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/pub_sub_vote.rb b/client/lib/fastcomments-client/models/pub_sub_vote.rb index de4cb34..11ebd50 100644 --- a/client/lib/fastcomments-client/models/pub_sub_vote.rb +++ b/client/lib/fastcomments-client/models/pub_sub_vote.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PubSubVote + class PubSubVote < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -321,61 +321,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -392,24 +337,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb b/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb index e7f868c..7990a0d 100644 --- a/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +++ b/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicAPIDeleteCommentResponse + class PublicAPIDeleteCommentResponse < ApiModelBase attr_accessor :comment attr_accessor :hard_removed @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb b/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb index e50d874..ce63b7e 100644 --- a/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicAPIGetCommentTextResponse + class PublicAPIGetCommentTextResponse < ApiModelBase attr_accessor :status attr_accessor :comment_text @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb b/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb index ecc5c00..5f5dc89 100644 --- a/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicAPISetCommentTextResponse + class PublicAPISetCommentTextResponse < ApiModelBase attr_accessor :comment attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_block_from_comment_params.rb b/client/lib/fastcomments-client/models/public_block_from_comment_params.rb index 18caff1..88da087 100644 --- a/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +++ b/client/lib/fastcomments-client/models/public_block_from_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicBlockFromCommentParams + class PublicBlockFromCommentParams < ApiModelBase # A list of comment ids to check if are blocked after performing the update. attr_accessor :comment_ids @@ -132,61 +132,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -203,24 +148,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_comment.rb b/client/lib/fastcomments-client/models/public_comment.rb index cd7948e..e723c81 100644 --- a/client/lib/fastcomments-client/models/public_comment.rb +++ b/client/lib/fastcomments-client/models/public_comment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicComment + class PublicComment < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -569,61 +569,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -640,24 +585,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_comment_base.rb b/client/lib/fastcomments-client/models/public_comment_base.rb index cbc7fbd..c2e714f 100644 --- a/client/lib/fastcomments-client/models/public_comment_base.rb +++ b/client/lib/fastcomments-client/models/public_comment_base.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicCommentBase + class PublicCommentBase < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -467,61 +467,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -538,24 +483,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_feed_posts_response.rb b/client/lib/fastcomments-client/models/public_feed_posts_response.rb index 5fda1cb..cd01eb0 100644 --- a/client/lib/fastcomments-client/models/public_feed_posts_response.rb +++ b/client/lib/fastcomments-client/models/public_feed_posts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicFeedPostsResponse + class PublicFeedPostsResponse < ApiModelBase attr_accessor :status attr_accessor :feed_posts @@ -249,61 +249,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -320,24 +265,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_page.rb b/client/lib/fastcomments-client/models/public_page.rb index 2331ac6..40e5749 100644 --- a/client/lib/fastcomments-client/models/public_page.rb +++ b/client/lib/fastcomments-client/models/public_page.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicPage + class PublicPage < ApiModelBase attr_accessor :updated_at attr_accessor :comment_count @@ -247,61 +247,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -318,24 +263,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/public_vote.rb b/client/lib/fastcomments-client/models/public_vote.rb index 9a12fe4..4715627 100644 --- a/client/lib/fastcomments-client/models/public_vote.rb +++ b/client/lib/fastcomments-client/models/public_vote.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PublicVote + class PublicVote < ApiModelBase attr_accessor :id attr_accessor :url_id @@ -273,61 +273,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -344,24 +289,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/put_domain_config_response.rb b/client/lib/fastcomments-client/models/put_domain_config_response.rb index 416dbd8..2227b97 100644 --- a/client/lib/fastcomments-client/models/put_domain_config_response.rb +++ b/client/lib/fastcomments-client/models/put_domain_config_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/put_sso_user_api_response.rb b/client/lib/fastcomments-client/models/put_sso_user_api_response.rb index c81ea5b..110481f 100644 --- a/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +++ b/client/lib/fastcomments-client/models/put_sso_user_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class PutSSOUserAPIResponse + class PutSSOUserAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -171,61 +171,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -242,24 +187,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/query_predicate.rb b/client/lib/fastcomments-client/models/query_predicate.rb index 6109065..f2f06ba 100644 --- a/client/lib/fastcomments-client/models/query_predicate.rb +++ b/client/lib/fastcomments-client/models/query_predicate.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QueryPredicate + class QueryPredicate < ApiModelBase attr_accessor :key attr_accessor :value @@ -219,61 +219,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -290,24 +235,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/query_predicate_value.rb b/client/lib/fastcomments-client/models/query_predicate_value.rb index f729fec..92d138b 100644 --- a/client/lib/fastcomments-client/models/query_predicate_value.rb +++ b/client/lib/fastcomments-client/models/query_predicate_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -38,8 +38,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/question_config.rb b/client/lib/fastcomments-client/models/question_config.rb index f85f89e..298e606 100644 --- a/client/lib/fastcomments-client/models/question_config.rb +++ b/client/lib/fastcomments-client/models/question_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionConfig + class QuestionConfig < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -650,61 +650,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -721,24 +666,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb b/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb index e76631c..453f2dd 100644 --- a/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +++ b/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionConfigCustomOptionsInner + class QuestionConfigCustomOptionsInner < ApiModelBase attr_accessor :image_src attr_accessor :name @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_datum.rb b/client/lib/fastcomments-client/models/question_datum.rb index 2fab8a1..d6cf817 100644 --- a/client/lib/fastcomments-client/models/question_datum.rb +++ b/client/lib/fastcomments-client/models/question_datum.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionDatum + class QuestionDatum < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :v @@ -172,61 +172,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -243,24 +188,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_rendering_type.rb b/client/lib/fastcomments-client/models/question_rendering_type.rb index 5d718fe..4c51764 100644 --- a/client/lib/fastcomments-client/models/question_rendering_type.rb +++ b/client/lib/fastcomments-client/models/question_rendering_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/question_result.rb b/client/lib/fastcomments-client/models/question_result.rb index 067b8e0..79ffd05 100644 --- a/client/lib/fastcomments-client/models/question_result.rb +++ b/client/lib/fastcomments-client/models/question_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionResult + class QuestionResult < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -373,61 +373,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -444,24 +389,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb b/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb index d63d811..4d099c2 100644 --- a/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +++ b/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class QuestionResultAggregationOverall + class QuestionResultAggregationOverall < ApiModelBase # Construct a type with a set of properties K of type T attr_accessor :data_by_date_bucket @@ -213,61 +213,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -284,24 +229,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/question_sub_question_visibility.rb b/client/lib/fastcomments-client/models/question_sub_question_visibility.rb index 481bd2d..0e3d64c 100644 --- a/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +++ b/client/lib/fastcomments-client/models/question_sub_question_visibility.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/question_when_save.rb b/client/lib/fastcomments-client/models/question_when_save.rb index 3886dcf..b2383d5 100644 --- a/client/lib/fastcomments-client/models/question_when_save.rb +++ b/client/lib/fastcomments-client/models/question_when_save.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/react_body_params.rb b/client/lib/fastcomments-client/models/react_body_params.rb index ff7ed10..ff4f03b 100644 --- a/client/lib/fastcomments-client/models/react_body_params.rb +++ b/client/lib/fastcomments-client/models/react_body_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReactBodyParams + class ReactBodyParams < ApiModelBase attr_accessor :react_type # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/react_feed_post_response.rb b/client/lib/fastcomments-client/models/react_feed_post_response.rb index f21d41f..1682e06 100644 --- a/client/lib/fastcomments-client/models/react_feed_post_response.rb +++ b/client/lib/fastcomments-client/models/react_feed_post_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReactFeedPostResponse + class ReactFeedPostResponse < ApiModelBase attr_accessor :status attr_accessor :react_type @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb b/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb index 6b03fd5..1989219 100644 --- a/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +++ b/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RecordStringBeforeStringOrNullAfterStringOrNullValue + class RecordStringBeforeStringOrNullAfterStringOrNullValue < ApiModelBase attr_accessor :after attr_accessor :before @@ -141,61 +141,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -212,24 +157,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/remove_comment_action_response.rb b/client/lib/fastcomments-client/models/remove_comment_action_response.rb index cd1eff3..0e687f5 100644 --- a/client/lib/fastcomments-client/models/remove_comment_action_response.rb +++ b/client/lib/fastcomments-client/models/remove_comment_action_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RemoveCommentActionResponse + class RemoveCommentActionResponse < ApiModelBase attr_accessor :status attr_accessor :action @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/remove_user_badge_response.rb b/client/lib/fastcomments-client/models/remove_user_badge_response.rb index 64a7908..3ec6f15 100644 --- a/client/lib/fastcomments-client/models/remove_user_badge_response.rb +++ b/client/lib/fastcomments-client/models/remove_user_badge_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RemoveUserBadgeResponse + class RemoveUserBadgeResponse < ApiModelBase attr_accessor :badges attr_accessor :status @@ -176,61 +176,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -247,24 +192,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/render_email_template_body.rb b/client/lib/fastcomments-client/models/render_email_template_body.rb index 66ecaeb..a611e1b 100644 --- a/client/lib/fastcomments-client/models/render_email_template_body.rb +++ b/client/lib/fastcomments-client/models/render_email_template_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RenderEmailTemplateBody + class RenderEmailTemplateBody < ApiModelBase attr_accessor :email_template_id attr_accessor :ejs @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/render_email_template_response.rb b/client/lib/fastcomments-client/models/render_email_template_response.rb index 48786e5..7d78b04 100644 --- a/client/lib/fastcomments-client/models/render_email_template_response.rb +++ b/client/lib/fastcomments-client/models/render_email_template_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RenderEmailTemplateResponse + class RenderEmailTemplateResponse < ApiModelBase attr_accessor :status attr_accessor :html @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/renderable_user_notification.rb b/client/lib/fastcomments-client/models/renderable_user_notification.rb index 567474b..e3fb9dd 100644 --- a/client/lib/fastcomments-client/models/renderable_user_notification.rb +++ b/client/lib/fastcomments-client/models/renderable_user_notification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class RenderableUserNotification + class RenderableUserNotification < ApiModelBase attr_accessor :conversation_id attr_accessor :context_html @@ -509,61 +509,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -580,24 +525,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb b/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb index 13f6f3c..99eb8a8 100644 --- a/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +++ b/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb b/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb index aada1c9..58ad83e 100644 --- a/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +++ b/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/replace_tenant_package_body.rb b/client/lib/fastcomments-client/models/replace_tenant_package_body.rb index 27d914d..b20b2d3 100644 --- a/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +++ b/client/lib/fastcomments-client/models/replace_tenant_package_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReplaceTenantPackageBody + class ReplaceTenantPackageBody < ApiModelBase attr_accessor :name attr_accessor :monthly_cost_usd @@ -653,61 +653,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -724,24 +669,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/replace_tenant_user_body.rb b/client/lib/fastcomments-client/models/replace_tenant_user_body.rb index 674dfea..58343d5 100644 --- a/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +++ b/client/lib/fastcomments-client/models/replace_tenant_user_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ReplaceTenantUserBody + class ReplaceTenantUserBody < ApiModelBase attr_accessor :username attr_accessor :email @@ -405,61 +405,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -476,24 +421,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/reset_user_notifications_response.rb b/client/lib/fastcomments-client/models/reset_user_notifications_response.rb index dd5f214..67b23f2 100644 --- a/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +++ b/client/lib/fastcomments-client/models/reset_user_notifications_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class ResetUserNotificationsResponse + class ResetUserNotificationsResponse < ApiModelBase attr_accessor :status attr_accessor :code @@ -186,61 +186,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -257,24 +202,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/save_comment_response_optimized.rb b/client/lib/fastcomments-client/models/save_comment_response_optimized.rb index 32e751d..567ea2b 100644 --- a/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +++ b/client/lib/fastcomments-client/models/save_comment_response_optimized.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SaveCommentResponseOptimized + class SaveCommentResponseOptimized < ApiModelBase attr_accessor :status attr_accessor :comment @@ -215,61 +215,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -286,24 +231,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/save_comments_bulk_response.rb b/client/lib/fastcomments-client/models/save_comments_bulk_response.rb index b2f5827..826cf2a 100644 --- a/client/lib/fastcomments-client/models/save_comments_bulk_response.rb +++ b/client/lib/fastcomments-client/models/save_comments_bulk_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb b/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb index 007c1eb..642addb 100644 --- a/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +++ b/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SaveCommentsResponseWithPresence + class SaveCommentsResponseWithPresence < ApiModelBase attr_accessor :status attr_accessor :comment @@ -231,61 +231,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -302,24 +247,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/search_users_response.rb b/client/lib/fastcomments-client/models/search_users_response.rb index 2ace7c1..efae47e 100644 --- a/client/lib/fastcomments-client/models/search_users_response.rb +++ b/client/lib/fastcomments-client/models/search_users_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SearchUsersResponse + class SearchUsersResponse < ApiModelBase attr_accessor :status attr_accessor :users @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/search_users_result.rb b/client/lib/fastcomments-client/models/search_users_result.rb index 687e26d..dcba271 100644 --- a/client/lib/fastcomments-client/models/search_users_result.rb +++ b/client/lib/fastcomments-client/models/search_users_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/search_users_sectioned_response.rb b/client/lib/fastcomments-client/models/search_users_sectioned_response.rb index fe56fb1..1ad5c7f 100644 --- a/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +++ b/client/lib/fastcomments-client/models/search_users_sectioned_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SearchUsersSectionedResponse + class SearchUsersSectionedResponse < ApiModelBase attr_accessor :status attr_accessor :sections @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_approved_response.rb b/client/lib/fastcomments-client/models/set_comment_approved_response.rb index e3fc57a..c17dcf4 100644 --- a/client/lib/fastcomments-client/models/set_comment_approved_response.rb +++ b/client/lib/fastcomments-client/models/set_comment_approved_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentApprovedResponse + class SetCommentApprovedResponse < ApiModelBase attr_accessor :did_reset_flagged_count attr_accessor :status @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_text_params.rb b/client/lib/fastcomments-client/models/set_comment_text_params.rb index 18b2e76..c67a251 100644 --- a/client/lib/fastcomments-client/models/set_comment_text_params.rb +++ b/client/lib/fastcomments-client/models/set_comment_text_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentTextParams + class SetCommentTextParams < ApiModelBase attr_accessor :comment # Attribute mapping from ruby-style variable name to JSON key. @@ -143,61 +143,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -214,24 +159,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_text_response.rb b/client/lib/fastcomments-client/models/set_comment_text_response.rb index 6681c10..cacb5b2 100644 --- a/client/lib/fastcomments-client/models/set_comment_text_response.rb +++ b/client/lib/fastcomments-client/models/set_comment_text_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentTextResponse + class SetCommentTextResponse < ApiModelBase attr_accessor :new_comment_text_html attr_accessor :status @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_comment_text_result.rb b/client/lib/fastcomments-client/models/set_comment_text_result.rb index d798cd1..389fa49 100644 --- a/client/lib/fastcomments-client/models/set_comment_text_result.rb +++ b/client/lib/fastcomments-client/models/set_comment_text_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetCommentTextResult + class SetCommentTextResult < ApiModelBase attr_accessor :approved attr_accessor :comment_html @@ -169,61 +169,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -240,24 +185,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb b/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb index 7f04255..4cadcb2 100644 --- a/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb +++ b/client/lib/fastcomments-client/models/set_user_trust_factor_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SetUserTrustFactorResponse + class SetUserTrustFactorResponse < ApiModelBase attr_accessor :previous_manual_trust_factor attr_accessor :status @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/size_preset.rb b/client/lib/fastcomments-client/models/size_preset.rb index 7f3c347..769e2f2 100644 --- a/client/lib/fastcomments-client/models/size_preset.rb +++ b/client/lib/fastcomments-client/models/size_preset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/sort_directions.rb b/client/lib/fastcomments-client/models/sort_directions.rb index 679728c..a5d5be6 100644 --- a/client/lib/fastcomments-client/models/sort_directions.rb +++ b/client/lib/fastcomments-client/models/sort_directions.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/sortdir.rb b/client/lib/fastcomments-client/models/sortdir.rb index 1a41d7c..d6a79f2 100644 --- a/client/lib/fastcomments-client/models/sortdir.rb +++ b/client/lib/fastcomments-client/models/sortdir.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/spam_rule.rb b/client/lib/fastcomments-client/models/spam_rule.rb index 9a7fade..adf853b 100644 --- a/client/lib/fastcomments-client/models/spam_rule.rb +++ b/client/lib/fastcomments-client/models/spam_rule.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class SpamRule + class SpamRule < ApiModelBase attr_accessor :actions attr_accessor :comment_contains @@ -166,61 +166,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -237,24 +182,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/sso_security_level.rb b/client/lib/fastcomments-client/models/sso_security_level.rb index d8554be..fb87b45 100644 --- a/client/lib/fastcomments-client/models/sso_security_level.rb +++ b/client/lib/fastcomments-client/models/sso_security_level.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/tenant_badge.rb b/client/lib/fastcomments-client/models/tenant_badge.rb index 91f87bb..9802823 100644 --- a/client/lib/fastcomments-client/models/tenant_badge.rb +++ b/client/lib/fastcomments-client/models/tenant_badge.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TenantBadge + class TenantBadge < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -543,61 +543,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -614,24 +559,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/tenant_hash_tag.rb b/client/lib/fastcomments-client/models/tenant_hash_tag.rb index efdb21c..27f4d7f 100644 --- a/client/lib/fastcomments-client/models/tenant_hash_tag.rb +++ b/client/lib/fastcomments-client/models/tenant_hash_tag.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TenantHashTag + class TenantHashTag < ApiModelBase attr_accessor :_id attr_accessor :created_at @@ -230,61 +230,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -301,24 +246,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/tenant_package.rb b/client/lib/fastcomments-client/models/tenant_package.rb index 433abb2..8af3c38 100644 --- a/client/lib/fastcomments-client/models/tenant_package.rb +++ b/client/lib/fastcomments-client/models/tenant_package.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TenantPackage + class TenantPackage < ApiModelBase attr_accessor :_id attr_accessor :name @@ -1071,61 +1071,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -1142,24 +1087,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/tos_config.rb b/client/lib/fastcomments-client/models/tos_config.rb index 87543eb..6ddd234 100644 --- a/client/lib/fastcomments-client/models/tos_config.rb +++ b/client/lib/fastcomments-client/models/tos_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class TOSConfig + class TOSConfig < ApiModelBase attr_accessor :enabled # Construct a type with a set of properties K of type T @@ -147,61 +147,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -218,24 +163,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/un_block_from_comment_params.rb b/client/lib/fastcomments-client/models/un_block_from_comment_params.rb index 29362cf..fea2494 100644 --- a/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +++ b/client/lib/fastcomments-client/models/un_block_from_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UnBlockFromCommentParams + class UnBlockFromCommentParams < ApiModelBase attr_accessor :comment_ids_to_check # Attribute mapping from ruby-style variable name to JSON key. @@ -128,61 +128,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -199,24 +144,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/unblock_success.rb b/client/lib/fastcomments-client/models/unblock_success.rb index a43a676..a81dae4 100644 --- a/client/lib/fastcomments-client/models/unblock_success.rb +++ b/client/lib/fastcomments-client/models/unblock_success.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UnblockSuccess + class UnblockSuccess < ApiModelBase attr_accessor :status # Construct a type with a set of properties K of type T @@ -194,61 +194,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -265,24 +210,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/updatable_comment_params.rb b/client/lib/fastcomments-client/models/updatable_comment_params.rb index 516cced..ad259cd 100644 --- a/client/lib/fastcomments-client/models/updatable_comment_params.rb +++ b/client/lib/fastcomments-client/models/updatable_comment_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdatableCommentParams + class UpdatableCommentParams < ApiModelBase attr_accessor :url_id attr_accessor :url_id_raw @@ -493,61 +493,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -564,24 +509,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_api_page_data.rb b/client/lib/fastcomments-client/models/update_api_page_data.rb index 933fb32..10e8d41 100644 --- a/client/lib/fastcomments-client/models/update_api_page_data.rb +++ b/client/lib/fastcomments-client/models/update_api_page_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateAPIPageData + class UpdateAPIPageData < ApiModelBase attr_accessor :is_closed attr_accessor :accessible_by_group_ids @@ -164,61 +164,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -235,24 +180,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb b/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb index ab049a1..1332596 100644 --- a/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +++ b/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateAPIUserSubscriptionData + class UpdateAPIUserSubscriptionData < ApiModelBase attr_accessor :notification_frequency # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_apisso_user_data.rb b/client/lib/fastcomments-client/models/update_apisso_user_data.rb index 22baec5..18bbcd9 100644 --- a/client/lib/fastcomments-client/models/update_apisso_user_data.rb +++ b/client/lib/fastcomments-client/models/update_apisso_user_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateAPISSOUserData + class UpdateAPISSOUserData < ApiModelBase attr_accessor :group_ids attr_accessor :has_blocked_users @@ -299,61 +299,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -370,24 +315,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_domain_config_params.rb b/client/lib/fastcomments-client/models/update_domain_config_params.rb index 3bc959e..beeda31 100644 --- a/client/lib/fastcomments-client/models/update_domain_config_params.rb +++ b/client/lib/fastcomments-client/models/update_domain_config_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateDomainConfigParams + class UpdateDomainConfigParams < ApiModelBase attr_accessor :domain attr_accessor :email_from_name @@ -200,61 +200,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -271,24 +216,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_email_template_body.rb b/client/lib/fastcomments-client/models/update_email_template_body.rb index f258b4f..04f8f09 100644 --- a/client/lib/fastcomments-client/models/update_email_template_body.rb +++ b/client/lib/fastcomments-client/models/update_email_template_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateEmailTemplateBody + class UpdateEmailTemplateBody < ApiModelBase attr_accessor :email_template_id attr_accessor :display_name @@ -177,61 +177,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -248,24 +193,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_feed_post_params.rb b/client/lib/fastcomments-client/models/update_feed_post_params.rb index c29538a..cafe508 100644 --- a/client/lib/fastcomments-client/models/update_feed_post_params.rb +++ b/client/lib/fastcomments-client/models/update_feed_post_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateFeedPostParams + class UpdateFeedPostParams < ApiModelBase attr_accessor :title attr_accessor :content_html @@ -180,61 +180,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -251,24 +196,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_hash_tag_body.rb b/client/lib/fastcomments-client/models/update_hash_tag_body.rb index 2ca3168..92ee155 100644 --- a/client/lib/fastcomments-client/models/update_hash_tag_body.rb +++ b/client/lib/fastcomments-client/models/update_hash_tag_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateHashTagBody + class UpdateHashTagBody < ApiModelBase attr_accessor :tenant_id attr_accessor :url @@ -144,61 +144,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -215,24 +160,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_hash_tag_response.rb b/client/lib/fastcomments-client/models/update_hash_tag_response.rb index 5ef68f3..71a00fc 100644 --- a/client/lib/fastcomments-client/models/update_hash_tag_response.rb +++ b/client/lib/fastcomments-client/models/update_hash_tag_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateHashTagResponse + class UpdateHashTagResponse < ApiModelBase attr_accessor :status attr_accessor :hash_tag @@ -191,61 +191,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -262,24 +207,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_moderator_body.rb b/client/lib/fastcomments-client/models/update_moderator_body.rb index 5a60b99..14f616b 100644 --- a/client/lib/fastcomments-client/models/update_moderator_body.rb +++ b/client/lib/fastcomments-client/models/update_moderator_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateModeratorBody + class UpdateModeratorBody < ApiModelBase attr_accessor :name attr_accessor :email @@ -155,61 +155,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -226,24 +171,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_notification_body.rb b/client/lib/fastcomments-client/models/update_notification_body.rb index f991239..abc8412 100644 --- a/client/lib/fastcomments-client/models/update_notification_body.rb +++ b/client/lib/fastcomments-client/models/update_notification_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateNotificationBody + class UpdateNotificationBody < ApiModelBase attr_accessor :viewed attr_accessor :opted_out @@ -135,61 +135,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -206,24 +151,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_question_config_body.rb b/client/lib/fastcomments-client/models/update_question_config_body.rb index c93f35e..dacaa79 100644 --- a/client/lib/fastcomments-client/models/update_question_config_body.rb +++ b/client/lib/fastcomments-client/models/update_question_config_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateQuestionConfigBody + class UpdateQuestionConfigBody < ApiModelBase attr_accessor :name attr_accessor :question @@ -247,61 +247,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -318,24 +263,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_question_result_body.rb b/client/lib/fastcomments-client/models/update_question_result_body.rb index 093b45c..39ca16b 100644 --- a/client/lib/fastcomments-client/models/update_question_result_body.rb +++ b/client/lib/fastcomments-client/models/update_question_result_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateQuestionResultBody + class UpdateQuestionResultBody < ApiModelBase attr_accessor :url_id attr_accessor :anon_user_id @@ -183,61 +183,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -254,24 +199,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_subscription_api_response.rb b/client/lib/fastcomments-client/models/update_subscription_api_response.rb index 7ad4d6a..77f37f8 100644 --- a/client/lib/fastcomments-client/models/update_subscription_api_response.rb +++ b/client/lib/fastcomments-client/models/update_subscription_api_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateSubscriptionAPIResponse + class UpdateSubscriptionAPIResponse < ApiModelBase attr_accessor :reason attr_accessor :code @@ -170,61 +170,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -241,24 +186,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_body.rb b/client/lib/fastcomments-client/models/update_tenant_body.rb index 792d2bf..2a8e8be 100644 --- a/client/lib/fastcomments-client/models/update_tenant_body.rb +++ b/client/lib/fastcomments-client/models/update_tenant_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateTenantBody + class UpdateTenantBody < ApiModelBase attr_accessor :name attr_accessor :email @@ -338,61 +338,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -409,24 +354,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_package_body.rb b/client/lib/fastcomments-client/models/update_tenant_package_body.rb index b23ead9..2a34ab3 100644 --- a/client/lib/fastcomments-client/models/update_tenant_package_body.rb +++ b/client/lib/fastcomments-client/models/update_tenant_package_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateTenantPackageBody + class UpdateTenantPackageBody < ApiModelBase attr_accessor :name attr_accessor :monthly_cost_usd @@ -407,61 +407,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -478,24 +423,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_tenant_user_body.rb b/client/lib/fastcomments-client/models/update_tenant_user_body.rb index 55b487e..da9dc47 100644 --- a/client/lib/fastcomments-client/models/update_tenant_user_body.rb +++ b/client/lib/fastcomments-client/models/update_tenant_user_body.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateTenantUserBody + class UpdateTenantUserBody < ApiModelBase attr_accessor :username attr_accessor :display_name @@ -335,61 +335,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -406,24 +351,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_user_badge_params.rb b/client/lib/fastcomments-client/models/update_user_badge_params.rb index 87ede92..1ea9074 100644 --- a/client/lib/fastcomments-client/models/update_user_badge_params.rb +++ b/client/lib/fastcomments-client/models/update_user_badge_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UpdateUserBadgeParams + class UpdateUserBadgeParams < ApiModelBase attr_accessor :displayed_on_comments # Attribute mapping from ruby-style variable name to JSON key. @@ -126,61 +126,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -197,24 +142,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb index e3a5552..e88b141 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_comment_subscription_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb index 44de180..491062d 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_page_subscription_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/update_user_notification_status_response.rb b/client/lib/fastcomments-client/models/update_user_notification_status_response.rb index 32fbfd2..fcba347 100644 --- a/client/lib/fastcomments-client/models/update_user_notification_status_response.rb +++ b/client/lib/fastcomments-client/models/update_user_notification_status_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -37,8 +37,7 @@ def build(data) openapi_any_of.each do |klass| begin next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data + return find_and_cast_into_type(klass, data) rescue # rescue all errors so we keep iterating even if the current item lookup raises end end diff --git a/client/lib/fastcomments-client/models/upload_image_response.rb b/client/lib/fastcomments-client/models/upload_image_response.rb index aef1a4e..dd6268c 100644 --- a/client/lib/fastcomments-client/models/upload_image_response.rb +++ b/client/lib/fastcomments-client/models/upload_image_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UploadImageResponse + class UploadImageResponse < ApiModelBase attr_accessor :status attr_accessor :url @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user.rb b/client/lib/fastcomments-client/models/user.rb index f744084..4cb4d8f 100644 --- a/client/lib/fastcomments-client/models/user.rb +++ b/client/lib/fastcomments-client/models/user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class User + class User < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -813,61 +813,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -884,24 +829,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_badge.rb b/client/lib/fastcomments-client/models/user_badge.rb index 3200ac3..b60d7d9 100644 --- a/client/lib/fastcomments-client/models/user_badge.rb +++ b/client/lib/fastcomments-client/models/user_badge.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserBadge + class UserBadge < ApiModelBase attr_accessor :_id attr_accessor :user_id @@ -498,61 +498,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -569,24 +514,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_badge_progress.rb b/client/lib/fastcomments-client/models/user_badge_progress.rb index 8c45af2..b330320 100644 --- a/client/lib/fastcomments-client/models/user_badge_progress.rb +++ b/client/lib/fastcomments-client/models/user_badge_progress.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserBadgeProgress + class UserBadgeProgress < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -303,61 +303,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -374,24 +319,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_notification.rb b/client/lib/fastcomments-client/models/user_notification.rb index 3faf331..3f67b0b 100644 --- a/client/lib/fastcomments-client/models/user_notification.rb +++ b/client/lib/fastcomments-client/models/user_notification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserNotification + class UserNotification < ApiModelBase attr_accessor :_id attr_accessor :tenant_id @@ -573,61 +573,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -644,24 +589,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_notification_count.rb b/client/lib/fastcomments-client/models/user_notification_count.rb index 3e884c4..7b3a4e4 100644 --- a/client/lib/fastcomments-client/models/user_notification_count.rb +++ b/client/lib/fastcomments-client/models/user_notification_count.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserNotificationCount + class UserNotificationCount < ApiModelBase attr_accessor :_id attr_accessor :count @@ -221,61 +221,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -292,24 +237,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_notification_write_response.rb b/client/lib/fastcomments-client/models/user_notification_write_response.rb index 8aefac1..714afbc 100644 --- a/client/lib/fastcomments-client/models/user_notification_write_response.rb +++ b/client/lib/fastcomments-client/models/user_notification_write_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserNotificationWriteResponse + class UserNotificationWriteResponse < ApiModelBase attr_accessor :status attr_accessor :matched_count @@ -217,61 +217,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -288,24 +233,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_presence_data.rb b/client/lib/fastcomments-client/models/user_presence_data.rb index 9a203fc..a0ebc7f 100644 --- a/client/lib/fastcomments-client/models/user_presence_data.rb +++ b/client/lib/fastcomments-client/models/user_presence_data.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserPresenceData + class UserPresenceData < ApiModelBase attr_accessor :url_id_ws attr_accessor :user_id_ws @@ -144,61 +144,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -215,24 +160,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_reacts_response.rb b/client/lib/fastcomments-client/models/user_reacts_response.rb index 78c8f06..ad56296 100644 --- a/client/lib/fastcomments-client/models/user_reacts_response.rb +++ b/client/lib/fastcomments-client/models/user_reacts_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserReactsResponse + class UserReactsResponse < ApiModelBase attr_accessor :status attr_accessor :reacts @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_search_result.rb b/client/lib/fastcomments-client/models/user_search_result.rb index d580936..2fcb181 100644 --- a/client/lib/fastcomments-client/models/user_search_result.rb +++ b/client/lib/fastcomments-client/models/user_search_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserSearchResult + class UserSearchResult < ApiModelBase attr_accessor :id attr_accessor :name @@ -238,61 +238,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -309,24 +254,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_search_section.rb b/client/lib/fastcomments-client/models/user_search_section.rb index 3259c4b..ccd69fe 100644 --- a/client/lib/fastcomments-client/models/user_search_section.rb +++ b/client/lib/fastcomments-client/models/user_search_section.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/user_search_section_result.rb b/client/lib/fastcomments-client/models/user_search_section_result.rb index 284ec4b..0a4da86 100644 --- a/client/lib/fastcomments-client/models/user_search_section_result.rb +++ b/client/lib/fastcomments-client/models/user_search_section_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserSearchSectionResult + class UserSearchSectionResult < ApiModelBase attr_accessor :section attr_accessor :users @@ -193,61 +193,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -264,24 +209,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/user_session_info.rb b/client/lib/fastcomments-client/models/user_session_info.rb index 13c88dd..2784692 100644 --- a/client/lib/fastcomments-client/models/user_session_info.rb +++ b/client/lib/fastcomments-client/models/user_session_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class UserSessionInfo + class UserSessionInfo < ApiModelBase attr_accessor :id attr_accessor :authorized @@ -250,61 +250,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -321,24 +266,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/users_list_location.rb b/client/lib/fastcomments-client/models/users_list_location.rb index 3f159b8..dc32f7d 100644 --- a/client/lib/fastcomments-client/models/users_list_location.rb +++ b/client/lib/fastcomments-client/models/users_list_location.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/models/vote_body_params.rb b/client/lib/fastcomments-client/models/vote_body_params.rb index d4b845b..ca5238d 100644 --- a/client/lib/fastcomments-client/models/vote_body_params.rb +++ b/client/lib/fastcomments-client/models/vote_body_params.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteBodyParams + class VoteBodyParams < ApiModelBase attr_accessor :commenter_email attr_accessor :commenter_name @@ -203,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -274,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_delete_response.rb b/client/lib/fastcomments-client/models/vote_delete_response.rb index e9f9e03..a869aae 100644 --- a/client/lib/fastcomments-client/models/vote_delete_response.rb +++ b/client/lib/fastcomments-client/models/vote_delete_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteDeleteResponse + class VoteDeleteResponse < ApiModelBase attr_accessor :status attr_accessor :was_pending_vote @@ -174,61 +174,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -245,24 +190,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_response.rb b/client/lib/fastcomments-client/models/vote_response.rb index dad040e..8f734a4 100644 --- a/client/lib/fastcomments-client/models/vote_response.rb +++ b/client/lib/fastcomments-client/models/vote_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteResponse + class VoteResponse < ApiModelBase attr_accessor :status attr_accessor :vote_id @@ -25,6 +25,28 @@ class VoteResponse attr_accessor :edit_key + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +71,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'status' => :'VoteResponseStatus', + :'status' => :'String', :'vote_id' => :'String', :'is_verified' => :'Boolean', :'user' => :'VoteResponseUser', @@ -119,16 +141,18 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @status.nil? + status_validator = EnumAttributeValidator.new('String', ["success", "failed", "pending-verification"]) + return false unless status_validator.valid?(@status) true end - # Custom attribute writer method with validation - # @param [Object] status Value to be assigned + # Custom attribute writer method checking allowed values (enum). + # @param [Object] status Object to be assigned def status=(status) - if status.nil? - fail ArgumentError, 'status cannot be nil' + validator = EnumAttributeValidator.new('String', ["success", "failed", "pending-verification"]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end - @status = status end @@ -179,61 +203,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -250,24 +219,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_response_status.rb b/client/lib/fastcomments-client/models/vote_response_status.rb deleted file mode 100644 index cd0e54e..0000000 --- a/client/lib/fastcomments-client/models/vote_response_status.rb +++ /dev/null @@ -1,104 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.14.0 - -=end - -require 'date' -require 'time' - -module FastCommentsClient - module VoteResponseStatus - class << self - # List of class defined in anyOf (OpenAPI v3) - def openapi_any_of - [ - :'APIStatus', - :'String' - ] - end - - # Builds the object - # @param [Mixed] Data to be matched against the list of anyOf items - # @return [Object] Returns the model or the data itself - def build(data) - # Go through the list of anyOf items and attempt to identify the appropriate one. - # Note: - # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) - # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are de facto behaving as if they were nullable. - # - TODO: logging when debugging is set. - openapi_any_of.each do |klass| - begin - next if klass == :AnyType # "nullable: true" - typed_data = find_and_cast_into_type(klass, data) - return typed_data if typed_data - rescue # rescue all errors so we keep iterating even if the current item lookup raises - end - end - - openapi_any_of.include?(:AnyType) ? data : nil - end - - private - - SchemaMismatchError = Class.new(StandardError) - - # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. - def find_and_cast_into_type(klass, data) - return if data.nil? - - case klass.to_s - when 'Boolean' - return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) - when 'Float' - return data if data.instance_of?(Float) - when 'Integer' - return data if data.instance_of?(Integer) - when 'Time' - return Time.parse(data) - when 'Date' - return Date.iso8601(data) - when 'String' - return data if data.instance_of?(String) - when 'Object' # "type: object" - return data if data.instance_of?(Hash) - when /\AArray<(?.+)>\z/ # "type: array" - if data.instance_of?(Array) - sub_type = Regexp.last_match[:sub_type] - return data.map { |item| find_and_cast_into_type(sub_type, item) } - end - when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" - if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } - sub_type = Regexp.last_match[:sub_type] - return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } - end - else # model - const = FastCommentsClient.const_get(klass) - if const - if const.respond_to?(:openapi_any_of) # nested anyOf model - model = const.build(data) - return model if model - else - # raise if data contains keys that are not known to the model - raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty? - model = const.build_from_hash(data) - return model if model - end - end - end - - raise # if no match by now, raise - rescue - raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" - end - end - end - -end diff --git a/client/lib/fastcomments-client/models/vote_response_user.rb b/client/lib/fastcomments-client/models/vote_response_user.rb index aba9056..24677d9 100644 --- a/client/lib/fastcomments-client/models/vote_response_user.rb +++ b/client/lib/fastcomments-client/models/vote_response_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,7 +14,7 @@ require 'time' module FastCommentsClient - class VoteResponseUser + class VoteResponseUser < ApiModelBase attr_accessor :session_id # Attribute mapping from ruby-style variable name to JSON key. @@ -127,61 +127,6 @@ def self.build_from_hash(attributes) new(transformed_hash) end - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def self._deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = FastCommentsClient.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash def to_hash @@ -198,24 +143,6 @@ def to_hash hash end - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end end diff --git a/client/lib/fastcomments-client/models/vote_style.rb b/client/lib/fastcomments-client/models/vote_style.rb index 14ba79e..84ec9d6 100644 --- a/client/lib/fastcomments-client/models/vote_style.rb +++ b/client/lib/fastcomments-client/models/vote_style.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/lib/fastcomments-client/version.rb b/client/lib/fastcomments-client/version.rb index dc70fb6..155ca92 100644 --- a/client/lib/fastcomments-client/version.rb +++ b/client/lib/fastcomments-client/version.rb @@ -6,10 +6,10 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end module FastCommentsClient - VERSION = '1.2.1' + VERSION = '3.0.0' end diff --git a/client/spec/api/default_api_spec.rb b/client/spec/api/default_api_spec.rb index 38aad53..8d99717 100644 --- a/client/spec/api/default_api_spec.rb +++ b/client/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -44,8 +44,8 @@ end # unit tests for add_hash_tag + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [CreateHashTagBody] :create_hash_tag_body # @return [CreateHashTagResponse] describe 'add_hash_tag test' do @@ -55,8 +55,8 @@ end # unit tests for add_hash_tags_bulk + # @param tenant_id # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [BulkCreateHashTagsBody] :bulk_create_hash_tags_body # @return [BulkCreateHashTagsResponse] describe 'add_hash_tags_bulk test' do @@ -362,9 +362,9 @@ end # unit tests for delete_hash_tag + # @param tenant_id # @param tag # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [DeleteHashTagRequestBody] :delete_hash_tag_request_body # @return [APIEmptyResponse] describe 'delete_hash_tag test' do @@ -1107,9 +1107,9 @@ end # unit tests for patch_hash_tag + # @param tenant_id # @param tag # @param [Hash] opts the optional parameters - # @option opts [String] :tenant_id # @option opts [UpdateHashTagBody] :update_hash_tag_body # @return [UpdateHashTagResponse] describe 'patch_hash_tag test' do diff --git a/client/spec/api/moderation_api_spec.rb b/client/spec/api/moderation_api_spec.rb index 276dd14..74aa9c7 100644 --- a/client/spec/api/moderation_api_spec.rb +++ b/client/spec/api/moderation_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -33,9 +33,11 @@ end # unit tests for delete_moderation_vote + # @param tenant_id # @param comment_id # @param vote_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteDeleteResponse] describe 'delete_moderation_vote test' do @@ -45,6 +47,7 @@ end # unit tests for get_api_comments + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [Float] :page # @option opts [Float] :count @@ -63,6 +66,7 @@ end # unit tests for get_api_export_status + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :batch_job_id # @option opts [String] :sso @@ -74,6 +78,7 @@ end # unit tests for get_api_ids + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -90,6 +95,7 @@ end # unit tests for get_ban_users_from_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -101,6 +107,7 @@ end # unit tests for get_comment_ban_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -112,6 +119,7 @@ end # unit tests for get_comment_children + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -123,6 +131,7 @@ end # unit tests for get_count + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -138,6 +147,7 @@ end # unit tests for get_counts + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetBannedUsersCountResponse] @@ -148,6 +158,7 @@ end # unit tests for get_logs + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -159,6 +170,7 @@ end # unit tests for get_manual_badges + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [GetTenantManualBadgesResponse] @@ -169,6 +181,7 @@ end # unit tests for get_manual_badges_for_user + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :badges_user_id # @option opts [String] :comment_id @@ -181,6 +194,7 @@ end # unit tests for get_moderation_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_email @@ -194,6 +208,7 @@ end # unit tests for get_moderation_comment_text + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -205,6 +220,7 @@ end # unit tests for get_pre_ban_summary + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email @@ -219,6 +235,7 @@ end # unit tests for get_search_comments_summary + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :filters @@ -232,6 +249,7 @@ end # unit tests for get_search_pages + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso @@ -243,6 +261,7 @@ end # unit tests for get_search_sites + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso @@ -254,6 +273,7 @@ end # unit tests for get_search_suggest + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :sso @@ -265,6 +285,7 @@ end # unit tests for get_search_users + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :value # @option opts [String] :sso @@ -276,6 +297,7 @@ end # unit tests for get_trust_factor + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :sso @@ -287,6 +309,7 @@ end # unit tests for get_user_ban_preference + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :sso # @return [APIModerateGetUserBanPreferencesResponse] @@ -297,6 +320,7 @@ end # unit tests for get_user_internal_profile + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :comment_id # @option opts [String] :sso @@ -308,9 +332,11 @@ end # unit tests for post_adjust_comment_votes + # @param tenant_id # @param comment_id # @param adjust_comment_votes_params # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [AdjustVotesResponse] describe 'post_adjust_comment_votes test' do @@ -320,6 +346,7 @@ end # unit tests for post_api_export + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :text_search # @option opts [String] :by_ip_from_comment @@ -335,6 +362,7 @@ end # unit tests for post_ban_user_from_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :ban_email @@ -354,6 +382,7 @@ end # unit tests for post_ban_user_undo + # @param tenant_id # @param ban_user_undo_params # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -365,6 +394,7 @@ end # unit tests for post_bulk_pre_ban_summary + # @param tenant_id # @param bulk_pre_ban_params # @param [Hash] opts the optional parameters # @option opts [Boolean] :include_by_user_id_and_email @@ -379,6 +409,7 @@ end # unit tests for post_comments_by_ids + # @param tenant_id # @param comments_by_ids_params # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -390,8 +421,10 @@ end # unit tests for post_flag_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_flag_comment test' do @@ -401,10 +434,12 @@ end # unit tests for post_remove_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso - # @return [PostRemoveCommentResponse] + # @return [PostRemoveCommentApiResponse] describe 'post_remove_comment test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -412,8 +447,10 @@ end # unit tests for post_restore_deleted_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_restore_deleted_comment test' do @@ -423,9 +460,11 @@ end # unit tests for post_set_comment_approval_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :approved + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentApprovedResponse] describe 'post_set_comment_approval_status test' do @@ -435,9 +474,11 @@ end # unit tests for post_set_comment_review_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :reviewed + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_set_comment_review_status test' do @@ -447,10 +488,12 @@ end # unit tests for post_set_comment_spam_status + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [Boolean] :spam # @option opts [Boolean] :perm_not_spam + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_set_comment_spam_status test' do @@ -460,9 +503,11 @@ end # unit tests for post_set_comment_text + # @param tenant_id # @param comment_id # @param set_comment_text_params # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [SetCommentTextResponse] describe 'post_set_comment_text test' do @@ -472,8 +517,10 @@ end # unit tests for post_un_flag_comment + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [APIEmptyResponse] describe 'post_un_flag_comment test' do @@ -483,9 +530,11 @@ end # unit tests for post_vote + # @param tenant_id # @param comment_id # @param [Hash] opts the optional parameters # @option opts [String] :direction + # @option opts [String] :broadcast_id # @option opts [String] :sso # @return [VoteResponse] describe 'post_vote test' do @@ -495,6 +544,7 @@ end # unit tests for put_award_badge + # @param tenant_id # @param badge_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id @@ -509,6 +559,7 @@ end # unit tests for put_close_thread + # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -520,6 +571,7 @@ end # unit tests for put_remove_badge + # @param tenant_id # @param badge_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id @@ -534,6 +586,7 @@ end # unit tests for put_reopen_thread + # @param tenant_id # @param url_id # @param [Hash] opts the optional parameters # @option opts [String] :sso @@ -545,6 +598,7 @@ end # unit tests for set_trust_factor + # @param tenant_id # @param [Hash] opts the optional parameters # @option opts [String] :user_id # @option opts [String] :trust_factor diff --git a/client/spec/api/public_api_spec.rb b/client/spec/api/public_api_spec.rb index 0e9fdbf..e68b21d 100644 --- a/client/spec/api/public_api_spec.rb +++ b/client/spec/api/public_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/add_domain_config_params_spec.rb b/client/spec/models/add_domain_config_params_spec.rb index 475d392..677c5b8 100644 --- a/client/spec/models/add_domain_config_params_spec.rb +++ b/client/spec/models/add_domain_config_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddDomainConfigParams do - let(:instance) { FastCommentsClient::AddDomainConfigParams.new } + #let(:instance) { FastCommentsClient::AddDomainConfigParams.new } describe 'test an instance of AddDomainConfigParams' do it 'should create an instance of AddDomainConfigParams' do diff --git a/client/spec/models/add_domain_config_response_any_of_spec.rb b/client/spec/models/add_domain_config_response_any_of_spec.rb index c2af49a..30d5e41 100644 --- a/client/spec/models/add_domain_config_response_any_of_spec.rb +++ b/client/spec/models/add_domain_config_response_any_of_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddDomainConfigResponseAnyOf do - let(:instance) { FastCommentsClient::AddDomainConfigResponseAnyOf.new } + #let(:instance) { FastCommentsClient::AddDomainConfigResponseAnyOf.new } describe 'test an instance of AddDomainConfigResponseAnyOf' do it 'should create an instance of AddDomainConfigResponseAnyOf' do diff --git a/client/spec/models/add_domain_config_response_spec.rb b/client/spec/models/add_domain_config_response_spec.rb index 3d48e27..dc7f857 100644 --- a/client/spec/models/add_domain_config_response_spec.rb +++ b/client/spec/models/add_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/add_page_api_response_spec.rb b/client/spec/models/add_page_api_response_spec.rb index f1315b2..be7dae3 100644 --- a/client/spec/models/add_page_api_response_spec.rb +++ b/client/spec/models/add_page_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddPageAPIResponse do - let(:instance) { FastCommentsClient::AddPageAPIResponse.new } + #let(:instance) { FastCommentsClient::AddPageAPIResponse.new } describe 'test an instance of AddPageAPIResponse' do it 'should create an instance of AddPageAPIResponse' do diff --git a/client/spec/models/add_sso_user_api_response_spec.rb b/client/spec/models/add_sso_user_api_response_spec.rb index 89e6a3d..bf23a9c 100644 --- a/client/spec/models/add_sso_user_api_response_spec.rb +++ b/client/spec/models/add_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AddSSOUserAPIResponse do - let(:instance) { FastCommentsClient::AddSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::AddSSOUserAPIResponse.new } describe 'test an instance of AddSSOUserAPIResponse' do it 'should create an instance of AddSSOUserAPIResponse' do diff --git a/client/spec/models/adjust_comment_votes_params_spec.rb b/client/spec/models/adjust_comment_votes_params_spec.rb index 3937c92..da8bb51 100644 --- a/client/spec/models/adjust_comment_votes_params_spec.rb +++ b/client/spec/models/adjust_comment_votes_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AdjustCommentVotesParams do - let(:instance) { FastCommentsClient::AdjustCommentVotesParams.new } + #let(:instance) { FastCommentsClient::AdjustCommentVotesParams.new } describe 'test an instance of AdjustCommentVotesParams' do it 'should create an instance of AdjustCommentVotesParams' do diff --git a/client/spec/models/adjust_votes_response_spec.rb b/client/spec/models/adjust_votes_response_spec.rb index 434ca4d..8473ef6 100644 --- a/client/spec/models/adjust_votes_response_spec.rb +++ b/client/spec/models/adjust_votes_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AdjustVotesResponse do - let(:instance) { FastCommentsClient::AdjustVotesResponse.new } + #let(:instance) { FastCommentsClient::AdjustVotesResponse.new } describe 'test an instance of AdjustVotesResponse' do it 'should create an instance of AdjustVotesResponse' do diff --git a/client/spec/models/aggregate_question_results_response_spec.rb b/client/spec/models/aggregate_question_results_response_spec.rb index 03bca60..a85b700 100644 --- a/client/spec/models/aggregate_question_results_response_spec.rb +++ b/client/spec/models/aggregate_question_results_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregateQuestionResultsResponse do - let(:instance) { FastCommentsClient::AggregateQuestionResultsResponse.new } + #let(:instance) { FastCommentsClient::AggregateQuestionResultsResponse.new } describe 'test an instance of AggregateQuestionResultsResponse' do it 'should create an instance of AggregateQuestionResultsResponse' do diff --git a/client/spec/models/aggregate_response_spec.rb b/client/spec/models/aggregate_response_spec.rb index 01c902b..6803175 100644 --- a/client/spec/models/aggregate_response_spec.rb +++ b/client/spec/models/aggregate_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/aggregate_time_bucket_spec.rb b/client/spec/models/aggregate_time_bucket_spec.rb index d24fed6..666ecfa 100644 --- a/client/spec/models/aggregate_time_bucket_spec.rb +++ b/client/spec/models/aggregate_time_bucket_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregateTimeBucket do - let(:instance) { FastCommentsClient::AggregateTimeBucket.new } + #let(:instance) { FastCommentsClient::AggregateTimeBucket.new } describe 'test an instance of AggregateTimeBucket' do it 'should create an instance of AggregateTimeBucket' do diff --git a/client/spec/models/aggregation_api_error_spec.rb b/client/spec/models/aggregation_api_error_spec.rb index e0c33cc..6c380c5 100644 --- a/client/spec/models/aggregation_api_error_spec.rb +++ b/client/spec/models/aggregation_api_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationAPIError do - let(:instance) { FastCommentsClient::AggregationAPIError.new } + #let(:instance) { FastCommentsClient::AggregationAPIError.new } describe 'test an instance of AggregationAPIError' do it 'should create an instance of AggregationAPIError' do diff --git a/client/spec/models/aggregation_item_spec.rb b/client/spec/models/aggregation_item_spec.rb index bd4d40a..0bd3949 100644 --- a/client/spec/models/aggregation_item_spec.rb +++ b/client/spec/models/aggregation_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationItem do - let(:instance) { FastCommentsClient::AggregationItem.new } + #let(:instance) { FastCommentsClient::AggregationItem.new } describe 'test an instance of AggregationItem' do it 'should create an instance of AggregationItem' do diff --git a/client/spec/models/aggregation_op_type_spec.rb b/client/spec/models/aggregation_op_type_spec.rb index ea1281b..5c9a1e7 100644 --- a/client/spec/models/aggregation_op_type_spec.rb +++ b/client/spec/models/aggregation_op_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationOpType do - let(:instance) { FastCommentsClient::AggregationOpType.new } + #let(:instance) { FastCommentsClient::AggregationOpType.new } describe 'test an instance of AggregationOpType' do it 'should create an instance of AggregationOpType' do diff --git a/client/spec/models/aggregation_operation_spec.rb b/client/spec/models/aggregation_operation_spec.rb index e86ce40..4fae3f1 100644 --- a/client/spec/models/aggregation_operation_spec.rb +++ b/client/spec/models/aggregation_operation_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationOperation do - let(:instance) { FastCommentsClient::AggregationOperation.new } + #let(:instance) { FastCommentsClient::AggregationOperation.new } describe 'test an instance of AggregationOperation' do it 'should create an instance of AggregationOperation' do diff --git a/client/spec/models/aggregation_request_sort_spec.rb b/client/spec/models/aggregation_request_sort_spec.rb index 0cd97ce..ba1d07f 100644 --- a/client/spec/models/aggregation_request_sort_spec.rb +++ b/client/spec/models/aggregation_request_sort_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationRequestSort do - let(:instance) { FastCommentsClient::AggregationRequestSort.new } + #let(:instance) { FastCommentsClient::AggregationRequestSort.new } describe 'test an instance of AggregationRequestSort' do it 'should create an instance of AggregationRequestSort' do diff --git a/client/spec/models/aggregation_request_spec.rb b/client/spec/models/aggregation_request_spec.rb index 52e3932..0c78cb5 100644 --- a/client/spec/models/aggregation_request_spec.rb +++ b/client/spec/models/aggregation_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationRequest do - let(:instance) { FastCommentsClient::AggregationRequest.new } + #let(:instance) { FastCommentsClient::AggregationRequest.new } describe 'test an instance of AggregationRequest' do it 'should create an instance of AggregationRequest' do diff --git a/client/spec/models/aggregation_response_spec.rb b/client/spec/models/aggregation_response_spec.rb index e267cf1..a389946 100644 --- a/client/spec/models/aggregation_response_spec.rb +++ b/client/spec/models/aggregation_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationResponse do - let(:instance) { FastCommentsClient::AggregationResponse.new } + #let(:instance) { FastCommentsClient::AggregationResponse.new } describe 'test an instance of AggregationResponse' do it 'should create an instance of AggregationResponse' do diff --git a/client/spec/models/aggregation_response_stats_spec.rb b/client/spec/models/aggregation_response_stats_spec.rb index f237f77..d56e107 100644 --- a/client/spec/models/aggregation_response_stats_spec.rb +++ b/client/spec/models/aggregation_response_stats_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationResponseStats do - let(:instance) { FastCommentsClient::AggregationResponseStats.new } + #let(:instance) { FastCommentsClient::AggregationResponseStats.new } describe 'test an instance of AggregationResponseStats' do it 'should create an instance of AggregationResponseStats' do diff --git a/client/spec/models/aggregation_value_spec.rb b/client/spec/models/aggregation_value_spec.rb index 66d6b47..5914d59 100644 --- a/client/spec/models/aggregation_value_spec.rb +++ b/client/spec/models/aggregation_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AggregationValue do - let(:instance) { FastCommentsClient::AggregationValue.new } + #let(:instance) { FastCommentsClient::AggregationValue.new } describe 'test an instance of AggregationValue' do it 'should create an instance of AggregationValue' do diff --git a/client/spec/models/api_audit_log_spec.rb b/client/spec/models/api_audit_log_spec.rb index f85a13c..8b1e198 100644 --- a/client/spec/models/api_audit_log_spec.rb +++ b/client/spec/models/api_audit_log_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIAuditLog do - let(:instance) { FastCommentsClient::APIAuditLog.new } + #let(:instance) { FastCommentsClient::APIAuditLog.new } describe 'test an instance of APIAuditLog' do it 'should create an instance of APIAuditLog' do diff --git a/client/spec/models/api_ban_user_change_log_spec.rb b/client/spec/models/api_ban_user_change_log_spec.rb index 65cc5ae..ffd83cb 100644 --- a/client/spec/models/api_ban_user_change_log_spec.rb +++ b/client/spec/models/api_ban_user_change_log_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBanUserChangeLog do - let(:instance) { FastCommentsClient::APIBanUserChangeLog.new } + #let(:instance) { FastCommentsClient::APIBanUserChangeLog.new } describe 'test an instance of APIBanUserChangeLog' do it 'should create an instance of APIBanUserChangeLog' do diff --git a/client/spec/models/api_ban_user_changed_values_spec.rb b/client/spec/models/api_ban_user_changed_values_spec.rb index 41e00a0..f6816a6 100644 --- a/client/spec/models/api_ban_user_changed_values_spec.rb +++ b/client/spec/models/api_ban_user_changed_values_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBanUserChangedValues do - let(:instance) { FastCommentsClient::APIBanUserChangedValues.new } + #let(:instance) { FastCommentsClient::APIBanUserChangedValues.new } describe 'test an instance of APIBanUserChangedValues' do it 'should create an instance of APIBanUserChangedValues' do diff --git a/client/spec/models/api_banned_user_spec.rb b/client/spec/models/api_banned_user_spec.rb index 8c9bcdd..0fba102 100644 --- a/client/spec/models/api_banned_user_spec.rb +++ b/client/spec/models/api_banned_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBannedUser do - let(:instance) { FastCommentsClient::APIBannedUser.new } + #let(:instance) { FastCommentsClient::APIBannedUser.new } describe 'test an instance of APIBannedUser' do it 'should create an instance of APIBannedUser' do diff --git a/client/spec/models/api_banned_user_with_multi_match_info_spec.rb b/client/spec/models/api_banned_user_with_multi_match_info_spec.rb index 994caae..ffde72b 100644 --- a/client/spec/models/api_banned_user_with_multi_match_info_spec.rb +++ b/client/spec/models/api_banned_user_with_multi_match_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIBannedUserWithMultiMatchInfo do - let(:instance) { FastCommentsClient::APIBannedUserWithMultiMatchInfo.new } + #let(:instance) { FastCommentsClient::APIBannedUserWithMultiMatchInfo.new } describe 'test an instance of APIBannedUserWithMultiMatchInfo' do it 'should create an instance of APIBannedUserWithMultiMatchInfo' do diff --git a/client/spec/models/api_comment_base_meta_spec.rb b/client/spec/models/api_comment_base_meta_spec.rb index 4902966..d5702cc 100644 --- a/client/spec/models/api_comment_base_meta_spec.rb +++ b/client/spec/models/api_comment_base_meta_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICommentBaseMeta do - let(:instance) { FastCommentsClient::APICommentBaseMeta.new } + #let(:instance) { FastCommentsClient::APICommentBaseMeta.new } describe 'test an instance of APICommentBaseMeta' do it 'should create an instance of APICommentBaseMeta' do diff --git a/client/spec/models/api_comment_base_spec.rb b/client/spec/models/api_comment_base_spec.rb index bb3d305..c273495 100644 --- a/client/spec/models/api_comment_base_spec.rb +++ b/client/spec/models/api_comment_base_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICommentBase do - let(:instance) { FastCommentsClient::APICommentBase.new } + #let(:instance) { FastCommentsClient::APICommentBase.new } describe 'test an instance of APICommentBase' do it 'should create an instance of APICommentBase' do diff --git a/client/spec/models/api_comment_common_banned_user_spec.rb b/client/spec/models/api_comment_common_banned_user_spec.rb index 0b6381c..950c024 100644 --- a/client/spec/models/api_comment_common_banned_user_spec.rb +++ b/client/spec/models/api_comment_common_banned_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICommentCommonBannedUser do - let(:instance) { FastCommentsClient::APICommentCommonBannedUser.new } + #let(:instance) { FastCommentsClient::APICommentCommonBannedUser.new } describe 'test an instance of APICommentCommonBannedUser' do it 'should create an instance of APICommentCommonBannedUser' do diff --git a/client/spec/models/api_comment_spec.rb b/client/spec/models/api_comment_spec.rb index ebe10ae..9b4bafa 100644 --- a/client/spec/models/api_comment_spec.rb +++ b/client/spec/models/api_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIComment do - let(:instance) { FastCommentsClient::APIComment.new } + #let(:instance) { FastCommentsClient::APIComment.new } describe 'test an instance of APIComment' do it 'should create an instance of APIComment' do diff --git a/client/spec/models/api_create_user_badge_response_spec.rb b/client/spec/models/api_create_user_badge_response_spec.rb index 49c46f6..da06a64 100644 --- a/client/spec/models/api_create_user_badge_response_spec.rb +++ b/client/spec/models/api_create_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APICreateUserBadgeResponse do - let(:instance) { FastCommentsClient::APICreateUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::APICreateUserBadgeResponse.new } describe 'test an instance of APICreateUserBadgeResponse' do it 'should create an instance of APICreateUserBadgeResponse' do diff --git a/client/spec/models/api_domain_configuration_spec.rb b/client/spec/models/api_domain_configuration_spec.rb index 1ed3516..5978f7c 100644 --- a/client/spec/models/api_domain_configuration_spec.rb +++ b/client/spec/models/api_domain_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIDomainConfiguration do - let(:instance) { FastCommentsClient::APIDomainConfiguration.new } + #let(:instance) { FastCommentsClient::APIDomainConfiguration.new } describe 'test an instance of APIDomainConfiguration' do it 'should create an instance of APIDomainConfiguration' do diff --git a/client/spec/models/api_empty_response_spec.rb b/client/spec/models/api_empty_response_spec.rb index 32f88a3..63e5b2f 100644 --- a/client/spec/models/api_empty_response_spec.rb +++ b/client/spec/models/api_empty_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIEmptyResponse do - let(:instance) { FastCommentsClient::APIEmptyResponse.new } + #let(:instance) { FastCommentsClient::APIEmptyResponse.new } describe 'test an instance of APIEmptyResponse' do it 'should create an instance of APIEmptyResponse' do diff --git a/client/spec/models/api_empty_success_response_spec.rb b/client/spec/models/api_empty_success_response_spec.rb index b2567ec..413bc02 100644 --- a/client/spec/models/api_empty_success_response_spec.rb +++ b/client/spec/models/api_empty_success_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIEmptySuccessResponse do - let(:instance) { FastCommentsClient::APIEmptySuccessResponse.new } + #let(:instance) { FastCommentsClient::APIEmptySuccessResponse.new } describe 'test an instance of APIEmptySuccessResponse' do it 'should create an instance of APIEmptySuccessResponse' do diff --git a/client/spec/models/api_error_spec.rb b/client/spec/models/api_error_spec.rb index 5f92242..3a005d4 100644 --- a/client/spec/models/api_error_spec.rb +++ b/client/spec/models/api_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIError do - let(:instance) { FastCommentsClient::APIError.new } + #let(:instance) { FastCommentsClient::APIError.new } describe 'test an instance of APIError' do it 'should create an instance of APIError' do diff --git a/client/spec/models/api_get_comment_response_spec.rb b/client/spec/models/api_get_comment_response_spec.rb index a2ce65c..c46ad54 100644 --- a/client/spec/models/api_get_comment_response_spec.rb +++ b/client/spec/models/api_get_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetCommentResponse do - let(:instance) { FastCommentsClient::APIGetCommentResponse.new } + #let(:instance) { FastCommentsClient::APIGetCommentResponse.new } describe 'test an instance of APIGetCommentResponse' do it 'should create an instance of APIGetCommentResponse' do diff --git a/client/spec/models/api_get_comments_response_spec.rb b/client/spec/models/api_get_comments_response_spec.rb index e3856cd..fa1319b 100644 --- a/client/spec/models/api_get_comments_response_spec.rb +++ b/client/spec/models/api_get_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetCommentsResponse do - let(:instance) { FastCommentsClient::APIGetCommentsResponse.new } + #let(:instance) { FastCommentsClient::APIGetCommentsResponse.new } describe 'test an instance of APIGetCommentsResponse' do it 'should create an instance of APIGetCommentsResponse' do diff --git a/client/spec/models/api_get_user_badge_progress_list_response_spec.rb b/client/spec/models/api_get_user_badge_progress_list_response_spec.rb index f5cd733..2fe72a0 100644 --- a/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +++ b/client/spec/models/api_get_user_badge_progress_list_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgeProgressListResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgeProgressListResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgeProgressListResponse.new } describe 'test an instance of APIGetUserBadgeProgressListResponse' do it 'should create an instance of APIGetUserBadgeProgressListResponse' do diff --git a/client/spec/models/api_get_user_badge_progress_response_spec.rb b/client/spec/models/api_get_user_badge_progress_response_spec.rb index 781343e..9a0a6ab 100644 --- a/client/spec/models/api_get_user_badge_progress_response_spec.rb +++ b/client/spec/models/api_get_user_badge_progress_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgeProgressResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgeProgressResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgeProgressResponse.new } describe 'test an instance of APIGetUserBadgeProgressResponse' do it 'should create an instance of APIGetUserBadgeProgressResponse' do diff --git a/client/spec/models/api_get_user_badge_response_spec.rb b/client/spec/models/api_get_user_badge_response_spec.rb index 0591d62..69e3fcc 100644 --- a/client/spec/models/api_get_user_badge_response_spec.rb +++ b/client/spec/models/api_get_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgeResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgeResponse.new } describe 'test an instance of APIGetUserBadgeResponse' do it 'should create an instance of APIGetUserBadgeResponse' do diff --git a/client/spec/models/api_get_user_badges_response_spec.rb b/client/spec/models/api_get_user_badges_response_spec.rb index 69934b7..ccb4629 100644 --- a/client/spec/models/api_get_user_badges_response_spec.rb +++ b/client/spec/models/api_get_user_badges_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIGetUserBadgesResponse do - let(:instance) { FastCommentsClient::APIGetUserBadgesResponse.new } + #let(:instance) { FastCommentsClient::APIGetUserBadgesResponse.new } describe 'test an instance of APIGetUserBadgesResponse' do it 'should create an instance of APIGetUserBadgesResponse' do diff --git a/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb b/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb index 6e89b2f..de4ef71 100644 --- a/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb +++ b/client/spec/models/api_moderate_get_user_ban_preferences_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIModerateGetUserBanPreferencesResponse do - let(:instance) { FastCommentsClient::APIModerateGetUserBanPreferencesResponse.new } + #let(:instance) { FastCommentsClient::APIModerateGetUserBanPreferencesResponse.new } describe 'test an instance of APIModerateGetUserBanPreferencesResponse' do it 'should create an instance of APIModerateGetUserBanPreferencesResponse' do diff --git a/client/spec/models/api_moderate_user_ban_preferences_spec.rb b/client/spec/models/api_moderate_user_ban_preferences_spec.rb index 2d80fc4..cd0a3cb 100644 --- a/client/spec/models/api_moderate_user_ban_preferences_spec.rb +++ b/client/spec/models/api_moderate_user_ban_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIModerateUserBanPreferences do - let(:instance) { FastCommentsClient::APIModerateUserBanPreferences.new } + #let(:instance) { FastCommentsClient::APIModerateUserBanPreferences.new } describe 'test an instance of APIModerateUserBanPreferences' do it 'should create an instance of APIModerateUserBanPreferences' do diff --git a/client/spec/models/api_page_spec.rb b/client/spec/models/api_page_spec.rb index f7b6e78..d6c2af0 100644 --- a/client/spec/models/api_page_spec.rb +++ b/client/spec/models/api_page_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIPage do - let(:instance) { FastCommentsClient::APIPage.new } + #let(:instance) { FastCommentsClient::APIPage.new } describe 'test an instance of APIPage' do it 'should create an instance of APIPage' do diff --git a/client/spec/models/api_save_comment_response_spec.rb b/client/spec/models/api_save_comment_response_spec.rb index 608e25c..fa149f7 100644 --- a/client/spec/models/api_save_comment_response_spec.rb +++ b/client/spec/models/api_save_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APISaveCommentResponse do - let(:instance) { FastCommentsClient::APISaveCommentResponse.new } + #let(:instance) { FastCommentsClient::APISaveCommentResponse.new } describe 'test an instance of APISaveCommentResponse' do it 'should create an instance of APISaveCommentResponse' do diff --git a/client/spec/models/api_status_spec.rb b/client/spec/models/api_status_spec.rb index fee71ab..f093e0c 100644 --- a/client/spec/models/api_status_spec.rb +++ b/client/spec/models/api_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIStatus do - let(:instance) { FastCommentsClient::APIStatus.new } + #let(:instance) { FastCommentsClient::APIStatus.new } describe 'test an instance of APIStatus' do it 'should create an instance of APIStatus' do diff --git a/client/spec/models/api_tenant_daily_usage_spec.rb b/client/spec/models/api_tenant_daily_usage_spec.rb index 63489c4..d46fe15 100644 --- a/client/spec/models/api_tenant_daily_usage_spec.rb +++ b/client/spec/models/api_tenant_daily_usage_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITenantDailyUsage do - let(:instance) { FastCommentsClient::APITenantDailyUsage.new } + #let(:instance) { FastCommentsClient::APITenantDailyUsage.new } describe 'test an instance of APITenantDailyUsage' do it 'should create an instance of APITenantDailyUsage' do diff --git a/client/spec/models/api_tenant_spec.rb b/client/spec/models/api_tenant_spec.rb index 7e6bba3..b16a61d 100644 --- a/client/spec/models/api_tenant_spec.rb +++ b/client/spec/models/api_tenant_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITenant do - let(:instance) { FastCommentsClient::APITenant.new } + #let(:instance) { FastCommentsClient::APITenant.new } describe 'test an instance of APITenant' do it 'should create an instance of APITenant' do diff --git a/client/spec/models/api_ticket_detail_spec.rb b/client/spec/models/api_ticket_detail_spec.rb index df14d89..661c175 100644 --- a/client/spec/models/api_ticket_detail_spec.rb +++ b/client/spec/models/api_ticket_detail_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITicketDetail do - let(:instance) { FastCommentsClient::APITicketDetail.new } + #let(:instance) { FastCommentsClient::APITicketDetail.new } describe 'test an instance of APITicketDetail' do it 'should create an instance of APITicketDetail' do diff --git a/client/spec/models/api_ticket_file_spec.rb b/client/spec/models/api_ticket_file_spec.rb index f79deca..efea5c6 100644 --- a/client/spec/models/api_ticket_file_spec.rb +++ b/client/spec/models/api_ticket_file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITicketFile do - let(:instance) { FastCommentsClient::APITicketFile.new } + #let(:instance) { FastCommentsClient::APITicketFile.new } describe 'test an instance of APITicketFile' do it 'should create an instance of APITicketFile' do diff --git a/client/spec/models/api_ticket_spec.rb b/client/spec/models/api_ticket_spec.rb index b79ba86..edf740b 100644 --- a/client/spec/models/api_ticket_spec.rb +++ b/client/spec/models/api_ticket_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APITicket do - let(:instance) { FastCommentsClient::APITicket.new } + #let(:instance) { FastCommentsClient::APITicket.new } describe 'test an instance of APITicket' do it 'should create an instance of APITicket' do diff --git a/client/spec/models/api_user_subscription_spec.rb b/client/spec/models/api_user_subscription_spec.rb index 8dbf0d8..7e929db 100644 --- a/client/spec/models/api_user_subscription_spec.rb +++ b/client/spec/models/api_user_subscription_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APIUserSubscription do - let(:instance) { FastCommentsClient::APIUserSubscription.new } + #let(:instance) { FastCommentsClient::APIUserSubscription.new } describe 'test an instance of APIUserSubscription' do it 'should create an instance of APIUserSubscription' do diff --git a/client/spec/models/apisso_user_spec.rb b/client/spec/models/apisso_user_spec.rb index 53e6109..deacb72 100644 --- a/client/spec/models/apisso_user_spec.rb +++ b/client/spec/models/apisso_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::APISSOUser do - let(:instance) { FastCommentsClient::APISSOUser.new } + #let(:instance) { FastCommentsClient::APISSOUser.new } describe 'test an instance of APISSOUser' do it 'should create an instance of APISSOUser' do diff --git a/client/spec/models/award_user_badge_response_spec.rb b/client/spec/models/award_user_badge_response_spec.rb index 6ce0f11..93fc99f 100644 --- a/client/spec/models/award_user_badge_response_spec.rb +++ b/client/spec/models/award_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::AwardUserBadgeResponse do - let(:instance) { FastCommentsClient::AwardUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::AwardUserBadgeResponse.new } describe 'test an instance of AwardUserBadgeResponse' do it 'should create an instance of AwardUserBadgeResponse' do diff --git a/client/spec/models/ban_user_from_comment_result_spec.rb b/client/spec/models/ban_user_from_comment_result_spec.rb index febd5ee..3672ed7 100644 --- a/client/spec/models/ban_user_from_comment_result_spec.rb +++ b/client/spec/models/ban_user_from_comment_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BanUserFromCommentResult do - let(:instance) { FastCommentsClient::BanUserFromCommentResult.new } + #let(:instance) { FastCommentsClient::BanUserFromCommentResult.new } describe 'test an instance of BanUserFromCommentResult' do it 'should create an instance of BanUserFromCommentResult' do diff --git a/client/spec/models/ban_user_undo_params_spec.rb b/client/spec/models/ban_user_undo_params_spec.rb index 253647c..8304f1a 100644 --- a/client/spec/models/ban_user_undo_params_spec.rb +++ b/client/spec/models/ban_user_undo_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BanUserUndoParams do - let(:instance) { FastCommentsClient::BanUserUndoParams.new } + #let(:instance) { FastCommentsClient::BanUserUndoParams.new } describe 'test an instance of BanUserUndoParams' do it 'should create an instance of BanUserUndoParams' do diff --git a/client/spec/models/banned_user_match_matched_on_value_spec.rb b/client/spec/models/banned_user_match_matched_on_value_spec.rb index 1d2ccac..b8ab241 100644 --- a/client/spec/models/banned_user_match_matched_on_value_spec.rb +++ b/client/spec/models/banned_user_match_matched_on_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/banned_user_match_spec.rb b/client/spec/models/banned_user_match_spec.rb index 6c94f6d..c1080c8 100644 --- a/client/spec/models/banned_user_match_spec.rb +++ b/client/spec/models/banned_user_match_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BannedUserMatch do - let(:instance) { FastCommentsClient::BannedUserMatch.new } + #let(:instance) { FastCommentsClient::BannedUserMatch.new } describe 'test an instance of BannedUserMatch' do it 'should create an instance of BannedUserMatch' do diff --git a/client/spec/models/banned_user_match_type_spec.rb b/client/spec/models/banned_user_match_type_spec.rb index 4356abc..6534eb1 100644 --- a/client/spec/models/banned_user_match_type_spec.rb +++ b/client/spec/models/banned_user_match_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BannedUserMatchType do - let(:instance) { FastCommentsClient::BannedUserMatchType.new } + #let(:instance) { FastCommentsClient::BannedUserMatchType.new } describe 'test an instance of BannedUserMatchType' do it 'should create an instance of BannedUserMatchType' do diff --git a/client/spec/models/billing_info_spec.rb b/client/spec/models/billing_info_spec.rb index 1aeb5d3..16f3e98 100644 --- a/client/spec/models/billing_info_spec.rb +++ b/client/spec/models/billing_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BillingInfo do - let(:instance) { FastCommentsClient::BillingInfo.new } + #let(:instance) { FastCommentsClient::BillingInfo.new } describe 'test an instance of BillingInfo' do it 'should create an instance of BillingInfo' do diff --git a/client/spec/models/block_from_comment_params_spec.rb b/client/spec/models/block_from_comment_params_spec.rb index 399e993..c215ba3 100644 --- a/client/spec/models/block_from_comment_params_spec.rb +++ b/client/spec/models/block_from_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BlockFromCommentParams do - let(:instance) { FastCommentsClient::BlockFromCommentParams.new } + #let(:instance) { FastCommentsClient::BlockFromCommentParams.new } describe 'test an instance of BlockFromCommentParams' do it 'should create an instance of BlockFromCommentParams' do diff --git a/client/spec/models/block_success_spec.rb b/client/spec/models/block_success_spec.rb index 1abc8c1..f073c5f 100644 --- a/client/spec/models/block_success_spec.rb +++ b/client/spec/models/block_success_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BlockSuccess do - let(:instance) { FastCommentsClient::BlockSuccess.new } + #let(:instance) { FastCommentsClient::BlockSuccess.new } describe 'test an instance of BlockSuccess' do it 'should create an instance of BlockSuccess' do diff --git a/client/spec/models/build_moderation_filter_params_spec.rb b/client/spec/models/build_moderation_filter_params_spec.rb index 1e3aaa1..832f8e1 100644 --- a/client/spec/models/build_moderation_filter_params_spec.rb +++ b/client/spec/models/build_moderation_filter_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BuildModerationFilterParams do - let(:instance) { FastCommentsClient::BuildModerationFilterParams.new } + #let(:instance) { FastCommentsClient::BuildModerationFilterParams.new } describe 'test an instance of BuildModerationFilterParams' do it 'should create an instance of BuildModerationFilterParams' do diff --git a/client/spec/models/build_moderation_filter_response_spec.rb b/client/spec/models/build_moderation_filter_response_spec.rb index a42cec1..0257791 100644 --- a/client/spec/models/build_moderation_filter_response_spec.rb +++ b/client/spec/models/build_moderation_filter_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BuildModerationFilterResponse do - let(:instance) { FastCommentsClient::BuildModerationFilterResponse.new } + #let(:instance) { FastCommentsClient::BuildModerationFilterResponse.new } describe 'test an instance of BuildModerationFilterResponse' do it 'should create an instance of BuildModerationFilterResponse' do diff --git a/client/spec/models/bulk_aggregate_question_item_spec.rb b/client/spec/models/bulk_aggregate_question_item_spec.rb index bfce5de..5ef9537 100644 --- a/client/spec/models/bulk_aggregate_question_item_spec.rb +++ b/client/spec/models/bulk_aggregate_question_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkAggregateQuestionItem do - let(:instance) { FastCommentsClient::BulkAggregateQuestionItem.new } + #let(:instance) { FastCommentsClient::BulkAggregateQuestionItem.new } describe 'test an instance of BulkAggregateQuestionItem' do it 'should create an instance of BulkAggregateQuestionItem' do diff --git a/client/spec/models/bulk_aggregate_question_results_request_spec.rb b/client/spec/models/bulk_aggregate_question_results_request_spec.rb index c4779df..5c7fdd8 100644 --- a/client/spec/models/bulk_aggregate_question_results_request_spec.rb +++ b/client/spec/models/bulk_aggregate_question_results_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkAggregateQuestionResultsRequest do - let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsRequest.new } + #let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsRequest.new } describe 'test an instance of BulkAggregateQuestionResultsRequest' do it 'should create an instance of BulkAggregateQuestionResultsRequest' do diff --git a/client/spec/models/bulk_aggregate_question_results_response_spec.rb b/client/spec/models/bulk_aggregate_question_results_response_spec.rb index b507cbe..1b385ae 100644 --- a/client/spec/models/bulk_aggregate_question_results_response_spec.rb +++ b/client/spec/models/bulk_aggregate_question_results_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkAggregateQuestionResultsResponse do - let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsResponse.new } + #let(:instance) { FastCommentsClient::BulkAggregateQuestionResultsResponse.new } describe 'test an instance of BulkAggregateQuestionResultsResponse' do it 'should create an instance of BulkAggregateQuestionResultsResponse' do diff --git a/client/spec/models/bulk_create_hash_tags_body_spec.rb b/client/spec/models/bulk_create_hash_tags_body_spec.rb index b525e0e..8821a44 100644 --- a/client/spec/models/bulk_create_hash_tags_body_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkCreateHashTagsBody do - let(:instance) { FastCommentsClient::BulkCreateHashTagsBody.new } + #let(:instance) { FastCommentsClient::BulkCreateHashTagsBody.new } describe 'test an instance of BulkCreateHashTagsBody' do it 'should create an instance of BulkCreateHashTagsBody' do diff --git a/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb b/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb index aaf5cd0..a8b2654 100644 --- a/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkCreateHashTagsBodyTagsInner do - let(:instance) { FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new } + #let(:instance) { FastCommentsClient::BulkCreateHashTagsBodyTagsInner.new } describe 'test an instance of BulkCreateHashTagsBodyTagsInner' do it 'should create an instance of BulkCreateHashTagsBodyTagsInner' do diff --git a/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb b/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb index 5e813d0..5dc8f62 100644 --- a/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_response_results_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/bulk_create_hash_tags_response_spec.rb b/client/spec/models/bulk_create_hash_tags_response_spec.rb index 7e0b3bf..4845c83 100644 --- a/client/spec/models/bulk_create_hash_tags_response_spec.rb +++ b/client/spec/models/bulk_create_hash_tags_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkCreateHashTagsResponse do - let(:instance) { FastCommentsClient::BulkCreateHashTagsResponse.new } + #let(:instance) { FastCommentsClient::BulkCreateHashTagsResponse.new } describe 'test an instance of BulkCreateHashTagsResponse' do it 'should create an instance of BulkCreateHashTagsResponse' do diff --git a/client/spec/models/bulk_pre_ban_params_spec.rb b/client/spec/models/bulk_pre_ban_params_spec.rb index 33ba4a7..a78b2d7 100644 --- a/client/spec/models/bulk_pre_ban_params_spec.rb +++ b/client/spec/models/bulk_pre_ban_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkPreBanParams do - let(:instance) { FastCommentsClient::BulkPreBanParams.new } + #let(:instance) { FastCommentsClient::BulkPreBanParams.new } describe 'test an instance of BulkPreBanParams' do it 'should create an instance of BulkPreBanParams' do diff --git a/client/spec/models/bulk_pre_ban_summary_spec.rb b/client/spec/models/bulk_pre_ban_summary_spec.rb index 502ada5..b545ba1 100644 --- a/client/spec/models/bulk_pre_ban_summary_spec.rb +++ b/client/spec/models/bulk_pre_ban_summary_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::BulkPreBanSummary do - let(:instance) { FastCommentsClient::BulkPreBanSummary.new } + #let(:instance) { FastCommentsClient::BulkPreBanSummary.new } describe 'test an instance of BulkPreBanSummary' do it 'should create an instance of BulkPreBanSummary' do diff --git a/client/spec/models/change_comment_pin_status_response_spec.rb b/client/spec/models/change_comment_pin_status_response_spec.rb index a6aef85..44a6da6 100644 --- a/client/spec/models/change_comment_pin_status_response_spec.rb +++ b/client/spec/models/change_comment_pin_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ChangeCommentPinStatusResponse do - let(:instance) { FastCommentsClient::ChangeCommentPinStatusResponse.new } + #let(:instance) { FastCommentsClient::ChangeCommentPinStatusResponse.new } describe 'test an instance of ChangeCommentPinStatusResponse' do it 'should create an instance of ChangeCommentPinStatusResponse' do diff --git a/client/spec/models/change_ticket_state_body_spec.rb b/client/spec/models/change_ticket_state_body_spec.rb index 3505291..02e5667 100644 --- a/client/spec/models/change_ticket_state_body_spec.rb +++ b/client/spec/models/change_ticket_state_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ChangeTicketStateBody do - let(:instance) { FastCommentsClient::ChangeTicketStateBody.new } + #let(:instance) { FastCommentsClient::ChangeTicketStateBody.new } describe 'test an instance of ChangeTicketStateBody' do it 'should create an instance of ChangeTicketStateBody' do diff --git a/client/spec/models/change_ticket_state_response_spec.rb b/client/spec/models/change_ticket_state_response_spec.rb index 8a3a875..a0bccce 100644 --- a/client/spec/models/change_ticket_state_response_spec.rb +++ b/client/spec/models/change_ticket_state_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ChangeTicketStateResponse do - let(:instance) { FastCommentsClient::ChangeTicketStateResponse.new } + #let(:instance) { FastCommentsClient::ChangeTicketStateResponse.new } describe 'test an instance of ChangeTicketStateResponse' do it 'should create an instance of ChangeTicketStateResponse' do diff --git a/client/spec/models/check_blocked_comments_response_spec.rb b/client/spec/models/check_blocked_comments_response_spec.rb index 2bd65c5..e37a936 100644 --- a/client/spec/models/check_blocked_comments_response_spec.rb +++ b/client/spec/models/check_blocked_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CheckBlockedCommentsResponse do - let(:instance) { FastCommentsClient::CheckBlockedCommentsResponse.new } + #let(:instance) { FastCommentsClient::CheckBlockedCommentsResponse.new } describe 'test an instance of CheckBlockedCommentsResponse' do it 'should create an instance of CheckBlockedCommentsResponse' do diff --git a/client/spec/models/combine_question_results_with_comments_response_spec.rb b/client/spec/models/combine_question_results_with_comments_response_spec.rb index b108e90..6b34a6b 100644 --- a/client/spec/models/combine_question_results_with_comments_response_spec.rb +++ b/client/spec/models/combine_question_results_with_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CombineQuestionResultsWithCommentsResponse do - let(:instance) { FastCommentsClient::CombineQuestionResultsWithCommentsResponse.new } + #let(:instance) { FastCommentsClient::CombineQuestionResultsWithCommentsResponse.new } describe 'test an instance of CombineQuestionResultsWithCommentsResponse' do it 'should create an instance of CombineQuestionResultsWithCommentsResponse' do diff --git a/client/spec/models/comment_data_spec.rb b/client/spec/models/comment_data_spec.rb index 3d2320d..ef98472 100644 --- a/client/spec/models/comment_data_spec.rb +++ b/client/spec/models/comment_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentData do - let(:instance) { FastCommentsClient::CommentData.new } + #let(:instance) { FastCommentsClient::CommentData.new } describe 'test an instance of CommentData' do it 'should create an instance of CommentData' do diff --git a/client/spec/models/comment_html_rendering_mode_spec.rb b/client/spec/models/comment_html_rendering_mode_spec.rb index cff018b..1b0f088 100644 --- a/client/spec/models/comment_html_rendering_mode_spec.rb +++ b/client/spec/models/comment_html_rendering_mode_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentHTMLRenderingMode do - let(:instance) { FastCommentsClient::CommentHTMLRenderingMode.new } + #let(:instance) { FastCommentsClient::CommentHTMLRenderingMode.new } describe 'test an instance of CommentHTMLRenderingMode' do it 'should create an instance of CommentHTMLRenderingMode' do diff --git a/client/spec/models/comment_log_data_spec.rb b/client/spec/models/comment_log_data_spec.rb index d5819e9..05f3b98 100644 --- a/client/spec/models/comment_log_data_spec.rb +++ b/client/spec/models/comment_log_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentLogData do - let(:instance) { FastCommentsClient::CommentLogData.new } + #let(:instance) { FastCommentsClient::CommentLogData.new } describe 'test an instance of CommentLogData' do it 'should create an instance of CommentLogData' do diff --git a/client/spec/models/comment_log_entry_spec.rb b/client/spec/models/comment_log_entry_spec.rb index a320e8b..f3743ed 100644 --- a/client/spec/models/comment_log_entry_spec.rb +++ b/client/spec/models/comment_log_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentLogEntry do - let(:instance) { FastCommentsClient::CommentLogEntry.new } + #let(:instance) { FastCommentsClient::CommentLogEntry.new } describe 'test an instance of CommentLogEntry' do it 'should create an instance of CommentLogEntry' do diff --git a/client/spec/models/comment_log_type_spec.rb b/client/spec/models/comment_log_type_spec.rb index ee15d85..fcff6f6 100644 --- a/client/spec/models/comment_log_type_spec.rb +++ b/client/spec/models/comment_log_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentLogType do - let(:instance) { FastCommentsClient::CommentLogType.new } + #let(:instance) { FastCommentsClient::CommentLogType.new } describe 'test an instance of CommentLogType' do it 'should create an instance of CommentLogType' do diff --git a/client/spec/models/comment_question_results_rendering_type_spec.rb b/client/spec/models/comment_question_results_rendering_type_spec.rb index 9daa7ae..68e9eb0 100644 --- a/client/spec/models/comment_question_results_rendering_type_spec.rb +++ b/client/spec/models/comment_question_results_rendering_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentQuestionResultsRenderingType do - let(:instance) { FastCommentsClient::CommentQuestionResultsRenderingType.new } + #let(:instance) { FastCommentsClient::CommentQuestionResultsRenderingType.new } describe 'test an instance of CommentQuestionResultsRenderingType' do it 'should create an instance of CommentQuestionResultsRenderingType' do diff --git a/client/spec/models/comment_questions_required_spec.rb b/client/spec/models/comment_questions_required_spec.rb index 092b8c2..6faf117 100644 --- a/client/spec/models/comment_questions_required_spec.rb +++ b/client/spec/models/comment_questions_required_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentQuestionsRequired do - let(:instance) { FastCommentsClient::CommentQuestionsRequired.new } + #let(:instance) { FastCommentsClient::CommentQuestionsRequired.new } describe 'test an instance of CommentQuestionsRequired' do it 'should create an instance of CommentQuestionsRequired' do diff --git a/client/spec/models/comment_text_update_request_spec.rb b/client/spec/models/comment_text_update_request_spec.rb index 08c363f..b20d9fe 100644 --- a/client/spec/models/comment_text_update_request_spec.rb +++ b/client/spec/models/comment_text_update_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentTextUpdateRequest do - let(:instance) { FastCommentsClient::CommentTextUpdateRequest.new } + #let(:instance) { FastCommentsClient::CommentTextUpdateRequest.new } describe 'test an instance of CommentTextUpdateRequest' do it 'should create an instance of CommentTextUpdateRequest' do diff --git a/client/spec/models/comment_thread_deletion_mode_spec.rb b/client/spec/models/comment_thread_deletion_mode_spec.rb index ea11dbc..469b505 100644 --- a/client/spec/models/comment_thread_deletion_mode_spec.rb +++ b/client/spec/models/comment_thread_deletion_mode_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentThreadDeletionMode do - let(:instance) { FastCommentsClient::CommentThreadDeletionMode.new } + #let(:instance) { FastCommentsClient::CommentThreadDeletionMode.new } describe 'test an instance of CommentThreadDeletionMode' do it 'should create an instance of CommentThreadDeletionMode' do diff --git a/client/spec/models/comment_user_badge_info_spec.rb b/client/spec/models/comment_user_badge_info_spec.rb index 7c9a6ef..2582c94 100644 --- a/client/spec/models/comment_user_badge_info_spec.rb +++ b/client/spec/models/comment_user_badge_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentUserBadgeInfo do - let(:instance) { FastCommentsClient::CommentUserBadgeInfo.new } + #let(:instance) { FastCommentsClient::CommentUserBadgeInfo.new } describe 'test an instance of CommentUserBadgeInfo' do it 'should create an instance of CommentUserBadgeInfo' do diff --git a/client/spec/models/comment_user_hash_tag_info_spec.rb b/client/spec/models/comment_user_hash_tag_info_spec.rb index 9765cc4..d00650d 100644 --- a/client/spec/models/comment_user_hash_tag_info_spec.rb +++ b/client/spec/models/comment_user_hash_tag_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentUserHashTagInfo do - let(:instance) { FastCommentsClient::CommentUserHashTagInfo.new } + #let(:instance) { FastCommentsClient::CommentUserHashTagInfo.new } describe 'test an instance of CommentUserHashTagInfo' do it 'should create an instance of CommentUserHashTagInfo' do diff --git a/client/spec/models/comment_user_mention_info_spec.rb b/client/spec/models/comment_user_mention_info_spec.rb index 609c435..aef552e 100644 --- a/client/spec/models/comment_user_mention_info_spec.rb +++ b/client/spec/models/comment_user_mention_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentUserMentionInfo do - let(:instance) { FastCommentsClient::CommentUserMentionInfo.new } + #let(:instance) { FastCommentsClient::CommentUserMentionInfo.new } describe 'test an instance of CommentUserMentionInfo' do it 'should create an instance of CommentUserMentionInfo' do diff --git a/client/spec/models/commenter_name_formats_spec.rb b/client/spec/models/commenter_name_formats_spec.rb index 8167ead..1cabf53 100644 --- a/client/spec/models/commenter_name_formats_spec.rb +++ b/client/spec/models/commenter_name_formats_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommenterNameFormats do - let(:instance) { FastCommentsClient::CommenterNameFormats.new } + #let(:instance) { FastCommentsClient::CommenterNameFormats.new } describe 'test an instance of CommenterNameFormats' do it 'should create an instance of CommenterNameFormats' do diff --git a/client/spec/models/comments_by_ids_params_spec.rb b/client/spec/models/comments_by_ids_params_spec.rb index b0f083b..7024550 100644 --- a/client/spec/models/comments_by_ids_params_spec.rb +++ b/client/spec/models/comments_by_ids_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CommentsByIdsParams do - let(:instance) { FastCommentsClient::CommentsByIdsParams.new } + #let(:instance) { FastCommentsClient::CommentsByIdsParams.new } describe 'test an instance of CommentsByIdsParams' do it 'should create an instance of CommentsByIdsParams' do diff --git a/client/spec/models/create_api_page_data_spec.rb b/client/spec/models/create_api_page_data_spec.rb index f38d58f..8913e0c 100644 --- a/client/spec/models/create_api_page_data_spec.rb +++ b/client/spec/models/create_api_page_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateAPIPageData do - let(:instance) { FastCommentsClient::CreateAPIPageData.new } + #let(:instance) { FastCommentsClient::CreateAPIPageData.new } describe 'test an instance of CreateAPIPageData' do it 'should create an instance of CreateAPIPageData' do diff --git a/client/spec/models/create_api_user_subscription_data_spec.rb b/client/spec/models/create_api_user_subscription_data_spec.rb index 1a038ea..a9e52bd 100644 --- a/client/spec/models/create_api_user_subscription_data_spec.rb +++ b/client/spec/models/create_api_user_subscription_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateAPIUserSubscriptionData do - let(:instance) { FastCommentsClient::CreateAPIUserSubscriptionData.new } + #let(:instance) { FastCommentsClient::CreateAPIUserSubscriptionData.new } describe 'test an instance of CreateAPIUserSubscriptionData' do it 'should create an instance of CreateAPIUserSubscriptionData' do diff --git a/client/spec/models/create_apisso_user_data_spec.rb b/client/spec/models/create_apisso_user_data_spec.rb index 2796ce2..c11b8b8 100644 --- a/client/spec/models/create_apisso_user_data_spec.rb +++ b/client/spec/models/create_apisso_user_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateAPISSOUserData do - let(:instance) { FastCommentsClient::CreateAPISSOUserData.new } + #let(:instance) { FastCommentsClient::CreateAPISSOUserData.new } describe 'test an instance of CreateAPISSOUserData' do it 'should create an instance of CreateAPISSOUserData' do diff --git a/client/spec/models/create_comment_params_spec.rb b/client/spec/models/create_comment_params_spec.rb index 603cbad..ff3c628 100644 --- a/client/spec/models/create_comment_params_spec.rb +++ b/client/spec/models/create_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateCommentParams do - let(:instance) { FastCommentsClient::CreateCommentParams.new } + #let(:instance) { FastCommentsClient::CreateCommentParams.new } describe 'test an instance of CreateCommentParams' do it 'should create an instance of CreateCommentParams' do diff --git a/client/spec/models/create_email_template_body_spec.rb b/client/spec/models/create_email_template_body_spec.rb index 1b7211c..290b230 100644 --- a/client/spec/models/create_email_template_body_spec.rb +++ b/client/spec/models/create_email_template_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateEmailTemplateBody do - let(:instance) { FastCommentsClient::CreateEmailTemplateBody.new } + #let(:instance) { FastCommentsClient::CreateEmailTemplateBody.new } describe 'test an instance of CreateEmailTemplateBody' do it 'should create an instance of CreateEmailTemplateBody' do diff --git a/client/spec/models/create_email_template_response_spec.rb b/client/spec/models/create_email_template_response_spec.rb index a32c25f..86967e4 100644 --- a/client/spec/models/create_email_template_response_spec.rb +++ b/client/spec/models/create_email_template_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateEmailTemplateResponse do - let(:instance) { FastCommentsClient::CreateEmailTemplateResponse.new } + #let(:instance) { FastCommentsClient::CreateEmailTemplateResponse.new } describe 'test an instance of CreateEmailTemplateResponse' do it 'should create an instance of CreateEmailTemplateResponse' do diff --git a/client/spec/models/create_feed_post_params_spec.rb b/client/spec/models/create_feed_post_params_spec.rb index 6d7ec00..7460ffd 100644 --- a/client/spec/models/create_feed_post_params_spec.rb +++ b/client/spec/models/create_feed_post_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateFeedPostParams do - let(:instance) { FastCommentsClient::CreateFeedPostParams.new } + #let(:instance) { FastCommentsClient::CreateFeedPostParams.new } describe 'test an instance of CreateFeedPostParams' do it 'should create an instance of CreateFeedPostParams' do diff --git a/client/spec/models/create_feed_post_response_spec.rb b/client/spec/models/create_feed_post_response_spec.rb index 94ecbe5..4ada2ca 100644 --- a/client/spec/models/create_feed_post_response_spec.rb +++ b/client/spec/models/create_feed_post_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateFeedPostResponse do - let(:instance) { FastCommentsClient::CreateFeedPostResponse.new } + #let(:instance) { FastCommentsClient::CreateFeedPostResponse.new } describe 'test an instance of CreateFeedPostResponse' do it 'should create an instance of CreateFeedPostResponse' do diff --git a/client/spec/models/create_feed_posts_response_spec.rb b/client/spec/models/create_feed_posts_response_spec.rb index 1a72484..2caf984 100644 --- a/client/spec/models/create_feed_posts_response_spec.rb +++ b/client/spec/models/create_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateFeedPostsResponse do - let(:instance) { FastCommentsClient::CreateFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::CreateFeedPostsResponse.new } describe 'test an instance of CreateFeedPostsResponse' do it 'should create an instance of CreateFeedPostsResponse' do diff --git a/client/spec/models/create_hash_tag_body_spec.rb b/client/spec/models/create_hash_tag_body_spec.rb index 88b5a55..646b84a 100644 --- a/client/spec/models/create_hash_tag_body_spec.rb +++ b/client/spec/models/create_hash_tag_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateHashTagBody do - let(:instance) { FastCommentsClient::CreateHashTagBody.new } + #let(:instance) { FastCommentsClient::CreateHashTagBody.new } describe 'test an instance of CreateHashTagBody' do it 'should create an instance of CreateHashTagBody' do diff --git a/client/spec/models/create_hash_tag_response_spec.rb b/client/spec/models/create_hash_tag_response_spec.rb index b7b9d6f..51e9875 100644 --- a/client/spec/models/create_hash_tag_response_spec.rb +++ b/client/spec/models/create_hash_tag_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateHashTagResponse do - let(:instance) { FastCommentsClient::CreateHashTagResponse.new } + #let(:instance) { FastCommentsClient::CreateHashTagResponse.new } describe 'test an instance of CreateHashTagResponse' do it 'should create an instance of CreateHashTagResponse' do diff --git a/client/spec/models/create_moderator_body_spec.rb b/client/spec/models/create_moderator_body_spec.rb index 8b63005..911ce64 100644 --- a/client/spec/models/create_moderator_body_spec.rb +++ b/client/spec/models/create_moderator_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateModeratorBody do - let(:instance) { FastCommentsClient::CreateModeratorBody.new } + #let(:instance) { FastCommentsClient::CreateModeratorBody.new } describe 'test an instance of CreateModeratorBody' do it 'should create an instance of CreateModeratorBody' do diff --git a/client/spec/models/create_moderator_response_spec.rb b/client/spec/models/create_moderator_response_spec.rb index 624adf2..c974913 100644 --- a/client/spec/models/create_moderator_response_spec.rb +++ b/client/spec/models/create_moderator_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateModeratorResponse do - let(:instance) { FastCommentsClient::CreateModeratorResponse.new } + #let(:instance) { FastCommentsClient::CreateModeratorResponse.new } describe 'test an instance of CreateModeratorResponse' do it 'should create an instance of CreateModeratorResponse' do diff --git a/client/spec/models/create_question_config_body_spec.rb b/client/spec/models/create_question_config_body_spec.rb index cc35d1a..1e443a1 100644 --- a/client/spec/models/create_question_config_body_spec.rb +++ b/client/spec/models/create_question_config_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionConfigBody do - let(:instance) { FastCommentsClient::CreateQuestionConfigBody.new } + #let(:instance) { FastCommentsClient::CreateQuestionConfigBody.new } describe 'test an instance of CreateQuestionConfigBody' do it 'should create an instance of CreateQuestionConfigBody' do diff --git a/client/spec/models/create_question_config_response_spec.rb b/client/spec/models/create_question_config_response_spec.rb index f2baf24..da0994e 100644 --- a/client/spec/models/create_question_config_response_spec.rb +++ b/client/spec/models/create_question_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionConfigResponse do - let(:instance) { FastCommentsClient::CreateQuestionConfigResponse.new } + #let(:instance) { FastCommentsClient::CreateQuestionConfigResponse.new } describe 'test an instance of CreateQuestionConfigResponse' do it 'should create an instance of CreateQuestionConfigResponse' do diff --git a/client/spec/models/create_question_result_body_spec.rb b/client/spec/models/create_question_result_body_spec.rb index 985be68..bae6f14 100644 --- a/client/spec/models/create_question_result_body_spec.rb +++ b/client/spec/models/create_question_result_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionResultBody do - let(:instance) { FastCommentsClient::CreateQuestionResultBody.new } + #let(:instance) { FastCommentsClient::CreateQuestionResultBody.new } describe 'test an instance of CreateQuestionResultBody' do it 'should create an instance of CreateQuestionResultBody' do diff --git a/client/spec/models/create_question_result_response_spec.rb b/client/spec/models/create_question_result_response_spec.rb index 60290f4..41fbecf 100644 --- a/client/spec/models/create_question_result_response_spec.rb +++ b/client/spec/models/create_question_result_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateQuestionResultResponse do - let(:instance) { FastCommentsClient::CreateQuestionResultResponse.new } + #let(:instance) { FastCommentsClient::CreateQuestionResultResponse.new } describe 'test an instance of CreateQuestionResultResponse' do it 'should create an instance of CreateQuestionResultResponse' do diff --git a/client/spec/models/create_subscription_api_response_spec.rb b/client/spec/models/create_subscription_api_response_spec.rb index 332cac5..34fb5cb 100644 --- a/client/spec/models/create_subscription_api_response_spec.rb +++ b/client/spec/models/create_subscription_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateSubscriptionAPIResponse do - let(:instance) { FastCommentsClient::CreateSubscriptionAPIResponse.new } + #let(:instance) { FastCommentsClient::CreateSubscriptionAPIResponse.new } describe 'test an instance of CreateSubscriptionAPIResponse' do it 'should create an instance of CreateSubscriptionAPIResponse' do diff --git a/client/spec/models/create_tenant_body_spec.rb b/client/spec/models/create_tenant_body_spec.rb index 70cde7d..b487db5 100644 --- a/client/spec/models/create_tenant_body_spec.rb +++ b/client/spec/models/create_tenant_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantBody do - let(:instance) { FastCommentsClient::CreateTenantBody.new } + #let(:instance) { FastCommentsClient::CreateTenantBody.new } describe 'test an instance of CreateTenantBody' do it 'should create an instance of CreateTenantBody' do diff --git a/client/spec/models/create_tenant_package_body_spec.rb b/client/spec/models/create_tenant_package_body_spec.rb index 46ea10a..2e907de 100644 --- a/client/spec/models/create_tenant_package_body_spec.rb +++ b/client/spec/models/create_tenant_package_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantPackageBody do - let(:instance) { FastCommentsClient::CreateTenantPackageBody.new } + #let(:instance) { FastCommentsClient::CreateTenantPackageBody.new } describe 'test an instance of CreateTenantPackageBody' do it 'should create an instance of CreateTenantPackageBody' do diff --git a/client/spec/models/create_tenant_package_response_spec.rb b/client/spec/models/create_tenant_package_response_spec.rb index 53ddbb0..761b31c 100644 --- a/client/spec/models/create_tenant_package_response_spec.rb +++ b/client/spec/models/create_tenant_package_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantPackageResponse do - let(:instance) { FastCommentsClient::CreateTenantPackageResponse.new } + #let(:instance) { FastCommentsClient::CreateTenantPackageResponse.new } describe 'test an instance of CreateTenantPackageResponse' do it 'should create an instance of CreateTenantPackageResponse' do diff --git a/client/spec/models/create_tenant_response_spec.rb b/client/spec/models/create_tenant_response_spec.rb index 2c5daba..c9dfc23 100644 --- a/client/spec/models/create_tenant_response_spec.rb +++ b/client/spec/models/create_tenant_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantResponse do - let(:instance) { FastCommentsClient::CreateTenantResponse.new } + #let(:instance) { FastCommentsClient::CreateTenantResponse.new } describe 'test an instance of CreateTenantResponse' do it 'should create an instance of CreateTenantResponse' do diff --git a/client/spec/models/create_tenant_user_body_spec.rb b/client/spec/models/create_tenant_user_body_spec.rb index 0a859be..69fc07f 100644 --- a/client/spec/models/create_tenant_user_body_spec.rb +++ b/client/spec/models/create_tenant_user_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantUserBody do - let(:instance) { FastCommentsClient::CreateTenantUserBody.new } + #let(:instance) { FastCommentsClient::CreateTenantUserBody.new } describe 'test an instance of CreateTenantUserBody' do it 'should create an instance of CreateTenantUserBody' do diff --git a/client/spec/models/create_tenant_user_response_spec.rb b/client/spec/models/create_tenant_user_response_spec.rb index 43a780f..a4ffa95 100644 --- a/client/spec/models/create_tenant_user_response_spec.rb +++ b/client/spec/models/create_tenant_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTenantUserResponse do - let(:instance) { FastCommentsClient::CreateTenantUserResponse.new } + #let(:instance) { FastCommentsClient::CreateTenantUserResponse.new } describe 'test an instance of CreateTenantUserResponse' do it 'should create an instance of CreateTenantUserResponse' do diff --git a/client/spec/models/create_ticket_body_spec.rb b/client/spec/models/create_ticket_body_spec.rb index d993e67..263fc5f 100644 --- a/client/spec/models/create_ticket_body_spec.rb +++ b/client/spec/models/create_ticket_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTicketBody do - let(:instance) { FastCommentsClient::CreateTicketBody.new } + #let(:instance) { FastCommentsClient::CreateTicketBody.new } describe 'test an instance of CreateTicketBody' do it 'should create an instance of CreateTicketBody' do diff --git a/client/spec/models/create_ticket_response_spec.rb b/client/spec/models/create_ticket_response_spec.rb index 28c2747..aa5c806 100644 --- a/client/spec/models/create_ticket_response_spec.rb +++ b/client/spec/models/create_ticket_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateTicketResponse do - let(:instance) { FastCommentsClient::CreateTicketResponse.new } + #let(:instance) { FastCommentsClient::CreateTicketResponse.new } describe 'test an instance of CreateTicketResponse' do it 'should create an instance of CreateTicketResponse' do diff --git a/client/spec/models/create_user_badge_params_spec.rb b/client/spec/models/create_user_badge_params_spec.rb index c85ef7f..87d13f7 100644 --- a/client/spec/models/create_user_badge_params_spec.rb +++ b/client/spec/models/create_user_badge_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateUserBadgeParams do - let(:instance) { FastCommentsClient::CreateUserBadgeParams.new } + #let(:instance) { FastCommentsClient::CreateUserBadgeParams.new } describe 'test an instance of CreateUserBadgeParams' do it 'should create an instance of CreateUserBadgeParams' do diff --git a/client/spec/models/create_v1_page_react_spec.rb b/client/spec/models/create_v1_page_react_spec.rb index 1b2dadd..0bf0372 100644 --- a/client/spec/models/create_v1_page_react_spec.rb +++ b/client/spec/models/create_v1_page_react_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CreateV1PageReact do - let(:instance) { FastCommentsClient::CreateV1PageReact.new } + #let(:instance) { FastCommentsClient::CreateV1PageReact.new } describe 'test an instance of CreateV1PageReact' do it 'should create an instance of CreateV1PageReact' do diff --git a/client/spec/models/custom_config_parameters_spec.rb b/client/spec/models/custom_config_parameters_spec.rb index aa0d120..3e6ef63 100644 --- a/client/spec/models/custom_config_parameters_spec.rb +++ b/client/spec/models/custom_config_parameters_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CustomConfigParameters do - let(:instance) { FastCommentsClient::CustomConfigParameters.new } + #let(:instance) { FastCommentsClient::CustomConfigParameters.new } describe 'test an instance of CustomConfigParameters' do it 'should create an instance of CustomConfigParameters' do diff --git a/client/spec/models/custom_email_template_spec.rb b/client/spec/models/custom_email_template_spec.rb index 782d4d2..ecd5df4 100644 --- a/client/spec/models/custom_email_template_spec.rb +++ b/client/spec/models/custom_email_template_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::CustomEmailTemplate do - let(:instance) { FastCommentsClient::CustomEmailTemplate.new } + #let(:instance) { FastCommentsClient::CustomEmailTemplate.new } describe 'test an instance of CustomEmailTemplate' do it 'should create an instance of CustomEmailTemplate' do diff --git a/client/spec/models/delete_comment_action_spec.rb b/client/spec/models/delete_comment_action_spec.rb index 1fd1180..800fc2a 100644 --- a/client/spec/models/delete_comment_action_spec.rb +++ b/client/spec/models/delete_comment_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteCommentAction do - let(:instance) { FastCommentsClient::DeleteCommentAction.new } + #let(:instance) { FastCommentsClient::DeleteCommentAction.new } describe 'test an instance of DeleteCommentAction' do it 'should create an instance of DeleteCommentAction' do diff --git a/client/spec/models/delete_comment_result_spec.rb b/client/spec/models/delete_comment_result_spec.rb index 301d603..c5923e5 100644 --- a/client/spec/models/delete_comment_result_spec.rb +++ b/client/spec/models/delete_comment_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteCommentResult do - let(:instance) { FastCommentsClient::DeleteCommentResult.new } + #let(:instance) { FastCommentsClient::DeleteCommentResult.new } describe 'test an instance of DeleteCommentResult' do it 'should create an instance of DeleteCommentResult' do diff --git a/client/spec/models/delete_domain_config_response_spec.rb b/client/spec/models/delete_domain_config_response_spec.rb index 9d37fce..07e28c4 100644 --- a/client/spec/models/delete_domain_config_response_spec.rb +++ b/client/spec/models/delete_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteDomainConfigResponse do - let(:instance) { FastCommentsClient::DeleteDomainConfigResponse.new } + #let(:instance) { FastCommentsClient::DeleteDomainConfigResponse.new } describe 'test an instance of DeleteDomainConfigResponse' do it 'should create an instance of DeleteDomainConfigResponse' do diff --git a/client/spec/models/delete_feed_post_public_response_spec.rb b/client/spec/models/delete_feed_post_public_response_spec.rb index 67aa3a9..c157571 100644 --- a/client/spec/models/delete_feed_post_public_response_spec.rb +++ b/client/spec/models/delete_feed_post_public_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteFeedPostPublicResponse do - let(:instance) { FastCommentsClient::DeleteFeedPostPublicResponse.new } + #let(:instance) { FastCommentsClient::DeleteFeedPostPublicResponse.new } describe 'test an instance of DeleteFeedPostPublicResponse' do it 'should create an instance of DeleteFeedPostPublicResponse' do diff --git a/client/spec/models/delete_hash_tag_request_body_spec.rb b/client/spec/models/delete_hash_tag_request_body_spec.rb index 285b131..6a0b8bc 100644 --- a/client/spec/models/delete_hash_tag_request_body_spec.rb +++ b/client/spec/models/delete_hash_tag_request_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteHashTagRequestBody do - let(:instance) { FastCommentsClient::DeleteHashTagRequestBody.new } + #let(:instance) { FastCommentsClient::DeleteHashTagRequestBody.new } describe 'test an instance of DeleteHashTagRequestBody' do it 'should create an instance of DeleteHashTagRequestBody' do diff --git a/client/spec/models/delete_page_api_response_spec.rb b/client/spec/models/delete_page_api_response_spec.rb index 7b25e17..c8addc2 100644 --- a/client/spec/models/delete_page_api_response_spec.rb +++ b/client/spec/models/delete_page_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeletePageAPIResponse do - let(:instance) { FastCommentsClient::DeletePageAPIResponse.new } + #let(:instance) { FastCommentsClient::DeletePageAPIResponse.new } describe 'test an instance of DeletePageAPIResponse' do it 'should create an instance of DeletePageAPIResponse' do diff --git a/client/spec/models/delete_sso_user_api_response_spec.rb b/client/spec/models/delete_sso_user_api_response_spec.rb index 10367fd..d9d0863 100644 --- a/client/spec/models/delete_sso_user_api_response_spec.rb +++ b/client/spec/models/delete_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteSSOUserAPIResponse do - let(:instance) { FastCommentsClient::DeleteSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::DeleteSSOUserAPIResponse.new } describe 'test an instance of DeleteSSOUserAPIResponse' do it 'should create an instance of DeleteSSOUserAPIResponse' do diff --git a/client/spec/models/delete_subscription_api_response_spec.rb b/client/spec/models/delete_subscription_api_response_spec.rb index 4f1b23f..424e9ea 100644 --- a/client/spec/models/delete_subscription_api_response_spec.rb +++ b/client/spec/models/delete_subscription_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeleteSubscriptionAPIResponse do - let(:instance) { FastCommentsClient::DeleteSubscriptionAPIResponse.new } + #let(:instance) { FastCommentsClient::DeleteSubscriptionAPIResponse.new } describe 'test an instance of DeleteSubscriptionAPIResponse' do it 'should create an instance of DeleteSubscriptionAPIResponse' do diff --git a/client/spec/models/deleted_comment_result_comment_spec.rb b/client/spec/models/deleted_comment_result_comment_spec.rb index e743fe8..05d7431 100644 --- a/client/spec/models/deleted_comment_result_comment_spec.rb +++ b/client/spec/models/deleted_comment_result_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DeletedCommentResultComment do - let(:instance) { FastCommentsClient::DeletedCommentResultComment.new } + #let(:instance) { FastCommentsClient::DeletedCommentResultComment.new } describe 'test an instance of DeletedCommentResultComment' do it 'should create an instance of DeletedCommentResultComment' do diff --git a/client/spec/models/digest_email_frequency_spec.rb b/client/spec/models/digest_email_frequency_spec.rb index d28a35a..55c9b97 100644 --- a/client/spec/models/digest_email_frequency_spec.rb +++ b/client/spec/models/digest_email_frequency_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::DigestEmailFrequency do - let(:instance) { FastCommentsClient::DigestEmailFrequency.new } + #let(:instance) { FastCommentsClient::DigestEmailFrequency.new } describe 'test an instance of DigestEmailFrequency' do it 'should create an instance of DigestEmailFrequency' do diff --git a/client/spec/models/email_template_definition_spec.rb b/client/spec/models/email_template_definition_spec.rb index 9903bc2..6a43be5 100644 --- a/client/spec/models/email_template_definition_spec.rb +++ b/client/spec/models/email_template_definition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::EmailTemplateDefinition do - let(:instance) { FastCommentsClient::EmailTemplateDefinition.new } + #let(:instance) { FastCommentsClient::EmailTemplateDefinition.new } describe 'test an instance of EmailTemplateDefinition' do it 'should create an instance of EmailTemplateDefinition' do diff --git a/client/spec/models/email_template_render_error_response_spec.rb b/client/spec/models/email_template_render_error_response_spec.rb index 4ca6d9c..6fd42b5 100644 --- a/client/spec/models/email_template_render_error_response_spec.rb +++ b/client/spec/models/email_template_render_error_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::EmailTemplateRenderErrorResponse do - let(:instance) { FastCommentsClient::EmailTemplateRenderErrorResponse.new } + #let(:instance) { FastCommentsClient::EmailTemplateRenderErrorResponse.new } describe 'test an instance of EmailTemplateRenderErrorResponse' do it 'should create an instance of EmailTemplateRenderErrorResponse' do diff --git a/client/spec/models/event_log_entry_spec.rb b/client/spec/models/event_log_entry_spec.rb index cc02050..54404e7 100644 --- a/client/spec/models/event_log_entry_spec.rb +++ b/client/spec/models/event_log_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::EventLogEntry do - let(:instance) { FastCommentsClient::EventLogEntry.new } + #let(:instance) { FastCommentsClient::EventLogEntry.new } describe 'test an instance of EventLogEntry' do it 'should create an instance of EventLogEntry' do diff --git a/client/spec/models/f_comment_meta_spec.rb b/client/spec/models/f_comment_meta_spec.rb index 3b2be1f..b01db3c 100644 --- a/client/spec/models/f_comment_meta_spec.rb +++ b/client/spec/models/f_comment_meta_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FCommentMeta do - let(:instance) { FastCommentsClient::FCommentMeta.new } + #let(:instance) { FastCommentsClient::FCommentMeta.new } describe 'test an instance of FCommentMeta' do it 'should create an instance of FCommentMeta' do diff --git a/client/spec/models/f_comment_spec.rb b/client/spec/models/f_comment_spec.rb index 2032397..5f6f356 100644 --- a/client/spec/models/f_comment_spec.rb +++ b/client/spec/models/f_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FComment do - let(:instance) { FastCommentsClient::FComment.new } + #let(:instance) { FastCommentsClient::FComment.new } describe 'test an instance of FComment' do it 'should create an instance of FComment' do diff --git a/client/spec/models/feed_post_link_spec.rb b/client/spec/models/feed_post_link_spec.rb index 54490ce..fd028fa 100644 --- a/client/spec/models/feed_post_link_spec.rb +++ b/client/spec/models/feed_post_link_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostLink do - let(:instance) { FastCommentsClient::FeedPostLink.new } + #let(:instance) { FastCommentsClient::FeedPostLink.new } describe 'test an instance of FeedPostLink' do it 'should create an instance of FeedPostLink' do diff --git a/client/spec/models/feed_post_media_item_asset_spec.rb b/client/spec/models/feed_post_media_item_asset_spec.rb index b02d837..75b0804 100644 --- a/client/spec/models/feed_post_media_item_asset_spec.rb +++ b/client/spec/models/feed_post_media_item_asset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostMediaItemAsset do - let(:instance) { FastCommentsClient::FeedPostMediaItemAsset.new } + #let(:instance) { FastCommentsClient::FeedPostMediaItemAsset.new } describe 'test an instance of FeedPostMediaItemAsset' do it 'should create an instance of FeedPostMediaItemAsset' do diff --git a/client/spec/models/feed_post_media_item_spec.rb b/client/spec/models/feed_post_media_item_spec.rb index 4064406..8ee1487 100644 --- a/client/spec/models/feed_post_media_item_spec.rb +++ b/client/spec/models/feed_post_media_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostMediaItem do - let(:instance) { FastCommentsClient::FeedPostMediaItem.new } + #let(:instance) { FastCommentsClient::FeedPostMediaItem.new } describe 'test an instance of FeedPostMediaItem' do it 'should create an instance of FeedPostMediaItem' do diff --git a/client/spec/models/feed_post_spec.rb b/client/spec/models/feed_post_spec.rb index f92e660..29dc3b9 100644 --- a/client/spec/models/feed_post_spec.rb +++ b/client/spec/models/feed_post_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPost do - let(:instance) { FastCommentsClient::FeedPost.new } + #let(:instance) { FastCommentsClient::FeedPost.new } describe 'test an instance of FeedPost' do it 'should create an instance of FeedPost' do diff --git a/client/spec/models/feed_post_stats_spec.rb b/client/spec/models/feed_post_stats_spec.rb index c6d28ff..e0da388 100644 --- a/client/spec/models/feed_post_stats_spec.rb +++ b/client/spec/models/feed_post_stats_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostStats do - let(:instance) { FastCommentsClient::FeedPostStats.new } + #let(:instance) { FastCommentsClient::FeedPostStats.new } describe 'test an instance of FeedPostStats' do it 'should create an instance of FeedPostStats' do diff --git a/client/spec/models/feed_posts_stats_response_spec.rb b/client/spec/models/feed_posts_stats_response_spec.rb index f9387e9..76cc41f 100644 --- a/client/spec/models/feed_posts_stats_response_spec.rb +++ b/client/spec/models/feed_posts_stats_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FeedPostsStatsResponse do - let(:instance) { FastCommentsClient::FeedPostsStatsResponse.new } + #let(:instance) { FastCommentsClient::FeedPostsStatsResponse.new } describe 'test an instance of FeedPostsStatsResponse' do it 'should create an instance of FeedPostsStatsResponse' do diff --git a/client/spec/models/find_comments_by_range_item_spec.rb b/client/spec/models/find_comments_by_range_item_spec.rb index 64f719f..e5c120a 100644 --- a/client/spec/models/find_comments_by_range_item_spec.rb +++ b/client/spec/models/find_comments_by_range_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FindCommentsByRangeItem do - let(:instance) { FastCommentsClient::FindCommentsByRangeItem.new } + #let(:instance) { FastCommentsClient::FindCommentsByRangeItem.new } describe 'test an instance of FindCommentsByRangeItem' do it 'should create an instance of FindCommentsByRangeItem' do diff --git a/client/spec/models/find_comments_by_range_response_spec.rb b/client/spec/models/find_comments_by_range_response_spec.rb index 976ddb0..ff3bec2 100644 --- a/client/spec/models/find_comments_by_range_response_spec.rb +++ b/client/spec/models/find_comments_by_range_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FindCommentsByRangeResponse do - let(:instance) { FastCommentsClient::FindCommentsByRangeResponse.new } + #let(:instance) { FastCommentsClient::FindCommentsByRangeResponse.new } describe 'test an instance of FindCommentsByRangeResponse' do it 'should create an instance of FindCommentsByRangeResponse' do diff --git a/client/spec/models/flag_comment_response_spec.rb b/client/spec/models/flag_comment_response_spec.rb index e4b4832..979f9a9 100644 --- a/client/spec/models/flag_comment_response_spec.rb +++ b/client/spec/models/flag_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::FlagCommentResponse do - let(:instance) { FastCommentsClient::FlagCommentResponse.new } + #let(:instance) { FastCommentsClient::FlagCommentResponse.new } describe 'test an instance of FlagCommentResponse' do it 'should create an instance of FlagCommentResponse' do diff --git a/client/spec/models/get_audit_logs_response_spec.rb b/client/spec/models/get_audit_logs_response_spec.rb index 10a212d..41dd75d 100644 --- a/client/spec/models/get_audit_logs_response_spec.rb +++ b/client/spec/models/get_audit_logs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetAuditLogsResponse do - let(:instance) { FastCommentsClient::GetAuditLogsResponse.new } + #let(:instance) { FastCommentsClient::GetAuditLogsResponse.new } describe 'test an instance of GetAuditLogsResponse' do it 'should create an instance of GetAuditLogsResponse' do diff --git a/client/spec/models/get_banned_users_count_response_spec.rb b/client/spec/models/get_banned_users_count_response_spec.rb index e637f47..379aef2 100644 --- a/client/spec/models/get_banned_users_count_response_spec.rb +++ b/client/spec/models/get_banned_users_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetBannedUsersCountResponse do - let(:instance) { FastCommentsClient::GetBannedUsersCountResponse.new } + #let(:instance) { FastCommentsClient::GetBannedUsersCountResponse.new } describe 'test an instance of GetBannedUsersCountResponse' do it 'should create an instance of GetBannedUsersCountResponse' do diff --git a/client/spec/models/get_banned_users_from_comment_response_spec.rb b/client/spec/models/get_banned_users_from_comment_response_spec.rb index c416933..1d374f6 100644 --- a/client/spec/models/get_banned_users_from_comment_response_spec.rb +++ b/client/spec/models/get_banned_users_from_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetBannedUsersFromCommentResponse do - let(:instance) { FastCommentsClient::GetBannedUsersFromCommentResponse.new } + #let(:instance) { FastCommentsClient::GetBannedUsersFromCommentResponse.new } describe 'test an instance of GetBannedUsersFromCommentResponse' do it 'should create an instance of GetBannedUsersFromCommentResponse' do diff --git a/client/spec/models/get_cached_notification_count_response_spec.rb b/client/spec/models/get_cached_notification_count_response_spec.rb index bcc01b7..d357c68 100644 --- a/client/spec/models/get_cached_notification_count_response_spec.rb +++ b/client/spec/models/get_cached_notification_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCachedNotificationCountResponse do - let(:instance) { FastCommentsClient::GetCachedNotificationCountResponse.new } + #let(:instance) { FastCommentsClient::GetCachedNotificationCountResponse.new } describe 'test an instance of GetCachedNotificationCountResponse' do it 'should create an instance of GetCachedNotificationCountResponse' do diff --git a/client/spec/models/get_comment_ban_status_response_spec.rb b/client/spec/models/get_comment_ban_status_response_spec.rb index 900d678..30783a6 100644 --- a/client/spec/models/get_comment_ban_status_response_spec.rb +++ b/client/spec/models/get_comment_ban_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentBanStatusResponse do - let(:instance) { FastCommentsClient::GetCommentBanStatusResponse.new } + #let(:instance) { FastCommentsClient::GetCommentBanStatusResponse.new } describe 'test an instance of GetCommentBanStatusResponse' do it 'should create an instance of GetCommentBanStatusResponse' do diff --git a/client/spec/models/get_comment_text_response_spec.rb b/client/spec/models/get_comment_text_response_spec.rb index 4297e6a..a55e699 100644 --- a/client/spec/models/get_comment_text_response_spec.rb +++ b/client/spec/models/get_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentTextResponse do - let(:instance) { FastCommentsClient::GetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::GetCommentTextResponse.new } describe 'test an instance of GetCommentTextResponse' do it 'should create an instance of GetCommentTextResponse' do diff --git a/client/spec/models/get_comment_vote_user_names_success_response_spec.rb b/client/spec/models/get_comment_vote_user_names_success_response_spec.rb index 9f53d5d..d50c130 100644 --- a/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +++ b/client/spec/models/get_comment_vote_user_names_success_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentVoteUserNamesSuccessResponse do - let(:instance) { FastCommentsClient::GetCommentVoteUserNamesSuccessResponse.new } + #let(:instance) { FastCommentsClient::GetCommentVoteUserNamesSuccessResponse.new } describe 'test an instance of GetCommentVoteUserNamesSuccessResponse' do it 'should create an instance of GetCommentVoteUserNamesSuccessResponse' do diff --git a/client/spec/models/get_comments_for_user_response_spec.rb b/client/spec/models/get_comments_for_user_response_spec.rb index c45dd17..b272f8d 100644 --- a/client/spec/models/get_comments_for_user_response_spec.rb +++ b/client/spec/models/get_comments_for_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentsForUserResponse do - let(:instance) { FastCommentsClient::GetCommentsForUserResponse.new } + #let(:instance) { FastCommentsClient::GetCommentsForUserResponse.new } describe 'test an instance of GetCommentsForUserResponse' do it 'should create an instance of GetCommentsForUserResponse' do diff --git a/client/spec/models/get_comments_response_public_comment_spec.rb b/client/spec/models/get_comments_response_public_comment_spec.rb index a9bc205..fec36eb 100644 --- a/client/spec/models/get_comments_response_public_comment_spec.rb +++ b/client/spec/models/get_comments_response_public_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentsResponsePublicComment do - let(:instance) { FastCommentsClient::GetCommentsResponsePublicComment.new } + #let(:instance) { FastCommentsClient::GetCommentsResponsePublicComment.new } describe 'test an instance of GetCommentsResponsePublicComment' do it 'should create an instance of GetCommentsResponsePublicComment' do diff --git a/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb b/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb index b9c363a..70060cb 100644 --- a/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +++ b/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetCommentsResponseWithPresencePublicComment do - let(:instance) { FastCommentsClient::GetCommentsResponseWithPresencePublicComment.new } + #let(:instance) { FastCommentsClient::GetCommentsResponseWithPresencePublicComment.new } describe 'test an instance of GetCommentsResponseWithPresencePublicComment' do it 'should create an instance of GetCommentsResponseWithPresencePublicComment' do diff --git a/client/spec/models/get_domain_config_response_spec.rb b/client/spec/models/get_domain_config_response_spec.rb index 7c5b7de..5651b56 100644 --- a/client/spec/models/get_domain_config_response_spec.rb +++ b/client/spec/models/get_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_domain_configs_response_any_of1_spec.rb b/client/spec/models/get_domain_configs_response_any_of1_spec.rb index fc79d36..846f1f8 100644 --- a/client/spec/models/get_domain_configs_response_any_of1_spec.rb +++ b/client/spec/models/get_domain_configs_response_any_of1_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetDomainConfigsResponseAnyOf1 do - let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf1.new } + #let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf1.new } describe 'test an instance of GetDomainConfigsResponseAnyOf1' do it 'should create an instance of GetDomainConfigsResponseAnyOf1' do diff --git a/client/spec/models/get_domain_configs_response_any_of_spec.rb b/client/spec/models/get_domain_configs_response_any_of_spec.rb index 9ba34f5..4170bda 100644 --- a/client/spec/models/get_domain_configs_response_any_of_spec.rb +++ b/client/spec/models/get_domain_configs_response_any_of_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetDomainConfigsResponseAnyOf do - let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf.new } + #let(:instance) { FastCommentsClient::GetDomainConfigsResponseAnyOf.new } describe 'test an instance of GetDomainConfigsResponseAnyOf' do it 'should create an instance of GetDomainConfigsResponseAnyOf' do diff --git a/client/spec/models/get_domain_configs_response_spec.rb b/client/spec/models/get_domain_configs_response_spec.rb index ae5f967..bd94633 100644 --- a/client/spec/models/get_domain_configs_response_spec.rb +++ b/client/spec/models/get_domain_configs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_email_template_definitions_response_spec.rb b/client/spec/models/get_email_template_definitions_response_spec.rb index ac22825..b2a6be3 100644 --- a/client/spec/models/get_email_template_definitions_response_spec.rb +++ b/client/spec/models/get_email_template_definitions_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplateDefinitionsResponse do - let(:instance) { FastCommentsClient::GetEmailTemplateDefinitionsResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplateDefinitionsResponse.new } describe 'test an instance of GetEmailTemplateDefinitionsResponse' do it 'should create an instance of GetEmailTemplateDefinitionsResponse' do diff --git a/client/spec/models/get_email_template_render_errors_response_spec.rb b/client/spec/models/get_email_template_render_errors_response_spec.rb index 1796efb..3cc4a8b 100644 --- a/client/spec/models/get_email_template_render_errors_response_spec.rb +++ b/client/spec/models/get_email_template_render_errors_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplateRenderErrorsResponse do - let(:instance) { FastCommentsClient::GetEmailTemplateRenderErrorsResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplateRenderErrorsResponse.new } describe 'test an instance of GetEmailTemplateRenderErrorsResponse' do it 'should create an instance of GetEmailTemplateRenderErrorsResponse' do diff --git a/client/spec/models/get_email_template_response_spec.rb b/client/spec/models/get_email_template_response_spec.rb index 6d38c04..8f7e2e1 100644 --- a/client/spec/models/get_email_template_response_spec.rb +++ b/client/spec/models/get_email_template_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplateResponse do - let(:instance) { FastCommentsClient::GetEmailTemplateResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplateResponse.new } describe 'test an instance of GetEmailTemplateResponse' do it 'should create an instance of GetEmailTemplateResponse' do diff --git a/client/spec/models/get_email_templates_response_spec.rb b/client/spec/models/get_email_templates_response_spec.rb index 4f7e42a..8d11411 100644 --- a/client/spec/models/get_email_templates_response_spec.rb +++ b/client/spec/models/get_email_templates_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEmailTemplatesResponse do - let(:instance) { FastCommentsClient::GetEmailTemplatesResponse.new } + #let(:instance) { FastCommentsClient::GetEmailTemplatesResponse.new } describe 'test an instance of GetEmailTemplatesResponse' do it 'should create an instance of GetEmailTemplatesResponse' do diff --git a/client/spec/models/get_event_log_response_spec.rb b/client/spec/models/get_event_log_response_spec.rb index d4e771f..258a9b1 100644 --- a/client/spec/models/get_event_log_response_spec.rb +++ b/client/spec/models/get_event_log_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetEventLogResponse do - let(:instance) { FastCommentsClient::GetEventLogResponse.new } + #let(:instance) { FastCommentsClient::GetEventLogResponse.new } describe 'test an instance of GetEventLogResponse' do it 'should create an instance of GetEventLogResponse' do diff --git a/client/spec/models/get_feed_posts_response_spec.rb b/client/spec/models/get_feed_posts_response_spec.rb index b5f05ea..c9248e3 100644 --- a/client/spec/models/get_feed_posts_response_spec.rb +++ b/client/spec/models/get_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetFeedPostsResponse do - let(:instance) { FastCommentsClient::GetFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::GetFeedPostsResponse.new } describe 'test an instance of GetFeedPostsResponse' do it 'should create an instance of GetFeedPostsResponse' do diff --git a/client/spec/models/get_gifs_search_response_spec.rb b/client/spec/models/get_gifs_search_response_spec.rb index bc64397..f3145d5 100644 --- a/client/spec/models/get_gifs_search_response_spec.rb +++ b/client/spec/models/get_gifs_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_gifs_trending_response_spec.rb b/client/spec/models/get_gifs_trending_response_spec.rb index b6250dd..18eafa2 100644 --- a/client/spec/models/get_gifs_trending_response_spec.rb +++ b/client/spec/models/get_gifs_trending_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/get_hash_tags_response_spec.rb b/client/spec/models/get_hash_tags_response_spec.rb index d4d776b..2ce9f2c 100644 --- a/client/spec/models/get_hash_tags_response_spec.rb +++ b/client/spec/models/get_hash_tags_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetHashTagsResponse do - let(:instance) { FastCommentsClient::GetHashTagsResponse.new } + #let(:instance) { FastCommentsClient::GetHashTagsResponse.new } describe 'test an instance of GetHashTagsResponse' do it 'should create an instance of GetHashTagsResponse' do diff --git a/client/spec/models/get_moderator_response_spec.rb b/client/spec/models/get_moderator_response_spec.rb index 48d713c..ff9dbea 100644 --- a/client/spec/models/get_moderator_response_spec.rb +++ b/client/spec/models/get_moderator_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetModeratorResponse do - let(:instance) { FastCommentsClient::GetModeratorResponse.new } + #let(:instance) { FastCommentsClient::GetModeratorResponse.new } describe 'test an instance of GetModeratorResponse' do it 'should create an instance of GetModeratorResponse' do diff --git a/client/spec/models/get_moderators_response_spec.rb b/client/spec/models/get_moderators_response_spec.rb index f3cf1cb..08d10a7 100644 --- a/client/spec/models/get_moderators_response_spec.rb +++ b/client/spec/models/get_moderators_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetModeratorsResponse do - let(:instance) { FastCommentsClient::GetModeratorsResponse.new } + #let(:instance) { FastCommentsClient::GetModeratorsResponse.new } describe 'test an instance of GetModeratorsResponse' do it 'should create an instance of GetModeratorsResponse' do diff --git a/client/spec/models/get_my_notifications_response_spec.rb b/client/spec/models/get_my_notifications_response_spec.rb index e26d8ef..40076bb 100644 --- a/client/spec/models/get_my_notifications_response_spec.rb +++ b/client/spec/models/get_my_notifications_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetMyNotificationsResponse do - let(:instance) { FastCommentsClient::GetMyNotificationsResponse.new } + #let(:instance) { FastCommentsClient::GetMyNotificationsResponse.new } describe 'test an instance of GetMyNotificationsResponse' do it 'should create an instance of GetMyNotificationsResponse' do diff --git a/client/spec/models/get_notification_count_response_spec.rb b/client/spec/models/get_notification_count_response_spec.rb index c434c4e..42850d1 100644 --- a/client/spec/models/get_notification_count_response_spec.rb +++ b/client/spec/models/get_notification_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetNotificationCountResponse do - let(:instance) { FastCommentsClient::GetNotificationCountResponse.new } + #let(:instance) { FastCommentsClient::GetNotificationCountResponse.new } describe 'test an instance of GetNotificationCountResponse' do it 'should create an instance of GetNotificationCountResponse' do diff --git a/client/spec/models/get_notifications_response_spec.rb b/client/spec/models/get_notifications_response_spec.rb index f6aa082..451fe8d 100644 --- a/client/spec/models/get_notifications_response_spec.rb +++ b/client/spec/models/get_notifications_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetNotificationsResponse do - let(:instance) { FastCommentsClient::GetNotificationsResponse.new } + #let(:instance) { FastCommentsClient::GetNotificationsResponse.new } describe 'test an instance of GetNotificationsResponse' do it 'should create an instance of GetNotificationsResponse' do diff --git a/client/spec/models/get_page_by_urlid_api_response_spec.rb b/client/spec/models/get_page_by_urlid_api_response_spec.rb index 1e32ec7..2ef77cd 100644 --- a/client/spec/models/get_page_by_urlid_api_response_spec.rb +++ b/client/spec/models/get_page_by_urlid_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPageByURLIdAPIResponse do - let(:instance) { FastCommentsClient::GetPageByURLIdAPIResponse.new } + #let(:instance) { FastCommentsClient::GetPageByURLIdAPIResponse.new } describe 'test an instance of GetPageByURLIdAPIResponse' do it 'should create an instance of GetPageByURLIdAPIResponse' do diff --git a/client/spec/models/get_pages_api_response_spec.rb b/client/spec/models/get_pages_api_response_spec.rb index 54937ad..cc3b1c0 100644 --- a/client/spec/models/get_pages_api_response_spec.rb +++ b/client/spec/models/get_pages_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPagesAPIResponse do - let(:instance) { FastCommentsClient::GetPagesAPIResponse.new } + #let(:instance) { FastCommentsClient::GetPagesAPIResponse.new } describe 'test an instance of GetPagesAPIResponse' do it 'should create an instance of GetPagesAPIResponse' do diff --git a/client/spec/models/get_pending_webhook_event_count_response_spec.rb b/client/spec/models/get_pending_webhook_event_count_response_spec.rb index 713a605..610f35f 100644 --- a/client/spec/models/get_pending_webhook_event_count_response_spec.rb +++ b/client/spec/models/get_pending_webhook_event_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPendingWebhookEventCountResponse do - let(:instance) { FastCommentsClient::GetPendingWebhookEventCountResponse.new } + #let(:instance) { FastCommentsClient::GetPendingWebhookEventCountResponse.new } describe 'test an instance of GetPendingWebhookEventCountResponse' do it 'should create an instance of GetPendingWebhookEventCountResponse' do diff --git a/client/spec/models/get_pending_webhook_events_response_spec.rb b/client/spec/models/get_pending_webhook_events_response_spec.rb index 14c892d..54455f6 100644 --- a/client/spec/models/get_pending_webhook_events_response_spec.rb +++ b/client/spec/models/get_pending_webhook_events_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPendingWebhookEventsResponse do - let(:instance) { FastCommentsClient::GetPendingWebhookEventsResponse.new } + #let(:instance) { FastCommentsClient::GetPendingWebhookEventsResponse.new } describe 'test an instance of GetPendingWebhookEventsResponse' do it 'should create an instance of GetPendingWebhookEventsResponse' do diff --git a/client/spec/models/get_public_feed_posts_response_spec.rb b/client/spec/models/get_public_feed_posts_response_spec.rb index 21963a9..adf9677 100644 --- a/client/spec/models/get_public_feed_posts_response_spec.rb +++ b/client/spec/models/get_public_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPublicFeedPostsResponse do - let(:instance) { FastCommentsClient::GetPublicFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::GetPublicFeedPostsResponse.new } describe 'test an instance of GetPublicFeedPostsResponse' do it 'should create an instance of GetPublicFeedPostsResponse' do diff --git a/client/spec/models/get_public_pages_response_spec.rb b/client/spec/models/get_public_pages_response_spec.rb index bc1dd7a..23a6c3a 100644 --- a/client/spec/models/get_public_pages_response_spec.rb +++ b/client/spec/models/get_public_pages_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetPublicPagesResponse do - let(:instance) { FastCommentsClient::GetPublicPagesResponse.new } + #let(:instance) { FastCommentsClient::GetPublicPagesResponse.new } describe 'test an instance of GetPublicPagesResponse' do it 'should create an instance of GetPublicPagesResponse' do diff --git a/client/spec/models/get_question_config_response_spec.rb b/client/spec/models/get_question_config_response_spec.rb index d3d1bc3..3c812aa 100644 --- a/client/spec/models/get_question_config_response_spec.rb +++ b/client/spec/models/get_question_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionConfigResponse do - let(:instance) { FastCommentsClient::GetQuestionConfigResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionConfigResponse.new } describe 'test an instance of GetQuestionConfigResponse' do it 'should create an instance of GetQuestionConfigResponse' do diff --git a/client/spec/models/get_question_configs_response_spec.rb b/client/spec/models/get_question_configs_response_spec.rb index 84ef05f..a502cd8 100644 --- a/client/spec/models/get_question_configs_response_spec.rb +++ b/client/spec/models/get_question_configs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionConfigsResponse do - let(:instance) { FastCommentsClient::GetQuestionConfigsResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionConfigsResponse.new } describe 'test an instance of GetQuestionConfigsResponse' do it 'should create an instance of GetQuestionConfigsResponse' do diff --git a/client/spec/models/get_question_result_response_spec.rb b/client/spec/models/get_question_result_response_spec.rb index a99bf43..246d8b1 100644 --- a/client/spec/models/get_question_result_response_spec.rb +++ b/client/spec/models/get_question_result_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionResultResponse do - let(:instance) { FastCommentsClient::GetQuestionResultResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionResultResponse.new } describe 'test an instance of GetQuestionResultResponse' do it 'should create an instance of GetQuestionResultResponse' do diff --git a/client/spec/models/get_question_results_response_spec.rb b/client/spec/models/get_question_results_response_spec.rb index a4858a2..6631b06 100644 --- a/client/spec/models/get_question_results_response_spec.rb +++ b/client/spec/models/get_question_results_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetQuestionResultsResponse do - let(:instance) { FastCommentsClient::GetQuestionResultsResponse.new } + #let(:instance) { FastCommentsClient::GetQuestionResultsResponse.new } describe 'test an instance of GetQuestionResultsResponse' do it 'should create an instance of GetQuestionResultsResponse' do diff --git a/client/spec/models/get_sso_user_by_email_api_response_spec.rb b/client/spec/models/get_sso_user_by_email_api_response_spec.rb index bfa9bce..6a616ac 100644 --- a/client/spec/models/get_sso_user_by_email_api_response_spec.rb +++ b/client/spec/models/get_sso_user_by_email_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSSOUserByEmailAPIResponse do - let(:instance) { FastCommentsClient::GetSSOUserByEmailAPIResponse.new } + #let(:instance) { FastCommentsClient::GetSSOUserByEmailAPIResponse.new } describe 'test an instance of GetSSOUserByEmailAPIResponse' do it 'should create an instance of GetSSOUserByEmailAPIResponse' do diff --git a/client/spec/models/get_sso_user_by_id_api_response_spec.rb b/client/spec/models/get_sso_user_by_id_api_response_spec.rb index 418d84c..23f255b 100644 --- a/client/spec/models/get_sso_user_by_id_api_response_spec.rb +++ b/client/spec/models/get_sso_user_by_id_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSSOUserByIdAPIResponse do - let(:instance) { FastCommentsClient::GetSSOUserByIdAPIResponse.new } + #let(:instance) { FastCommentsClient::GetSSOUserByIdAPIResponse.new } describe 'test an instance of GetSSOUserByIdAPIResponse' do it 'should create an instance of GetSSOUserByIdAPIResponse' do diff --git a/client/spec/models/get_sso_users_response_spec.rb b/client/spec/models/get_sso_users_response_spec.rb index e3e474d..6fc4e60 100644 --- a/client/spec/models/get_sso_users_response_spec.rb +++ b/client/spec/models/get_sso_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSSOUsersResponse do - let(:instance) { FastCommentsClient::GetSSOUsersResponse.new } + #let(:instance) { FastCommentsClient::GetSSOUsersResponse.new } describe 'test an instance of GetSSOUsersResponse' do it 'should create an instance of GetSSOUsersResponse' do diff --git a/client/spec/models/get_subscriptions_api_response_spec.rb b/client/spec/models/get_subscriptions_api_response_spec.rb index c3ac35b..677bdd6 100644 --- a/client/spec/models/get_subscriptions_api_response_spec.rb +++ b/client/spec/models/get_subscriptions_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetSubscriptionsAPIResponse do - let(:instance) { FastCommentsClient::GetSubscriptionsAPIResponse.new } + #let(:instance) { FastCommentsClient::GetSubscriptionsAPIResponse.new } describe 'test an instance of GetSubscriptionsAPIResponse' do it 'should create an instance of GetSubscriptionsAPIResponse' do diff --git a/client/spec/models/get_tenant_daily_usages_response_spec.rb b/client/spec/models/get_tenant_daily_usages_response_spec.rb index d623d7e..99b6fab 100644 --- a/client/spec/models/get_tenant_daily_usages_response_spec.rb +++ b/client/spec/models/get_tenant_daily_usages_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantDailyUsagesResponse do - let(:instance) { FastCommentsClient::GetTenantDailyUsagesResponse.new } + #let(:instance) { FastCommentsClient::GetTenantDailyUsagesResponse.new } describe 'test an instance of GetTenantDailyUsagesResponse' do it 'should create an instance of GetTenantDailyUsagesResponse' do diff --git a/client/spec/models/get_tenant_manual_badges_response_spec.rb b/client/spec/models/get_tenant_manual_badges_response_spec.rb index f6a4714..c349b72 100644 --- a/client/spec/models/get_tenant_manual_badges_response_spec.rb +++ b/client/spec/models/get_tenant_manual_badges_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantManualBadgesResponse do - let(:instance) { FastCommentsClient::GetTenantManualBadgesResponse.new } + #let(:instance) { FastCommentsClient::GetTenantManualBadgesResponse.new } describe 'test an instance of GetTenantManualBadgesResponse' do it 'should create an instance of GetTenantManualBadgesResponse' do diff --git a/client/spec/models/get_tenant_package_response_spec.rb b/client/spec/models/get_tenant_package_response_spec.rb index 9052dd8..06f6d75 100644 --- a/client/spec/models/get_tenant_package_response_spec.rb +++ b/client/spec/models/get_tenant_package_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantPackageResponse do - let(:instance) { FastCommentsClient::GetTenantPackageResponse.new } + #let(:instance) { FastCommentsClient::GetTenantPackageResponse.new } describe 'test an instance of GetTenantPackageResponse' do it 'should create an instance of GetTenantPackageResponse' do diff --git a/client/spec/models/get_tenant_packages_response_spec.rb b/client/spec/models/get_tenant_packages_response_spec.rb index 3f687ca..e8f5120 100644 --- a/client/spec/models/get_tenant_packages_response_spec.rb +++ b/client/spec/models/get_tenant_packages_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantPackagesResponse do - let(:instance) { FastCommentsClient::GetTenantPackagesResponse.new } + #let(:instance) { FastCommentsClient::GetTenantPackagesResponse.new } describe 'test an instance of GetTenantPackagesResponse' do it 'should create an instance of GetTenantPackagesResponse' do diff --git a/client/spec/models/get_tenant_response_spec.rb b/client/spec/models/get_tenant_response_spec.rb index 1105dfb..6f7e611 100644 --- a/client/spec/models/get_tenant_response_spec.rb +++ b/client/spec/models/get_tenant_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantResponse do - let(:instance) { FastCommentsClient::GetTenantResponse.new } + #let(:instance) { FastCommentsClient::GetTenantResponse.new } describe 'test an instance of GetTenantResponse' do it 'should create an instance of GetTenantResponse' do diff --git a/client/spec/models/get_tenant_user_response_spec.rb b/client/spec/models/get_tenant_user_response_spec.rb index edd1569..1d4195b 100644 --- a/client/spec/models/get_tenant_user_response_spec.rb +++ b/client/spec/models/get_tenant_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantUserResponse do - let(:instance) { FastCommentsClient::GetTenantUserResponse.new } + #let(:instance) { FastCommentsClient::GetTenantUserResponse.new } describe 'test an instance of GetTenantUserResponse' do it 'should create an instance of GetTenantUserResponse' do diff --git a/client/spec/models/get_tenant_users_response_spec.rb b/client/spec/models/get_tenant_users_response_spec.rb index c76ef20..fdbae28 100644 --- a/client/spec/models/get_tenant_users_response_spec.rb +++ b/client/spec/models/get_tenant_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantUsersResponse do - let(:instance) { FastCommentsClient::GetTenantUsersResponse.new } + #let(:instance) { FastCommentsClient::GetTenantUsersResponse.new } describe 'test an instance of GetTenantUsersResponse' do it 'should create an instance of GetTenantUsersResponse' do diff --git a/client/spec/models/get_tenants_response_spec.rb b/client/spec/models/get_tenants_response_spec.rb index 422f0e8..d7a9e66 100644 --- a/client/spec/models/get_tenants_response_spec.rb +++ b/client/spec/models/get_tenants_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTenantsResponse do - let(:instance) { FastCommentsClient::GetTenantsResponse.new } + #let(:instance) { FastCommentsClient::GetTenantsResponse.new } describe 'test an instance of GetTenantsResponse' do it 'should create an instance of GetTenantsResponse' do diff --git a/client/spec/models/get_ticket_response_spec.rb b/client/spec/models/get_ticket_response_spec.rb index a7656a5..0d9a816 100644 --- a/client/spec/models/get_ticket_response_spec.rb +++ b/client/spec/models/get_ticket_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTicketResponse do - let(:instance) { FastCommentsClient::GetTicketResponse.new } + #let(:instance) { FastCommentsClient::GetTicketResponse.new } describe 'test an instance of GetTicketResponse' do it 'should create an instance of GetTicketResponse' do diff --git a/client/spec/models/get_tickets_response_spec.rb b/client/spec/models/get_tickets_response_spec.rb index 8a26287..1a73ed8 100644 --- a/client/spec/models/get_tickets_response_spec.rb +++ b/client/spec/models/get_tickets_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTicketsResponse do - let(:instance) { FastCommentsClient::GetTicketsResponse.new } + #let(:instance) { FastCommentsClient::GetTicketsResponse.new } describe 'test an instance of GetTicketsResponse' do it 'should create an instance of GetTicketsResponse' do diff --git a/client/spec/models/get_translations_response_spec.rb b/client/spec/models/get_translations_response_spec.rb index 5abd783..af83423 100644 --- a/client/spec/models/get_translations_response_spec.rb +++ b/client/spec/models/get_translations_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetTranslationsResponse do - let(:instance) { FastCommentsClient::GetTranslationsResponse.new } + #let(:instance) { FastCommentsClient::GetTranslationsResponse.new } describe 'test an instance of GetTranslationsResponse' do it 'should create an instance of GetTranslationsResponse' do diff --git a/client/spec/models/get_user_internal_profile_response_profile_spec.rb b/client/spec/models/get_user_internal_profile_response_profile_spec.rb index 21beb75..5f63534 100644 --- a/client/spec/models/get_user_internal_profile_response_profile_spec.rb +++ b/client/spec/models/get_user_internal_profile_response_profile_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserInternalProfileResponseProfile do - let(:instance) { FastCommentsClient::GetUserInternalProfileResponseProfile.new } + #let(:instance) { FastCommentsClient::GetUserInternalProfileResponseProfile.new } describe 'test an instance of GetUserInternalProfileResponseProfile' do it 'should create an instance of GetUserInternalProfileResponseProfile' do diff --git a/client/spec/models/get_user_internal_profile_response_spec.rb b/client/spec/models/get_user_internal_profile_response_spec.rb index e325e5b..0fddc5d 100644 --- a/client/spec/models/get_user_internal_profile_response_spec.rb +++ b/client/spec/models/get_user_internal_profile_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserInternalProfileResponse do - let(:instance) { FastCommentsClient::GetUserInternalProfileResponse.new } + #let(:instance) { FastCommentsClient::GetUserInternalProfileResponse.new } describe 'test an instance of GetUserInternalProfileResponse' do it 'should create an instance of GetUserInternalProfileResponse' do diff --git a/client/spec/models/get_user_manual_badges_response_spec.rb b/client/spec/models/get_user_manual_badges_response_spec.rb index a07bfde..f78d084 100644 --- a/client/spec/models/get_user_manual_badges_response_spec.rb +++ b/client/spec/models/get_user_manual_badges_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserManualBadgesResponse do - let(:instance) { FastCommentsClient::GetUserManualBadgesResponse.new } + #let(:instance) { FastCommentsClient::GetUserManualBadgesResponse.new } describe 'test an instance of GetUserManualBadgesResponse' do it 'should create an instance of GetUserManualBadgesResponse' do diff --git a/client/spec/models/get_user_notification_count_response_spec.rb b/client/spec/models/get_user_notification_count_response_spec.rb index dc995d5..2f59188 100644 --- a/client/spec/models/get_user_notification_count_response_spec.rb +++ b/client/spec/models/get_user_notification_count_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserNotificationCountResponse do - let(:instance) { FastCommentsClient::GetUserNotificationCountResponse.new } + #let(:instance) { FastCommentsClient::GetUserNotificationCountResponse.new } describe 'test an instance of GetUserNotificationCountResponse' do it 'should create an instance of GetUserNotificationCountResponse' do diff --git a/client/spec/models/get_user_presence_statuses_response_spec.rb b/client/spec/models/get_user_presence_statuses_response_spec.rb index 42833c5..071bc3d 100644 --- a/client/spec/models/get_user_presence_statuses_response_spec.rb +++ b/client/spec/models/get_user_presence_statuses_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserPresenceStatusesResponse do - let(:instance) { FastCommentsClient::GetUserPresenceStatusesResponse.new } + #let(:instance) { FastCommentsClient::GetUserPresenceStatusesResponse.new } describe 'test an instance of GetUserPresenceStatusesResponse' do it 'should create an instance of GetUserPresenceStatusesResponse' do diff --git a/client/spec/models/get_user_response_spec.rb b/client/spec/models/get_user_response_spec.rb index ea159be..e4e1313 100644 --- a/client/spec/models/get_user_response_spec.rb +++ b/client/spec/models/get_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserResponse do - let(:instance) { FastCommentsClient::GetUserResponse.new } + #let(:instance) { FastCommentsClient::GetUserResponse.new } describe 'test an instance of GetUserResponse' do it 'should create an instance of GetUserResponse' do diff --git a/client/spec/models/get_user_trust_factor_response_spec.rb b/client/spec/models/get_user_trust_factor_response_spec.rb index 92d0b39..7a5689d 100644 --- a/client/spec/models/get_user_trust_factor_response_spec.rb +++ b/client/spec/models/get_user_trust_factor_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetUserTrustFactorResponse do - let(:instance) { FastCommentsClient::GetUserTrustFactorResponse.new } + #let(:instance) { FastCommentsClient::GetUserTrustFactorResponse.new } describe 'test an instance of GetUserTrustFactorResponse' do it 'should create an instance of GetUserTrustFactorResponse' do diff --git a/client/spec/models/get_v1_page_likes_spec.rb b/client/spec/models/get_v1_page_likes_spec.rb index ff1818d..b84ac45 100644 --- a/client/spec/models/get_v1_page_likes_spec.rb +++ b/client/spec/models/get_v1_page_likes_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetV1PageLikes do - let(:instance) { FastCommentsClient::GetV1PageLikes.new } + #let(:instance) { FastCommentsClient::GetV1PageLikes.new } describe 'test an instance of GetV1PageLikes' do it 'should create an instance of GetV1PageLikes' do diff --git a/client/spec/models/get_v2_page_react_users_response_spec.rb b/client/spec/models/get_v2_page_react_users_response_spec.rb index 18e8005..ccd80e4 100644 --- a/client/spec/models/get_v2_page_react_users_response_spec.rb +++ b/client/spec/models/get_v2_page_react_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetV2PageReactUsersResponse do - let(:instance) { FastCommentsClient::GetV2PageReactUsersResponse.new } + #let(:instance) { FastCommentsClient::GetV2PageReactUsersResponse.new } describe 'test an instance of GetV2PageReactUsersResponse' do it 'should create an instance of GetV2PageReactUsersResponse' do diff --git a/client/spec/models/get_v2_page_reacts_spec.rb b/client/spec/models/get_v2_page_reacts_spec.rb index 0461ac6..611839a 100644 --- a/client/spec/models/get_v2_page_reacts_spec.rb +++ b/client/spec/models/get_v2_page_reacts_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetV2PageReacts do - let(:instance) { FastCommentsClient::GetV2PageReacts.new } + #let(:instance) { FastCommentsClient::GetV2PageReacts.new } describe 'test an instance of GetV2PageReacts' do it 'should create an instance of GetV2PageReacts' do diff --git a/client/spec/models/get_votes_for_user_response_spec.rb b/client/spec/models/get_votes_for_user_response_spec.rb index a8dfb63..f216eec 100644 --- a/client/spec/models/get_votes_for_user_response_spec.rb +++ b/client/spec/models/get_votes_for_user_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetVotesForUserResponse do - let(:instance) { FastCommentsClient::GetVotesForUserResponse.new } + #let(:instance) { FastCommentsClient::GetVotesForUserResponse.new } describe 'test an instance of GetVotesForUserResponse' do it 'should create an instance of GetVotesForUserResponse' do diff --git a/client/spec/models/get_votes_response_spec.rb b/client/spec/models/get_votes_response_spec.rb index 98c6678..a537f75 100644 --- a/client/spec/models/get_votes_response_spec.rb +++ b/client/spec/models/get_votes_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GetVotesResponse do - let(:instance) { FastCommentsClient::GetVotesResponse.new } + #let(:instance) { FastCommentsClient::GetVotesResponse.new } describe 'test an instance of GetVotesResponse' do it 'should create an instance of GetVotesResponse' do diff --git a/client/spec/models/gif_get_large_response_spec.rb b/client/spec/models/gif_get_large_response_spec.rb index 4896e11..c5b71d7 100644 --- a/client/spec/models/gif_get_large_response_spec.rb +++ b/client/spec/models/gif_get_large_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifGetLargeResponse do - let(:instance) { FastCommentsClient::GifGetLargeResponse.new } + #let(:instance) { FastCommentsClient::GifGetLargeResponse.new } describe 'test an instance of GifGetLargeResponse' do it 'should create an instance of GifGetLargeResponse' do diff --git a/client/spec/models/gif_rating_spec.rb b/client/spec/models/gif_rating_spec.rb index 55c7fc9..c4c81ae 100644 --- a/client/spec/models/gif_rating_spec.rb +++ b/client/spec/models/gif_rating_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifRating do - let(:instance) { FastCommentsClient::GifRating.new } + #let(:instance) { FastCommentsClient::GifRating.new } describe 'test an instance of GifRating' do it 'should create an instance of GifRating' do diff --git a/client/spec/models/gif_search_internal_error_spec.rb b/client/spec/models/gif_search_internal_error_spec.rb index 1a6c7b9..be21a55 100644 --- a/client/spec/models/gif_search_internal_error_spec.rb +++ b/client/spec/models/gif_search_internal_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifSearchInternalError do - let(:instance) { FastCommentsClient::GifSearchInternalError.new } + #let(:instance) { FastCommentsClient::GifSearchInternalError.new } describe 'test an instance of GifSearchInternalError' do it 'should create an instance of GifSearchInternalError' do diff --git a/client/spec/models/gif_search_response_images_inner_inner_spec.rb b/client/spec/models/gif_search_response_images_inner_inner_spec.rb index 50d628e..39776dd 100644 --- a/client/spec/models/gif_search_response_images_inner_inner_spec.rb +++ b/client/spec/models/gif_search_response_images_inner_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/gif_search_response_spec.rb b/client/spec/models/gif_search_response_spec.rb index 821f85d..0c5e454 100644 --- a/client/spec/models/gif_search_response_spec.rb +++ b/client/spec/models/gif_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::GifSearchResponse do - let(:instance) { FastCommentsClient::GifSearchResponse.new } + #let(:instance) { FastCommentsClient::GifSearchResponse.new } describe 'test an instance of GifSearchResponse' do it 'should create an instance of GifSearchResponse' do diff --git a/client/spec/models/header_account_notification_spec.rb b/client/spec/models/header_account_notification_spec.rb index f785562..dd1d40f 100644 --- a/client/spec/models/header_account_notification_spec.rb +++ b/client/spec/models/header_account_notification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::HeaderAccountNotification do - let(:instance) { FastCommentsClient::HeaderAccountNotification.new } + #let(:instance) { FastCommentsClient::HeaderAccountNotification.new } describe 'test an instance of HeaderAccountNotification' do it 'should create an instance of HeaderAccountNotification' do diff --git a/client/spec/models/header_state_spec.rb b/client/spec/models/header_state_spec.rb index afa83ec..6055e14 100644 --- a/client/spec/models/header_state_spec.rb +++ b/client/spec/models/header_state_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::HeaderState do - let(:instance) { FastCommentsClient::HeaderState.new } + #let(:instance) { FastCommentsClient::HeaderState.new } describe 'test an instance of HeaderState' do it 'should create an instance of HeaderState' do diff --git a/client/spec/models/ignored_response_spec.rb b/client/spec/models/ignored_response_spec.rb index 70a82e9..7881f10 100644 --- a/client/spec/models/ignored_response_spec.rb +++ b/client/spec/models/ignored_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::IgnoredResponse do - let(:instance) { FastCommentsClient::IgnoredResponse.new } + #let(:instance) { FastCommentsClient::IgnoredResponse.new } describe 'test an instance of IgnoredResponse' do it 'should create an instance of IgnoredResponse' do diff --git a/client/spec/models/image_content_profanity_level_spec.rb b/client/spec/models/image_content_profanity_level_spec.rb index 4b2e233..939cce1 100644 --- a/client/spec/models/image_content_profanity_level_spec.rb +++ b/client/spec/models/image_content_profanity_level_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ImageContentProfanityLevel do - let(:instance) { FastCommentsClient::ImageContentProfanityLevel.new } + #let(:instance) { FastCommentsClient::ImageContentProfanityLevel.new } describe 'test an instance of ImageContentProfanityLevel' do it 'should create an instance of ImageContentProfanityLevel' do diff --git a/client/spec/models/imported_agent_approval_notification_frequency_spec.rb b/client/spec/models/imported_agent_approval_notification_frequency_spec.rb index 599b327..fa74bee 100644 --- a/client/spec/models/imported_agent_approval_notification_frequency_spec.rb +++ b/client/spec/models/imported_agent_approval_notification_frequency_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ImportedAgentApprovalNotificationFrequency do - let(:instance) { FastCommentsClient::ImportedAgentApprovalNotificationFrequency.new } + #let(:instance) { FastCommentsClient::ImportedAgentApprovalNotificationFrequency.new } describe 'test an instance of ImportedAgentApprovalNotificationFrequency' do it 'should create an instance of ImportedAgentApprovalNotificationFrequency' do diff --git a/client/spec/models/imported_site_type_spec.rb b/client/spec/models/imported_site_type_spec.rb index fc057de..a9a3aec 100644 --- a/client/spec/models/imported_site_type_spec.rb +++ b/client/spec/models/imported_site_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ImportedSiteType do - let(:instance) { FastCommentsClient::ImportedSiteType.new } + #let(:instance) { FastCommentsClient::ImportedSiteType.new } describe 'test an instance of ImportedSiteType' do it 'should create an instance of ImportedSiteType' do diff --git a/client/spec/models/live_event_extra_info_spec.rb b/client/spec/models/live_event_extra_info_spec.rb index 8ea37a1..d0bad96 100644 --- a/client/spec/models/live_event_extra_info_spec.rb +++ b/client/spec/models/live_event_extra_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::LiveEventExtraInfo do - let(:instance) { FastCommentsClient::LiveEventExtraInfo.new } + #let(:instance) { FastCommentsClient::LiveEventExtraInfo.new } describe 'test an instance of LiveEventExtraInfo' do it 'should create an instance of LiveEventExtraInfo' do diff --git a/client/spec/models/live_event_spec.rb b/client/spec/models/live_event_spec.rb index e625a87..18ad74c 100644 --- a/client/spec/models/live_event_spec.rb +++ b/client/spec/models/live_event_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::LiveEvent do - let(:instance) { FastCommentsClient::LiveEvent.new } + #let(:instance) { FastCommentsClient::LiveEvent.new } describe 'test an instance of LiveEvent' do it 'should create an instance of LiveEvent' do diff --git a/client/spec/models/live_event_type_spec.rb b/client/spec/models/live_event_type_spec.rb index 711c4b8..ac16dbf 100644 --- a/client/spec/models/live_event_type_spec.rb +++ b/client/spec/models/live_event_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::LiveEventType do - let(:instance) { FastCommentsClient::LiveEventType.new } + #let(:instance) { FastCommentsClient::LiveEventType.new } describe 'test an instance of LiveEventType' do it 'should create an instance of LiveEventType' do diff --git a/client/spec/models/media_asset_spec.rb b/client/spec/models/media_asset_spec.rb index a763d74..7f2cdb5 100644 --- a/client/spec/models/media_asset_spec.rb +++ b/client/spec/models/media_asset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::MediaAsset do - let(:instance) { FastCommentsClient::MediaAsset.new } + #let(:instance) { FastCommentsClient::MediaAsset.new } describe 'test an instance of MediaAsset' do it 'should create an instance of MediaAsset' do diff --git a/client/spec/models/mention_auto_complete_mode_spec.rb b/client/spec/models/mention_auto_complete_mode_spec.rb index 2747cd8..c8d0b66 100644 --- a/client/spec/models/mention_auto_complete_mode_spec.rb +++ b/client/spec/models/mention_auto_complete_mode_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::MentionAutoCompleteMode do - let(:instance) { FastCommentsClient::MentionAutoCompleteMode.new } + #let(:instance) { FastCommentsClient::MentionAutoCompleteMode.new } describe 'test an instance of MentionAutoCompleteMode' do it 'should create an instance of MentionAutoCompleteMode' do diff --git a/client/spec/models/meta_item_spec.rb b/client/spec/models/meta_item_spec.rb index d466890..3efb08a 100644 --- a/client/spec/models/meta_item_spec.rb +++ b/client/spec/models/meta_item_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::MetaItem do - let(:instance) { FastCommentsClient::MetaItem.new } + #let(:instance) { FastCommentsClient::MetaItem.new } describe 'test an instance of MetaItem' do it 'should create an instance of MetaItem' do diff --git a/client/spec/models/moderation_api_child_comments_response_spec.rb b/client/spec/models/moderation_api_child_comments_response_spec.rb index b7ba6a9..9aba4ec 100644 --- a/client/spec/models/moderation_api_child_comments_response_spec.rb +++ b/client/spec/models/moderation_api_child_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIChildCommentsResponse do - let(:instance) { FastCommentsClient::ModerationAPIChildCommentsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIChildCommentsResponse.new } describe 'test an instance of ModerationAPIChildCommentsResponse' do it 'should create an instance of ModerationAPIChildCommentsResponse' do diff --git a/client/spec/models/moderation_api_comment_log_spec.rb b/client/spec/models/moderation_api_comment_log_spec.rb index 9deaa10..a415d66 100644 --- a/client/spec/models/moderation_api_comment_log_spec.rb +++ b/client/spec/models/moderation_api_comment_log_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPICommentLog do - let(:instance) { FastCommentsClient::ModerationAPICommentLog.new } + #let(:instance) { FastCommentsClient::ModerationAPICommentLog.new } describe 'test an instance of ModerationAPICommentLog' do it 'should create an instance of ModerationAPICommentLog' do diff --git a/client/spec/models/moderation_api_comment_response_spec.rb b/client/spec/models/moderation_api_comment_response_spec.rb index e1f1041..56a250c 100644 --- a/client/spec/models/moderation_api_comment_response_spec.rb +++ b/client/spec/models/moderation_api_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPICommentResponse do - let(:instance) { FastCommentsClient::ModerationAPICommentResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPICommentResponse.new } describe 'test an instance of ModerationAPICommentResponse' do it 'should create an instance of ModerationAPICommentResponse' do diff --git a/client/spec/models/moderation_api_comment_spec.rb b/client/spec/models/moderation_api_comment_spec.rb index cee50d4..fa5a397 100644 --- a/client/spec/models/moderation_api_comment_spec.rb +++ b/client/spec/models/moderation_api_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIComment do - let(:instance) { FastCommentsClient::ModerationAPIComment.new } + #let(:instance) { FastCommentsClient::ModerationAPIComment.new } describe 'test an instance of ModerationAPIComment' do it 'should create an instance of ModerationAPIComment' do diff --git a/client/spec/models/moderation_api_count_comments_response_spec.rb b/client/spec/models/moderation_api_count_comments_response_spec.rb index 7239eb6..6cf27ca 100644 --- a/client/spec/models/moderation_api_count_comments_response_spec.rb +++ b/client/spec/models/moderation_api_count_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPICountCommentsResponse do - let(:instance) { FastCommentsClient::ModerationAPICountCommentsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPICountCommentsResponse.new } describe 'test an instance of ModerationAPICountCommentsResponse' do it 'should create an instance of ModerationAPICountCommentsResponse' do diff --git a/client/spec/models/moderation_api_get_comment_ids_response_spec.rb b/client/spec/models/moderation_api_get_comment_ids_response_spec.rb index cb4b943..f50d853 100644 --- a/client/spec/models/moderation_api_get_comment_ids_response_spec.rb +++ b/client/spec/models/moderation_api_get_comment_ids_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIGetCommentIdsResponse do - let(:instance) { FastCommentsClient::ModerationAPIGetCommentIdsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIGetCommentIdsResponse.new } describe 'test an instance of ModerationAPIGetCommentIdsResponse' do it 'should create an instance of ModerationAPIGetCommentIdsResponse' do diff --git a/client/spec/models/moderation_api_get_comments_response_spec.rb b/client/spec/models/moderation_api_get_comments_response_spec.rb index 282292b..3f70625 100644 --- a/client/spec/models/moderation_api_get_comments_response_spec.rb +++ b/client/spec/models/moderation_api_get_comments_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIGetCommentsResponse do - let(:instance) { FastCommentsClient::ModerationAPIGetCommentsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIGetCommentsResponse.new } describe 'test an instance of ModerationAPIGetCommentsResponse' do it 'should create an instance of ModerationAPIGetCommentsResponse' do diff --git a/client/spec/models/moderation_api_get_logs_response_spec.rb b/client/spec/models/moderation_api_get_logs_response_spec.rb index a34d023..6af79ff 100644 --- a/client/spec/models/moderation_api_get_logs_response_spec.rb +++ b/client/spec/models/moderation_api_get_logs_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationAPIGetLogsResponse do - let(:instance) { FastCommentsClient::ModerationAPIGetLogsResponse.new } + #let(:instance) { FastCommentsClient::ModerationAPIGetLogsResponse.new } describe 'test an instance of ModerationAPIGetLogsResponse' do it 'should create an instance of ModerationAPIGetLogsResponse' do diff --git a/client/spec/models/moderation_comment_search_response_spec.rb b/client/spec/models/moderation_comment_search_response_spec.rb index b096054..8edc6da 100644 --- a/client/spec/models/moderation_comment_search_response_spec.rb +++ b/client/spec/models/moderation_comment_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationCommentSearchResponse do - let(:instance) { FastCommentsClient::ModerationCommentSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationCommentSearchResponse.new } describe 'test an instance of ModerationCommentSearchResponse' do it 'should create an instance of ModerationCommentSearchResponse' do diff --git a/client/spec/models/moderation_export_response_spec.rb b/client/spec/models/moderation_export_response_spec.rb index 5322f4c..43ff580 100644 --- a/client/spec/models/moderation_export_response_spec.rb +++ b/client/spec/models/moderation_export_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationExportResponse do - let(:instance) { FastCommentsClient::ModerationExportResponse.new } + #let(:instance) { FastCommentsClient::ModerationExportResponse.new } describe 'test an instance of ModerationExportResponse' do it 'should create an instance of ModerationExportResponse' do diff --git a/client/spec/models/moderation_export_status_response_spec.rb b/client/spec/models/moderation_export_status_response_spec.rb index 707118e..45adc8f 100644 --- a/client/spec/models/moderation_export_status_response_spec.rb +++ b/client/spec/models/moderation_export_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationExportStatusResponse do - let(:instance) { FastCommentsClient::ModerationExportStatusResponse.new } + #let(:instance) { FastCommentsClient::ModerationExportStatusResponse.new } describe 'test an instance of ModerationExportStatusResponse' do it 'should create an instance of ModerationExportStatusResponse' do diff --git a/client/spec/models/moderation_filter_spec.rb b/client/spec/models/moderation_filter_spec.rb index 1669eeb..0438268 100644 --- a/client/spec/models/moderation_filter_spec.rb +++ b/client/spec/models/moderation_filter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationFilter do - let(:instance) { FastCommentsClient::ModerationFilter.new } + #let(:instance) { FastCommentsClient::ModerationFilter.new } describe 'test an instance of ModerationFilter' do it 'should create an instance of ModerationFilter' do diff --git a/client/spec/models/moderation_page_search_projected_spec.rb b/client/spec/models/moderation_page_search_projected_spec.rb index 1faeac0..c9dd948 100644 --- a/client/spec/models/moderation_page_search_projected_spec.rb +++ b/client/spec/models/moderation_page_search_projected_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationPageSearchProjected do - let(:instance) { FastCommentsClient::ModerationPageSearchProjected.new } + #let(:instance) { FastCommentsClient::ModerationPageSearchProjected.new } describe 'test an instance of ModerationPageSearchProjected' do it 'should create an instance of ModerationPageSearchProjected' do diff --git a/client/spec/models/moderation_page_search_response_spec.rb b/client/spec/models/moderation_page_search_response_spec.rb index 449f861..1ac04bc 100644 --- a/client/spec/models/moderation_page_search_response_spec.rb +++ b/client/spec/models/moderation_page_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationPageSearchResponse do - let(:instance) { FastCommentsClient::ModerationPageSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationPageSearchResponse.new } describe 'test an instance of ModerationPageSearchResponse' do it 'should create an instance of ModerationPageSearchResponse' do diff --git a/client/spec/models/moderation_site_search_projected_spec.rb b/client/spec/models/moderation_site_search_projected_spec.rb index d197af7..58d2dfa 100644 --- a/client/spec/models/moderation_site_search_projected_spec.rb +++ b/client/spec/models/moderation_site_search_projected_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationSiteSearchProjected do - let(:instance) { FastCommentsClient::ModerationSiteSearchProjected.new } + #let(:instance) { FastCommentsClient::ModerationSiteSearchProjected.new } describe 'test an instance of ModerationSiteSearchProjected' do it 'should create an instance of ModerationSiteSearchProjected' do diff --git a/client/spec/models/moderation_site_search_response_spec.rb b/client/spec/models/moderation_site_search_response_spec.rb index 6c7cc06..409a5d8 100644 --- a/client/spec/models/moderation_site_search_response_spec.rb +++ b/client/spec/models/moderation_site_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationSiteSearchResponse do - let(:instance) { FastCommentsClient::ModerationSiteSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationSiteSearchResponse.new } describe 'test an instance of ModerationSiteSearchResponse' do it 'should create an instance of ModerationSiteSearchResponse' do diff --git a/client/spec/models/moderation_suggest_response_spec.rb b/client/spec/models/moderation_suggest_response_spec.rb index 0659a03..b23a982 100644 --- a/client/spec/models/moderation_suggest_response_spec.rb +++ b/client/spec/models/moderation_suggest_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationSuggestResponse do - let(:instance) { FastCommentsClient::ModerationSuggestResponse.new } + #let(:instance) { FastCommentsClient::ModerationSuggestResponse.new } describe 'test an instance of ModerationSuggestResponse' do it 'should create an instance of ModerationSuggestResponse' do diff --git a/client/spec/models/moderation_user_search_projected_spec.rb b/client/spec/models/moderation_user_search_projected_spec.rb index d81cbf7..c521d2a 100644 --- a/client/spec/models/moderation_user_search_projected_spec.rb +++ b/client/spec/models/moderation_user_search_projected_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationUserSearchProjected do - let(:instance) { FastCommentsClient::ModerationUserSearchProjected.new } + #let(:instance) { FastCommentsClient::ModerationUserSearchProjected.new } describe 'test an instance of ModerationUserSearchProjected' do it 'should create an instance of ModerationUserSearchProjected' do diff --git a/client/spec/models/moderation_user_search_response_spec.rb b/client/spec/models/moderation_user_search_response_spec.rb index 56b3df4..2d787e6 100644 --- a/client/spec/models/moderation_user_search_response_spec.rb +++ b/client/spec/models/moderation_user_search_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ModerationUserSearchResponse do - let(:instance) { FastCommentsClient::ModerationUserSearchResponse.new } + #let(:instance) { FastCommentsClient::ModerationUserSearchResponse.new } describe 'test an instance of ModerationUserSearchResponse' do it 'should create an instance of ModerationUserSearchResponse' do diff --git a/client/spec/models/moderator_spec.rb b/client/spec/models/moderator_spec.rb index fbfe703..fd1173a 100644 --- a/client/spec/models/moderator_spec.rb +++ b/client/spec/models/moderator_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::Moderator do - let(:instance) { FastCommentsClient::Moderator.new } + #let(:instance) { FastCommentsClient::Moderator.new } describe 'test an instance of Moderator' do it 'should create an instance of Moderator' do diff --git a/client/spec/models/notification_and_count_spec.rb b/client/spec/models/notification_and_count_spec.rb index fe2da82..c6c7fab 100644 --- a/client/spec/models/notification_and_count_spec.rb +++ b/client/spec/models/notification_and_count_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::NotificationAndCount do - let(:instance) { FastCommentsClient::NotificationAndCount.new } + #let(:instance) { FastCommentsClient::NotificationAndCount.new } describe 'test an instance of NotificationAndCount' do it 'should create an instance of NotificationAndCount' do diff --git a/client/spec/models/notification_object_type_spec.rb b/client/spec/models/notification_object_type_spec.rb index b701589..50aa378 100644 --- a/client/spec/models/notification_object_type_spec.rb +++ b/client/spec/models/notification_object_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::NotificationObjectType do - let(:instance) { FastCommentsClient::NotificationObjectType.new } + #let(:instance) { FastCommentsClient::NotificationObjectType.new } describe 'test an instance of NotificationObjectType' do it 'should create an instance of NotificationObjectType' do diff --git a/client/spec/models/notification_type_spec.rb b/client/spec/models/notification_type_spec.rb index 6c40678..ace387a 100644 --- a/client/spec/models/notification_type_spec.rb +++ b/client/spec/models/notification_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::NotificationType do - let(:instance) { FastCommentsClient::NotificationType.new } + #let(:instance) { FastCommentsClient::NotificationType.new } describe 'test an instance of NotificationType' do it 'should create an instance of NotificationType' do diff --git a/client/spec/models/page_user_entry_spec.rb b/client/spec/models/page_user_entry_spec.rb index 358518d..84fd61b 100644 --- a/client/spec/models/page_user_entry_spec.rb +++ b/client/spec/models/page_user_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUserEntry do - let(:instance) { FastCommentsClient::PageUserEntry.new } + #let(:instance) { FastCommentsClient::PageUserEntry.new } describe 'test an instance of PageUserEntry' do it 'should create an instance of PageUserEntry' do diff --git a/client/spec/models/page_users_info_response_spec.rb b/client/spec/models/page_users_info_response_spec.rb index 0534c8f..aad32f9 100644 --- a/client/spec/models/page_users_info_response_spec.rb +++ b/client/spec/models/page_users_info_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUsersInfoResponse do - let(:instance) { FastCommentsClient::PageUsersInfoResponse.new } + #let(:instance) { FastCommentsClient::PageUsersInfoResponse.new } describe 'test an instance of PageUsersInfoResponse' do it 'should create an instance of PageUsersInfoResponse' do diff --git a/client/spec/models/page_users_offline_response_spec.rb b/client/spec/models/page_users_offline_response_spec.rb index dd4f6ce..0fe80d7 100644 --- a/client/spec/models/page_users_offline_response_spec.rb +++ b/client/spec/models/page_users_offline_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUsersOfflineResponse do - let(:instance) { FastCommentsClient::PageUsersOfflineResponse.new } + #let(:instance) { FastCommentsClient::PageUsersOfflineResponse.new } describe 'test an instance of PageUsersOfflineResponse' do it 'should create an instance of PageUsersOfflineResponse' do diff --git a/client/spec/models/page_users_online_response_spec.rb b/client/spec/models/page_users_online_response_spec.rb index effb885..2293b3f 100644 --- a/client/spec/models/page_users_online_response_spec.rb +++ b/client/spec/models/page_users_online_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PageUsersOnlineResponse do - let(:instance) { FastCommentsClient::PageUsersOnlineResponse.new } + #let(:instance) { FastCommentsClient::PageUsersOnlineResponse.new } describe 'test an instance of PageUsersOnlineResponse' do it 'should create an instance of PageUsersOnlineResponse' do diff --git a/client/spec/models/pages_sort_by_spec.rb b/client/spec/models/pages_sort_by_spec.rb index dca4fce..f04fa60 100644 --- a/client/spec/models/pages_sort_by_spec.rb +++ b/client/spec/models/pages_sort_by_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PagesSortBy do - let(:instance) { FastCommentsClient::PagesSortBy.new } + #let(:instance) { FastCommentsClient::PagesSortBy.new } describe 'test an instance of PagesSortBy' do it 'should create an instance of PagesSortBy' do diff --git a/client/spec/models/patch_domain_config_params_spec.rb b/client/spec/models/patch_domain_config_params_spec.rb index 5f145a9..67d8ae0 100644 --- a/client/spec/models/patch_domain_config_params_spec.rb +++ b/client/spec/models/patch_domain_config_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PatchDomainConfigParams do - let(:instance) { FastCommentsClient::PatchDomainConfigParams.new } + #let(:instance) { FastCommentsClient::PatchDomainConfigParams.new } describe 'test an instance of PatchDomainConfigParams' do it 'should create an instance of PatchDomainConfigParams' do diff --git a/client/spec/models/patch_domain_config_response_spec.rb b/client/spec/models/patch_domain_config_response_spec.rb index 8f442bb..67af55c 100644 --- a/client/spec/models/patch_domain_config_response_spec.rb +++ b/client/spec/models/patch_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/patch_page_api_response_spec.rb b/client/spec/models/patch_page_api_response_spec.rb index f2ce6bf..1def25d 100644 --- a/client/spec/models/patch_page_api_response_spec.rb +++ b/client/spec/models/patch_page_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PatchPageAPIResponse do - let(:instance) { FastCommentsClient::PatchPageAPIResponse.new } + #let(:instance) { FastCommentsClient::PatchPageAPIResponse.new } describe 'test an instance of PatchPageAPIResponse' do it 'should create an instance of PatchPageAPIResponse' do diff --git a/client/spec/models/patch_sso_user_api_response_spec.rb b/client/spec/models/patch_sso_user_api_response_spec.rb index b775c54..3b25b5b 100644 --- a/client/spec/models/patch_sso_user_api_response_spec.rb +++ b/client/spec/models/patch_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PatchSSOUserAPIResponse do - let(:instance) { FastCommentsClient::PatchSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::PatchSSOUserAPIResponse.new } describe 'test an instance of PatchSSOUserAPIResponse' do it 'should create an instance of PatchSSOUserAPIResponse' do diff --git a/client/spec/models/pending_comment_to_sync_outbound_spec.rb b/client/spec/models/pending_comment_to_sync_outbound_spec.rb index 4189751..7969d9f 100644 --- a/client/spec/models/pending_comment_to_sync_outbound_spec.rb +++ b/client/spec/models/pending_comment_to_sync_outbound_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PendingCommentToSyncOutbound do - let(:instance) { FastCommentsClient::PendingCommentToSyncOutbound.new } + #let(:instance) { FastCommentsClient::PendingCommentToSyncOutbound.new } describe 'test an instance of PendingCommentToSyncOutbound' do it 'should create an instance of PendingCommentToSyncOutbound' do diff --git a/client/spec/models/post_remove_comment_response_spec.rb b/client/spec/models/post_remove_comment_api_response_spec.rb similarity index 71% rename from client/spec/models/post_remove_comment_response_spec.rb rename to client/spec/models/post_remove_comment_api_response_spec.rb index 77a0b22..dc56645 100644 --- a/client/spec/models/post_remove_comment_response_spec.rb +++ b/client/spec/models/post_remove_comment_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -14,8 +14,8 @@ require 'json' require 'date' -# Unit tests for FastCommentsClient::PostRemoveCommentResponse +# Unit tests for FastCommentsClient::PostRemoveCommentApiResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe FastCommentsClient::PostRemoveCommentResponse do +describe FastCommentsClient::PostRemoveCommentApiResponse do end diff --git a/client/spec/models/pre_ban_summary_spec.rb b/client/spec/models/pre_ban_summary_spec.rb index 152e19f..ebc1dd9 100644 --- a/client/spec/models/pre_ban_summary_spec.rb +++ b/client/spec/models/pre_ban_summary_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PreBanSummary do - let(:instance) { FastCommentsClient::PreBanSummary.new } + #let(:instance) { FastCommentsClient::PreBanSummary.new } describe 'test an instance of PreBanSummary' do it 'should create an instance of PreBanSummary' do diff --git a/client/spec/models/pub_sub_comment_base_spec.rb b/client/spec/models/pub_sub_comment_base_spec.rb index 05997f3..bbf1f3b 100644 --- a/client/spec/models/pub_sub_comment_base_spec.rb +++ b/client/spec/models/pub_sub_comment_base_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PubSubCommentBase do - let(:instance) { FastCommentsClient::PubSubCommentBase.new } + #let(:instance) { FastCommentsClient::PubSubCommentBase.new } describe 'test an instance of PubSubCommentBase' do it 'should create an instance of PubSubCommentBase' do diff --git a/client/spec/models/pub_sub_comment_spec.rb b/client/spec/models/pub_sub_comment_spec.rb index 389d56a..af7c247 100644 --- a/client/spec/models/pub_sub_comment_spec.rb +++ b/client/spec/models/pub_sub_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PubSubComment do - let(:instance) { FastCommentsClient::PubSubComment.new } + #let(:instance) { FastCommentsClient::PubSubComment.new } describe 'test an instance of PubSubComment' do it 'should create an instance of PubSubComment' do diff --git a/client/spec/models/pub_sub_vote_spec.rb b/client/spec/models/pub_sub_vote_spec.rb index e02fbeb..f54cf40 100644 --- a/client/spec/models/pub_sub_vote_spec.rb +++ b/client/spec/models/pub_sub_vote_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PubSubVote do - let(:instance) { FastCommentsClient::PubSubVote.new } + #let(:instance) { FastCommentsClient::PubSubVote.new } describe 'test an instance of PubSubVote' do it 'should create an instance of PubSubVote' do diff --git a/client/spec/models/public_api_delete_comment_response_spec.rb b/client/spec/models/public_api_delete_comment_response_spec.rb index 6d1f375..3073ff3 100644 --- a/client/spec/models/public_api_delete_comment_response_spec.rb +++ b/client/spec/models/public_api_delete_comment_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicAPIDeleteCommentResponse do - let(:instance) { FastCommentsClient::PublicAPIDeleteCommentResponse.new } + #let(:instance) { FastCommentsClient::PublicAPIDeleteCommentResponse.new } describe 'test an instance of PublicAPIDeleteCommentResponse' do it 'should create an instance of PublicAPIDeleteCommentResponse' do diff --git a/client/spec/models/public_api_get_comment_text_response_spec.rb b/client/spec/models/public_api_get_comment_text_response_spec.rb index 357dc62..58842e2 100644 --- a/client/spec/models/public_api_get_comment_text_response_spec.rb +++ b/client/spec/models/public_api_get_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicAPIGetCommentTextResponse do - let(:instance) { FastCommentsClient::PublicAPIGetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::PublicAPIGetCommentTextResponse.new } describe 'test an instance of PublicAPIGetCommentTextResponse' do it 'should create an instance of PublicAPIGetCommentTextResponse' do diff --git a/client/spec/models/public_api_set_comment_text_response_spec.rb b/client/spec/models/public_api_set_comment_text_response_spec.rb index accbb3b..45ce6c7 100644 --- a/client/spec/models/public_api_set_comment_text_response_spec.rb +++ b/client/spec/models/public_api_set_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicAPISetCommentTextResponse do - let(:instance) { FastCommentsClient::PublicAPISetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::PublicAPISetCommentTextResponse.new } describe 'test an instance of PublicAPISetCommentTextResponse' do it 'should create an instance of PublicAPISetCommentTextResponse' do diff --git a/client/spec/models/public_block_from_comment_params_spec.rb b/client/spec/models/public_block_from_comment_params_spec.rb index e456875..b73623f 100644 --- a/client/spec/models/public_block_from_comment_params_spec.rb +++ b/client/spec/models/public_block_from_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicBlockFromCommentParams do - let(:instance) { FastCommentsClient::PublicBlockFromCommentParams.new } + #let(:instance) { FastCommentsClient::PublicBlockFromCommentParams.new } describe 'test an instance of PublicBlockFromCommentParams' do it 'should create an instance of PublicBlockFromCommentParams' do diff --git a/client/spec/models/public_comment_base_spec.rb b/client/spec/models/public_comment_base_spec.rb index 5f0065e..11fad0e 100644 --- a/client/spec/models/public_comment_base_spec.rb +++ b/client/spec/models/public_comment_base_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicCommentBase do - let(:instance) { FastCommentsClient::PublicCommentBase.new } + #let(:instance) { FastCommentsClient::PublicCommentBase.new } describe 'test an instance of PublicCommentBase' do it 'should create an instance of PublicCommentBase' do diff --git a/client/spec/models/public_comment_spec.rb b/client/spec/models/public_comment_spec.rb index 32b2e7f..1cd25ee 100644 --- a/client/spec/models/public_comment_spec.rb +++ b/client/spec/models/public_comment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicComment do - let(:instance) { FastCommentsClient::PublicComment.new } + #let(:instance) { FastCommentsClient::PublicComment.new } describe 'test an instance of PublicComment' do it 'should create an instance of PublicComment' do diff --git a/client/spec/models/public_feed_posts_response_spec.rb b/client/spec/models/public_feed_posts_response_spec.rb index b18c425..b495745 100644 --- a/client/spec/models/public_feed_posts_response_spec.rb +++ b/client/spec/models/public_feed_posts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicFeedPostsResponse do - let(:instance) { FastCommentsClient::PublicFeedPostsResponse.new } + #let(:instance) { FastCommentsClient::PublicFeedPostsResponse.new } describe 'test an instance of PublicFeedPostsResponse' do it 'should create an instance of PublicFeedPostsResponse' do diff --git a/client/spec/models/public_page_spec.rb b/client/spec/models/public_page_spec.rb index e7841ed..318afa6 100644 --- a/client/spec/models/public_page_spec.rb +++ b/client/spec/models/public_page_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicPage do - let(:instance) { FastCommentsClient::PublicPage.new } + #let(:instance) { FastCommentsClient::PublicPage.new } describe 'test an instance of PublicPage' do it 'should create an instance of PublicPage' do diff --git a/client/spec/models/public_vote_spec.rb b/client/spec/models/public_vote_spec.rb index 3944f91..07437de 100644 --- a/client/spec/models/public_vote_spec.rb +++ b/client/spec/models/public_vote_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PublicVote do - let(:instance) { FastCommentsClient::PublicVote.new } + #let(:instance) { FastCommentsClient::PublicVote.new } describe 'test an instance of PublicVote' do it 'should create an instance of PublicVote' do diff --git a/client/spec/models/put_domain_config_response_spec.rb b/client/spec/models/put_domain_config_response_spec.rb index 685f398..145f2c1 100644 --- a/client/spec/models/put_domain_config_response_spec.rb +++ b/client/spec/models/put_domain_config_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/put_sso_user_api_response_spec.rb b/client/spec/models/put_sso_user_api_response_spec.rb index c5b37e9..67fd71d 100644 --- a/client/spec/models/put_sso_user_api_response_spec.rb +++ b/client/spec/models/put_sso_user_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::PutSSOUserAPIResponse do - let(:instance) { FastCommentsClient::PutSSOUserAPIResponse.new } + #let(:instance) { FastCommentsClient::PutSSOUserAPIResponse.new } describe 'test an instance of PutSSOUserAPIResponse' do it 'should create an instance of PutSSOUserAPIResponse' do diff --git a/client/spec/models/query_predicate_spec.rb b/client/spec/models/query_predicate_spec.rb index 9390167..aab87a1 100644 --- a/client/spec/models/query_predicate_spec.rb +++ b/client/spec/models/query_predicate_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QueryPredicate do - let(:instance) { FastCommentsClient::QueryPredicate.new } + #let(:instance) { FastCommentsClient::QueryPredicate.new } describe 'test an instance of QueryPredicate' do it 'should create an instance of QueryPredicate' do diff --git a/client/spec/models/query_predicate_value_spec.rb b/client/spec/models/query_predicate_value_spec.rb index 3216bf1..013b85b 100644 --- a/client/spec/models/query_predicate_value_spec.rb +++ b/client/spec/models/query_predicate_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/question_config_custom_options_inner_spec.rb b/client/spec/models/question_config_custom_options_inner_spec.rb index ab4eff5..18fb96f 100644 --- a/client/spec/models/question_config_custom_options_inner_spec.rb +++ b/client/spec/models/question_config_custom_options_inner_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionConfigCustomOptionsInner do - let(:instance) { FastCommentsClient::QuestionConfigCustomOptionsInner.new } + #let(:instance) { FastCommentsClient::QuestionConfigCustomOptionsInner.new } describe 'test an instance of QuestionConfigCustomOptionsInner' do it 'should create an instance of QuestionConfigCustomOptionsInner' do diff --git a/client/spec/models/question_config_spec.rb b/client/spec/models/question_config_spec.rb index 7d7af22..a41fd15 100644 --- a/client/spec/models/question_config_spec.rb +++ b/client/spec/models/question_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionConfig do - let(:instance) { FastCommentsClient::QuestionConfig.new } + #let(:instance) { FastCommentsClient::QuestionConfig.new } describe 'test an instance of QuestionConfig' do it 'should create an instance of QuestionConfig' do diff --git a/client/spec/models/question_datum_spec.rb b/client/spec/models/question_datum_spec.rb index 893b847..e3289e2 100644 --- a/client/spec/models/question_datum_spec.rb +++ b/client/spec/models/question_datum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionDatum do - let(:instance) { FastCommentsClient::QuestionDatum.new } + #let(:instance) { FastCommentsClient::QuestionDatum.new } describe 'test an instance of QuestionDatum' do it 'should create an instance of QuestionDatum' do diff --git a/client/spec/models/question_rendering_type_spec.rb b/client/spec/models/question_rendering_type_spec.rb index dfb08cb..80a4911 100644 --- a/client/spec/models/question_rendering_type_spec.rb +++ b/client/spec/models/question_rendering_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionRenderingType do - let(:instance) { FastCommentsClient::QuestionRenderingType.new } + #let(:instance) { FastCommentsClient::QuestionRenderingType.new } describe 'test an instance of QuestionRenderingType' do it 'should create an instance of QuestionRenderingType' do diff --git a/client/spec/models/question_result_aggregation_overall_spec.rb b/client/spec/models/question_result_aggregation_overall_spec.rb index 0670df6..1b21e7b 100644 --- a/client/spec/models/question_result_aggregation_overall_spec.rb +++ b/client/spec/models/question_result_aggregation_overall_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionResultAggregationOverall do - let(:instance) { FastCommentsClient::QuestionResultAggregationOverall.new } + #let(:instance) { FastCommentsClient::QuestionResultAggregationOverall.new } describe 'test an instance of QuestionResultAggregationOverall' do it 'should create an instance of QuestionResultAggregationOverall' do diff --git a/client/spec/models/question_result_spec.rb b/client/spec/models/question_result_spec.rb index 8d39c1d..2fe55ea 100644 --- a/client/spec/models/question_result_spec.rb +++ b/client/spec/models/question_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionResult do - let(:instance) { FastCommentsClient::QuestionResult.new } + #let(:instance) { FastCommentsClient::QuestionResult.new } describe 'test an instance of QuestionResult' do it 'should create an instance of QuestionResult' do diff --git a/client/spec/models/question_sub_question_visibility_spec.rb b/client/spec/models/question_sub_question_visibility_spec.rb index d8148e0..8b66abf 100644 --- a/client/spec/models/question_sub_question_visibility_spec.rb +++ b/client/spec/models/question_sub_question_visibility_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionSubQuestionVisibility do - let(:instance) { FastCommentsClient::QuestionSubQuestionVisibility.new } + #let(:instance) { FastCommentsClient::QuestionSubQuestionVisibility.new } describe 'test an instance of QuestionSubQuestionVisibility' do it 'should create an instance of QuestionSubQuestionVisibility' do diff --git a/client/spec/models/question_when_save_spec.rb b/client/spec/models/question_when_save_spec.rb index 5e385ef..560e05c 100644 --- a/client/spec/models/question_when_save_spec.rb +++ b/client/spec/models/question_when_save_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::QuestionWhenSave do - let(:instance) { FastCommentsClient::QuestionWhenSave.new } + #let(:instance) { FastCommentsClient::QuestionWhenSave.new } describe 'test an instance of QuestionWhenSave' do it 'should create an instance of QuestionWhenSave' do diff --git a/client/spec/models/react_body_params_spec.rb b/client/spec/models/react_body_params_spec.rb index f742982..5513893 100644 --- a/client/spec/models/react_body_params_spec.rb +++ b/client/spec/models/react_body_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReactBodyParams do - let(:instance) { FastCommentsClient::ReactBodyParams.new } + #let(:instance) { FastCommentsClient::ReactBodyParams.new } describe 'test an instance of ReactBodyParams' do it 'should create an instance of ReactBodyParams' do diff --git a/client/spec/models/react_feed_post_response_spec.rb b/client/spec/models/react_feed_post_response_spec.rb index e045a05..6512296 100644 --- a/client/spec/models/react_feed_post_response_spec.rb +++ b/client/spec/models/react_feed_post_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReactFeedPostResponse do - let(:instance) { FastCommentsClient::ReactFeedPostResponse.new } + #let(:instance) { FastCommentsClient::ReactFeedPostResponse.new } describe 'test an instance of ReactFeedPostResponse' do it 'should create an instance of ReactFeedPostResponse' do diff --git a/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb b/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb index 54fe5fa..e87551d 100644 --- a/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +++ b/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue do - let(:instance) { FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue.new } + #let(:instance) { FastCommentsClient::RecordStringBeforeStringOrNullAfterStringOrNullValue.new } describe 'test an instance of RecordStringBeforeStringOrNullAfterStringOrNullValue' do it 'should create an instance of RecordStringBeforeStringOrNullAfterStringOrNullValue' do diff --git a/client/spec/models/remove_comment_action_response_spec.rb b/client/spec/models/remove_comment_action_response_spec.rb index fc03d6e..0c54a42 100644 --- a/client/spec/models/remove_comment_action_response_spec.rb +++ b/client/spec/models/remove_comment_action_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RemoveCommentActionResponse do - let(:instance) { FastCommentsClient::RemoveCommentActionResponse.new } + #let(:instance) { FastCommentsClient::RemoveCommentActionResponse.new } describe 'test an instance of RemoveCommentActionResponse' do it 'should create an instance of RemoveCommentActionResponse' do diff --git a/client/spec/models/remove_user_badge_response_spec.rb b/client/spec/models/remove_user_badge_response_spec.rb index 4cad561..72acfaa 100644 --- a/client/spec/models/remove_user_badge_response_spec.rb +++ b/client/spec/models/remove_user_badge_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RemoveUserBadgeResponse do - let(:instance) { FastCommentsClient::RemoveUserBadgeResponse.new } + #let(:instance) { FastCommentsClient::RemoveUserBadgeResponse.new } describe 'test an instance of RemoveUserBadgeResponse' do it 'should create an instance of RemoveUserBadgeResponse' do diff --git a/client/spec/models/render_email_template_body_spec.rb b/client/spec/models/render_email_template_body_spec.rb index 305cebc..00baa53 100644 --- a/client/spec/models/render_email_template_body_spec.rb +++ b/client/spec/models/render_email_template_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RenderEmailTemplateBody do - let(:instance) { FastCommentsClient::RenderEmailTemplateBody.new } + #let(:instance) { FastCommentsClient::RenderEmailTemplateBody.new } describe 'test an instance of RenderEmailTemplateBody' do it 'should create an instance of RenderEmailTemplateBody' do diff --git a/client/spec/models/render_email_template_response_spec.rb b/client/spec/models/render_email_template_response_spec.rb index 9cacd5b..c8a4dd1 100644 --- a/client/spec/models/render_email_template_response_spec.rb +++ b/client/spec/models/render_email_template_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RenderEmailTemplateResponse do - let(:instance) { FastCommentsClient::RenderEmailTemplateResponse.new } + #let(:instance) { FastCommentsClient::RenderEmailTemplateResponse.new } describe 'test an instance of RenderEmailTemplateResponse' do it 'should create an instance of RenderEmailTemplateResponse' do diff --git a/client/spec/models/renderable_user_notification_spec.rb b/client/spec/models/renderable_user_notification_spec.rb index c48b26b..21acbb8 100644 --- a/client/spec/models/renderable_user_notification_spec.rb +++ b/client/spec/models/renderable_user_notification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RenderableUserNotification do - let(:instance) { FastCommentsClient::RenderableUserNotification.new } + #let(:instance) { FastCommentsClient::RenderableUserNotification.new } describe 'test an instance of RenderableUserNotification' do it 'should create an instance of RenderableUserNotification' do diff --git a/client/spec/models/repeat_comment_check_ignored_reason_spec.rb b/client/spec/models/repeat_comment_check_ignored_reason_spec.rb index cdfeaab..4a98d7a 100644 --- a/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +++ b/client/spec/models/repeat_comment_check_ignored_reason_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RepeatCommentCheckIgnoredReason do - let(:instance) { FastCommentsClient::RepeatCommentCheckIgnoredReason.new } + #let(:instance) { FastCommentsClient::RepeatCommentCheckIgnoredReason.new } describe 'test an instance of RepeatCommentCheckIgnoredReason' do it 'should create an instance of RepeatCommentCheckIgnoredReason' do diff --git a/client/spec/models/repeat_comment_handling_action_spec.rb b/client/spec/models/repeat_comment_handling_action_spec.rb index cd5047c..9b91744 100644 --- a/client/spec/models/repeat_comment_handling_action_spec.rb +++ b/client/spec/models/repeat_comment_handling_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::RepeatCommentHandlingAction do - let(:instance) { FastCommentsClient::RepeatCommentHandlingAction.new } + #let(:instance) { FastCommentsClient::RepeatCommentHandlingAction.new } describe 'test an instance of RepeatCommentHandlingAction' do it 'should create an instance of RepeatCommentHandlingAction' do diff --git a/client/spec/models/replace_tenant_package_body_spec.rb b/client/spec/models/replace_tenant_package_body_spec.rb index 890a6a7..c1ee983 100644 --- a/client/spec/models/replace_tenant_package_body_spec.rb +++ b/client/spec/models/replace_tenant_package_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReplaceTenantPackageBody do - let(:instance) { FastCommentsClient::ReplaceTenantPackageBody.new } + #let(:instance) { FastCommentsClient::ReplaceTenantPackageBody.new } describe 'test an instance of ReplaceTenantPackageBody' do it 'should create an instance of ReplaceTenantPackageBody' do diff --git a/client/spec/models/replace_tenant_user_body_spec.rb b/client/spec/models/replace_tenant_user_body_spec.rb index 600ff0e..5dcc328 100644 --- a/client/spec/models/replace_tenant_user_body_spec.rb +++ b/client/spec/models/replace_tenant_user_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ReplaceTenantUserBody do - let(:instance) { FastCommentsClient::ReplaceTenantUserBody.new } + #let(:instance) { FastCommentsClient::ReplaceTenantUserBody.new } describe 'test an instance of ReplaceTenantUserBody' do it 'should create an instance of ReplaceTenantUserBody' do diff --git a/client/spec/models/reset_user_notifications_response_spec.rb b/client/spec/models/reset_user_notifications_response_spec.rb index 23a24ed..bf57d61 100644 --- a/client/spec/models/reset_user_notifications_response_spec.rb +++ b/client/spec/models/reset_user_notifications_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::ResetUserNotificationsResponse do - let(:instance) { FastCommentsClient::ResetUserNotificationsResponse.new } + #let(:instance) { FastCommentsClient::ResetUserNotificationsResponse.new } describe 'test an instance of ResetUserNotificationsResponse' do it 'should create an instance of ResetUserNotificationsResponse' do diff --git a/client/spec/models/save_comment_response_optimized_spec.rb b/client/spec/models/save_comment_response_optimized_spec.rb index 6791334..24da2e2 100644 --- a/client/spec/models/save_comment_response_optimized_spec.rb +++ b/client/spec/models/save_comment_response_optimized_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SaveCommentResponseOptimized do - let(:instance) { FastCommentsClient::SaveCommentResponseOptimized.new } + #let(:instance) { FastCommentsClient::SaveCommentResponseOptimized.new } describe 'test an instance of SaveCommentResponseOptimized' do it 'should create an instance of SaveCommentResponseOptimized' do diff --git a/client/spec/models/save_comments_bulk_response_spec.rb b/client/spec/models/save_comments_bulk_response_spec.rb index 66a4fab..1739ef1 100644 --- a/client/spec/models/save_comments_bulk_response_spec.rb +++ b/client/spec/models/save_comments_bulk_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/save_comments_response_with_presence_spec.rb b/client/spec/models/save_comments_response_with_presence_spec.rb index cbe1ed3..1b96da5 100644 --- a/client/spec/models/save_comments_response_with_presence_spec.rb +++ b/client/spec/models/save_comments_response_with_presence_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SaveCommentsResponseWithPresence do - let(:instance) { FastCommentsClient::SaveCommentsResponseWithPresence.new } + #let(:instance) { FastCommentsClient::SaveCommentsResponseWithPresence.new } describe 'test an instance of SaveCommentsResponseWithPresence' do it 'should create an instance of SaveCommentsResponseWithPresence' do diff --git a/client/spec/models/search_users_response_spec.rb b/client/spec/models/search_users_response_spec.rb index f366646..975c284 100644 --- a/client/spec/models/search_users_response_spec.rb +++ b/client/spec/models/search_users_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SearchUsersResponse do - let(:instance) { FastCommentsClient::SearchUsersResponse.new } + #let(:instance) { FastCommentsClient::SearchUsersResponse.new } describe 'test an instance of SearchUsersResponse' do it 'should create an instance of SearchUsersResponse' do diff --git a/client/spec/models/search_users_result_spec.rb b/client/spec/models/search_users_result_spec.rb index 39a5394..981e947 100644 --- a/client/spec/models/search_users_result_spec.rb +++ b/client/spec/models/search_users_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/search_users_sectioned_response_spec.rb b/client/spec/models/search_users_sectioned_response_spec.rb index c6f05e5..9b70fb3 100644 --- a/client/spec/models/search_users_sectioned_response_spec.rb +++ b/client/spec/models/search_users_sectioned_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SearchUsersSectionedResponse do - let(:instance) { FastCommentsClient::SearchUsersSectionedResponse.new } + #let(:instance) { FastCommentsClient::SearchUsersSectionedResponse.new } describe 'test an instance of SearchUsersSectionedResponse' do it 'should create an instance of SearchUsersSectionedResponse' do diff --git a/client/spec/models/set_comment_approved_response_spec.rb b/client/spec/models/set_comment_approved_response_spec.rb index e5ac387..b8deb79 100644 --- a/client/spec/models/set_comment_approved_response_spec.rb +++ b/client/spec/models/set_comment_approved_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentApprovedResponse do - let(:instance) { FastCommentsClient::SetCommentApprovedResponse.new } + #let(:instance) { FastCommentsClient::SetCommentApprovedResponse.new } describe 'test an instance of SetCommentApprovedResponse' do it 'should create an instance of SetCommentApprovedResponse' do diff --git a/client/spec/models/set_comment_text_params_spec.rb b/client/spec/models/set_comment_text_params_spec.rb index c50df14..29d7a04 100644 --- a/client/spec/models/set_comment_text_params_spec.rb +++ b/client/spec/models/set_comment_text_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentTextParams do - let(:instance) { FastCommentsClient::SetCommentTextParams.new } + #let(:instance) { FastCommentsClient::SetCommentTextParams.new } describe 'test an instance of SetCommentTextParams' do it 'should create an instance of SetCommentTextParams' do diff --git a/client/spec/models/set_comment_text_response_spec.rb b/client/spec/models/set_comment_text_response_spec.rb index f6dd6ed..e30d79b 100644 --- a/client/spec/models/set_comment_text_response_spec.rb +++ b/client/spec/models/set_comment_text_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentTextResponse do - let(:instance) { FastCommentsClient::SetCommentTextResponse.new } + #let(:instance) { FastCommentsClient::SetCommentTextResponse.new } describe 'test an instance of SetCommentTextResponse' do it 'should create an instance of SetCommentTextResponse' do diff --git a/client/spec/models/set_comment_text_result_spec.rb b/client/spec/models/set_comment_text_result_spec.rb index c3d5ae4..e9edfe2 100644 --- a/client/spec/models/set_comment_text_result_spec.rb +++ b/client/spec/models/set_comment_text_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetCommentTextResult do - let(:instance) { FastCommentsClient::SetCommentTextResult.new } + #let(:instance) { FastCommentsClient::SetCommentTextResult.new } describe 'test an instance of SetCommentTextResult' do it 'should create an instance of SetCommentTextResult' do diff --git a/client/spec/models/set_user_trust_factor_response_spec.rb b/client/spec/models/set_user_trust_factor_response_spec.rb index c070039..729fb87 100644 --- a/client/spec/models/set_user_trust_factor_response_spec.rb +++ b/client/spec/models/set_user_trust_factor_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SetUserTrustFactorResponse do - let(:instance) { FastCommentsClient::SetUserTrustFactorResponse.new } + #let(:instance) { FastCommentsClient::SetUserTrustFactorResponse.new } describe 'test an instance of SetUserTrustFactorResponse' do it 'should create an instance of SetUserTrustFactorResponse' do diff --git a/client/spec/models/size_preset_spec.rb b/client/spec/models/size_preset_spec.rb index 34bbbda..9dcdc74 100644 --- a/client/spec/models/size_preset_spec.rb +++ b/client/spec/models/size_preset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SizePreset do - let(:instance) { FastCommentsClient::SizePreset.new } + #let(:instance) { FastCommentsClient::SizePreset.new } describe 'test an instance of SizePreset' do it 'should create an instance of SizePreset' do diff --git a/client/spec/models/sort_directions_spec.rb b/client/spec/models/sort_directions_spec.rb index 563094d..1c0cb91 100644 --- a/client/spec/models/sort_directions_spec.rb +++ b/client/spec/models/sort_directions_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SortDirections do - let(:instance) { FastCommentsClient::SortDirections.new } + #let(:instance) { FastCommentsClient::SortDirections.new } describe 'test an instance of SortDirections' do it 'should create an instance of SortDirections' do diff --git a/client/spec/models/sortdir_spec.rb b/client/spec/models/sortdir_spec.rb index 4b48152..bc2b32f 100644 --- a/client/spec/models/sortdir_spec.rb +++ b/client/spec/models/sortdir_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SORTDIR do - let(:instance) { FastCommentsClient::SORTDIR.new } + #let(:instance) { FastCommentsClient::SORTDIR.new } describe 'test an instance of SORTDIR' do it 'should create an instance of SORTDIR' do diff --git a/client/spec/models/spam_rule_spec.rb b/client/spec/models/spam_rule_spec.rb index ee98bc0..c40307a 100644 --- a/client/spec/models/spam_rule_spec.rb +++ b/client/spec/models/spam_rule_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SpamRule do - let(:instance) { FastCommentsClient::SpamRule.new } + #let(:instance) { FastCommentsClient::SpamRule.new } describe 'test an instance of SpamRule' do it 'should create an instance of SpamRule' do diff --git a/client/spec/models/sso_security_level_spec.rb b/client/spec/models/sso_security_level_spec.rb index 6c63521..c3e8355 100644 --- a/client/spec/models/sso_security_level_spec.rb +++ b/client/spec/models/sso_security_level_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::SSOSecurityLevel do - let(:instance) { FastCommentsClient::SSOSecurityLevel.new } + #let(:instance) { FastCommentsClient::SSOSecurityLevel.new } describe 'test an instance of SSOSecurityLevel' do it 'should create an instance of SSOSecurityLevel' do diff --git a/client/spec/models/tenant_badge_spec.rb b/client/spec/models/tenant_badge_spec.rb index 0bfc007..95d7d63 100644 --- a/client/spec/models/tenant_badge_spec.rb +++ b/client/spec/models/tenant_badge_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TenantBadge do - let(:instance) { FastCommentsClient::TenantBadge.new } + #let(:instance) { FastCommentsClient::TenantBadge.new } describe 'test an instance of TenantBadge' do it 'should create an instance of TenantBadge' do diff --git a/client/spec/models/tenant_hash_tag_spec.rb b/client/spec/models/tenant_hash_tag_spec.rb index 7dba7c6..09abc91 100644 --- a/client/spec/models/tenant_hash_tag_spec.rb +++ b/client/spec/models/tenant_hash_tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TenantHashTag do - let(:instance) { FastCommentsClient::TenantHashTag.new } + #let(:instance) { FastCommentsClient::TenantHashTag.new } describe 'test an instance of TenantHashTag' do it 'should create an instance of TenantHashTag' do diff --git a/client/spec/models/tenant_package_spec.rb b/client/spec/models/tenant_package_spec.rb index bdd5c0d..be3fe98 100644 --- a/client/spec/models/tenant_package_spec.rb +++ b/client/spec/models/tenant_package_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TenantPackage do - let(:instance) { FastCommentsClient::TenantPackage.new } + #let(:instance) { FastCommentsClient::TenantPackage.new } describe 'test an instance of TenantPackage' do it 'should create an instance of TenantPackage' do diff --git a/client/spec/models/tos_config_spec.rb b/client/spec/models/tos_config_spec.rb index c97a0bc..ff93e6a 100644 --- a/client/spec/models/tos_config_spec.rb +++ b/client/spec/models/tos_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::TOSConfig do - let(:instance) { FastCommentsClient::TOSConfig.new } + #let(:instance) { FastCommentsClient::TOSConfig.new } describe 'test an instance of TOSConfig' do it 'should create an instance of TOSConfig' do diff --git a/client/spec/models/un_block_from_comment_params_spec.rb b/client/spec/models/un_block_from_comment_params_spec.rb index a48767b..7197202 100644 --- a/client/spec/models/un_block_from_comment_params_spec.rb +++ b/client/spec/models/un_block_from_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UnBlockFromCommentParams do - let(:instance) { FastCommentsClient::UnBlockFromCommentParams.new } + #let(:instance) { FastCommentsClient::UnBlockFromCommentParams.new } describe 'test an instance of UnBlockFromCommentParams' do it 'should create an instance of UnBlockFromCommentParams' do diff --git a/client/spec/models/unblock_success_spec.rb b/client/spec/models/unblock_success_spec.rb index d612fae..3c74a7b 100644 --- a/client/spec/models/unblock_success_spec.rb +++ b/client/spec/models/unblock_success_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UnblockSuccess do - let(:instance) { FastCommentsClient::UnblockSuccess.new } + #let(:instance) { FastCommentsClient::UnblockSuccess.new } describe 'test an instance of UnblockSuccess' do it 'should create an instance of UnblockSuccess' do diff --git a/client/spec/models/updatable_comment_params_spec.rb b/client/spec/models/updatable_comment_params_spec.rb index 6df0f3e..4fe15e1 100644 --- a/client/spec/models/updatable_comment_params_spec.rb +++ b/client/spec/models/updatable_comment_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdatableCommentParams do - let(:instance) { FastCommentsClient::UpdatableCommentParams.new } + #let(:instance) { FastCommentsClient::UpdatableCommentParams.new } describe 'test an instance of UpdatableCommentParams' do it 'should create an instance of UpdatableCommentParams' do diff --git a/client/spec/models/update_api_page_data_spec.rb b/client/spec/models/update_api_page_data_spec.rb index c93db77..7ea12b9 100644 --- a/client/spec/models/update_api_page_data_spec.rb +++ b/client/spec/models/update_api_page_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateAPIPageData do - let(:instance) { FastCommentsClient::UpdateAPIPageData.new } + #let(:instance) { FastCommentsClient::UpdateAPIPageData.new } describe 'test an instance of UpdateAPIPageData' do it 'should create an instance of UpdateAPIPageData' do diff --git a/client/spec/models/update_api_user_subscription_data_spec.rb b/client/spec/models/update_api_user_subscription_data_spec.rb index 76cdc80..1d447d3 100644 --- a/client/spec/models/update_api_user_subscription_data_spec.rb +++ b/client/spec/models/update_api_user_subscription_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateAPIUserSubscriptionData do - let(:instance) { FastCommentsClient::UpdateAPIUserSubscriptionData.new } + #let(:instance) { FastCommentsClient::UpdateAPIUserSubscriptionData.new } describe 'test an instance of UpdateAPIUserSubscriptionData' do it 'should create an instance of UpdateAPIUserSubscriptionData' do diff --git a/client/spec/models/update_apisso_user_data_spec.rb b/client/spec/models/update_apisso_user_data_spec.rb index 9eec718..e27ea36 100644 --- a/client/spec/models/update_apisso_user_data_spec.rb +++ b/client/spec/models/update_apisso_user_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateAPISSOUserData do - let(:instance) { FastCommentsClient::UpdateAPISSOUserData.new } + #let(:instance) { FastCommentsClient::UpdateAPISSOUserData.new } describe 'test an instance of UpdateAPISSOUserData' do it 'should create an instance of UpdateAPISSOUserData' do diff --git a/client/spec/models/update_domain_config_params_spec.rb b/client/spec/models/update_domain_config_params_spec.rb index 02c9d21..dd2f82a 100644 --- a/client/spec/models/update_domain_config_params_spec.rb +++ b/client/spec/models/update_domain_config_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateDomainConfigParams do - let(:instance) { FastCommentsClient::UpdateDomainConfigParams.new } + #let(:instance) { FastCommentsClient::UpdateDomainConfigParams.new } describe 'test an instance of UpdateDomainConfigParams' do it 'should create an instance of UpdateDomainConfigParams' do diff --git a/client/spec/models/update_email_template_body_spec.rb b/client/spec/models/update_email_template_body_spec.rb index 49bdd89..75c17e9 100644 --- a/client/spec/models/update_email_template_body_spec.rb +++ b/client/spec/models/update_email_template_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateEmailTemplateBody do - let(:instance) { FastCommentsClient::UpdateEmailTemplateBody.new } + #let(:instance) { FastCommentsClient::UpdateEmailTemplateBody.new } describe 'test an instance of UpdateEmailTemplateBody' do it 'should create an instance of UpdateEmailTemplateBody' do diff --git a/client/spec/models/update_feed_post_params_spec.rb b/client/spec/models/update_feed_post_params_spec.rb index 4b8112c..5525daa 100644 --- a/client/spec/models/update_feed_post_params_spec.rb +++ b/client/spec/models/update_feed_post_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateFeedPostParams do - let(:instance) { FastCommentsClient::UpdateFeedPostParams.new } + #let(:instance) { FastCommentsClient::UpdateFeedPostParams.new } describe 'test an instance of UpdateFeedPostParams' do it 'should create an instance of UpdateFeedPostParams' do diff --git a/client/spec/models/update_hash_tag_body_spec.rb b/client/spec/models/update_hash_tag_body_spec.rb index 5dd7338..bcf3848 100644 --- a/client/spec/models/update_hash_tag_body_spec.rb +++ b/client/spec/models/update_hash_tag_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateHashTagBody do - let(:instance) { FastCommentsClient::UpdateHashTagBody.new } + #let(:instance) { FastCommentsClient::UpdateHashTagBody.new } describe 'test an instance of UpdateHashTagBody' do it 'should create an instance of UpdateHashTagBody' do diff --git a/client/spec/models/update_hash_tag_response_spec.rb b/client/spec/models/update_hash_tag_response_spec.rb index 26b1fd4..969bffb 100644 --- a/client/spec/models/update_hash_tag_response_spec.rb +++ b/client/spec/models/update_hash_tag_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateHashTagResponse do - let(:instance) { FastCommentsClient::UpdateHashTagResponse.new } + #let(:instance) { FastCommentsClient::UpdateHashTagResponse.new } describe 'test an instance of UpdateHashTagResponse' do it 'should create an instance of UpdateHashTagResponse' do diff --git a/client/spec/models/update_moderator_body_spec.rb b/client/spec/models/update_moderator_body_spec.rb index e420b40..c316477 100644 --- a/client/spec/models/update_moderator_body_spec.rb +++ b/client/spec/models/update_moderator_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateModeratorBody do - let(:instance) { FastCommentsClient::UpdateModeratorBody.new } + #let(:instance) { FastCommentsClient::UpdateModeratorBody.new } describe 'test an instance of UpdateModeratorBody' do it 'should create an instance of UpdateModeratorBody' do diff --git a/client/spec/models/update_notification_body_spec.rb b/client/spec/models/update_notification_body_spec.rb index 8372e85..d33d1c9 100644 --- a/client/spec/models/update_notification_body_spec.rb +++ b/client/spec/models/update_notification_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateNotificationBody do - let(:instance) { FastCommentsClient::UpdateNotificationBody.new } + #let(:instance) { FastCommentsClient::UpdateNotificationBody.new } describe 'test an instance of UpdateNotificationBody' do it 'should create an instance of UpdateNotificationBody' do diff --git a/client/spec/models/update_question_config_body_spec.rb b/client/spec/models/update_question_config_body_spec.rb index 25d6c67..77361ac 100644 --- a/client/spec/models/update_question_config_body_spec.rb +++ b/client/spec/models/update_question_config_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateQuestionConfigBody do - let(:instance) { FastCommentsClient::UpdateQuestionConfigBody.new } + #let(:instance) { FastCommentsClient::UpdateQuestionConfigBody.new } describe 'test an instance of UpdateQuestionConfigBody' do it 'should create an instance of UpdateQuestionConfigBody' do diff --git a/client/spec/models/update_question_result_body_spec.rb b/client/spec/models/update_question_result_body_spec.rb index 07b7ed0..81baf8a 100644 --- a/client/spec/models/update_question_result_body_spec.rb +++ b/client/spec/models/update_question_result_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateQuestionResultBody do - let(:instance) { FastCommentsClient::UpdateQuestionResultBody.new } + #let(:instance) { FastCommentsClient::UpdateQuestionResultBody.new } describe 'test an instance of UpdateQuestionResultBody' do it 'should create an instance of UpdateQuestionResultBody' do diff --git a/client/spec/models/update_subscription_api_response_spec.rb b/client/spec/models/update_subscription_api_response_spec.rb index 4878423..9345bad 100644 --- a/client/spec/models/update_subscription_api_response_spec.rb +++ b/client/spec/models/update_subscription_api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateSubscriptionAPIResponse do - let(:instance) { FastCommentsClient::UpdateSubscriptionAPIResponse.new } + #let(:instance) { FastCommentsClient::UpdateSubscriptionAPIResponse.new } describe 'test an instance of UpdateSubscriptionAPIResponse' do it 'should create an instance of UpdateSubscriptionAPIResponse' do diff --git a/client/spec/models/update_tenant_body_spec.rb b/client/spec/models/update_tenant_body_spec.rb index 795b198..9b2985b 100644 --- a/client/spec/models/update_tenant_body_spec.rb +++ b/client/spec/models/update_tenant_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateTenantBody do - let(:instance) { FastCommentsClient::UpdateTenantBody.new } + #let(:instance) { FastCommentsClient::UpdateTenantBody.new } describe 'test an instance of UpdateTenantBody' do it 'should create an instance of UpdateTenantBody' do diff --git a/client/spec/models/update_tenant_package_body_spec.rb b/client/spec/models/update_tenant_package_body_spec.rb index ef90b8b..4c47a60 100644 --- a/client/spec/models/update_tenant_package_body_spec.rb +++ b/client/spec/models/update_tenant_package_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateTenantPackageBody do - let(:instance) { FastCommentsClient::UpdateTenantPackageBody.new } + #let(:instance) { FastCommentsClient::UpdateTenantPackageBody.new } describe 'test an instance of UpdateTenantPackageBody' do it 'should create an instance of UpdateTenantPackageBody' do diff --git a/client/spec/models/update_tenant_user_body_spec.rb b/client/spec/models/update_tenant_user_body_spec.rb index f0e544b..08051a7 100644 --- a/client/spec/models/update_tenant_user_body_spec.rb +++ b/client/spec/models/update_tenant_user_body_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateTenantUserBody do - let(:instance) { FastCommentsClient::UpdateTenantUserBody.new } + #let(:instance) { FastCommentsClient::UpdateTenantUserBody.new } describe 'test an instance of UpdateTenantUserBody' do it 'should create an instance of UpdateTenantUserBody' do diff --git a/client/spec/models/update_user_badge_params_spec.rb b/client/spec/models/update_user_badge_params_spec.rb index fe7bd61..9383d59 100644 --- a/client/spec/models/update_user_badge_params_spec.rb +++ b/client/spec/models/update_user_badge_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UpdateUserBadgeParams do - let(:instance) { FastCommentsClient::UpdateUserBadgeParams.new } + #let(:instance) { FastCommentsClient::UpdateUserBadgeParams.new } describe 'test an instance of UpdateUserBadgeParams' do it 'should create an instance of UpdateUserBadgeParams' do diff --git a/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb b/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb index 343755f..c3aefdf 100644 --- a/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb +++ b/client/spec/models/update_user_notification_comment_subscription_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb b/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb index ab8b153..f227db1 100644 --- a/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb +++ b/client/spec/models/update_user_notification_page_subscription_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/update_user_notification_status_response_spec.rb b/client/spec/models/update_user_notification_status_response_spec.rb index 6af38ea..3e0b519 100644 --- a/client/spec/models/update_user_notification_status_response_spec.rb +++ b/client/spec/models/update_user_notification_status_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/client/spec/models/upload_image_response_spec.rb b/client/spec/models/upload_image_response_spec.rb index abfc4bb..f9c3f16 100644 --- a/client/spec/models/upload_image_response_spec.rb +++ b/client/spec/models/upload_image_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UploadImageResponse do - let(:instance) { FastCommentsClient::UploadImageResponse.new } + #let(:instance) { FastCommentsClient::UploadImageResponse.new } describe 'test an instance of UploadImageResponse' do it 'should create an instance of UploadImageResponse' do diff --git a/client/spec/models/user_badge_progress_spec.rb b/client/spec/models/user_badge_progress_spec.rb index a506042..11f15da 100644 --- a/client/spec/models/user_badge_progress_spec.rb +++ b/client/spec/models/user_badge_progress_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserBadgeProgress do - let(:instance) { FastCommentsClient::UserBadgeProgress.new } + #let(:instance) { FastCommentsClient::UserBadgeProgress.new } describe 'test an instance of UserBadgeProgress' do it 'should create an instance of UserBadgeProgress' do diff --git a/client/spec/models/user_badge_spec.rb b/client/spec/models/user_badge_spec.rb index aaf5756..ff25ae4 100644 --- a/client/spec/models/user_badge_spec.rb +++ b/client/spec/models/user_badge_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserBadge do - let(:instance) { FastCommentsClient::UserBadge.new } + #let(:instance) { FastCommentsClient::UserBadge.new } describe 'test an instance of UserBadge' do it 'should create an instance of UserBadge' do diff --git a/client/spec/models/user_notification_count_spec.rb b/client/spec/models/user_notification_count_spec.rb index 15eba9e..af2e7a3 100644 --- a/client/spec/models/user_notification_count_spec.rb +++ b/client/spec/models/user_notification_count_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserNotificationCount do - let(:instance) { FastCommentsClient::UserNotificationCount.new } + #let(:instance) { FastCommentsClient::UserNotificationCount.new } describe 'test an instance of UserNotificationCount' do it 'should create an instance of UserNotificationCount' do diff --git a/client/spec/models/user_notification_spec.rb b/client/spec/models/user_notification_spec.rb index 08b198c..6745ad8 100644 --- a/client/spec/models/user_notification_spec.rb +++ b/client/spec/models/user_notification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserNotification do - let(:instance) { FastCommentsClient::UserNotification.new } + #let(:instance) { FastCommentsClient::UserNotification.new } describe 'test an instance of UserNotification' do it 'should create an instance of UserNotification' do diff --git a/client/spec/models/user_notification_write_response_spec.rb b/client/spec/models/user_notification_write_response_spec.rb index 4c649d0..75ac20f 100644 --- a/client/spec/models/user_notification_write_response_spec.rb +++ b/client/spec/models/user_notification_write_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserNotificationWriteResponse do - let(:instance) { FastCommentsClient::UserNotificationWriteResponse.new } + #let(:instance) { FastCommentsClient::UserNotificationWriteResponse.new } describe 'test an instance of UserNotificationWriteResponse' do it 'should create an instance of UserNotificationWriteResponse' do diff --git a/client/spec/models/user_presence_data_spec.rb b/client/spec/models/user_presence_data_spec.rb index 662b0cc..76a8c04 100644 --- a/client/spec/models/user_presence_data_spec.rb +++ b/client/spec/models/user_presence_data_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserPresenceData do - let(:instance) { FastCommentsClient::UserPresenceData.new } + #let(:instance) { FastCommentsClient::UserPresenceData.new } describe 'test an instance of UserPresenceData' do it 'should create an instance of UserPresenceData' do diff --git a/client/spec/models/user_reacts_response_spec.rb b/client/spec/models/user_reacts_response_spec.rb index 37c15f2..8143d1f 100644 --- a/client/spec/models/user_reacts_response_spec.rb +++ b/client/spec/models/user_reacts_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserReactsResponse do - let(:instance) { FastCommentsClient::UserReactsResponse.new } + #let(:instance) { FastCommentsClient::UserReactsResponse.new } describe 'test an instance of UserReactsResponse' do it 'should create an instance of UserReactsResponse' do diff --git a/client/spec/models/user_search_result_spec.rb b/client/spec/models/user_search_result_spec.rb index 906e77a..8aa0fbf 100644 --- a/client/spec/models/user_search_result_spec.rb +++ b/client/spec/models/user_search_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSearchResult do - let(:instance) { FastCommentsClient::UserSearchResult.new } + #let(:instance) { FastCommentsClient::UserSearchResult.new } describe 'test an instance of UserSearchResult' do it 'should create an instance of UserSearchResult' do diff --git a/client/spec/models/user_search_section_result_spec.rb b/client/spec/models/user_search_section_result_spec.rb index 575e21c..44f030b 100644 --- a/client/spec/models/user_search_section_result_spec.rb +++ b/client/spec/models/user_search_section_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSearchSectionResult do - let(:instance) { FastCommentsClient::UserSearchSectionResult.new } + #let(:instance) { FastCommentsClient::UserSearchSectionResult.new } describe 'test an instance of UserSearchSectionResult' do it 'should create an instance of UserSearchSectionResult' do diff --git a/client/spec/models/user_search_section_spec.rb b/client/spec/models/user_search_section_spec.rb index b13797e..78bda83 100644 --- a/client/spec/models/user_search_section_spec.rb +++ b/client/spec/models/user_search_section_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSearchSection do - let(:instance) { FastCommentsClient::UserSearchSection.new } + #let(:instance) { FastCommentsClient::UserSearchSection.new } describe 'test an instance of UserSearchSection' do it 'should create an instance of UserSearchSection' do diff --git a/client/spec/models/user_session_info_spec.rb b/client/spec/models/user_session_info_spec.rb index eed5734..4ba4e2a 100644 --- a/client/spec/models/user_session_info_spec.rb +++ b/client/spec/models/user_session_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UserSessionInfo do - let(:instance) { FastCommentsClient::UserSessionInfo.new } + #let(:instance) { FastCommentsClient::UserSessionInfo.new } describe 'test an instance of UserSessionInfo' do it 'should create an instance of UserSessionInfo' do diff --git a/client/spec/models/user_spec.rb b/client/spec/models/user_spec.rb index 8548c61..f906aed 100644 --- a/client/spec/models/user_spec.rb +++ b/client/spec/models/user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::User do - let(:instance) { FastCommentsClient::User.new } + #let(:instance) { FastCommentsClient::User.new } describe 'test an instance of User' do it 'should create an instance of User' do diff --git a/client/spec/models/users_list_location_spec.rb b/client/spec/models/users_list_location_spec.rb index d0f6566..9a9198a 100644 --- a/client/spec/models/users_list_location_spec.rb +++ b/client/spec/models/users_list_location_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::UsersListLocation do - let(:instance) { FastCommentsClient::UsersListLocation.new } + #let(:instance) { FastCommentsClient::UsersListLocation.new } describe 'test an instance of UsersListLocation' do it 'should create an instance of UsersListLocation' do diff --git a/client/spec/models/vote_body_params_spec.rb b/client/spec/models/vote_body_params_spec.rb index c12e2f8..d1d7620 100644 --- a/client/spec/models/vote_body_params_spec.rb +++ b/client/spec/models/vote_body_params_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteBodyParams do - let(:instance) { FastCommentsClient::VoteBodyParams.new } + #let(:instance) { FastCommentsClient::VoteBodyParams.new } describe 'test an instance of VoteBodyParams' do it 'should create an instance of VoteBodyParams' do diff --git a/client/spec/models/vote_delete_response_spec.rb b/client/spec/models/vote_delete_response_spec.rb index 7aae048..15da634 100644 --- a/client/spec/models/vote_delete_response_spec.rb +++ b/client/spec/models/vote_delete_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteDeleteResponse do - let(:instance) { FastCommentsClient::VoteDeleteResponse.new } + #let(:instance) { FastCommentsClient::VoteDeleteResponse.new } describe 'test an instance of VoteDeleteResponse' do it 'should create an instance of VoteDeleteResponse' do diff --git a/client/spec/models/vote_response_spec.rb b/client/spec/models/vote_response_spec.rb index c66785f..245362b 100644 --- a/client/spec/models/vote_response_spec.rb +++ b/client/spec/models/vote_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteResponse do - let(:instance) { FastCommentsClient::VoteResponse.new } + #let(:instance) { FastCommentsClient::VoteResponse.new } describe 'test an instance of VoteResponse' do it 'should create an instance of VoteResponse' do @@ -30,6 +30,10 @@ describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["success", "failed", "pending-verification"]) + # validator.allowable_values.each do |value| + # expect { instance.status = value }.not_to raise_error + # end end end diff --git a/client/spec/models/vote_response_status_spec.rb b/client/spec/models/vote_response_status_spec.rb deleted file mode 100644 index 893e7d5..0000000 --- a/client/spec/models/vote_response_status_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -=begin -#fastcomments - -#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -The version of the OpenAPI document: 0.0.0 - -Generated by: https://openapi-generator.tech -Generator version: 7.14.0 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for FastCommentsClient::VoteResponseStatus -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe FastCommentsClient::VoteResponseStatus do -end diff --git a/client/spec/models/vote_response_user_spec.rb b/client/spec/models/vote_response_user_spec.rb index 01d5e49..5b266ad 100644 --- a/client/spec/models/vote_response_user_spec.rb +++ b/client/spec/models/vote_response_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteResponseUser do - let(:instance) { FastCommentsClient::VoteResponseUser.new } + #let(:instance) { FastCommentsClient::VoteResponseUser.new } describe 'test an instance of VoteResponseUser' do it 'should create an instance of VoteResponseUser' do diff --git a/client/spec/models/vote_style_spec.rb b/client/spec/models/vote_style_spec.rb index 88e29f2..1890b3a 100644 --- a/client/spec/models/vote_style_spec.rb +++ b/client/spec/models/vote_style_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end @@ -18,7 +18,7 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe FastCommentsClient::VoteStyle do - let(:instance) { FastCommentsClient::VoteStyle.new } + #let(:instance) { FastCommentsClient::VoteStyle.new } describe 'test an instance of VoteStyle' do it 'should create an instance of VoteStyle' do diff --git a/client/spec/spec_helper.rb b/client/spec/spec_helper.rb index d62b031..47aef2d 100644 --- a/client/spec/spec_helper.rb +++ b/client/spec/spec_helper.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.14.0 +Generator version: 7.23.0-SNAPSHOT =end diff --git a/config.json b/config.json index fb26e0a..fb58bcd 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,6 @@ { "gemName": "fastcomments-client", "moduleName": "FastCommentsClient", - "gemVersion": "2.0.0" + "gemVersion": "3.0.0", + "useSingleRequestParameter": true } diff --git a/fastcomments.gemspec b/fastcomments.gemspec index b1340e0..4ad9152 100644 --- a/fastcomments.gemspec +++ b/fastcomments.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "fastcomments" - spec.version = "2.0.0" + spec.version = "3.0.0" spec.authors = ["FastComments"] spec.email = ["support@fastcomments.com"] diff --git a/lib/fastcomments.rb b/lib/fastcomments.rb index 8410b66..df900c4 100644 --- a/lib/fastcomments.rb +++ b/lib/fastcomments.rb @@ -6,5 +6,5 @@ require 'fastcomments-client' module FastComments - VERSION = '2.0.0' + VERSION = '3.0.0' end diff --git a/openapi.json b/openapi.json index ca0225c..302747d 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13188,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13218,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13277,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13307,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13384,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13414,6 +13438,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13465,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13495,6 +13527,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "batchJobId", @@ -13514,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13544,6 +13584,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13563,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13593,6 +13641,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13612,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13642,6 +13698,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13661,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13691,6 +13755,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13726,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13756,6 +13828,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13775,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13805,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13848,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13878,6 +13966,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "includeByUserIdAndEmail", @@ -13923,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -13953,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14036,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14066,6 +14170,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14085,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14115,6 +14227,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14136,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14174,6 +14294,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14182,6 +14310,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14193,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14223,6 +14359,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14231,6 +14375,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14242,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14272,6 +14424,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14280,6 +14440,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14291,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14321,6 +14489,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14329,6 +14505,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14340,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14370,6 +14554,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14386,6 +14578,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14397,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14427,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14451,6 +14659,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14462,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14492,6 +14708,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14508,6 +14732,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14519,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14549,6 +14781,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14568,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14598,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14633,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14663,6 +14911,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14684,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14714,6 +14970,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14733,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -14763,6 +15027,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14782,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -14812,6 +15084,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14820,6 +15100,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14841,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -14871,6 +15159,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14879,6 +15175,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14900,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -14930,6 +15234,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14946,6 +15258,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14957,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -14987,6 +15307,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15003,6 +15331,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15014,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15044,6 +15380,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15063,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15093,6 +15437,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15104,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15134,6 +15486,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15145,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15175,6 +15535,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgesUserId", @@ -15202,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15232,6 +15600,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15275,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15305,6 +15681,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15348,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15378,6 +15762,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15397,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15427,6 +15819,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15454,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15484,6 +15884,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "commentId", @@ -15503,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15533,6 +15941,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15552,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -15582,6 +15998,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15601,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -15631,6 +16055,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -22595,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22647,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22697,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -22755,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } diff --git a/spec/sso_integration_spec.rb b/spec/sso_integration_spec.rb index 98ddf1c..f0ddee5 100644 --- a/spec/sso_integration_spec.rb +++ b/spec/sso_integration_spec.rb @@ -63,7 +63,7 @@ def get_tenant_id response = public_api.get_comments_public( TENANT_ID, 'sdk-test-page-secure', - { sso: sso_token } + sso: sso_token ) expect(response).not_to be_nil @@ -87,7 +87,7 @@ def get_tenant_id 'sdk-test-page-secure-comment', "test-#{timestamp}", comment_data, - { sso: sso_token } + sso: sso_token ) expect(response).not_to be_nil @@ -110,15 +110,16 @@ def get_tenant_id display_name: mock_secure_user.username }) - default_api.add_sso_user(TENANT_ID, user_data) + default_api.add_sso_user( + TENANT_ID, + user_data + ) # Then get comments with that user's context response = default_api.get_comments( TENANT_ID, - { - url_id: 'sdk-test-page-secure-admin', - context_user_id: mock_secure_user.user_id - } + url_id: 'sdk-test-page-secure-admin', + context_user_id: mock_secure_user.user_id ) expect(response).not_to be_nil @@ -133,7 +134,7 @@ def get_tenant_id response = public_api.get_comments_public( TENANT_ID, 'sdk-test-page-simple', - { sso: sso_token } + sso: sso_token ) expect(response).not_to be_nil @@ -157,7 +158,7 @@ def get_tenant_id 'sdk-test-page-simple-comment', "test-#{timestamp}", comment_data, - { sso: sso_token } + sso: sso_token ) expect(response).not_to be_nil @@ -173,7 +174,7 @@ def get_tenant_id public_api.get_comments_public( 'invalid-tenant-123', 'sdk-test-page-secure', - { sso: sso_token } + sso: sso_token ) }.to raise_error(FastCommentsClient::ApiError) do |error| expect(error.code).to be >= 400