peal 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +136 -0
- data/LICENSE +202 -0
- data/README.md +353 -0
- data/Rakefile +10 -0
- data/docs/AlreadyMemberEncoded.md +18 -0
- data/docs/AltTextTooLongEncoded.md +20 -0
- data/docs/AnalyticsApi.md +155 -0
- data/docs/AnalyticsSummary.md +30 -0
- data/docs/ApiKey.md +28 -0
- data/docs/ApiKeyNotFoundEncoded.md +18 -0
- data/docs/ApiKeysApi.md +220 -0
- data/docs/ApiKeysRevoke404Response.md +18 -0
- data/docs/AssistantAction.md +24 -0
- data/docs/AssistantActionAnyOf.md +20 -0
- data/docs/AssistantActionAnyOf1.md +20 -0
- data/docs/AssistantActionAnyOf2.md +20 -0
- data/docs/AssistantActionAnyOf3.md +18 -0
- data/docs/AssistantApi.md +149 -0
- data/docs/AssistantFailedEncoded.md +20 -0
- data/docs/AssistantInputRejectedEncoded.md +22 -0
- data/docs/AssistantQuotaExceededEncoded.md +22 -0
- data/docs/AssistantStatus.md +26 -0
- data/docs/AssistantTone.md +15 -0
- data/docs/AssistantUnavailableEncoded.md +18 -0
- data/docs/AttemptResult.md +15 -0
- data/docs/Authorization.md +18 -0
- data/docs/Billing.md +28 -0
- data/docs/BillingApi.md +77 -0
- data/docs/BillingSubscription.md +24 -0
- data/docs/Channel.md +30 -0
- data/docs/ChannelCannotPostEncoded.md +20 -0
- data/docs/ChannelMetrics.md +30 -0
- data/docs/ChannelNotFoundEncoded.md +18 -0
- data/docs/ChannelOptions.md +20 -0
- data/docs/ChannelStatus.md +20 -0
- data/docs/ChannelStatusAnyOf.md +18 -0
- data/docs/ChannelStatusAnyOf1.md +18 -0
- data/docs/ChannelStatusAnyOf2.md +20 -0
- data/docs/ChannelsApi.md +512 -0
- data/docs/ChannelsCompleteConnect404Response.md +18 -0
- data/docs/ChoosableAccount.md +26 -0
- data/docs/ChooseAccounts.md +20 -0
- data/docs/ConnectCallback.md +24 -0
- data/docs/ConnectChannel.md +20 -0
- data/docs/ConnectFailedEncoded.md +20 -0
- data/docs/ConnectFailureReason.md +15 -0
- data/docs/ConnectOutcome.md +26 -0
- data/docs/ConnectOutcomeAnyOf.md +20 -0
- data/docs/ConnectOutcomeAnyOf1.md +24 -0
- data/docs/ConnectablePlatforms.md +18 -0
- data/docs/ContentViolation.md +54 -0
- data/docs/ContentViolationAnyOf.md +18 -0
- data/docs/ContentViolationAnyOf1.md +20 -0
- data/docs/ContentViolationAnyOf10.md +26 -0
- data/docs/ContentViolationAnyOf11.md +22 -0
- data/docs/ContentViolationAnyOf12.md +26 -0
- data/docs/ContentViolationAnyOf13.md +26 -0
- data/docs/ContentViolationAnyOf14.md +26 -0
- data/docs/ContentViolationAnyOf15.md +26 -0
- data/docs/ContentViolationAnyOf16.md +22 -0
- data/docs/ContentViolationAnyOf17.md +26 -0
- data/docs/ContentViolationAnyOf18.md +28 -0
- data/docs/ContentViolationAnyOf19.md +28 -0
- data/docs/ContentViolationAnyOf2.md +20 -0
- data/docs/ContentViolationAnyOf20.md +28 -0
- data/docs/ContentViolationAnyOf21.md +28 -0
- data/docs/ContentViolationAnyOf22.md +30 -0
- data/docs/ContentViolationAnyOf23.md +32 -0
- data/docs/ContentViolationAnyOf24.md +32 -0
- data/docs/ContentViolationAnyOf24Maximum.md +15 -0
- data/docs/ContentViolationAnyOf25.md +28 -0
- data/docs/ContentViolationAnyOf3.md +24 -0
- data/docs/ContentViolationAnyOf4.md +24 -0
- data/docs/ContentViolationAnyOf5.md +28 -0
- data/docs/ContentViolationAnyOf6.md +24 -0
- data/docs/ContentViolationAnyOf7.md +22 -0
- data/docs/ContentViolationAnyOf8.md +28 -0
- data/docs/ContentViolationAnyOf9.md +24 -0
- data/docs/CreatedApiKey.md +20 -0
- data/docs/DatabaseUnavailableEncoded.md +18 -0
- data/docs/DraftPage.md +20 -0
- data/docs/EffectHttpApiErrorBadRequestEncoded.md +18 -0
- data/docs/EngagementDay.md +26 -0
- data/docs/FailureReason.md +15 -0
- data/docs/ForbiddenEncoded.md +18 -0
- data/docs/InvalidDateRangeEncoded.md +18 -0
- data/docs/InvalidTimeRangeEncoded.md +18 -0
- data/docs/InvalidTimeZoneEncoded.md +20 -0
- data/docs/Invitation.md +28 -0
- data/docs/InvitationNotFoundEncoded.md +18 -0
- data/docs/InvitationsApi.md +220 -0
- data/docs/InvitationsCreate409Response.md +18 -0
- data/docs/InvitationsRevoke404Response.md +18 -0
- data/docs/MarkNoticesRead.md +18 -0
- data/docs/Me.md +22 -0
- data/docs/MeUser.md +28 -0
- data/docs/Media.md +40 -0
- data/docs/MediaApi.md +516 -0
- data/docs/MediaAttachment.md +20 -0
- data/docs/MediaContentType.md +15 -0
- data/docs/MediaCreate422Response.md +28 -0
- data/docs/MediaDescription.md +18 -0
- data/docs/MediaDimensions.md +20 -0
- data/docs/MediaGet404Response.md +18 -0
- data/docs/MediaInUseEncoded.md +20 -0
- data/docs/MediaKind.md +15 -0
- data/docs/MediaNotFoundEncoded.md +18 -0
- data/docs/MediaPage.md +20 -0
- data/docs/MediaStatus.md +22 -0
- data/docs/MediaStatusAnyOf.md +18 -0
- data/docs/MediaStatusAnyOf1.md +20 -0
- data/docs/MediaStatusAnyOf2.md +18 -0
- data/docs/MediaStatusAnyOf3.md +20 -0
- data/docs/MediaStoreUnavailableEncoded.md +18 -0
- data/docs/MediaTooLargeEncoded.md +24 -0
- data/docs/MediaUsage.md +20 -0
- data/docs/MembersApi.md +77 -0
- data/docs/Membership.md +26 -0
- data/docs/MetricTotals.md +28 -0
- data/docs/MetricsSnapshot.md +20 -0
- data/docs/NewApiKey.md +22 -0
- data/docs/NewInvitation.md +20 -0
- data/docs/NewUpload.md +22 -0
- data/docs/NonFiniteNumber.md +15 -0
- data/docs/Notice.md +26 -0
- data/docs/NoticeChannel.md +20 -0
- data/docs/NoticeEvent.md +28 -0
- data/docs/NoticeEventAnyOf.md +24 -0
- data/docs/NoticeEventAnyOf1.md +24 -0
- data/docs/NoticeEventAnyOf2.md +22 -0
- data/docs/NoticeEventAnyOf3.md +20 -0
- data/docs/NoticeEventAnyOf4.md +22 -0
- data/docs/NoticePage.md +20 -0
- data/docs/NoticesApi.md +285 -0
- data/docs/NotificationPreferences.md +20 -0
- data/docs/NotificationPreferencesApi.md +144 -0
- data/docs/NotificationPreferencesChange.md +20 -0
- data/docs/NotificationPreferencesChangeEmail.md +24 -0
- data/docs/NotificationPreferencesEmail.md +24 -0
- data/docs/PaidPlan.md +15 -0
- data/docs/PeriodUsage.md +20 -0
- data/docs/Plan.md +15 -0
- data/docs/PlanAllowances.md +24 -0
- data/docs/PlanLimit.md +15 -0
- data/docs/PlanLimitReachedEncoded.md +22 -0
- data/docs/PlanOffer.md +20 -0
- data/docs/Platform.md +15 -0
- data/docs/PlatformUnreachableEncoded.md +18 -0
- data/docs/Post.md +30 -0
- data/docs/PostAnalytics.md +20 -0
- data/docs/PostContent.md +22 -0
- data/docs/PostContentInvalidEncoded.md +20 -0
- data/docs/PostDraft.md +22 -0
- data/docs/PostMetrics.md +26 -0
- data/docs/PostNotFoundEncoded.md +18 -0
- data/docs/PostOutcome.md +15 -0
- data/docs/PostSchedule.md +20 -0
- data/docs/PostStatus.md +15 -0
- data/docs/PostStatusConflictEncoded.md +20 -0
- data/docs/PostTarget.md +36 -0
- data/docs/PostTargetStatus.md +15 -0
- data/docs/PostsApi.md +960 -0
- data/docs/PostsCreate422Response.md +24 -0
- data/docs/PostsGet404Response.md +18 -0
- data/docs/PostsRepost409Response.md +20 -0
- data/docs/PostsSchedule422Response.md +26 -0
- data/docs/PreparedUpload.md +20 -0
- data/docs/ProbeState.md +15 -0
- data/docs/PublicationAttempt.md +30 -0
- data/docs/RejectionReason.md +15 -0
- data/docs/Role.md +15 -0
- data/docs/ScheduleInPastEncoded.md +18 -0
- data/docs/SchedulePost.md +22 -0
- data/docs/SessionApi.md +74 -0
- data/docs/SignedRequest.md +22 -0
- data/docs/SubscriptionStatus.md +15 -0
- data/docs/Suggestion.md +22 -0
- data/docs/SuggestionAnyOf.md +20 -0
- data/docs/SuggestionAnyOf1.md +20 -0
- data/docs/SuggestionRequest.md +20 -0
- data/docs/SystemApi.md +129 -0
- data/docs/TargetConfirmation.md +20 -0
- data/docs/TargetConfirmationAnyOf.md +20 -0
- data/docs/TargetConfirmationAnyOf1.md +18 -0
- data/docs/TargetMetrics.md +32 -0
- data/docs/TargetOptions.md +48 -0
- data/docs/TargetStatusConflictEncoded.md +20 -0
- data/docs/TextOverride.md +20 -0
- data/docs/TextUnit.md +15 -0
- data/docs/TikTokAccount.md +20 -0
- data/docs/TikTokAccountPosting.md +22 -0
- data/docs/TikTokAccountPostingAnyOf.md +20 -0
- data/docs/TikTokAccountPostingAnyOf1.md +20 -0
- data/docs/TikTokBlock.md +15 -0
- data/docs/TikTokCreator.md +32 -0
- data/docs/TikTokOptions.md +34 -0
- data/docs/TikTokPrivacyLevel.md +15 -0
- data/docs/TiktokApi.md +79 -0
- data/docs/TooManyInvitationsEncoded.md +18 -0
- data/docs/TopPost.md +30 -0
- data/docs/TranslationLanguage.md +15 -0
- data/docs/UnauthenticatedEncoded.md +18 -0
- data/docs/UnconfirmedReason.md +15 -0
- data/docs/UnknownChannelsEncoded.md +20 -0
- data/docs/UnknownMediaEncoded.md +20 -0
- data/docs/UnreadNotices.md +18 -0
- data/docs/UnsupportedMediaTypeEncoded.md +20 -0
- data/docs/UploadIncompleteEncoded.md +18 -0
- data/docs/UploadPart.md +22 -0
- data/docs/UploadRejectedEncoded.md +20 -0
- data/docs/UploadTarget.md +26 -0
- data/docs/UploadTargetAnyOf.md +22 -0
- data/docs/UploadTargetAnyOf1.md +24 -0
- data/docs/Usage.md +24 -0
- data/docs/WorkspaceMember.md +26 -0
- data/docs/WorkspaceNotFoundEncoded.md +18 -0
- data/docs/YouTubeOptions.md +32 -0
- data/docs/YouTubePrivacy.md +15 -0
- data/lib/peal/api/analytics_api.rb +185 -0
- data/lib/peal/api/api_keys_api.rb +228 -0
- data/lib/peal/api/assistant_api.rb +159 -0
- data/lib/peal/api/billing_api.rb +85 -0
- data/lib/peal/api/channels_api.rb +526 -0
- data/lib/peal/api/invitations_api.rb +228 -0
- data/lib/peal/api/media_api.rb +526 -0
- data/lib/peal/api/members_api.rb +85 -0
- data/lib/peal/api/notices_api.rb +272 -0
- data/lib/peal/api/notification_preferences_api.rb +147 -0
- data/lib/peal/api/posts_api.rb +993 -0
- data/lib/peal/api/session_api.rb +79 -0
- data/lib/peal/api/system_api.rb +134 -0
- data/lib/peal/api/tiktok_api.rb +91 -0
- data/lib/peal/api_client.rb +441 -0
- data/lib/peal/api_error.rb +58 -0
- data/lib/peal/api_model_base.rb +88 -0
- data/lib/peal/configuration.rb +392 -0
- data/lib/peal/models/already_member_encoded.rb +201 -0
- data/lib/peal/models/alt_text_too_long_encoded.rb +245 -0
- data/lib/peal/models/analytics_summary.rb +361 -0
- data/lib/peal/models/api_key.rb +293 -0
- data/lib/peal/models/api_key_not_found_encoded.rb +201 -0
- data/lib/peal/models/api_keys_revoke404_response.rb +103 -0
- data/lib/peal/models/assistant_action.rb +105 -0
- data/lib/peal/models/assistant_action_any_of.rb +227 -0
- data/lib/peal/models/assistant_action_any_of1.rb +227 -0
- data/lib/peal/models/assistant_action_any_of2.rb +227 -0
- data/lib/peal/models/assistant_action_any_of3.rb +201 -0
- data/lib/peal/models/assistant_failed_encoded.rb +229 -0
- data/lib/peal/models/assistant_input_rejected_encoded.rb +273 -0
- data/lib/peal/models/assistant_quota_exceeded_encoded.rb +271 -0
- data/lib/peal/models/assistant_status.rb +335 -0
- data/lib/peal/models/assistant_tone.rb +43 -0
- data/lib/peal/models/assistant_unavailable_encoded.rb +201 -0
- data/lib/peal/models/attempt_result.rb +50 -0
- data/lib/peal/models/authorization.rb +177 -0
- data/lib/peal/models/billing.rb +303 -0
- data/lib/peal/models/billing_subscription.rb +263 -0
- data/lib/peal/models/channel.rb +313 -0
- data/lib/peal/models/channel_cannot_post_encoded.rb +229 -0
- data/lib/peal/models/channel_metrics.rb +425 -0
- data/lib/peal/models/channel_not_found_encoded.rb +201 -0
- data/lib/peal/models/channel_options.rb +203 -0
- data/lib/peal/models/channel_status.rb +104 -0
- data/lib/peal/models/channel_status_any_of.rb +201 -0
- data/lib/peal/models/channel_status_any_of1.rb +201 -0
- data/lib/peal/models/channel_status_any_of2.rb +227 -0
- data/lib/peal/models/channels_complete_connect404_response.rb +103 -0
- data/lib/peal/models/choosable_account.rb +253 -0
- data/lib/peal/models/choose_accounts.rb +241 -0
- data/lib/peal/models/connect_callback.rb +279 -0
- data/lib/peal/models/connect_channel.rb +207 -0
- data/lib/peal/models/connect_failed_encoded.rb +227 -0
- data/lib/peal/models/connect_failure_reason.rb +48 -0
- data/lib/peal/models/connect_outcome.rb +103 -0
- data/lib/peal/models/connect_outcome_any_of.rb +227 -0
- data/lib/peal/models/connect_outcome_any_of1.rb +281 -0
- data/lib/peal/models/connectable_platforms.rb +179 -0
- data/lib/peal/models/content_violation.rb +127 -0
- data/lib/peal/models/content_violation_any_of.rb +201 -0
- data/lib/peal/models/content_violation_any_of1.rb +227 -0
- data/lib/peal/models/content_violation_any_of10.rb +341 -0
- data/lib/peal/models/content_violation_any_of11.rb +253 -0
- data/lib/peal/models/content_violation_any_of12.rb +341 -0
- data/lib/peal/models/content_violation_any_of13.rb +341 -0
- data/lib/peal/models/content_violation_any_of14.rb +341 -0
- data/lib/peal/models/content_violation_any_of15.rb +341 -0
- data/lib/peal/models/content_violation_any_of16.rb +253 -0
- data/lib/peal/models/content_violation_any_of17.rb +305 -0
- data/lib/peal/models/content_violation_any_of18.rb +367 -0
- data/lib/peal/models/content_violation_any_of19.rb +367 -0
- data/lib/peal/models/content_violation_any_of2.rb +227 -0
- data/lib/peal/models/content_violation_any_of20.rb +367 -0
- data/lib/peal/models/content_violation_any_of21.rb +367 -0
- data/lib/peal/models/content_violation_any_of22.rb +411 -0
- data/lib/peal/models/content_violation_any_of23.rb +455 -0
- data/lib/peal/models/content_violation_any_of24.rb +419 -0
- data/lib/peal/models/content_violation_any_of24_maximum.rb +103 -0
- data/lib/peal/models/content_violation_any_of25.rb +367 -0
- data/lib/peal/models/content_violation_any_of3.rb +279 -0
- data/lib/peal/models/content_violation_any_of4.rb +279 -0
- data/lib/peal/models/content_violation_any_of5.rb +367 -0
- data/lib/peal/models/content_violation_any_of6.rb +279 -0
- data/lib/peal/models/content_violation_any_of7.rb +253 -0
- data/lib/peal/models/content_violation_any_of8.rb +367 -0
- data/lib/peal/models/content_violation_any_of9.rb +281 -0
- data/lib/peal/models/created_api_key.rb +203 -0
- data/lib/peal/models/database_unavailable_encoded.rb +201 -0
- data/lib/peal/models/draft_page.rb +191 -0
- data/lib/peal/models/effect_http_api_error_bad_request_encoded.rb +201 -0
- data/lib/peal/models/engagement_day.rb +364 -0
- data/lib/peal/models/failure_reason.rb +50 -0
- data/lib/peal/models/forbidden_encoded.rb +201 -0
- data/lib/peal/models/invalid_date_range_encoded.rb +201 -0
- data/lib/peal/models/invalid_time_range_encoded.rb +201 -0
- data/lib/peal/models/invalid_time_zone_encoded.rb +227 -0
- data/lib/peal/models/invitation.rb +307 -0
- data/lib/peal/models/invitation_not_found_encoded.rb +201 -0
- data/lib/peal/models/invitations_create409_response.rb +103 -0
- data/lib/peal/models/invitations_revoke404_response.rb +103 -0
- data/lib/peal/models/mark_notices_read.rb +197 -0
- data/lib/peal/models/me.rb +217 -0
- data/lib/peal/models/me_user.rb +317 -0
- data/lib/peal/models/media.rb +457 -0
- data/lib/peal/models/media_attachment.rb +212 -0
- data/lib/peal/models/media_content_type.rb +44 -0
- data/lib/peal/models/media_create422_response.rb +104 -0
- data/lib/peal/models/media_description.rb +163 -0
- data/lib/peal/models/media_dimensions.rb +239 -0
- data/lib/peal/models/media_get404_response.rb +103 -0
- data/lib/peal/models/media_in_use_encoded.rb +229 -0
- data/lib/peal/models/media_kind.rb +40 -0
- data/lib/peal/models/media_not_found_encoded.rb +201 -0
- data/lib/peal/models/media_page.rb +191 -0
- data/lib/peal/models/media_status.rb +105 -0
- data/lib/peal/models/media_status_any_of.rb +201 -0
- data/lib/peal/models/media_status_any_of1.rb +227 -0
- data/lib/peal/models/media_status_any_of2.rb +201 -0
- data/lib/peal/models/media_status_any_of3.rb +227 -0
- data/lib/peal/models/media_store_unavailable_encoded.rb +201 -0
- data/lib/peal/models/media_too_large_encoded.rb +317 -0
- data/lib/peal/models/media_usage.rb +207 -0
- data/lib/peal/models/membership.rb +295 -0
- data/lib/peal/models/metric_totals.rb +399 -0
- data/lib/peal/models/metrics_snapshot.rb +203 -0
- data/lib/peal/models/new_api_key.rb +277 -0
- data/lib/peal/models/new_invitation.rb +245 -0
- data/lib/peal/models/new_upload.rb +231 -0
- data/lib/peal/models/non_finite_number.rb +41 -0
- data/lib/peal/models/notice.rb +267 -0
- data/lib/peal/models/notice_channel.rb +225 -0
- data/lib/peal/models/notice_event.rb +106 -0
- data/lib/peal/models/notice_event_any_of.rb +251 -0
- data/lib/peal/models/notice_event_any_of1.rb +265 -0
- data/lib/peal/models/notice_event_any_of2.rb +239 -0
- data/lib/peal/models/notice_event_any_of3.rb +227 -0
- data/lib/peal/models/notice_event_any_of4.rb +253 -0
- data/lib/peal/models/notice_page.rb +191 -0
- data/lib/peal/models/notification_preferences.rb +203 -0
- data/lib/peal/models/notification_preferences_change.rb +169 -0
- data/lib/peal/models/notification_preferences_change_email.rb +187 -0
- data/lib/peal/models/notification_preferences_email.rb +255 -0
- data/lib/peal/models/paid_plan.rb +40 -0
- data/lib/peal/models/period_usage.rb +221 -0
- data/lib/peal/models/plan.rb +41 -0
- data/lib/peal/models/plan_allowances.rb +295 -0
- data/lib/peal/models/plan_limit.rb +42 -0
- data/lib/peal/models/plan_limit_reached_encoded.rb +271 -0
- data/lib/peal/models/plan_offer.rb +225 -0
- data/lib/peal/models/platform.rb +48 -0
- data/lib/peal/models/platform_unreachable_encoded.rb +201 -0
- data/lib/peal/models/post.rb +315 -0
- data/lib/peal/models/post_analytics.rb +205 -0
- data/lib/peal/models/post_content.rb +251 -0
- data/lib/peal/models/post_content_invalid_encoded.rb +229 -0
- data/lib/peal/models/post_draft.rb +216 -0
- data/lib/peal/models/post_metrics.rb +355 -0
- data/lib/peal/models/post_not_found_encoded.rb +201 -0
- data/lib/peal/models/post_outcome.rb +43 -0
- data/lib/peal/models/post_schedule.rb +203 -0
- data/lib/peal/models/post_status.rb +43 -0
- data/lib/peal/models/post_status_conflict_encoded.rb +227 -0
- data/lib/peal/models/post_target.rb +364 -0
- data/lib/peal/models/post_target_status.rb +44 -0
- data/lib/peal/models/posts_create422_response.rb +104 -0
- data/lib/peal/models/posts_get404_response.rb +103 -0
- data/lib/peal/models/posts_repost409_response.rb +103 -0
- data/lib/peal/models/posts_schedule422_response.rb +106 -0
- data/lib/peal/models/prepared_upload.rb +203 -0
- data/lib/peal/models/probe_state.rb +44 -0
- data/lib/peal/models/publication_attempt.rb +377 -0
- data/lib/peal/models/rejection_reason.rb +40 -0
- data/lib/peal/models/role.rb +43 -0
- data/lib/peal/models/schedule_in_past_encoded.rb +201 -0
- data/lib/peal/models/schedule_post.rb +240 -0
- data/lib/peal/models/signed_request.rb +255 -0
- data/lib/peal/models/subscription_status.rb +46 -0
- data/lib/peal/models/suggestion.rb +103 -0
- data/lib/peal/models/suggestion_any_of.rb +227 -0
- data/lib/peal/models/suggestion_any_of1.rb +229 -0
- data/lib/peal/models/suggestion_request.rb +212 -0
- data/lib/peal/models/target_confirmation.rb +103 -0
- data/lib/peal/models/target_confirmation_any_of.rb +228 -0
- data/lib/peal/models/target_confirmation_any_of1.rb +201 -0
- data/lib/peal/models/target_metrics.rb +319 -0
- data/lib/peal/models/target_options.rb +104 -0
- data/lib/peal/models/target_status_conflict_encoded.rb +227 -0
- data/lib/peal/models/text_override.rb +221 -0
- data/lib/peal/models/text_unit.rb +44 -0
- data/lib/peal/models/tik_tok_account.rb +203 -0
- data/lib/peal/models/tik_tok_account_posting.rb +103 -0
- data/lib/peal/models/tik_tok_account_posting_any_of.rb +227 -0
- data/lib/peal/models/tik_tok_account_posting_any_of1.rb +227 -0
- data/lib/peal/models/tik_tok_block.rb +41 -0
- data/lib/peal/models/tik_tok_creator.rb +357 -0
- data/lib/peal/models/tik_tok_options.rb +274 -0
- data/lib/peal/models/tik_tok_privacy_level.rb +42 -0
- data/lib/peal/models/too_many_invitations_encoded.rb +201 -0
- data/lib/peal/models/top_post.rb +337 -0
- data/lib/peal/models/translation_language.rb +48 -0
- data/lib/peal/models/unauthenticated_encoded.rb +201 -0
- data/lib/peal/models/unconfirmed_reason.rb +42 -0
- data/lib/peal/models/unknown_channels_encoded.rb +229 -0
- data/lib/peal/models/unknown_media_encoded.rb +229 -0
- data/lib/peal/models/unread_notices.rb +195 -0
- data/lib/peal/models/unsupported_media_type_encoded.rb +227 -0
- data/lib/peal/models/upload_incomplete_encoded.rb +201 -0
- data/lib/peal/models/upload_part.rb +265 -0
- data/lib/peal/models/upload_rejected_encoded.rb +227 -0
- data/lib/peal/models/upload_target.rb +103 -0
- data/lib/peal/models/upload_target_any_of.rb +253 -0
- data/lib/peal/models/upload_target_any_of1.rb +299 -0
- data/lib/peal/models/usage.rb +291 -0
- data/lib/peal/models/workspace_member.rb +281 -0
- data/lib/peal/models/workspace_not_found_encoded.rb +201 -0
- data/lib/peal/models/you_tube_options.rb +324 -0
- data/lib/peal/models/you_tube_privacy.rb +41 -0
- data/lib/peal/version.rb +15 -0
- data/lib/peal.rb +254 -0
- data/peal.gemspec +41 -0
- data/project.json +17 -0
- metadata +549 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
class NotificationPreferencesChangeEmail < ApiModelBase
|
|
18
|
+
attr_accessor :channel_reconnect
|
|
19
|
+
|
|
20
|
+
attr_accessor :post_failed
|
|
21
|
+
|
|
22
|
+
attr_accessor :post_published
|
|
23
|
+
|
|
24
|
+
attr_accessor :post_unconfirmed
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'channel_reconnect' => :'channelReconnect',
|
|
30
|
+
:'post_failed' => :'postFailed',
|
|
31
|
+
:'post_published' => :'postPublished',
|
|
32
|
+
:'post_unconfirmed' => :'postUnconfirmed'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'channel_reconnect' => :'Boolean',
|
|
50
|
+
:'post_failed' => :'Boolean',
|
|
51
|
+
:'post_published' => :'Boolean',
|
|
52
|
+
:'post_unconfirmed' => :'Boolean'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns attribute type mapping
|
|
63
|
+
def self.acceptable_openapi_types
|
|
64
|
+
openapi_types
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Returns the nullable attributes
|
|
68
|
+
def self.acceptable_openapi_nullable
|
|
69
|
+
openapi_nullable
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
if (!attributes.is_a?(Hash))
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Peal::NotificationPreferencesChangeEmail` initialize method"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Peal::NotificationPreferencesChangeEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'channel_reconnect')
|
|
89
|
+
self.channel_reconnect = attributes[:'channel_reconnect']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'post_failed')
|
|
93
|
+
self.post_failed = attributes[:'post_failed']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'post_published')
|
|
97
|
+
self.post_published = attributes[:'post_published']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'post_unconfirmed')
|
|
101
|
+
self.post_unconfirmed = attributes[:'post_unconfirmed']
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
106
|
+
# @return Array for valid properties with the reasons
|
|
107
|
+
def list_invalid_properties
|
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
|
+
invalid_properties = Array.new
|
|
110
|
+
invalid_properties
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
def valid?
|
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
+
true
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Checks equality by comparing each attribute.
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
channel_reconnect == o.channel_reconnect &&
|
|
126
|
+
post_failed == o.post_failed &&
|
|
127
|
+
post_published == o.post_published &&
|
|
128
|
+
post_unconfirmed == o.post_unconfirmed
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# @see the `==` method
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def eql?(o)
|
|
134
|
+
self == o
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
def hash
|
|
140
|
+
[channel_reconnect, post_failed, post_published, post_unconfirmed].hash
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Builds the object from hash
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
# @return [Object] Returns the model itself
|
|
146
|
+
def self.build_from_hash(attributes)
|
|
147
|
+
return nil unless attributes.is_a?(Hash)
|
|
148
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
149
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
150
|
+
map = acceptable_attribute_map
|
|
151
|
+
transformed_hash = {}
|
|
152
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
153
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
154
|
+
transformed_hash["#{key}"] = nil
|
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
156
|
+
# check to ensure the input is an array given that the attribute
|
|
157
|
+
# is documented as an array but the input is not
|
|
158
|
+
if attributes[map[key]].is_a?(Array)
|
|
159
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
160
|
+
end
|
|
161
|
+
elsif !attributes[map[key]].nil?
|
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
new(transformed_hash)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Returns the object in the form of hash
|
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
|
170
|
+
def to_hash
|
|
171
|
+
hash = {}
|
|
172
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
173
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
174
|
+
value = self.send(attr)
|
|
175
|
+
if value.nil?
|
|
176
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
177
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
hash[param] = _to_hash(value)
|
|
181
|
+
end
|
|
182
|
+
hash
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
end
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
class NotificationPreferencesEmail < ApiModelBase
|
|
18
|
+
attr_accessor :channel_reconnect
|
|
19
|
+
|
|
20
|
+
attr_accessor :post_failed
|
|
21
|
+
|
|
22
|
+
attr_accessor :post_published
|
|
23
|
+
|
|
24
|
+
attr_accessor :post_unconfirmed
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'channel_reconnect' => :'channelReconnect',
|
|
30
|
+
:'post_failed' => :'postFailed',
|
|
31
|
+
:'post_published' => :'postPublished',
|
|
32
|
+
:'post_unconfirmed' => :'postUnconfirmed'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'channel_reconnect' => :'Boolean',
|
|
50
|
+
:'post_failed' => :'Boolean',
|
|
51
|
+
:'post_published' => :'Boolean',
|
|
52
|
+
:'post_unconfirmed' => :'Boolean'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns attribute type mapping
|
|
63
|
+
def self.acceptable_openapi_types
|
|
64
|
+
openapi_types
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Returns the nullable attributes
|
|
68
|
+
def self.acceptable_openapi_nullable
|
|
69
|
+
openapi_nullable
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
if (!attributes.is_a?(Hash))
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Peal::NotificationPreferencesEmail` initialize method"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Peal::NotificationPreferencesEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'channel_reconnect')
|
|
89
|
+
self.channel_reconnect = attributes[:'channel_reconnect']
|
|
90
|
+
else
|
|
91
|
+
self.channel_reconnect = nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'post_failed')
|
|
95
|
+
self.post_failed = attributes[:'post_failed']
|
|
96
|
+
else
|
|
97
|
+
self.post_failed = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'post_published')
|
|
101
|
+
self.post_published = attributes[:'post_published']
|
|
102
|
+
else
|
|
103
|
+
self.post_published = nil
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'post_unconfirmed')
|
|
107
|
+
self.post_unconfirmed = attributes[:'post_unconfirmed']
|
|
108
|
+
else
|
|
109
|
+
self.post_unconfirmed = nil
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
114
|
+
# @return Array for valid properties with the reasons
|
|
115
|
+
def list_invalid_properties
|
|
116
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
117
|
+
invalid_properties = Array.new
|
|
118
|
+
if @channel_reconnect.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "channel_reconnect", channel_reconnect cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @post_failed.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "post_failed", post_failed cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if @post_published.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "post_published", post_published cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @post_unconfirmed.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "post_unconfirmed", post_unconfirmed cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
invalid_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Check to see if the all the properties in the model are valid
|
|
138
|
+
# @return true if the model is valid
|
|
139
|
+
def valid?
|
|
140
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
141
|
+
return false if @channel_reconnect.nil?
|
|
142
|
+
return false if @post_failed.nil?
|
|
143
|
+
return false if @post_published.nil?
|
|
144
|
+
return false if @post_unconfirmed.nil?
|
|
145
|
+
true
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Custom attribute writer method with validation
|
|
149
|
+
# @param [Object] channel_reconnect Value to be assigned
|
|
150
|
+
def channel_reconnect=(channel_reconnect)
|
|
151
|
+
if channel_reconnect.nil?
|
|
152
|
+
fail ArgumentError, 'channel_reconnect cannot be nil'
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
@channel_reconnect = channel_reconnect
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param [Object] post_failed Value to be assigned
|
|
160
|
+
def post_failed=(post_failed)
|
|
161
|
+
if post_failed.nil?
|
|
162
|
+
fail ArgumentError, 'post_failed cannot be nil'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
@post_failed = post_failed
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param [Object] post_published Value to be assigned
|
|
170
|
+
def post_published=(post_published)
|
|
171
|
+
if post_published.nil?
|
|
172
|
+
fail ArgumentError, 'post_published cannot be nil'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@post_published = post_published
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param [Object] post_unconfirmed Value to be assigned
|
|
180
|
+
def post_unconfirmed=(post_unconfirmed)
|
|
181
|
+
if post_unconfirmed.nil?
|
|
182
|
+
fail ArgumentError, 'post_unconfirmed cannot be nil'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
@post_unconfirmed = post_unconfirmed
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Checks equality by comparing each attribute.
|
|
189
|
+
# @param [Object] Object to be compared
|
|
190
|
+
def ==(o)
|
|
191
|
+
return true if self.equal?(o)
|
|
192
|
+
self.class == o.class &&
|
|
193
|
+
channel_reconnect == o.channel_reconnect &&
|
|
194
|
+
post_failed == o.post_failed &&
|
|
195
|
+
post_published == o.post_published &&
|
|
196
|
+
post_unconfirmed == o.post_unconfirmed
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# @see the `==` method
|
|
200
|
+
# @param [Object] Object to be compared
|
|
201
|
+
def eql?(o)
|
|
202
|
+
self == o
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Calculates hash code according to all attributes.
|
|
206
|
+
# @return [Integer] Hash code
|
|
207
|
+
def hash
|
|
208
|
+
[channel_reconnect, post_failed, post_published, post_unconfirmed].hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Builds the object from hash
|
|
212
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
213
|
+
# @return [Object] Returns the model itself
|
|
214
|
+
def self.build_from_hash(attributes)
|
|
215
|
+
return nil unless attributes.is_a?(Hash)
|
|
216
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
217
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
218
|
+
map = acceptable_attribute_map
|
|
219
|
+
transformed_hash = {}
|
|
220
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
221
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
222
|
+
transformed_hash["#{key}"] = nil
|
|
223
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
224
|
+
# check to ensure the input is an array given that the attribute
|
|
225
|
+
# is documented as an array but the input is not
|
|
226
|
+
if attributes[map[key]].is_a?(Array)
|
|
227
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
228
|
+
end
|
|
229
|
+
elsif !attributes[map[key]].nil?
|
|
230
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
new(transformed_hash)
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Returns the object in the form of hash
|
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
|
238
|
+
def to_hash
|
|
239
|
+
hash = {}
|
|
240
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
241
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
242
|
+
value = self.send(attr)
|
|
243
|
+
if value.nil?
|
|
244
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
245
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
hash[param] = _to_hash(value)
|
|
249
|
+
end
|
|
250
|
+
hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
class PaidPlan
|
|
18
|
+
PRO = "pro".freeze
|
|
19
|
+
BUSINESS = "business".freeze
|
|
20
|
+
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [PRO, BUSINESS].freeze
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Builds the enum from string
|
|
26
|
+
# @param [String] The enum value in the form of the string
|
|
27
|
+
# @return [String] The enum value
|
|
28
|
+
def self.build_from_hash(value)
|
|
29
|
+
new.build_from_hash(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Builds the enum from string
|
|
33
|
+
# @param [String] The enum value in the form of the string
|
|
34
|
+
# @return [String] The enum value
|
|
35
|
+
def build_from_hash(value)
|
|
36
|
+
return value if PaidPlan.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #PaidPlan"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Peal API
|
|
3
|
+
|
|
4
|
+
#Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
|
7
|
+
Contact: hello@peal.social
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.27.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Peal
|
|
17
|
+
class PeriodUsage < ApiModelBase
|
|
18
|
+
attr_accessor :resets_at
|
|
19
|
+
|
|
20
|
+
attr_accessor :used
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'resets_at' => :'resetsAt',
|
|
26
|
+
:'used' => :'used'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'resets_at' => :'String',
|
|
44
|
+
:'used' => :'Integer'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns attribute type mapping
|
|
55
|
+
def self.acceptable_openapi_types
|
|
56
|
+
openapi_types
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Returns the nullable attributes
|
|
60
|
+
def self.acceptable_openapi_nullable
|
|
61
|
+
openapi_nullable
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Initializes the object
|
|
65
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
|
+
def initialize(attributes = {})
|
|
67
|
+
if (!attributes.is_a?(Hash))
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Peal::PeriodUsage` initialize method"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Peal::PeriodUsage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
|
+
end
|
|
77
|
+
h[k.to_sym] = v
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'resets_at')
|
|
81
|
+
self.resets_at = attributes[:'resets_at']
|
|
82
|
+
else
|
|
83
|
+
self.resets_at = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'used')
|
|
87
|
+
self.used = attributes[:'used']
|
|
88
|
+
else
|
|
89
|
+
self.used = nil
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
if @resets_at.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "resets_at", resets_at cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if @used.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "used", used cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @used > 9007199254740991
|
|
107
|
+
invalid_properties.push('invalid value for "used", must be smaller than or equal to 9007199254740991.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if @used < -9007199254740991
|
|
111
|
+
invalid_properties.push('invalid value for "used", must be greater than or equal to -9007199254740991.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
invalid_properties
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Check to see if the all the properties in the model are valid
|
|
118
|
+
# @return true if the model is valid
|
|
119
|
+
def valid?
|
|
120
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
|
+
return false if @resets_at.nil?
|
|
122
|
+
return false if @used.nil?
|
|
123
|
+
return false if @used > 9007199254740991
|
|
124
|
+
return false if @used < -9007199254740991
|
|
125
|
+
true
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Custom attribute writer method with validation
|
|
129
|
+
# @param [Object] resets_at Value to be assigned
|
|
130
|
+
def resets_at=(resets_at)
|
|
131
|
+
if resets_at.nil?
|
|
132
|
+
fail ArgumentError, 'resets_at cannot be nil'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
@resets_at = resets_at
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Custom attribute writer method with validation
|
|
139
|
+
# @param [Object] used Value to be assigned
|
|
140
|
+
def used=(used)
|
|
141
|
+
if used.nil?
|
|
142
|
+
fail ArgumentError, 'used cannot be nil'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if used > 9007199254740991
|
|
146
|
+
fail ArgumentError, 'invalid value for "used", must be smaller than or equal to 9007199254740991.'
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if used < -9007199254740991
|
|
150
|
+
fail ArgumentError, 'invalid value for "used", must be greater than or equal to -9007199254740991.'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@used = used
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Checks equality by comparing each attribute.
|
|
157
|
+
# @param [Object] Object to be compared
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
resets_at == o.resets_at &&
|
|
162
|
+
used == o.used
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# @see the `==` method
|
|
166
|
+
# @param [Object] Object to be compared
|
|
167
|
+
def eql?(o)
|
|
168
|
+
self == o
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Calculates hash code according to all attributes.
|
|
172
|
+
# @return [Integer] Hash code
|
|
173
|
+
def hash
|
|
174
|
+
[resets_at, used].hash
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Builds the object from hash
|
|
178
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
179
|
+
# @return [Object] Returns the model itself
|
|
180
|
+
def self.build_from_hash(attributes)
|
|
181
|
+
return nil unless attributes.is_a?(Hash)
|
|
182
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
183
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
184
|
+
map = acceptable_attribute_map
|
|
185
|
+
transformed_hash = {}
|
|
186
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
187
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
188
|
+
transformed_hash["#{key}"] = nil
|
|
189
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
190
|
+
# check to ensure the input is an array given that the attribute
|
|
191
|
+
# is documented as an array but the input is not
|
|
192
|
+
if attributes[map[key]].is_a?(Array)
|
|
193
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
194
|
+
end
|
|
195
|
+
elsif !attributes[map[key]].nil?
|
|
196
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
new(transformed_hash)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the object in the form of hash
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_hash
|
|
205
|
+
hash = {}
|
|
206
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
207
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
208
|
+
value = self.send(attr)
|
|
209
|
+
if value.nil?
|
|
210
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
hash[param] = _to_hash(value)
|
|
215
|
+
end
|
|
216
|
+
hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
end
|