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,422 @@
|
|
|
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 project and its headline metrics
|
|
18
|
+
class ProjectResource < ApiModelBase
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
attr_accessor :name
|
|
22
|
+
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
|
+
# Number of tracked queries in the project
|
|
28
|
+
attr_accessor :tracked_query_count
|
|
29
|
+
|
|
30
|
+
# Average position in traditional search results. Null when unknown.
|
|
31
|
+
attr_accessor :avg_serp_position
|
|
32
|
+
|
|
33
|
+
# Average position in shopping results. Null when unknown.
|
|
34
|
+
attr_accessor :avg_shopping_position
|
|
35
|
+
|
|
36
|
+
# Average position of the brand mention inside AI answers. Null when unknown.
|
|
37
|
+
attr_accessor :avg_mention_position
|
|
38
|
+
|
|
39
|
+
# Average position of a cited link to the brand. Null when unknown.
|
|
40
|
+
attr_accessor :avg_link_position
|
|
41
|
+
|
|
42
|
+
# Share of checks where the brand was mentioned. Null when unknown.
|
|
43
|
+
attr_accessor :mention_rate
|
|
44
|
+
|
|
45
|
+
attr_accessor :serp_rate
|
|
46
|
+
|
|
47
|
+
attr_accessor :shopping_rate
|
|
48
|
+
|
|
49
|
+
# Sentiment balance of the brand's mentions. Null when unknown.
|
|
50
|
+
attr_accessor :positivity_index
|
|
51
|
+
|
|
52
|
+
# Share of voice against the tracked competitors. Null when unknown.
|
|
53
|
+
attr_accessor :share_of_voice
|
|
54
|
+
|
|
55
|
+
attr_accessor :serp_position_stability
|
|
56
|
+
|
|
57
|
+
attr_accessor :shopping_position_stability
|
|
58
|
+
|
|
59
|
+
# When a rank was last detected for this project.
|
|
60
|
+
attr_accessor :last_rank_detected_at
|
|
61
|
+
|
|
62
|
+
class EnumAttributeValidator
|
|
63
|
+
attr_reader :datatype
|
|
64
|
+
attr_reader :allowable_values
|
|
65
|
+
|
|
66
|
+
def initialize(datatype, allowable_values)
|
|
67
|
+
@allowable_values = allowable_values.map do |value|
|
|
68
|
+
case datatype.to_s
|
|
69
|
+
when /Integer/i
|
|
70
|
+
value.to_i
|
|
71
|
+
when /Float/i
|
|
72
|
+
value.to_f
|
|
73
|
+
else
|
|
74
|
+
value
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def valid?(value)
|
|
80
|
+
!value || allowable_values.include?(value)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
85
|
+
def self.attribute_map
|
|
86
|
+
{
|
|
87
|
+
:'id' => :'id',
|
|
88
|
+
:'name' => :'name',
|
|
89
|
+
:'status' => :'status',
|
|
90
|
+
:'created_at' => :'createdAt',
|
|
91
|
+
:'tracked_query_count' => :'trackedQueryCount',
|
|
92
|
+
:'avg_serp_position' => :'avgSerpPosition',
|
|
93
|
+
:'avg_shopping_position' => :'avgShoppingPosition',
|
|
94
|
+
:'avg_mention_position' => :'avgMentionPosition',
|
|
95
|
+
:'avg_link_position' => :'avgLinkPosition',
|
|
96
|
+
:'mention_rate' => :'mentionRate',
|
|
97
|
+
:'serp_rate' => :'serpRate',
|
|
98
|
+
:'shopping_rate' => :'shoppingRate',
|
|
99
|
+
:'positivity_index' => :'positivityIndex',
|
|
100
|
+
:'share_of_voice' => :'shareOfVoice',
|
|
101
|
+
:'serp_position_stability' => :'serpPositionStability',
|
|
102
|
+
:'shopping_position_stability' => :'shoppingPositionStability',
|
|
103
|
+
:'last_rank_detected_at' => :'lastRankDetectedAt'
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Returns attribute mapping this model knows about
|
|
108
|
+
def self.acceptable_attribute_map
|
|
109
|
+
attribute_map
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Returns all the JSON keys this model knows about
|
|
113
|
+
def self.acceptable_attributes
|
|
114
|
+
acceptable_attribute_map.values
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Attribute type mapping.
|
|
118
|
+
def self.openapi_types
|
|
119
|
+
{
|
|
120
|
+
:'id' => :'String',
|
|
121
|
+
:'name' => :'String',
|
|
122
|
+
:'status' => :'String',
|
|
123
|
+
:'created_at' => :'Time',
|
|
124
|
+
:'tracked_query_count' => :'Integer',
|
|
125
|
+
:'avg_serp_position' => :'Float',
|
|
126
|
+
:'avg_shopping_position' => :'Float',
|
|
127
|
+
:'avg_mention_position' => :'Float',
|
|
128
|
+
:'avg_link_position' => :'Float',
|
|
129
|
+
:'mention_rate' => :'Integer',
|
|
130
|
+
:'serp_rate' => :'Integer',
|
|
131
|
+
:'shopping_rate' => :'Integer',
|
|
132
|
+
:'positivity_index' => :'Integer',
|
|
133
|
+
:'share_of_voice' => :'Float',
|
|
134
|
+
:'serp_position_stability' => :'Float',
|
|
135
|
+
:'shopping_position_stability' => :'Float',
|
|
136
|
+
:'last_rank_detected_at' => :'Time'
|
|
137
|
+
}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# List of attributes with nullable: true
|
|
141
|
+
def self.openapi_nullable
|
|
142
|
+
Set.new([
|
|
143
|
+
:'avg_serp_position',
|
|
144
|
+
:'avg_shopping_position',
|
|
145
|
+
:'avg_mention_position',
|
|
146
|
+
:'avg_link_position',
|
|
147
|
+
:'mention_rate',
|
|
148
|
+
:'serp_rate',
|
|
149
|
+
:'shopping_rate',
|
|
150
|
+
:'positivity_index',
|
|
151
|
+
:'share_of_voice',
|
|
152
|
+
:'serp_position_stability',
|
|
153
|
+
:'shopping_position_stability',
|
|
154
|
+
:'last_rank_detected_at'
|
|
155
|
+
])
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Initializes the object
|
|
159
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
160
|
+
def initialize(attributes = {})
|
|
161
|
+
if (!attributes.is_a?(Hash))
|
|
162
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Mencoro::ProjectResource` initialize method"
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
166
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
167
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
168
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
169
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Mencoro::ProjectResource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
170
|
+
end
|
|
171
|
+
h[k.to_sym] = v
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'id')
|
|
175
|
+
self.id = attributes[:'id']
|
|
176
|
+
else
|
|
177
|
+
self.id = nil
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'name')
|
|
181
|
+
self.name = attributes[:'name']
|
|
182
|
+
else
|
|
183
|
+
self.name = nil
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'status')
|
|
187
|
+
self.status = attributes[:'status']
|
|
188
|
+
else
|
|
189
|
+
self.status = nil
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'created_at')
|
|
193
|
+
self.created_at = attributes[:'created_at']
|
|
194
|
+
else
|
|
195
|
+
self.created_at = nil
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'tracked_query_count')
|
|
199
|
+
self.tracked_query_count = attributes[:'tracked_query_count']
|
|
200
|
+
else
|
|
201
|
+
self.tracked_query_count = nil
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'avg_serp_position')
|
|
205
|
+
self.avg_serp_position = attributes[:'avg_serp_position']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'avg_shopping_position')
|
|
209
|
+
self.avg_shopping_position = attributes[:'avg_shopping_position']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'avg_mention_position')
|
|
213
|
+
self.avg_mention_position = attributes[:'avg_mention_position']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'avg_link_position')
|
|
217
|
+
self.avg_link_position = attributes[:'avg_link_position']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'mention_rate')
|
|
221
|
+
self.mention_rate = attributes[:'mention_rate']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'serp_rate')
|
|
225
|
+
self.serp_rate = attributes[:'serp_rate']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'shopping_rate')
|
|
229
|
+
self.shopping_rate = attributes[:'shopping_rate']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'positivity_index')
|
|
233
|
+
self.positivity_index = attributes[:'positivity_index']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'share_of_voice')
|
|
237
|
+
self.share_of_voice = attributes[:'share_of_voice']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'serp_position_stability')
|
|
241
|
+
self.serp_position_stability = attributes[:'serp_position_stability']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'shopping_position_stability')
|
|
245
|
+
self.shopping_position_stability = attributes[:'shopping_position_stability']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'last_rank_detected_at')
|
|
249
|
+
self.last_rank_detected_at = attributes[:'last_rank_detected_at']
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
254
|
+
# @return Array for valid properties with the reasons
|
|
255
|
+
def list_invalid_properties
|
|
256
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
257
|
+
invalid_properties = Array.new
|
|
258
|
+
if @id.nil?
|
|
259
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if @name.nil?
|
|
263
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if @status.nil?
|
|
267
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if @created_at.nil?
|
|
271
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if @tracked_query_count.nil?
|
|
275
|
+
invalid_properties.push('invalid value for "tracked_query_count", tracked_query_count cannot be nil.')
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
invalid_properties
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Check to see if the all the properties in the model are valid
|
|
282
|
+
# @return true if the model is valid
|
|
283
|
+
def valid?
|
|
284
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
285
|
+
return false if @id.nil?
|
|
286
|
+
return false if @name.nil?
|
|
287
|
+
return false if @status.nil?
|
|
288
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "archived"])
|
|
289
|
+
return false unless status_validator.valid?(@status)
|
|
290
|
+
return false if @created_at.nil?
|
|
291
|
+
return false if @tracked_query_count.nil?
|
|
292
|
+
true
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Custom attribute writer method with validation
|
|
296
|
+
# @param [Object] id Value to be assigned
|
|
297
|
+
def id=(id)
|
|
298
|
+
if id.nil?
|
|
299
|
+
fail ArgumentError, 'id cannot be nil'
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
@id = id
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Custom attribute writer method with validation
|
|
306
|
+
# @param [Object] name Value to be assigned
|
|
307
|
+
def name=(name)
|
|
308
|
+
if name.nil?
|
|
309
|
+
fail ArgumentError, 'name cannot be nil'
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
@name = name
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
316
|
+
# @param [Object] status Object to be assigned
|
|
317
|
+
def status=(status)
|
|
318
|
+
validator = EnumAttributeValidator.new('String', ["active", "archived"])
|
|
319
|
+
unless validator.valid?(status)
|
|
320
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
321
|
+
end
|
|
322
|
+
@status = status
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Custom attribute writer method with validation
|
|
326
|
+
# @param [Object] created_at Value to be assigned
|
|
327
|
+
def created_at=(created_at)
|
|
328
|
+
if created_at.nil?
|
|
329
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
@created_at = created_at
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Custom attribute writer method with validation
|
|
336
|
+
# @param [Object] tracked_query_count Value to be assigned
|
|
337
|
+
def tracked_query_count=(tracked_query_count)
|
|
338
|
+
if tracked_query_count.nil?
|
|
339
|
+
fail ArgumentError, 'tracked_query_count cannot be nil'
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
@tracked_query_count = tracked_query_count
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Checks equality by comparing each attribute.
|
|
346
|
+
# @param [Object] Object to be compared
|
|
347
|
+
def ==(o)
|
|
348
|
+
return true if self.equal?(o)
|
|
349
|
+
self.class == o.class &&
|
|
350
|
+
id == o.id &&
|
|
351
|
+
name == o.name &&
|
|
352
|
+
status == o.status &&
|
|
353
|
+
created_at == o.created_at &&
|
|
354
|
+
tracked_query_count == o.tracked_query_count &&
|
|
355
|
+
avg_serp_position == o.avg_serp_position &&
|
|
356
|
+
avg_shopping_position == o.avg_shopping_position &&
|
|
357
|
+
avg_mention_position == o.avg_mention_position &&
|
|
358
|
+
avg_link_position == o.avg_link_position &&
|
|
359
|
+
mention_rate == o.mention_rate &&
|
|
360
|
+
serp_rate == o.serp_rate &&
|
|
361
|
+
shopping_rate == o.shopping_rate &&
|
|
362
|
+
positivity_index == o.positivity_index &&
|
|
363
|
+
share_of_voice == o.share_of_voice &&
|
|
364
|
+
serp_position_stability == o.serp_position_stability &&
|
|
365
|
+
shopping_position_stability == o.shopping_position_stability &&
|
|
366
|
+
last_rank_detected_at == o.last_rank_detected_at
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# @see the `==` method
|
|
370
|
+
# @param [Object] Object to be compared
|
|
371
|
+
def eql?(o)
|
|
372
|
+
self == o
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Calculates hash code according to all attributes.
|
|
376
|
+
# @return [Integer] Hash code
|
|
377
|
+
def hash
|
|
378
|
+
[id, name, status, created_at, tracked_query_count, avg_serp_position, avg_shopping_position, avg_mention_position, avg_link_position, mention_rate, serp_rate, shopping_rate, positivity_index, share_of_voice, serp_position_stability, shopping_position_stability, last_rank_detected_at].hash
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# Builds the object from hash
|
|
382
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
383
|
+
# @return [Object] Returns the model itself
|
|
384
|
+
def self.build_from_hash(attributes)
|
|
385
|
+
return nil unless attributes.is_a?(Hash)
|
|
386
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
387
|
+
transformed_hash = {}
|
|
388
|
+
openapi_types.each_pair do |key, type|
|
|
389
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
390
|
+
transformed_hash["#{key}"] = nil
|
|
391
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
392
|
+
# check to ensure the input is an array given that the attribute
|
|
393
|
+
# is documented as an array but the input is not
|
|
394
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
395
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
396
|
+
end
|
|
397
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
398
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
399
|
+
end
|
|
400
|
+
end
|
|
401
|
+
new(transformed_hash)
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Returns the object in the form of hash
|
|
405
|
+
# @return [Hash] Returns the object in the form of hash
|
|
406
|
+
def to_hash
|
|
407
|
+
hash = {}
|
|
408
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
409
|
+
value = self.send(attr)
|
|
410
|
+
if value.nil?
|
|
411
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
412
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
hash[param] = _to_hash(value)
|
|
416
|
+
end
|
|
417
|
+
hash
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
end
|
|
@@ -0,0 +1,211 @@
|
|
|
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
|
+
# What an organization's current tracking configuration would consume in a month
|
|
18
|
+
class ProjectedMonthlyChecksResource < ApiModelBase
|
|
19
|
+
# Checks a month of the current configuration would consume: for each ACTIVE tracked query, its runs per month (daily 30, weekly 4, monthly 1) multiplied by its nPasses, summed. Never null.
|
|
20
|
+
attr_accessor :projected_monthly_checks
|
|
21
|
+
|
|
22
|
+
# Active tracked queries the projection was summed over, across every project of the organization, archived projects included. Paused queries are excluded from both figures. Never null.
|
|
23
|
+
attr_accessor :active_tracked_query_count
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'projected_monthly_checks' => :'projectedMonthlyChecks',
|
|
29
|
+
:'active_tracked_query_count' => :'activeTrackedQueryCount'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'projected_monthly_checks' => :'Integer',
|
|
47
|
+
:'active_tracked_query_count' => :'Integer'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Mencoro::ProjectedMonthlyChecksResource` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Mencoro::ProjectedMonthlyChecksResource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'projected_monthly_checks')
|
|
74
|
+
self.projected_monthly_checks = attributes[:'projected_monthly_checks']
|
|
75
|
+
else
|
|
76
|
+
self.projected_monthly_checks = nil
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'active_tracked_query_count')
|
|
80
|
+
self.active_tracked_query_count = attributes[:'active_tracked_query_count']
|
|
81
|
+
else
|
|
82
|
+
self.active_tracked_query_count = nil
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
90
|
+
invalid_properties = Array.new
|
|
91
|
+
if @projected_monthly_checks.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "projected_monthly_checks", projected_monthly_checks cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @projected_monthly_checks < 0
|
|
96
|
+
invalid_properties.push('invalid value for "projected_monthly_checks", must be greater than or equal to 0.')
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if @active_tracked_query_count.nil?
|
|
100
|
+
invalid_properties.push('invalid value for "active_tracked_query_count", active_tracked_query_count cannot be nil.')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if @active_tracked_query_count < 0
|
|
104
|
+
invalid_properties.push('invalid value for "active_tracked_query_count", must be greater than or equal to 0.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
invalid_properties
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Check to see if the all the properties in the model are valid
|
|
111
|
+
# @return true if the model is valid
|
|
112
|
+
def valid?
|
|
113
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
114
|
+
return false if @projected_monthly_checks.nil?
|
|
115
|
+
return false if @projected_monthly_checks < 0
|
|
116
|
+
return false if @active_tracked_query_count.nil?
|
|
117
|
+
return false if @active_tracked_query_count < 0
|
|
118
|
+
true
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param [Object] projected_monthly_checks Value to be assigned
|
|
123
|
+
def projected_monthly_checks=(projected_monthly_checks)
|
|
124
|
+
if projected_monthly_checks.nil?
|
|
125
|
+
fail ArgumentError, 'projected_monthly_checks cannot be nil'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if projected_monthly_checks < 0
|
|
129
|
+
fail ArgumentError, 'invalid value for "projected_monthly_checks", must be greater than or equal to 0.'
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
@projected_monthly_checks = projected_monthly_checks
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Custom attribute writer method with validation
|
|
136
|
+
# @param [Object] active_tracked_query_count Value to be assigned
|
|
137
|
+
def active_tracked_query_count=(active_tracked_query_count)
|
|
138
|
+
if active_tracked_query_count.nil?
|
|
139
|
+
fail ArgumentError, 'active_tracked_query_count cannot be nil'
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if active_tracked_query_count < 0
|
|
143
|
+
fail ArgumentError, 'invalid value for "active_tracked_query_count", must be greater than or equal to 0.'
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
@active_tracked_query_count = active_tracked_query_count
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Checks equality by comparing each attribute.
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def ==(o)
|
|
152
|
+
return true if self.equal?(o)
|
|
153
|
+
self.class == o.class &&
|
|
154
|
+
projected_monthly_checks == o.projected_monthly_checks &&
|
|
155
|
+
active_tracked_query_count == o.active_tracked_query_count
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# @see the `==` method
|
|
159
|
+
# @param [Object] Object to be compared
|
|
160
|
+
def eql?(o)
|
|
161
|
+
self == o
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Calculates hash code according to all attributes.
|
|
165
|
+
# @return [Integer] Hash code
|
|
166
|
+
def hash
|
|
167
|
+
[projected_monthly_checks, active_tracked_query_count].hash
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Builds the object from hash
|
|
171
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
172
|
+
# @return [Object] Returns the model itself
|
|
173
|
+
def self.build_from_hash(attributes)
|
|
174
|
+
return nil unless attributes.is_a?(Hash)
|
|
175
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
176
|
+
transformed_hash = {}
|
|
177
|
+
openapi_types.each_pair do |key, type|
|
|
178
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
179
|
+
transformed_hash["#{key}"] = nil
|
|
180
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
181
|
+
# check to ensure the input is an array given that the attribute
|
|
182
|
+
# is documented as an array but the input is not
|
|
183
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
184
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
185
|
+
end
|
|
186
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
187
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
new(transformed_hash)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the object in the form of hash
|
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
|
195
|
+
def to_hash
|
|
196
|
+
hash = {}
|
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
198
|
+
value = self.send(attr)
|
|
199
|
+
if value.nil?
|
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
hash[param] = _to_hash(value)
|
|
205
|
+
end
|
|
206
|
+
hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
end
|