mencoro 1.0.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/README.md +304 -0
- data/Rakefile +10 -0
- data/docs/AcceptedJobResource.md +22 -0
- data/docs/AccountApi.md +141 -0
- data/docs/AiResponseReportResource.md +28 -0
- data/docs/AiResponseResource.md +36 -0
- data/docs/AnalyticsApi.md +1320 -0
- data/docs/ApplyClusteringJobOutcome.md +26 -0
- data/docs/ApplyClusteringJobOutcomeClustersInner.md +22 -0
- data/docs/ApplyClusteringJobOutcomeFailedInner.md +22 -0
- data/docs/ApplyClusteringJobOutcomeSkippedClustersInner.md +20 -0
- data/docs/ApplyClusteringJobOutcomeSuccessfulInner.md +20 -0
- data/docs/AsyncJobResource.md +24 -0
- data/docs/BatchChangeTrackedQueryCheckFrequencyRequestData.md +20 -0
- data/docs/BatchChangeTrackedQueryPassesRequestData.md +20 -0
- data/docs/BatchCreateQueryClustersOutcome.md +20 -0
- data/docs/BatchCreateQueryClustersOutcomeFailedInner.md +22 -0
- data/docs/BatchCreateQueryClustersOutcomeSuccessfulInner.md +20 -0
- data/docs/BatchCreateQueryClustersRequestData.md +18 -0
- data/docs/BatchCreateTrackedQueriesRequestData.md +30 -0
- data/docs/BatchCreateTrackedQueriesResultResource.md +20 -0
- data/docs/BatchCreateTrackedQueriesResultResourceFailedInner.md +26 -0
- data/docs/BatchCreateTrackedQueriesResultResourceSuccessfulInner.md +24 -0
- data/docs/BatchForceCheckTrackedQueries200Response.md +20 -0
- data/docs/BatchForceCheckTrackedQueries200ResponseFailedInner.md +22 -0
- data/docs/BatchPauseTrackedQueries200Response.md +20 -0
- data/docs/BatchPauseTrackedQueries200ResponseFailedInner.md +22 -0
- data/docs/BatchPauseTrackedQueries200ResponseSuccessfulInner.md +18 -0
- data/docs/BatchResumeTrackedQueries200Response.md +20 -0
- data/docs/BatchTargetsRequestData.md +18 -0
- data/docs/BatchWriteOutcome.md +20 -0
- data/docs/BatchWriteOutcomeFailedInner.md +22 -0
- data/docs/BillingApi.md +77 -0
- data/docs/BrandProfileResource.md +24 -0
- data/docs/BulkAddClustersToTrackedQueries200Response.md +20 -0
- data/docs/BulkAddClustersToTrackedQueriesRequest.md +20 -0
- data/docs/BulkRemoveClustersFromTrackedQueries200Response.md +20 -0
- data/docs/BulkRemoveClustersFromTrackedQueriesRequest.md +20 -0
- data/docs/CapturesApi.md +267 -0
- data/docs/ChangeMemberRoleRequest.md +18 -0
- data/docs/ChangeTrackedQueryCheckFrequencyRequestData.md +18 -0
- data/docs/ChangeTrackedQueryPassesRequestData.md +18 -0
- data/docs/CitationResource.md +36 -0
- data/docs/ClusterMembershipRequestData.md +18 -0
- data/docs/ClustersApi.md +465 -0
- data/docs/CompetitorResource.md +24 -0
- data/docs/CreateCompetitorRequest.md +22 -0
- data/docs/CreateInvitation200Response.md +22 -0
- data/docs/CreateInvitation201Response.md +32 -0
- data/docs/CreateInvitationRequest.md +20 -0
- data/docs/CreateOrganization201Response.md +22 -0
- data/docs/CreateOrganizationRequest.md +18 -0
- data/docs/CreateProjectRequest.md +24 -0
- data/docs/CreateProjectRequestCompetitorsInner.md +22 -0
- data/docs/CreateQueryCluster409Response.md +22 -0
- data/docs/CreateQueryClusterRequest.md +18 -0
- data/docs/DeleteQueryCluster200Response.md +22 -0
- data/docs/DiscoveryApi.md +311 -0
- data/docs/EntitlementsResource.md +38 -0
- data/docs/GetAvailableFilters200Response.md +22 -0
- data/docs/GetAvailableFilters200ResponseClustersInner.md +20 -0
- data/docs/GetMeStats200Response.md +20 -0
- data/docs/GetMeStats200ResponseOrganizations.md +18 -0
- data/docs/GetMeStats200ResponseProjects.md +20 -0
- data/docs/GetMembershipStats200Response.md +30 -0
- data/docs/GetMentionSamples400Response.md +24 -0
- data/docs/GetMentionSamples400ResponseDetailsValueInner.md +22 -0
- data/docs/GetMetricGlossary200Response.md +18 -0
- data/docs/GetMetricGlossary200ResponseMetricsInner.md +30 -0
- data/docs/GetOrganizationOverview200Response.md +20 -0
- data/docs/GetOrganizationOverview200ResponseAggregate.md +30 -0
- data/docs/GetOrganizationOverview200ResponseProjectsInner.md +32 -0
- data/docs/GetOrganizationStats200Response.md +22 -0
- data/docs/GetOrganizationStats200ResponseInvitations.md +18 -0
- data/docs/GetOrganizationStats200ResponseMembers.md +18 -0
- data/docs/GetOrganizationStats200ResponseProjects.md +20 -0
- data/docs/GetShareOfVoiceFormula200Response.md +24 -0
- data/docs/GetTrackingCoverage200Response.md +30 -0
- data/docs/GetTrackingCoverage200ResponseSampleInner.md +28 -0
- data/docs/InvitationResource.md +30 -0
- data/docs/InvitationsApi.md +243 -0
- data/docs/JobsApi.md +79 -0
- data/docs/KeywordListingResource.md +88 -0
- data/docs/KeywordListingResourceMentionTypeCounts.md +26 -0
- data/docs/ListAiResponses200Response.md +20 -0
- data/docs/ListCompetitors200Response.md +20 -0
- data/docs/ListInvitations200Response.md +20 -0
- data/docs/ListKeywordListings200Response.md +24 -0
- data/docs/ListMembers200Response.md +20 -0
- data/docs/ListOrganizations200Response.md +20 -0
- data/docs/ListProjects200Response.md +20 -0
- data/docs/ListQueryClusters200Response.md +20 -0
- data/docs/ListSearchSnapshots200Response.md +20 -0
- data/docs/ListShoppingSnapshots200Response.md +20 -0
- data/docs/MeResource.md +34 -0
- data/docs/MemberResource.md +28 -0
- data/docs/MembersApi.md +391 -0
- data/docs/OperationEffect.md +22 -0
- data/docs/OrganizationOperationsApi.md +77 -0
- data/docs/OrganizationResource.md +32 -0
- data/docs/OrganizationsApi.md +807 -0
- data/docs/PreviewOrganizationOperation200Response.md +34 -0
- data/docs/PreviewOrganizationOperation200ResponseOrganization.md +20 -0
- data/docs/PreviewOrganizationOperationRequest.md +24 -0
- data/docs/ProjectDetailResource.md +32 -0
- data/docs/ProjectDetailResourceCompetitorsInner.md +24 -0
- data/docs/ProjectResource.md +50 -0
- data/docs/ProjectedMonthlyChecksResource.md +20 -0
- data/docs/ProjectsApi.md +999 -0
- data/docs/QueryClusterResource.md +22 -0
- data/docs/ReportAiResponseRequest.md +22 -0
- data/docs/SearchResultResource.md +32 -0
- data/docs/SearchSnapshotResource.md +28 -0
- data/docs/SearchTrackedQueries200Response.md +20 -0
- data/docs/ShoppingOfferResource.md +38 -0
- data/docs/ShoppingSnapshotResource.md +28 -0
- data/docs/StartBrandDiscoveryJobRequest.md +20 -0
- data/docs/StartBrandNameSuggestionJobRequest.md +24 -0
- data/docs/StartClusteringJobRequestData.md +22 -0
- data/docs/StartKeywordDiscoveryJobRequest.md +24 -0
- data/docs/StartPromptDiscoveryJobRequest.md +24 -0
- data/docs/SubmittedChecksResource.md +20 -0
- data/docs/SubscriptionResource.md +42 -0
- data/docs/TrackedQueriesApi.md +1549 -0
- data/docs/TrackedQueryCountResource.md +20 -0
- data/docs/TrackedQueryDetailResource.md +38 -0
- data/docs/TrackedQueryResource.md +52 -0
- data/docs/TrackedQueryUsageResource.md +18 -0
- data/docs/UpdateOrganizationRequest.md +22 -0
- data/docs/UpdateProjectBrandProfileRequest.md +20 -0
- data/docs/UpdateProjectRequest.md +18 -0
- data/git_push.sh +57 -0
- data/lib/mencoro/api/account_api.rb +136 -0
- data/lib/mencoro/api/analytics_api.rb +1555 -0
- data/lib/mencoro/api/billing_api.rb +85 -0
- data/lib/mencoro/api/captures_api.rb +338 -0
- data/lib/mencoro/api/clusters_api.rb +548 -0
- data/lib/mencoro/api/discovery_api.rb +360 -0
- data/lib/mencoro/api/invitations_api.rb +302 -0
- data/lib/mencoro/api/jobs_api.rb +91 -0
- data/lib/mencoro/api/members_api.rb +453 -0
- data/lib/mencoro/api/organization_operations_api.rb +90 -0
- data/lib/mencoro/api/organizations_api.rb +835 -0
- data/lib/mencoro/api/projects_api.rb +1158 -0
- data/lib/mencoro/api/tracked_queries_api.rb +1792 -0
- data/lib/mencoro/api_client.rb +441 -0
- data/lib/mencoro/api_error.rb +58 -0
- data/lib/mencoro/api_model_base.rb +88 -0
- data/lib/mencoro/configuration.rb +392 -0
- data/lib/mencoro/models/accepted_job_resource.rb +220 -0
- data/lib/mencoro/models/ai_response_report_resource.rb +311 -0
- data/lib/mencoro/models/ai_response_resource.rb +412 -0
- data/lib/mencoro/models/apply_clustering_job_outcome.rb +199 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_clusters_inner.rb +165 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_failed_inner.rb +165 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_skipped_clusters_inner.rb +156 -0
- data/lib/mencoro/models/apply_clustering_job_outcome_successful_inner.rb +158 -0
- data/lib/mencoro/models/async_job_resource.rb +256 -0
- data/lib/mencoro/models/batch_change_tracked_query_check_frequency_request_data.rb +237 -0
- data/lib/mencoro/models/batch_change_tracked_query_passes_request_data.rb +231 -0
- data/lib/mencoro/models/batch_create_query_clusters_outcome.rb +163 -0
- data/lib/mencoro/models/batch_create_query_clusters_outcome_failed_inner.rb +165 -0
- data/lib/mencoro/models/batch_create_query_clusters_outcome_successful_inner.rb +156 -0
- data/lib/mencoro/models/batch_create_query_clusters_request_data.rb +186 -0
- data/lib/mencoro/models/batch_create_tracked_queries_request_data.rb +399 -0
- data/lib/mencoro/models/batch_create_tracked_queries_result_resource.rb +163 -0
- data/lib/mencoro/models/batch_create_tracked_queries_result_resource_failed_inner.rb +183 -0
- data/lib/mencoro/models/batch_create_tracked_queries_result_resource_successful_inner.rb +174 -0
- data/lib/mencoro/models/batch_force_check_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/batch_force_check_tracked_queries200_response_failed_inner.rb +165 -0
- data/lib/mencoro/models/batch_pause_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/batch_pause_tracked_queries200_response_failed_inner.rb +165 -0
- data/lib/mencoro/models/batch_pause_tracked_queries200_response_successful_inner.rb +147 -0
- data/lib/mencoro/models/batch_resume_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/batch_targets_request_data.rb +186 -0
- data/lib/mencoro/models/batch_write_outcome.rb +163 -0
- data/lib/mencoro/models/batch_write_outcome_failed_inner.rb +166 -0
- data/lib/mencoro/models/brand_profile_resource.rb +235 -0
- data/lib/mencoro/models/bulk_add_clusters_to_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/bulk_add_clusters_to_tracked_queries_request.rb +218 -0
- data/lib/mencoro/models/bulk_remove_clusters_from_tracked_queries200_response.rb +162 -0
- data/lib/mencoro/models/bulk_remove_clusters_from_tracked_queries_request.rb +218 -0
- data/lib/mencoro/models/change_member_role_request.rb +181 -0
- data/lib/mencoro/models/change_tracked_query_check_frequency_request_data.rb +190 -0
- data/lib/mencoro/models/change_tracked_query_passes_request_data.rb +184 -0
- data/lib/mencoro/models/citation_resource.rb +306 -0
- data/lib/mencoro/models/cluster_membership_request_data.rb +186 -0
- data/lib/mencoro/models/competitor_resource.rb +250 -0
- data/lib/mencoro/models/create_competitor_request.rb +247 -0
- data/lib/mencoro/models/create_invitation200_response.rb +202 -0
- data/lib/mencoro/models/create_invitation201_response.rb +347 -0
- data/lib/mencoro/models/create_invitation_request.rb +192 -0
- data/lib/mencoro/models/create_organization201_response.rb +166 -0
- data/lib/mencoro/models/create_organization_request.rb +175 -0
- data/lib/mencoro/models/create_project_request.rb +307 -0
- data/lib/mencoro/models/create_project_request_competitors_inner.rb +256 -0
- data/lib/mencoro/models/create_query_cluster409_response.rb +165 -0
- data/lib/mencoro/models/create_query_cluster_request.rb +167 -0
- data/lib/mencoro/models/delete_query_cluster200_response.rb +168 -0
- data/lib/mencoro/models/entitlements_resource.rb +328 -0
- data/lib/mencoro/models/get_available_filters200_response.rb +173 -0
- data/lib/mencoro/models/get_available_filters200_response_clusters_inner.rb +157 -0
- data/lib/mencoro/models/get_me_stats200_response.rb +156 -0
- data/lib/mencoro/models/get_me_stats200_response_organizations.rb +167 -0
- data/lib/mencoro/models/get_me_stats200_response_projects.rb +196 -0
- data/lib/mencoro/models/get_membership_stats200_response.rb +322 -0
- data/lib/mencoro/models/get_mention_samples400_response.rb +231 -0
- data/lib/mencoro/models/get_mention_samples400_response_details_value_inner.rb +168 -0
- data/lib/mencoro/models/get_metric_glossary200_response.rb +149 -0
- data/lib/mencoro/models/get_metric_glossary200_response_metrics_inner.rb +240 -0
- data/lib/mencoro/models/get_organization_overview200_response.rb +158 -0
- data/lib/mencoro/models/get_organization_overview200_response_aggregate.rb +209 -0
- data/lib/mencoro/models/get_organization_overview200_response_projects_inner.rb +218 -0
- data/lib/mencoro/models/get_organization_stats200_response.rb +165 -0
- data/lib/mencoro/models/get_organization_stats200_response_invitations.rb +167 -0
- data/lib/mencoro/models/get_organization_stats200_response_members.rb +167 -0
- data/lib/mencoro/models/get_organization_stats200_response_projects.rb +196 -0
- data/lib/mencoro/models/get_share_of_voice_formula200_response.rb +182 -0
- data/lib/mencoro/models/get_tracking_coverage200_response.rb +209 -0
- data/lib/mencoro/models/get_tracking_coverage200_response_sample_inner.rb +229 -0
- data/lib/mencoro/models/invitation_resource.rb +331 -0
- data/lib/mencoro/models/keyword_listing_resource.rb +798 -0
- data/lib/mencoro/models/keyword_listing_resource_mention_type_counts.rb +184 -0
- data/lib/mencoro/models/list_ai_responses200_response.rb +159 -0
- data/lib/mencoro/models/list_competitors200_response.rb +159 -0
- data/lib/mencoro/models/list_invitations200_response.rb +158 -0
- data/lib/mencoro/models/list_keyword_listings200_response.rb +180 -0
- data/lib/mencoro/models/list_members200_response.rb +158 -0
- data/lib/mencoro/models/list_organizations200_response.rb +158 -0
- data/lib/mencoro/models/list_projects200_response.rb +159 -0
- data/lib/mencoro/models/list_query_clusters200_response.rb +159 -0
- data/lib/mencoro/models/list_search_snapshots200_response.rb +159 -0
- data/lib/mencoro/models/list_shopping_snapshots200_response.rb +159 -0
- data/lib/mencoro/models/me_resource.rb +394 -0
- data/lib/mencoro/models/member_resource.rb +322 -0
- data/lib/mencoro/models/operation_effect.rb +204 -0
- data/lib/mencoro/models/organization_resource.rb +326 -0
- data/lib/mencoro/models/preview_organization_operation200_response.rb +236 -0
- data/lib/mencoro/models/preview_organization_operation200_response_organization.rb +158 -0
- data/lib/mencoro/models/preview_organization_operation_request.rb +213 -0
- data/lib/mencoro/models/project_detail_resource.rb +380 -0
- data/lib/mencoro/models/project_detail_resource_competitors_inner.rb +178 -0
- data/lib/mencoro/models/project_resource.rb +422 -0
- data/lib/mencoro/models/projected_monthly_checks_resource.rb +211 -0
- data/lib/mencoro/models/query_cluster_resource.rb +229 -0
- data/lib/mencoro/models/report_ai_response_request.rb +227 -0
- data/lib/mencoro/models/search_result_resource.rb +284 -0
- data/lib/mencoro/models/search_snapshot_resource.rb +302 -0
- data/lib/mencoro/models/search_tracked_queries200_response.rb +158 -0
- data/lib/mencoro/models/shopping_offer_resource.rb +381 -0
- data/lib/mencoro/models/shopping_snapshot_resource.rb +302 -0
- data/lib/mencoro/models/start_brand_discovery_job_request.rb +185 -0
- data/lib/mencoro/models/start_brand_name_suggestion_job_request.rb +287 -0
- data/lib/mencoro/models/start_clustering_job_request_data.rb +249 -0
- data/lib/mencoro/models/start_keyword_discovery_job_request.rb +266 -0
- data/lib/mencoro/models/start_prompt_discovery_job_request.rb +276 -0
- data/lib/mencoro/models/submitted_checks_resource.rb +195 -0
- data/lib/mencoro/models/subscription_resource.rb +362 -0
- data/lib/mencoro/models/tracked_query_count_resource.rb +193 -0
- data/lib/mencoro/models/tracked_query_detail_resource.rb +440 -0
- data/lib/mencoro/models/tracked_query_resource.rb +492 -0
- data/lib/mencoro/models/tracked_query_usage_resource.rb +175 -0
- data/lib/mencoro/models/update_organization_request.rb +195 -0
- data/lib/mencoro/models/update_project_brand_profile_request.rb +218 -0
- data/lib/mencoro/models/update_project_request.rb +182 -0
- data/lib/mencoro/version.rb +15 -0
- data/lib/mencoro.rb +169 -0
- data/mencoro.gemspec +41 -0
- data/spec/api/account_api_spec.rb +57 -0
- data/spec/api/analytics_api_spec.rb +318 -0
- data/spec/api/billing_api_spec.rb +47 -0
- data/spec/api/captures_api_spec.rb +93 -0
- data/spec/api/clusters_api_spec.rb +126 -0
- data/spec/api/discovery_api_spec.rb +94 -0
- data/spec/api/invitations_api_spec.rb +83 -0
- data/spec/api/jobs_api_spec.rb +48 -0
- data/spec/api/members_api_spec.rb +111 -0
- data/spec/api/organization_operations_api_spec.rb +47 -0
- data/spec/api/organizations_api_spec.rb +181 -0
- data/spec/api/projects_api_spec.rb +229 -0
- data/spec/api/tracked_queries_api_spec.rb +344 -0
- data/spec/models/accepted_job_resource_spec.rb +48 -0
- data/spec/models/ai_response_report_resource_spec.rb +70 -0
- data/spec/models/ai_response_resource_spec.rb +90 -0
- data/spec/models/apply_clustering_job_outcome_clusters_inner_spec.rb +48 -0
- data/spec/models/apply_clustering_job_outcome_failed_inner_spec.rb +48 -0
- data/spec/models/apply_clustering_job_outcome_skipped_clusters_inner_spec.rb +42 -0
- data/spec/models/apply_clustering_job_outcome_spec.rb +60 -0
- data/spec/models/apply_clustering_job_outcome_successful_inner_spec.rb +42 -0
- data/spec/models/async_job_resource_spec.rb +62 -0
- data/spec/models/batch_change_tracked_query_check_frequency_request_data_spec.rb +46 -0
- data/spec/models/batch_change_tracked_query_passes_request_data_spec.rb +42 -0
- data/spec/models/batch_create_query_clusters_outcome_failed_inner_spec.rb +48 -0
- data/spec/models/batch_create_query_clusters_outcome_spec.rb +42 -0
- data/spec/models/batch_create_query_clusters_outcome_successful_inner_spec.rb +42 -0
- data/spec/models/batch_create_query_clusters_request_data_spec.rb +36 -0
- data/spec/models/batch_create_tracked_queries_request_data_spec.rb +80 -0
- data/spec/models/batch_create_tracked_queries_result_resource_failed_inner_spec.rb +60 -0
- data/spec/models/batch_create_tracked_queries_result_resource_spec.rb +42 -0
- data/spec/models/batch_create_tracked_queries_result_resource_successful_inner_spec.rb +54 -0
- data/spec/models/batch_force_check_tracked_queries200_response_failed_inner_spec.rb +48 -0
- data/spec/models/batch_force_check_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/batch_pause_tracked_queries200_response_failed_inner_spec.rb +48 -0
- data/spec/models/batch_pause_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/batch_pause_tracked_queries200_response_successful_inner_spec.rb +36 -0
- data/spec/models/batch_resume_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/batch_targets_request_data_spec.rb +36 -0
- data/spec/models/batch_write_outcome_failed_inner_spec.rb +48 -0
- data/spec/models/batch_write_outcome_spec.rb +42 -0
- data/spec/models/brand_profile_resource_spec.rb +54 -0
- data/spec/models/bulk_add_clusters_to_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/bulk_add_clusters_to_tracked_queries_request_spec.rb +42 -0
- data/spec/models/bulk_remove_clusters_from_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/bulk_remove_clusters_from_tracked_queries_request_spec.rb +42 -0
- data/spec/models/change_member_role_request_spec.rb +40 -0
- data/spec/models/change_tracked_query_check_frequency_request_data_spec.rb +40 -0
- data/spec/models/change_tracked_query_passes_request_data_spec.rb +36 -0
- data/spec/models/citation_resource_spec.rb +90 -0
- data/spec/models/cluster_membership_request_data_spec.rb +36 -0
- data/spec/models/competitor_resource_spec.rb +54 -0
- data/spec/models/create_competitor_request_spec.rb +48 -0
- data/spec/models/create_invitation200_response_spec.rb +52 -0
- data/spec/models/create_invitation201_response_spec.rb +86 -0
- data/spec/models/create_invitation_request_spec.rb +46 -0
- data/spec/models/create_organization201_response_spec.rb +48 -0
- data/spec/models/create_organization_request_spec.rb +36 -0
- data/spec/models/create_project_request_competitors_inner_spec.rb +48 -0
- data/spec/models/create_project_request_spec.rb +54 -0
- data/spec/models/create_query_cluster409_response_spec.rb +48 -0
- data/spec/models/create_query_cluster_request_spec.rb +36 -0
- data/spec/models/delete_query_cluster200_response_spec.rb +48 -0
- data/spec/models/entitlements_resource_spec.rb +104 -0
- data/spec/models/get_available_filters200_response_clusters_inner_spec.rb +42 -0
- data/spec/models/get_available_filters200_response_spec.rb +48 -0
- data/spec/models/get_me_stats200_response_organizations_spec.rb +36 -0
- data/spec/models/get_me_stats200_response_projects_spec.rb +42 -0
- data/spec/models/get_me_stats200_response_spec.rb +42 -0
- data/spec/models/get_membership_stats200_response_spec.rb +72 -0
- data/spec/models/get_mention_samples400_response_details_value_inner_spec.rb +48 -0
- data/spec/models/get_mention_samples400_response_spec.rb +54 -0
- data/spec/models/get_metric_glossary200_response_metrics_inner_spec.rb +76 -0
- data/spec/models/get_metric_glossary200_response_spec.rb +36 -0
- data/spec/models/get_organization_overview200_response_aggregate_spec.rb +72 -0
- data/spec/models/get_organization_overview200_response_projects_inner_spec.rb +78 -0
- data/spec/models/get_organization_overview200_response_spec.rb +42 -0
- data/spec/models/get_organization_stats200_response_invitations_spec.rb +36 -0
- data/spec/models/get_organization_stats200_response_members_spec.rb +36 -0
- data/spec/models/get_organization_stats200_response_projects_spec.rb +42 -0
- data/spec/models/get_organization_stats200_response_spec.rb +48 -0
- data/spec/models/get_share_of_voice_formula200_response_spec.rb +54 -0
- data/spec/models/get_tracking_coverage200_response_sample_inner_spec.rb +70 -0
- data/spec/models/get_tracking_coverage200_response_spec.rb +72 -0
- data/spec/models/invitation_resource_spec.rb +80 -0
- data/spec/models/keyword_listing_resource_mention_type_counts_spec.rb +60 -0
- data/spec/models/keyword_listing_resource_spec.rb +262 -0
- data/spec/models/list_ai_responses200_response_spec.rb +42 -0
- data/spec/models/list_competitors200_response_spec.rb +42 -0
- data/spec/models/list_invitations200_response_spec.rb +42 -0
- data/spec/models/list_keyword_listings200_response_spec.rb +54 -0
- data/spec/models/list_members200_response_spec.rb +42 -0
- data/spec/models/list_organizations200_response_spec.rb +42 -0
- data/spec/models/list_projects200_response_spec.rb +42 -0
- data/spec/models/list_query_clusters200_response_spec.rb +42 -0
- data/spec/models/list_search_snapshots200_response_spec.rb +42 -0
- data/spec/models/list_shopping_snapshots200_response_spec.rb +42 -0
- data/spec/models/me_resource_spec.rb +92 -0
- data/spec/models/member_resource_spec.rb +74 -0
- data/spec/models/operation_effect_spec.rb +48 -0
- data/spec/models/organization_resource_spec.rb +86 -0
- data/spec/models/preview_organization_operation200_response_organization_spec.rb +42 -0
- data/spec/models/preview_organization_operation200_response_spec.rb +84 -0
- data/spec/models/preview_organization_operation_request_spec.rb +58 -0
- data/spec/models/project_detail_resource_competitors_inner_spec.rb +54 -0
- data/spec/models/project_detail_resource_spec.rb +82 -0
- data/spec/models/project_resource_spec.rb +136 -0
- data/spec/models/projected_monthly_checks_resource_spec.rb +42 -0
- data/spec/models/query_cluster_resource_spec.rb +48 -0
- data/spec/models/report_ai_response_request_spec.rb +52 -0
- data/spec/models/search_result_resource_spec.rb +78 -0
- data/spec/models/search_snapshot_resource_spec.rb +66 -0
- data/spec/models/search_tracked_queries200_response_spec.rb +42 -0
- data/spec/models/shopping_offer_resource_spec.rb +96 -0
- data/spec/models/shopping_snapshot_resource_spec.rb +66 -0
- data/spec/models/start_brand_discovery_job_request_spec.rb +42 -0
- data/spec/models/start_brand_name_suggestion_job_request_spec.rb +54 -0
- data/spec/models/start_clustering_job_request_data_spec.rb +52 -0
- data/spec/models/start_keyword_discovery_job_request_spec.rb +54 -0
- data/spec/models/start_prompt_discovery_job_request_spec.rb +54 -0
- data/spec/models/submitted_checks_resource_spec.rb +42 -0
- data/spec/models/subscription_resource_spec.rb +120 -0
- data/spec/models/tracked_query_count_resource_spec.rb +42 -0
- data/spec/models/tracked_query_detail_resource_spec.rb +108 -0
- data/spec/models/tracked_query_resource_spec.rb +150 -0
- data/spec/models/tracked_query_usage_resource_spec.rb +36 -0
- data/spec/models/update_organization_request_spec.rb +48 -0
- data/spec/models/update_project_brand_profile_request_spec.rb +42 -0
- data/spec/models/update_project_request_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- metadata +641 -0
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Mencoro API
|
|
3
|
+
|
|
4
|
+
#Public API for Mencoro customers. Authenticate with an API key: `Authorization: Bearer mencoro_sk_...`.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@mencoro.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Mencoro
|
|
17
|
+
# A tracked query and the metrics of its most recent check
|
|
18
|
+
class TrackedQueryResource < ApiModelBase
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# The keyword or prompt being tracked
|
|
22
|
+
attr_accessor :query_text
|
|
23
|
+
|
|
24
|
+
attr_accessor :engine
|
|
25
|
+
|
|
26
|
+
# ISO-3166 alpha-2 country code the query is tracked in
|
|
27
|
+
attr_accessor :country
|
|
28
|
+
|
|
29
|
+
attr_accessor :status
|
|
30
|
+
|
|
31
|
+
# Ids of the keyword clusters this query belongs to
|
|
32
|
+
attr_accessor :query_cluster_ids
|
|
33
|
+
|
|
34
|
+
# How often the query is checked
|
|
35
|
+
attr_accessor :check_frequency
|
|
36
|
+
|
|
37
|
+
# How many times the query is asked per check
|
|
38
|
+
attr_accessor :n_passes
|
|
39
|
+
|
|
40
|
+
# Position in traditional search results at the last check. 1-based, LOWER is better. Null when not known yet.
|
|
41
|
+
attr_accessor :last_serp_position
|
|
42
|
+
|
|
43
|
+
# Position of the brand mention inside the AI answer at the last check. 1-based, LOWER is better. Null when not known yet.
|
|
44
|
+
attr_accessor :last_mention_position
|
|
45
|
+
|
|
46
|
+
# Position of a cited link to the brand at the last check. 1-based, LOWER is better. Null when not known yet.
|
|
47
|
+
attr_accessor :last_link_position
|
|
48
|
+
|
|
49
|
+
# Position in shopping results at the last check. 1-based, LOWER is better. Null when not known yet.
|
|
50
|
+
attr_accessor :last_shopping_position
|
|
51
|
+
|
|
52
|
+
# 0-100 share of the weighted AI mentions against every tracked brand; HIGHER is better. Null when not known yet, which is not a share of zero.
|
|
53
|
+
attr_accessor :last_share_of_voice
|
|
54
|
+
|
|
55
|
+
# 0-100 sentiment score of the brand mentions; HIGHER is better. Null when there were no mentions to score, which is not a score of zero.
|
|
56
|
+
attr_accessor :last_positivity_index
|
|
57
|
+
|
|
58
|
+
# Positive brand mentions at the last check. Null when not known yet.
|
|
59
|
+
attr_accessor :last_positive_mention_count
|
|
60
|
+
|
|
61
|
+
# Neutral brand mentions at the last check. Null when not known yet.
|
|
62
|
+
attr_accessor :last_neutral_mention_count
|
|
63
|
+
|
|
64
|
+
# Negative brand mentions at the last check. Null when not known yet.
|
|
65
|
+
attr_accessor :last_negative_mention_count
|
|
66
|
+
|
|
67
|
+
# When the query was last checked. Null when it never has been.
|
|
68
|
+
attr_accessor :last_checked_at
|
|
69
|
+
|
|
70
|
+
class EnumAttributeValidator
|
|
71
|
+
attr_reader :datatype
|
|
72
|
+
attr_reader :allowable_values
|
|
73
|
+
|
|
74
|
+
def initialize(datatype, allowable_values)
|
|
75
|
+
@allowable_values = allowable_values.map do |value|
|
|
76
|
+
case datatype.to_s
|
|
77
|
+
when /Integer/i
|
|
78
|
+
value.to_i
|
|
79
|
+
when /Float/i
|
|
80
|
+
value.to_f
|
|
81
|
+
else
|
|
82
|
+
value
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def valid?(value)
|
|
88
|
+
!value || allowable_values.include?(value)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
93
|
+
def self.attribute_map
|
|
94
|
+
{
|
|
95
|
+
:'id' => :'id',
|
|
96
|
+
:'query_text' => :'queryText',
|
|
97
|
+
:'engine' => :'engine',
|
|
98
|
+
:'country' => :'country',
|
|
99
|
+
:'status' => :'status',
|
|
100
|
+
:'query_cluster_ids' => :'queryClusterIds',
|
|
101
|
+
:'check_frequency' => :'checkFrequency',
|
|
102
|
+
:'n_passes' => :'nPasses',
|
|
103
|
+
:'last_serp_position' => :'lastSerpPosition',
|
|
104
|
+
:'last_mention_position' => :'lastMentionPosition',
|
|
105
|
+
:'last_link_position' => :'lastLinkPosition',
|
|
106
|
+
:'last_shopping_position' => :'lastShoppingPosition',
|
|
107
|
+
:'last_share_of_voice' => :'lastShareOfVoice',
|
|
108
|
+
:'last_positivity_index' => :'lastPositivityIndex',
|
|
109
|
+
:'last_positive_mention_count' => :'lastPositiveMentionCount',
|
|
110
|
+
:'last_neutral_mention_count' => :'lastNeutralMentionCount',
|
|
111
|
+
:'last_negative_mention_count' => :'lastNegativeMentionCount',
|
|
112
|
+
:'last_checked_at' => :'lastCheckedAt'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Returns attribute mapping this model knows about
|
|
117
|
+
def self.acceptable_attribute_map
|
|
118
|
+
attribute_map
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Returns all the JSON keys this model knows about
|
|
122
|
+
def self.acceptable_attributes
|
|
123
|
+
acceptable_attribute_map.values
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Attribute type mapping.
|
|
127
|
+
def self.openapi_types
|
|
128
|
+
{
|
|
129
|
+
:'id' => :'String',
|
|
130
|
+
:'query_text' => :'String',
|
|
131
|
+
:'engine' => :'String',
|
|
132
|
+
:'country' => :'String',
|
|
133
|
+
:'status' => :'String',
|
|
134
|
+
:'query_cluster_ids' => :'Array<String>',
|
|
135
|
+
:'check_frequency' => :'String',
|
|
136
|
+
:'n_passes' => :'Integer',
|
|
137
|
+
:'last_serp_position' => :'Integer',
|
|
138
|
+
:'last_mention_position' => :'Integer',
|
|
139
|
+
:'last_link_position' => :'Integer',
|
|
140
|
+
:'last_shopping_position' => :'Integer',
|
|
141
|
+
:'last_share_of_voice' => :'Float',
|
|
142
|
+
:'last_positivity_index' => :'Integer',
|
|
143
|
+
:'last_positive_mention_count' => :'Integer',
|
|
144
|
+
:'last_neutral_mention_count' => :'Integer',
|
|
145
|
+
:'last_negative_mention_count' => :'Integer',
|
|
146
|
+
:'last_checked_at' => :'Time'
|
|
147
|
+
}
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# List of attributes with nullable: true
|
|
151
|
+
def self.openapi_nullable
|
|
152
|
+
Set.new([
|
|
153
|
+
:'last_serp_position',
|
|
154
|
+
:'last_mention_position',
|
|
155
|
+
:'last_link_position',
|
|
156
|
+
:'last_shopping_position',
|
|
157
|
+
:'last_share_of_voice',
|
|
158
|
+
:'last_positivity_index',
|
|
159
|
+
:'last_positive_mention_count',
|
|
160
|
+
:'last_neutral_mention_count',
|
|
161
|
+
:'last_negative_mention_count',
|
|
162
|
+
:'last_checked_at'
|
|
163
|
+
])
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Initializes the object
|
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
168
|
+
def initialize(attributes = {})
|
|
169
|
+
if (!attributes.is_a?(Hash))
|
|
170
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Mencoro::TrackedQueryResource` initialize method"
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
174
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
175
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
176
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
177
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Mencoro::TrackedQueryResource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
178
|
+
end
|
|
179
|
+
h[k.to_sym] = v
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'id')
|
|
183
|
+
self.id = attributes[:'id']
|
|
184
|
+
else
|
|
185
|
+
self.id = nil
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'query_text')
|
|
189
|
+
self.query_text = attributes[:'query_text']
|
|
190
|
+
else
|
|
191
|
+
self.query_text = nil
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'engine')
|
|
195
|
+
self.engine = attributes[:'engine']
|
|
196
|
+
else
|
|
197
|
+
self.engine = nil
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'country')
|
|
201
|
+
self.country = attributes[:'country']
|
|
202
|
+
else
|
|
203
|
+
self.country = nil
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'status')
|
|
207
|
+
self.status = attributes[:'status']
|
|
208
|
+
else
|
|
209
|
+
self.status = nil
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'query_cluster_ids')
|
|
213
|
+
if (value = attributes[:'query_cluster_ids']).is_a?(Array)
|
|
214
|
+
self.query_cluster_ids = value
|
|
215
|
+
end
|
|
216
|
+
else
|
|
217
|
+
self.query_cluster_ids = nil
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'check_frequency')
|
|
221
|
+
self.check_frequency = attributes[:'check_frequency']
|
|
222
|
+
else
|
|
223
|
+
self.check_frequency = nil
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'n_passes')
|
|
227
|
+
self.n_passes = attributes[:'n_passes']
|
|
228
|
+
else
|
|
229
|
+
self.n_passes = nil
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'last_serp_position')
|
|
233
|
+
self.last_serp_position = attributes[:'last_serp_position']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'last_mention_position')
|
|
237
|
+
self.last_mention_position = attributes[:'last_mention_position']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'last_link_position')
|
|
241
|
+
self.last_link_position = attributes[:'last_link_position']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'last_shopping_position')
|
|
245
|
+
self.last_shopping_position = attributes[:'last_shopping_position']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'last_share_of_voice')
|
|
249
|
+
self.last_share_of_voice = attributes[:'last_share_of_voice']
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'last_positivity_index')
|
|
253
|
+
self.last_positivity_index = attributes[:'last_positivity_index']
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if attributes.key?(:'last_positive_mention_count')
|
|
257
|
+
self.last_positive_mention_count = attributes[:'last_positive_mention_count']
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'last_neutral_mention_count')
|
|
261
|
+
self.last_neutral_mention_count = attributes[:'last_neutral_mention_count']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if attributes.key?(:'last_negative_mention_count')
|
|
265
|
+
self.last_negative_mention_count = attributes[:'last_negative_mention_count']
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'last_checked_at')
|
|
269
|
+
self.last_checked_at = attributes[:'last_checked_at']
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
274
|
+
# @return Array for valid properties with the reasons
|
|
275
|
+
def list_invalid_properties
|
|
276
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
277
|
+
invalid_properties = Array.new
|
|
278
|
+
if @id.nil?
|
|
279
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @query_text.nil?
|
|
283
|
+
invalid_properties.push('invalid value for "query_text", query_text cannot be nil.')
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if @engine.nil?
|
|
287
|
+
invalid_properties.push('invalid value for "engine", engine cannot be nil.')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if @country.nil?
|
|
291
|
+
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
if @status.nil?
|
|
295
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if @query_cluster_ids.nil?
|
|
299
|
+
invalid_properties.push('invalid value for "query_cluster_ids", query_cluster_ids cannot be nil.')
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if @check_frequency.nil?
|
|
303
|
+
invalid_properties.push('invalid value for "check_frequency", check_frequency cannot be nil.')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if @n_passes.nil?
|
|
307
|
+
invalid_properties.push('invalid value for "n_passes", n_passes cannot be nil.')
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
invalid_properties
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Check to see if the all the properties in the model are valid
|
|
314
|
+
# @return true if the model is valid
|
|
315
|
+
def valid?
|
|
316
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
317
|
+
return false if @id.nil?
|
|
318
|
+
return false if @query_text.nil?
|
|
319
|
+
return false if @engine.nil?
|
|
320
|
+
engine_validator = EnumAttributeValidator.new('String', ["chatgpt", "perplexity", "google_ai_overview", "google_ai_mode", "google_serp", "google_shopping"])
|
|
321
|
+
return false unless engine_validator.valid?(@engine)
|
|
322
|
+
return false if @country.nil?
|
|
323
|
+
return false if @status.nil?
|
|
324
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
325
|
+
return false unless status_validator.valid?(@status)
|
|
326
|
+
return false if @query_cluster_ids.nil?
|
|
327
|
+
return false if @check_frequency.nil?
|
|
328
|
+
check_frequency_validator = EnumAttributeValidator.new('String', ["daily", "weekly", "monthly"])
|
|
329
|
+
return false unless check_frequency_validator.valid?(@check_frequency)
|
|
330
|
+
return false if @n_passes.nil?
|
|
331
|
+
true
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Custom attribute writer method with validation
|
|
335
|
+
# @param [Object] id Value to be assigned
|
|
336
|
+
def id=(id)
|
|
337
|
+
if id.nil?
|
|
338
|
+
fail ArgumentError, 'id cannot be nil'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@id = id
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Custom attribute writer method with validation
|
|
345
|
+
# @param [Object] query_text Value to be assigned
|
|
346
|
+
def query_text=(query_text)
|
|
347
|
+
if query_text.nil?
|
|
348
|
+
fail ArgumentError, 'query_text cannot be nil'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
@query_text = query_text
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
355
|
+
# @param [Object] engine Object to be assigned
|
|
356
|
+
def engine=(engine)
|
|
357
|
+
validator = EnumAttributeValidator.new('String', ["chatgpt", "perplexity", "google_ai_overview", "google_ai_mode", "google_serp", "google_shopping"])
|
|
358
|
+
unless validator.valid?(engine)
|
|
359
|
+
fail ArgumentError, "invalid value for \"engine\", must be one of #{validator.allowable_values}."
|
|
360
|
+
end
|
|
361
|
+
@engine = engine
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Custom attribute writer method with validation
|
|
365
|
+
# @param [Object] country Value to be assigned
|
|
366
|
+
def country=(country)
|
|
367
|
+
if country.nil?
|
|
368
|
+
fail ArgumentError, 'country cannot be nil'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
@country = country
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
375
|
+
# @param [Object] status Object to be assigned
|
|
376
|
+
def status=(status)
|
|
377
|
+
validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
378
|
+
unless validator.valid?(status)
|
|
379
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
380
|
+
end
|
|
381
|
+
@status = status
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Custom attribute writer method with validation
|
|
385
|
+
# @param [Object] query_cluster_ids Value to be assigned
|
|
386
|
+
def query_cluster_ids=(query_cluster_ids)
|
|
387
|
+
if query_cluster_ids.nil?
|
|
388
|
+
fail ArgumentError, 'query_cluster_ids cannot be nil'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
@query_cluster_ids = query_cluster_ids
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
395
|
+
# @param [Object] check_frequency Object to be assigned
|
|
396
|
+
def check_frequency=(check_frequency)
|
|
397
|
+
validator = EnumAttributeValidator.new('String', ["daily", "weekly", "monthly"])
|
|
398
|
+
unless validator.valid?(check_frequency)
|
|
399
|
+
fail ArgumentError, "invalid value for \"check_frequency\", must be one of #{validator.allowable_values}."
|
|
400
|
+
end
|
|
401
|
+
@check_frequency = check_frequency
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Custom attribute writer method with validation
|
|
405
|
+
# @param [Object] n_passes Value to be assigned
|
|
406
|
+
def n_passes=(n_passes)
|
|
407
|
+
if n_passes.nil?
|
|
408
|
+
fail ArgumentError, 'n_passes cannot be nil'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
@n_passes = n_passes
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Checks equality by comparing each attribute.
|
|
415
|
+
# @param [Object] Object to be compared
|
|
416
|
+
def ==(o)
|
|
417
|
+
return true if self.equal?(o)
|
|
418
|
+
self.class == o.class &&
|
|
419
|
+
id == o.id &&
|
|
420
|
+
query_text == o.query_text &&
|
|
421
|
+
engine == o.engine &&
|
|
422
|
+
country == o.country &&
|
|
423
|
+
status == o.status &&
|
|
424
|
+
query_cluster_ids == o.query_cluster_ids &&
|
|
425
|
+
check_frequency == o.check_frequency &&
|
|
426
|
+
n_passes == o.n_passes &&
|
|
427
|
+
last_serp_position == o.last_serp_position &&
|
|
428
|
+
last_mention_position == o.last_mention_position &&
|
|
429
|
+
last_link_position == o.last_link_position &&
|
|
430
|
+
last_shopping_position == o.last_shopping_position &&
|
|
431
|
+
last_share_of_voice == o.last_share_of_voice &&
|
|
432
|
+
last_positivity_index == o.last_positivity_index &&
|
|
433
|
+
last_positive_mention_count == o.last_positive_mention_count &&
|
|
434
|
+
last_neutral_mention_count == o.last_neutral_mention_count &&
|
|
435
|
+
last_negative_mention_count == o.last_negative_mention_count &&
|
|
436
|
+
last_checked_at == o.last_checked_at
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# @see the `==` method
|
|
440
|
+
# @param [Object] Object to be compared
|
|
441
|
+
def eql?(o)
|
|
442
|
+
self == o
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
# Calculates hash code according to all attributes.
|
|
446
|
+
# @return [Integer] Hash code
|
|
447
|
+
def hash
|
|
448
|
+
[id, query_text, engine, country, status, query_cluster_ids, check_frequency, n_passes, last_serp_position, last_mention_position, last_link_position, last_shopping_position, last_share_of_voice, last_positivity_index, last_positive_mention_count, last_neutral_mention_count, last_negative_mention_count, last_checked_at].hash
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Builds the object from hash
|
|
452
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
453
|
+
# @return [Object] Returns the model itself
|
|
454
|
+
def self.build_from_hash(attributes)
|
|
455
|
+
return nil unless attributes.is_a?(Hash)
|
|
456
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
457
|
+
transformed_hash = {}
|
|
458
|
+
openapi_types.each_pair do |key, type|
|
|
459
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
460
|
+
transformed_hash["#{key}"] = nil
|
|
461
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
462
|
+
# check to ensure the input is an array given that the attribute
|
|
463
|
+
# is documented as an array but the input is not
|
|
464
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
465
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
466
|
+
end
|
|
467
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
468
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
469
|
+
end
|
|
470
|
+
end
|
|
471
|
+
new(transformed_hash)
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
# Returns the object in the form of hash
|
|
475
|
+
# @return [Hash] Returns the object in the form of hash
|
|
476
|
+
def to_hash
|
|
477
|
+
hash = {}
|
|
478
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
479
|
+
value = self.send(attr)
|
|
480
|
+
if value.nil?
|
|
481
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
482
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
hash[param] = _to_hash(value)
|
|
486
|
+
end
|
|
487
|
+
hash
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
end
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Mencoro API
|
|
3
|
+
|
|
4
|
+
#Public API for Mencoro customers. Authenticate with an API key: `Authorization: Bearer mencoro_sk_...`.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@mencoro.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Mencoro
|
|
17
|
+
# How many tracked queries an organization has configured
|
|
18
|
+
class TrackedQueryUsageResource < ApiModelBase
|
|
19
|
+
# Tracked queries across every project of the organization, archived projects included, counting active and paused queries alike. Never null; 0 means none are configured.
|
|
20
|
+
attr_accessor :tracked_query_count
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'tracked_query_count' => :'trackedQueryCount'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns attribute mapping this model knows about
|
|
30
|
+
def self.acceptable_attribute_map
|
|
31
|
+
attribute_map
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns all the JSON keys this model knows about
|
|
35
|
+
def self.acceptable_attributes
|
|
36
|
+
acceptable_attribute_map.values
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.openapi_types
|
|
41
|
+
{
|
|
42
|
+
:'tracked_query_count' => :'Integer'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# List of attributes with nullable: true
|
|
47
|
+
def self.openapi_nullable
|
|
48
|
+
Set.new([
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Mencoro::TrackedQueryUsageResource` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Mencoro::TrackedQueryUsageResource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
|
+
end
|
|
65
|
+
h[k.to_sym] = v
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'tracked_query_count')
|
|
69
|
+
self.tracked_query_count = attributes[:'tracked_query_count']
|
|
70
|
+
else
|
|
71
|
+
self.tracked_query_count = nil
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
if @tracked_query_count.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "tracked_query_count", tracked_query_count cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if @tracked_query_count < 0
|
|
85
|
+
invalid_properties.push('invalid value for "tracked_query_count", must be greater than or equal to 0.')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
95
|
+
return false if @tracked_query_count.nil?
|
|
96
|
+
return false if @tracked_query_count < 0
|
|
97
|
+
true
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Custom attribute writer method with validation
|
|
101
|
+
# @param [Object] tracked_query_count Value to be assigned
|
|
102
|
+
def tracked_query_count=(tracked_query_count)
|
|
103
|
+
if tracked_query_count.nil?
|
|
104
|
+
fail ArgumentError, 'tracked_query_count cannot be nil'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if tracked_query_count < 0
|
|
108
|
+
fail ArgumentError, 'invalid value for "tracked_query_count", must be greater than or equal to 0.'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
@tracked_query_count = tracked_query_count
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Checks equality by comparing each attribute.
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def ==(o)
|
|
117
|
+
return true if self.equal?(o)
|
|
118
|
+
self.class == o.class &&
|
|
119
|
+
tracked_query_count == o.tracked_query_count
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# @see the `==` method
|
|
123
|
+
# @param [Object] Object to be compared
|
|
124
|
+
def eql?(o)
|
|
125
|
+
self == o
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Calculates hash code according to all attributes.
|
|
129
|
+
# @return [Integer] Hash code
|
|
130
|
+
def hash
|
|
131
|
+
[tracked_query_count].hash
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Builds the object from hash
|
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
136
|
+
# @return [Object] Returns the model itself
|
|
137
|
+
def self.build_from_hash(attributes)
|
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
|
139
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
140
|
+
transformed_hash = {}
|
|
141
|
+
openapi_types.each_pair do |key, type|
|
|
142
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
143
|
+
transformed_hash["#{key}"] = nil
|
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
145
|
+
# check to ensure the input is an array given that the attribute
|
|
146
|
+
# is documented as an array but the input is not
|
|
147
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
148
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
149
|
+
end
|
|
150
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
151
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
new(transformed_hash)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Returns the object in the form of hash
|
|
158
|
+
# @return [Hash] Returns the object in the form of hash
|
|
159
|
+
def to_hash
|
|
160
|
+
hash = {}
|
|
161
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
162
|
+
value = self.send(attr)
|
|
163
|
+
if value.nil?
|
|
164
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
165
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
hash[param] = _to_hash(value)
|
|
169
|
+
end
|
|
170
|
+
hash
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
end
|