2021-01-01 03:01:13 +00:00
|
|
|
# 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 SafebrowsingV4
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleProtobufEmpty
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4Checksum
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ClientInfo
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindFullHashesRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindFullHashesResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ListThreatListsResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4RawHashes
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4RawIndices
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4RiceDeltaEncoding
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntry
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntryMetadata
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntrySet
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatHit
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatHitThreatSource
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatHitUserInfo
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatInfo
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatListDescriptor
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatMatch
|
2021-01-01 03:01:13 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleProtobufEmpty
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4Checksum
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :sha256, :base64 => true, as: 'sha256'
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ClientInfo
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :client_id, as: 'clientId'
|
|
|
|
property :client_version, as: 'clientVersion'
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :client, as: 'client', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :list_update_requests, as: 'listUpdateRequests', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :constraints, as: 'constraints', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :platform_type, as: 'platformType'
|
|
|
|
property :state, :base64 => true, as: 'state'
|
|
|
|
property :threat_entry_type, as: 'threatEntryType'
|
|
|
|
property :threat_type, as: 'threatType'
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :device_location, as: 'deviceLocation'
|
|
|
|
property :language, as: 'language'
|
|
|
|
property :max_database_entries, as: 'maxDatabaseEntries'
|
|
|
|
property :max_update_entries, as: 'maxUpdateEntries'
|
|
|
|
property :region, as: 'region'
|
|
|
|
collection :supported_compressions, as: 'supportedCompressions'
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :list_update_responses, as: 'listUpdateResponses', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
property :minimum_wait_duration, as: 'minimumWaitDuration'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :additions, as: 'additions', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet::Representation
|
|
|
|
|
|
|
|
property :checksum, as: 'checksum', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :new_client_state, :base64 => true, as: 'newClientState'
|
|
|
|
property :platform_type, as: 'platformType'
|
|
|
|
collection :removals, as: 'removals', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :response_type, as: 'responseType'
|
|
|
|
property :threat_entry_type, as: 'threatEntryType'
|
|
|
|
property :threat_type, as: 'threatType'
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindFullHashesRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :api_client, as: 'apiClient', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation
|
|
|
|
|
|
|
|
property :client, as: 'client', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation
|
|
|
|
|
|
|
|
collection :client_states, as: 'clientStates'
|
|
|
|
property :threat_info, as: 'threatInfo', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindFullHashesResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :matches, as: 'matches', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :minimum_wait_duration, as: 'minimumWaitDuration'
|
|
|
|
property :negative_cache_duration, as: 'negativeCacheDuration'
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :client, as: 'client', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation
|
|
|
|
|
|
|
|
property :threat_info, as: 'threatInfo', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :matches, as: 'matches', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ListThreatListsResponse
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :threat_lists, as: 'threatLists', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor::Representation
|
|
|
|
|
2021-01-01 03:01:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4RawHashes
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :prefix_size, as: 'prefixSize'
|
|
|
|
property :raw_hashes, :base64 => true, as: 'rawHashes'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4RawIndices
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :indices, as: 'indices'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4RiceDeltaEncoding
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :encoded_data, :base64 => true, as: 'encodedData'
|
|
|
|
property :first_value, :numeric_string => true, as: 'firstValue'
|
|
|
|
property :num_entries, as: 'numEntries'
|
|
|
|
property :rice_parameter, as: 'riceParameter'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntry
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :digest, :base64 => true, as: 'digest'
|
|
|
|
property :hash_prop, :base64 => true, as: 'hash'
|
|
|
|
property :url, as: 'url'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntryMetadata
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :entries, as: 'entries', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :key, :base64 => true, as: 'key'
|
|
|
|
property :value, :base64 => true, as: 'value'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GoogleSecuritySafebrowsingV4ThreatEntrySet
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :compression_type, as: 'compressionType'
|
2021-01-07 22:57:10 +00:00
|
|
|
property :raw_hashes, as: 'rawHashes', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :raw_indices, as: 'rawIndices', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :rice_hashes, as: 'riceHashes', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :rice_indices, as: 'riceIndices', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatHit
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2021-01-07 22:57:10 +00:00
|
|
|
property :client_info, as: 'clientInfo', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :entry, as: 'entry', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
property :platform_type, as: 'platformType'
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :resources, as: 'resources', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
property :threat_type, as: 'threatType'
|
2021-01-07 22:57:10 +00:00
|
|
|
property :user_info, as: 'userInfo', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatHitThreatSource
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :referrer, as: 'referrer'
|
|
|
|
property :remote_ip, as: 'remoteIp'
|
|
|
|
property :type, as: 'type'
|
|
|
|
property :url, as: 'url'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GoogleSecuritySafebrowsingV4ThreatHitUserInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :region_code, as: 'regionCode'
|
|
|
|
property :user_id, :base64 => true, as: 'userId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GoogleSecuritySafebrowsingV4ThreatInfo
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :platform_types, as: 'platformTypes'
|
2021-01-07 22:57:10 +00:00
|
|
|
collection :threat_entries, as: 'threatEntries', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
collection :threat_entry_types, as: 'threatEntryTypes'
|
|
|
|
collection :threat_types, as: 'threatTypes'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatListDescriptor
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :platform_type, as: 'platformType'
|
|
|
|
property :threat_entry_type, as: 'threatEntryType'
|
|
|
|
property :threat_type, as: 'threatType'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
class GoogleSecuritySafebrowsingV4ThreatMatch
|
2021-01-01 03:01:13 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :cache_duration, as: 'cacheDuration'
|
|
|
|
property :platform_type, as: 'platformType'
|
2021-01-07 22:57:10 +00:00
|
|
|
property :threat, as: 'threat', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
2021-01-07 22:57:10 +00:00
|
|
|
property :threat_entry_metadata, as: 'threatEntryMetadata', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata::Representation
|
2021-01-01 03:01:13 +00:00
|
|
|
|
|
|
|
property :threat_entry_type, as: 'threatEntryType'
|
|
|
|
property :threat_type, as: 'threatType'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|