# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module RecaptchaenterpriseV1 class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1Assessment class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1Event class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1IosKeySettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1Key class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1ListKeysResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1Metrics class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1RiskAnalysis class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1ScoreDistribution class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1ScoreMetrics class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1TestingOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1TokenProperties class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1WafSettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1WebKeySettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleProtobufEmpty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment # @private class Representation < Google::Apis::Core::JsonRepresentation collection :labels, as: 'labels' end end class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :allow_all_package_names, as: 'allowAllPackageNames' collection :allowed_package_names, as: 'allowedPackageNames' end end class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :annotation, as: 'annotation' property :hashed_account_id, :base64 => true, as: 'hashedAccountId' collection :reasons, as: 'reasons' end end class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation end end class GoogleCloudRecaptchaenterpriseV1Assessment # @private class Representation < Google::Apis::Core::JsonRepresentation property :account_defender_assessment, as: 'accountDefenderAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment::Representation property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation property :name, as: 'name' property :risk_analysis, as: 'riskAnalysis', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis::Representation property :token_properties, as: 'tokenProperties', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties::Representation end end class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics # @private class Representation < Google::Apis::Core::JsonRepresentation property :failed_count, :numeric_string => true, as: 'failedCount' property :nocaptcha_count, :numeric_string => true, as: 'nocaptchaCount' property :pageload_count, :numeric_string => true, as: 'pageloadCount' property :passed_count, :numeric_string => true, as: 'passedCount' end end class GoogleCloudRecaptchaenterpriseV1Event # @private class Representation < Google::Apis::Core::JsonRepresentation property :expected_action, as: 'expectedAction' property :hashed_account_id, :base64 => true, as: 'hashedAccountId' property :site_key, as: 'siteKey' property :token, as: 'token' property :user_agent, as: 'userAgent' property :user_ip_address, as: 'userIpAddress' end end class GoogleCloudRecaptchaenterpriseV1IosKeySettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :allow_all_bundle_ids, as: 'allowAllBundleIds' collection :allowed_bundle_ids, as: 'allowedBundleIds' end end class GoogleCloudRecaptchaenterpriseV1Key # @private class Representation < Google::Apis::Core::JsonRepresentation property :android_settings, as: 'androidSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings::Representation property :create_time, as: 'createTime' property :display_name, as: 'displayName' property :ios_settings, as: 'iosSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings::Representation hash :labels, as: 'labels' property :name, as: 'name' property :testing_options, as: 'testingOptions', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions::Representation property :waf_settings, as: 'wafSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings::Representation property :web_settings, as: 'webSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings::Representation end end class GoogleCloudRecaptchaenterpriseV1ListKeysResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :keys, as: 'keys', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Key, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Key::Representation property :next_page_token, as: 'nextPageToken' end end class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation end end class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' collection :related_account_groups, as: 'relatedAccountGroups', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup::Representation end end class GoogleCloudRecaptchaenterpriseV1Metrics # @private class Representation < Google::Apis::Core::JsonRepresentation collection :challenge_metrics, as: 'challengeMetrics', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeMetrics, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeMetrics::Representation property :name, as: 'name' collection :score_metrics, as: 'scoreMetrics', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreMetrics, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreMetrics::Representation property :start_time, as: 'startTime' end end class GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' end end class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership # @private class Representation < Google::Apis::Core::JsonRepresentation property :hashed_account_id, :base64 => true, as: 'hashedAccountId' property :name, as: 'name' end end class GoogleCloudRecaptchaenterpriseV1RiskAnalysis # @private class Representation < Google::Apis::Core::JsonRepresentation collection :reasons, as: 'reasons' property :score, as: 'score' end end class GoogleCloudRecaptchaenterpriseV1ScoreDistribution # @private class Representation < Google::Apis::Core::JsonRepresentation hash :score_buckets, as: 'scoreBuckets' end end class GoogleCloudRecaptchaenterpriseV1ScoreMetrics # @private class Representation < Google::Apis::Core::JsonRepresentation hash :action_metrics, as: 'actionMetrics', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution::Representation property :overall_metrics, as: 'overallMetrics', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ScoreDistribution::Representation end end class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :hashed_account_id, :base64 => true, as: 'hashedAccountId' property :page_size, as: 'pageSize' property :page_token, as: 'pageToken' end end class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation end end class GoogleCloudRecaptchaenterpriseV1TestingOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :testing_challenge, as: 'testingChallenge' property :testing_score, as: 'testingScore' end end class GoogleCloudRecaptchaenterpriseV1TokenProperties # @private class Representation < Google::Apis::Core::JsonRepresentation property :action, as: 'action' property :create_time, as: 'createTime' property :hostname, as: 'hostname' property :invalid_reason, as: 'invalidReason' property :valid, as: 'valid' end end class GoogleCloudRecaptchaenterpriseV1WafSettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :waf_feature, as: 'wafFeature' property :waf_service, as: 'wafService' end end class GoogleCloudRecaptchaenterpriseV1WebKeySettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :allow_all_domains, as: 'allowAllDomains' property :allow_amp_traffic, as: 'allowAmpTraffic' collection :allowed_domains, as: 'allowedDomains' property :challenge_security_preference, as: 'challengeSecurityPreference' property :integration_type, as: 'integrationType' end end class GoogleProtobufEmpty # @private class Representation < Google::Apis::Core::JsonRepresentation end end end end end