diff --git a/api_names_out.yaml b/api_names_out.yaml index 69c100ec1..fedb0f9e5 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -133603,6 +133603,129 @@ "/safebrowsing:v4/FindThreatMatchesResponse": find_threat_matches_response "/safebrowsing:v4/FindThreatMatchesResponse/matches": matches "/safebrowsing:v4/FindThreatMatchesResponse/matches/match": match +"/safebrowsing:v4/GoogleProtobufEmpty": google_protobuf_empty +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4Checksum": google_security_safebrowsing_v4_checksum +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4Checksum/sha256": sha256 +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ClientInfo": google_security_safebrowsing_v4_client_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ClientInfo/clientId": client_id +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ClientInfo/clientVersion": client_version +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest": google_security_safebrowsing_v4_fetch_threat_list_updates_request +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest/client": client +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest/listUpdateRequests": list_update_requests +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest/listUpdateRequests/list_update_request": list_update_request +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest": google_security_safebrowsing_v4_fetch_threat_list_updates_request_list_update_request +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest/constraints": constraints +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest/platformType": platform_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest/state": state +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest/threatEntryType": threat_entry_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest/threatType": threat_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints": google_security_safebrowsing_v4_fetch_threat_list_updates_request_list_update_request_constraints +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/deviceLocation": device_location +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/language": language +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/maxDatabaseEntries": max_database_entries +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/maxUpdateEntries": max_update_entries +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/region": region +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/supportedCompressions": supported_compressions +? "/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints/supportedCompressions/supported_compression" +: supported_compression +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse": google_security_safebrowsing_v4_fetch_threat_list_updates_response +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse/listUpdateResponses": list_update_responses +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse/listUpdateResponses/list_update_response": list_update_response +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse/minimumWaitDuration": minimum_wait_duration +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse": google_security_safebrowsing_v4_fetch_threat_list_updates_response_list_update_response +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/additions": additions +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/additions/addition": addition +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/checksum": checksum +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/newClientState": new_client_state +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/platformType": platform_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/removals": removals +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/removals/removal": removal +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/responseType": response_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/threatEntryType": threat_entry_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse/threatType": threat_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesRequest": google_security_safebrowsing_v4_find_full_hashes_request +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesRequest/apiClient": api_client +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesRequest/client": client +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesRequest/clientStates": client_states +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesRequest/clientStates/client_state": client_state +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesRequest/threatInfo": threat_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesResponse": google_security_safebrowsing_v4_find_full_hashes_response +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesResponse/matches": matches +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesResponse/matches/match": match +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesResponse/minimumWaitDuration": minimum_wait_duration +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindFullHashesResponse/negativeCacheDuration": negative_cache_duration +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindThreatMatchesRequest": google_security_safebrowsing_v4_find_threat_matches_request +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindThreatMatchesRequest/client": client +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindThreatMatchesRequest/threatInfo": threat_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindThreatMatchesResponse": google_security_safebrowsing_v4_find_threat_matches_response +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindThreatMatchesResponse/matches": matches +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4FindThreatMatchesResponse/matches/match": match +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ListThreatListsResponse": google_security_safebrowsing_v4_list_threat_lists_response +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ListThreatListsResponse/threatLists": threat_lists +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ListThreatListsResponse/threatLists/threat_list": threat_list +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RawHashes": google_security_safebrowsing_v4_raw_hashes +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RawHashes/prefixSize": prefix_size +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RawHashes/rawHashes": raw_hashes +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RawIndices": google_security_safebrowsing_v4_raw_indices +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RawIndices/indices": indices +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RawIndices/indices/index": index +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RiceDeltaEncoding": google_security_safebrowsing_v4_rice_delta_encoding +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RiceDeltaEncoding/encodedData": encoded_data +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RiceDeltaEncoding/firstValue": first_value +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RiceDeltaEncoding/numEntries": num_entries +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4RiceDeltaEncoding/riceParameter": rice_parameter +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntry": google_security_safebrowsing_v4_threat_entry +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntry/digest": digest +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntry/hash": hash_prop +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntry/url": url +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntryMetadata": google_security_safebrowsing_v4_threat_entry_metadata +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntryMetadata/entries": entries +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntryMetadata/entries/entry": entry +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry": google_security_safebrowsing_v4_threat_entry_metadata_metadata_entry +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry/key": key +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry/value": value +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntrySet": google_security_safebrowsing_v4_threat_entry_set +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntrySet/compressionType": compression_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntrySet/rawHashes": raw_hashes +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntrySet/rawIndices": raw_indices +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntrySet/riceHashes": rice_hashes +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatEntrySet/riceIndices": rice_indices +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit": google_security_safebrowsing_v4_threat_hit +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/clientInfo": client_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/entry": entry +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/platformType": platform_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/resources": resources +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/resources/resource": resource +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/threatType": threat_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHit/userInfo": user_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitThreatSource": google_security_safebrowsing_v4_threat_hit_threat_source +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitThreatSource/referrer": referrer +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitThreatSource/remoteIp": remote_ip +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitThreatSource/type": type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitThreatSource/url": url +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitUserInfo": google_security_safebrowsing_v4_threat_hit_user_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitUserInfo/regionCode": region_code +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatHitUserInfo/userId": user_id +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo": google_security_safebrowsing_v4_threat_info +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/platformTypes": platform_types +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/platformTypes/platform_type": platform_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/threatEntries": threat_entries +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/threatEntries/threat_entry": threat_entry +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/threatEntryTypes": threat_entry_types +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/threatEntryTypes/threat_entry_type": threat_entry_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/threatTypes": threat_types +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatInfo/threatTypes/threat_type": threat_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatListDescriptor": google_security_safebrowsing_v4_threat_list_descriptor +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatListDescriptor/platformType": platform_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatListDescriptor/threatEntryType": threat_entry_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatListDescriptor/threatType": threat_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch": google_security_safebrowsing_v4_threat_match +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch/cacheDuration": cache_duration +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch/platformType": platform_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch/threat": threat +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch/threatEntryMetadata": threat_entry_metadata +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch/threatEntryType": threat_entry_type +"/safebrowsing:v4/GoogleSecuritySafebrowsingV4ThreatMatch/threatType": threat_type "/safebrowsing:v4/ListThreatListsResponse": list_threat_lists_response "/safebrowsing:v4/ListThreatListsResponse/threatLists": threat_lists "/safebrowsing:v4/ListThreatListsResponse/threatLists/threat_list": threat_list diff --git a/generated/google/apis/safebrowsing_v4.rb b/generated/google/apis/safebrowsing_v4.rb index f32caaee5..ac4122978 100644 --- a/generated/google/apis/safebrowsing_v4.rb +++ b/generated/google/apis/safebrowsing_v4.rb @@ -29,7 +29,7 @@ module Google # @see https://developers.google.com/safe-browsing/ module SafebrowsingV4 VERSION = 'V4' - REVISION = '20201017' + REVISION = '20201204' end end end diff --git a/generated/google/apis/safebrowsing_v4/classes.rb b/generated/google/apis/safebrowsing_v4/classes.rb index 85e59b199..314af7d30 100644 --- a/generated/google/apis/safebrowsing_v4/classes.rb +++ b/generated/google/apis/safebrowsing_v4/classes.rb @@ -22,8 +22,25 @@ module Google module Apis module SafebrowsingV4 + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # The expected state of a client's local database. - class Checksum + class GoogleSecuritySafebrowsingV4Checksum include Google::Apis::Core::Hashable # The SHA256 hash of the client state; that is, of the sorted list of all hashes @@ -44,7 +61,7 @@ module Google end # The client metadata associated with Safe Browsing API requests. - class ClientInfo + class GoogleSecuritySafebrowsingV4ClientInfo include Google::Apis::Core::Hashable # A client ID that (hopefully) uniquely identifies the client implementation of @@ -69,8 +86,79 @@ module Google end end + # Describes a Safe Browsing API update request. Clients can request updates for + # multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5 + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest + include Google::Apis::Core::Hashable + + # The client metadata associated with Safe Browsing API requests. + # Corresponds to the JSON property `client` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo] + attr_accessor :client + + # The requested threat list updates. + # Corresponds to the JSON property `listUpdateRequests` + # @return [Array] + attr_accessor :list_update_requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client = args[:client] if args.key?(:client) + @list_update_requests = args[:list_update_requests] if args.key?(:list_update_requests) + end + end + + # A single list update request. + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest + include Google::Apis::Core::Hashable + + # The constraints for this update. + # Corresponds to the JSON property `constraints` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints] + attr_accessor :constraints + + # The type of platform at risk by entries present in the list. + # Corresponds to the JSON property `platformType` + # @return [String] + attr_accessor :platform_type + + # The current state of the client for the requested list (the encrypted client + # state that was received from the last successful list update). + # Corresponds to the JSON property `state` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :state + + # The types of entries present in the list. + # Corresponds to the JSON property `threatEntryType` + # @return [String] + attr_accessor :threat_entry_type + + # The type of threat posed by entries present in the list. + # Corresponds to the JSON property `threatType` + # @return [String] + attr_accessor :threat_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @constraints = args[:constraints] if args.key?(:constraints) + @platform_type = args[:platform_type] if args.key?(:platform_type) + @state = args[:state] if args.key?(:state) + @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) + @threat_type = args[:threat_type] if args.key?(:threat_type) + end + end + # The constraints for this update. - class Constraints + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints include Google::Apis::Core::Hashable # A client's physical location, expressed as a ISO 31166-1 alpha-2 region code. @@ -124,56 +212,13 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: service Foo ` rpc Bar(google. - # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for - # `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Describes a Safe Browsing API update request. Clients can request updates for - # multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5 - class FetchThreatListUpdatesRequest - include Google::Apis::Core::Hashable - - # The client metadata associated with Safe Browsing API requests. - # Corresponds to the JSON property `client` - # @return [Google::Apis::SafebrowsingV4::ClientInfo] - attr_accessor :client - - # The requested threat list updates. - # Corresponds to the JSON property `listUpdateRequests` - # @return [Array] - attr_accessor :list_update_requests - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client = args[:client] if args.key?(:client) - @list_update_requests = args[:list_update_requests] if args.key?(:list_update_requests) - end - end - # - class FetchThreatListUpdatesResponse + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse include Google::Apis::Core::Hashable # The list updates requested by the clients. # Corresponds to the JSON property `listUpdateResponses` - # @return [Array] + # @return [Array] attr_accessor :list_update_responses # The minimum duration the client must wait before issuing any update request. @@ -193,200 +238,19 @@ module Google end end - # Request to return full hashes matched by the provided hash prefixes. - class FindFullHashesRequest - include Google::Apis::Core::Hashable - - # The client metadata associated with Safe Browsing API requests. - # Corresponds to the JSON property `apiClient` - # @return [Google::Apis::SafebrowsingV4::ClientInfo] - attr_accessor :api_client - - # The client metadata associated with Safe Browsing API requests. - # Corresponds to the JSON property `client` - # @return [Google::Apis::SafebrowsingV4::ClientInfo] - attr_accessor :client - - # The current client states for each of the client's local threat lists. - # Corresponds to the JSON property `clientStates` - # @return [Array] - attr_accessor :client_states - - # The information regarding one or more threats that a client submits when - # checking for matches in threat lists. - # Corresponds to the JSON property `threatInfo` - # @return [Google::Apis::SafebrowsingV4::ThreatInfo] - attr_accessor :threat_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_client = args[:api_client] if args.key?(:api_client) - @client = args[:client] if args.key?(:client) - @client_states = args[:client_states] if args.key?(:client_states) - @threat_info = args[:threat_info] if args.key?(:threat_info) - end - end - - # - class FindFullHashesResponse - include Google::Apis::Core::Hashable - - # The full hashes that matched the requested prefixes. - # Corresponds to the JSON property `matches` - # @return [Array] - attr_accessor :matches - - # The minimum duration the client must wait before issuing any find hashes - # request. If this field is not set, clients can issue a request as soon as they - # want. - # Corresponds to the JSON property `minimumWaitDuration` - # @return [String] - attr_accessor :minimum_wait_duration - - # For requested entities that did not match the threat list, how long to cache - # the response. - # Corresponds to the JSON property `negativeCacheDuration` - # @return [String] - attr_accessor :negative_cache_duration - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @matches = args[:matches] if args.key?(:matches) - @minimum_wait_duration = args[:minimum_wait_duration] if args.key?(:minimum_wait_duration) - @negative_cache_duration = args[:negative_cache_duration] if args.key?(:negative_cache_duration) - end - end - - # Request to check entries against lists. - class FindThreatMatchesRequest - include Google::Apis::Core::Hashable - - # The client metadata associated with Safe Browsing API requests. - # Corresponds to the JSON property `client` - # @return [Google::Apis::SafebrowsingV4::ClientInfo] - attr_accessor :client - - # The information regarding one or more threats that a client submits when - # checking for matches in threat lists. - # Corresponds to the JSON property `threatInfo` - # @return [Google::Apis::SafebrowsingV4::ThreatInfo] - attr_accessor :threat_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client = args[:client] if args.key?(:client) - @threat_info = args[:threat_info] if args.key?(:threat_info) - end - end - - # - class FindThreatMatchesResponse - include Google::Apis::Core::Hashable - - # The threat list matches. - # Corresponds to the JSON property `matches` - # @return [Array] - attr_accessor :matches - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @matches = args[:matches] if args.key?(:matches) - end - end - - # - class ListThreatListsResponse - include Google::Apis::Core::Hashable - - # The lists available for download by the client. - # Corresponds to the JSON property `threatLists` - # @return [Array] - attr_accessor :threat_lists - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @threat_lists = args[:threat_lists] if args.key?(:threat_lists) - end - end - - # A single list update request. - class ListUpdateRequest - include Google::Apis::Core::Hashable - - # The constraints for this update. - # Corresponds to the JSON property `constraints` - # @return [Google::Apis::SafebrowsingV4::Constraints] - attr_accessor :constraints - - # The type of platform at risk by entries present in the list. - # Corresponds to the JSON property `platformType` - # @return [String] - attr_accessor :platform_type - - # The current state of the client for the requested list (the encrypted client - # state that was received from the last successful list update). - # Corresponds to the JSON property `state` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :state - - # The types of entries present in the list. - # Corresponds to the JSON property `threatEntryType` - # @return [String] - attr_accessor :threat_entry_type - - # The type of threat posed by entries present in the list. - # Corresponds to the JSON property `threatType` - # @return [String] - attr_accessor :threat_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @constraints = args[:constraints] if args.key?(:constraints) - @platform_type = args[:platform_type] if args.key?(:platform_type) - @state = args[:state] if args.key?(:state) - @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) - @threat_type = args[:threat_type] if args.key?(:threat_type) - end - end - # An update to an individual list. - class ListUpdateResponse + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse include Google::Apis::Core::Hashable # A set of entries to add to a local threat type's list. Repeated to allow for a # combination of compressed and raw data to be sent in a single response. # Corresponds to the JSON property `additions` - # @return [Array] + # @return [Array] attr_accessor :additions # The expected state of a client's local database. # Corresponds to the JSON property `checksum` - # @return [Google::Apis::SafebrowsingV4::Checksum] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum] attr_accessor :checksum # The new client state, in encrypted format. Opaque to clients. @@ -403,7 +267,7 @@ module Google # A set of entries to remove from a local threat type's list. In practice, this # field is empty or contains exactly one ThreatEntrySet. # Corresponds to the JSON property `removals` - # @return [Array] + # @return [Array] attr_accessor :removals # The type of response. This may indicate that an action is required by the @@ -439,21 +303,30 @@ module Google end end - # A single metadata entry. - class MetadataEntry + # Request to return full hashes matched by the provided hash prefixes. + class GoogleSecuritySafebrowsingV4FindFullHashesRequest include Google::Apis::Core::Hashable - # The metadata entry key. For JSON requests, the key is base64-encoded. - # Corresponds to the JSON property `key` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :key + # The client metadata associated with Safe Browsing API requests. + # Corresponds to the JSON property `apiClient` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo] + attr_accessor :api_client - # The metadata entry value. For JSON requests, the value is base64-encoded. - # Corresponds to the JSON property `value` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :value + # The client metadata associated with Safe Browsing API requests. + # Corresponds to the JSON property `client` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo] + attr_accessor :client + + # The current client states for each of the client's local threat lists. + # Corresponds to the JSON property `clientStates` + # @return [Array] + attr_accessor :client_states + + # The information regarding one or more threats that a client submits when + # checking for matches in threat lists. + # Corresponds to the JSON property `threatInfo` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo] + attr_accessor :threat_info def initialize(**args) update!(**args) @@ -461,8 +334,108 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) + @api_client = args[:api_client] if args.key?(:api_client) + @client = args[:client] if args.key?(:client) + @client_states = args[:client_states] if args.key?(:client_states) + @threat_info = args[:threat_info] if args.key?(:threat_info) + end + end + + # + class GoogleSecuritySafebrowsingV4FindFullHashesResponse + include Google::Apis::Core::Hashable + + # The full hashes that matched the requested prefixes. + # Corresponds to the JSON property `matches` + # @return [Array] + attr_accessor :matches + + # The minimum duration the client must wait before issuing any find hashes + # request. If this field is not set, clients can issue a request as soon as they + # want. + # Corresponds to the JSON property `minimumWaitDuration` + # @return [String] + attr_accessor :minimum_wait_duration + + # For requested entities that did not match the threat list, how long to cache + # the response. + # Corresponds to the JSON property `negativeCacheDuration` + # @return [String] + attr_accessor :negative_cache_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @matches = args[:matches] if args.key?(:matches) + @minimum_wait_duration = args[:minimum_wait_duration] if args.key?(:minimum_wait_duration) + @negative_cache_duration = args[:negative_cache_duration] if args.key?(:negative_cache_duration) + end + end + + # Request to check entries against lists. + class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest + include Google::Apis::Core::Hashable + + # The client metadata associated with Safe Browsing API requests. + # Corresponds to the JSON property `client` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo] + attr_accessor :client + + # The information regarding one or more threats that a client submits when + # checking for matches in threat lists. + # Corresponds to the JSON property `threatInfo` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatInfo] + attr_accessor :threat_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client = args[:client] if args.key?(:client) + @threat_info = args[:threat_info] if args.key?(:threat_info) + end + end + + # + class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse + include Google::Apis::Core::Hashable + + # The threat list matches. + # Corresponds to the JSON property `matches` + # @return [Array] + attr_accessor :matches + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @matches = args[:matches] if args.key?(:matches) + end + end + + # + class GoogleSecuritySafebrowsingV4ListThreatListsResponse + include Google::Apis::Core::Hashable + + # The lists available for download by the client. + # Corresponds to the JSON property `threatLists` + # @return [Array] + attr_accessor :threat_lists + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @threat_lists = args[:threat_lists] if args.key?(:threat_lists) end end @@ -472,7 +445,7 @@ module Google # popular URL. Used for sending ThreatEntrySet to clients that do not support # compression, or when sending non-4-byte hashes to clients that do support # compression. - class RawHashes + class GoogleSecuritySafebrowsingV4RawHashes include Google::Apis::Core::Hashable # The number of bytes for each prefix encoded below. This field can be anywhere @@ -500,7 +473,7 @@ module Google end # A set of raw indices to remove from a local list. - class RawIndices + class GoogleSecuritySafebrowsingV4RawIndices include Google::Apis::Core::Hashable # The indices to remove from a lexicographically-sorted local list. @@ -520,7 +493,7 @@ module Google # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # compressed removal indices. - class RiceDeltaEncoding + class GoogleSecuritySafebrowsingV4RiceDeltaEncoding include Google::Apis::Core::Hashable # The encoded deltas that are encoded using the Golomb-Rice coder. @@ -564,7 +537,7 @@ module Google # An individual threat; for example, a malicious URL or its hash representation. # Only one of these fields should be set. - class ThreatEntry + class GoogleSecuritySafebrowsingV4ThreatEntry include Google::Apis::Core::Hashable # The digest of an executable in SHA256 format. The API supports both binary and @@ -600,12 +573,12 @@ module Google # The metadata associated with a specific threat entry. The client is expected # to know the metadata key/value pairs associated with each threat type. - class ThreatEntryMetadata + class GoogleSecuritySafebrowsingV4ThreatEntryMetadata include Google::Apis::Core::Hashable # The metadata entries. # Corresponds to the JSON property `entries` - # @return [Array] + # @return [Array] attr_accessor :entries def initialize(**args) @@ -618,9 +591,36 @@ module Google end end + # A single metadata entry. + class GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry + include Google::Apis::Core::Hashable + + # The metadata entry key. For JSON requests, the key is base64-encoded. + # Corresponds to the JSON property `key` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :key + + # The metadata entry value. For JSON requests, the value is base64-encoded. + # Corresponds to the JSON property `value` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + # A set of threats that should be added or removed from a client's local # database. - class ThreatEntrySet + class GoogleSecuritySafebrowsingV4ThreatEntrySet include Google::Apis::Core::Hashable # The compression type for the entries in this set. @@ -635,24 +635,24 @@ module Google # compression, or when sending non-4-byte hashes to clients that do support # compression. # Corresponds to the JSON property `rawHashes` - # @return [Google::Apis::SafebrowsingV4::RawHashes] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes] attr_accessor :raw_hashes # A set of raw indices to remove from a local list. # Corresponds to the JSON property `rawIndices` - # @return [Google::Apis::SafebrowsingV4::RawIndices] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices] attr_accessor :raw_indices # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # compressed removal indices. # Corresponds to the JSON property `riceHashes` - # @return [Google::Apis::SafebrowsingV4::RiceDeltaEncoding] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding] attr_accessor :rice_hashes # The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or # compressed removal indices. # Corresponds to the JSON property `riceIndices` - # @return [Google::Apis::SafebrowsingV4::RiceDeltaEncoding] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding] attr_accessor :rice_indices def initialize(**args) @@ -670,18 +670,18 @@ module Google end # - class ThreatHit + class GoogleSecuritySafebrowsingV4ThreatHit include Google::Apis::Core::Hashable # The client metadata associated with Safe Browsing API requests. # Corresponds to the JSON property `clientInfo` - # @return [Google::Apis::SafebrowsingV4::ClientInfo] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo] attr_accessor :client_info # An individual threat; for example, a malicious URL or its hash representation. # Only one of these fields should be set. # Corresponds to the JSON property `entry` - # @return [Google::Apis::SafebrowsingV4::ThreatEntry] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry] attr_accessor :entry # The platform type reported. @@ -691,7 +691,7 @@ module Google # The resources related to the threat hit. # Corresponds to the JSON property `resources` - # @return [Array] + # @return [Array] attr_accessor :resources # The threat type reported. @@ -701,7 +701,7 @@ module Google # Details about the user that encountered the threat. # Corresponds to the JSON property `userInfo` - # @return [Google::Apis::SafebrowsingV4::UserInfo] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo] attr_accessor :user_info def initialize(**args) @@ -719,131 +719,8 @@ module Google end end - # The information regarding one or more threats that a client submits when - # checking for matches in threat lists. - class ThreatInfo - include Google::Apis::Core::Hashable - - # The platform types to be checked. - # Corresponds to the JSON property `platformTypes` - # @return [Array] - attr_accessor :platform_types - - # The threat entries to be checked. - # Corresponds to the JSON property `threatEntries` - # @return [Array] - attr_accessor :threat_entries - - # The entry types to be checked. - # Corresponds to the JSON property `threatEntryTypes` - # @return [Array] - attr_accessor :threat_entry_types - - # The threat types to be checked. - # Corresponds to the JSON property `threatTypes` - # @return [Array] - attr_accessor :threat_types - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @platform_types = args[:platform_types] if args.key?(:platform_types) - @threat_entries = args[:threat_entries] if args.key?(:threat_entries) - @threat_entry_types = args[:threat_entry_types] if args.key?(:threat_entry_types) - @threat_types = args[:threat_types] if args.key?(:threat_types) - end - end - - # Describes an individual threat list. A list is defined by three parameters: - # the type of threat posed, the type of platform targeted by the threat, and the - # type of entries in the list. - class ThreatListDescriptor - include Google::Apis::Core::Hashable - - # The platform type targeted by the list's entries. - # Corresponds to the JSON property `platformType` - # @return [String] - attr_accessor :platform_type - - # The entry types contained in the list. - # Corresponds to the JSON property `threatEntryType` - # @return [String] - attr_accessor :threat_entry_type - - # The threat type posed by the list's entries. - # Corresponds to the JSON property `threatType` - # @return [String] - attr_accessor :threat_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @platform_type = args[:platform_type] if args.key?(:platform_type) - @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) - @threat_type = args[:threat_type] if args.key?(:threat_type) - end - end - - # A match when checking a threat entry in the Safe Browsing threat lists. - class ThreatMatch - include Google::Apis::Core::Hashable - - # The cache lifetime for the returned match. Clients must not cache this - # response for more than this duration to avoid false positives. - # Corresponds to the JSON property `cacheDuration` - # @return [String] - attr_accessor :cache_duration - - # The platform type matching this threat. - # Corresponds to the JSON property `platformType` - # @return [String] - attr_accessor :platform_type - - # An individual threat; for example, a malicious URL or its hash representation. - # Only one of these fields should be set. - # Corresponds to the JSON property `threat` - # @return [Google::Apis::SafebrowsingV4::ThreatEntry] - attr_accessor :threat - - # The metadata associated with a specific threat entry. The client is expected - # to know the metadata key/value pairs associated with each threat type. - # Corresponds to the JSON property `threatEntryMetadata` - # @return [Google::Apis::SafebrowsingV4::ThreatEntryMetadata] - attr_accessor :threat_entry_metadata - - # The threat entry type matching this threat. - # Corresponds to the JSON property `threatEntryType` - # @return [String] - attr_accessor :threat_entry_type - - # The threat type matching this threat. - # Corresponds to the JSON property `threatType` - # @return [String] - attr_accessor :threat_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cache_duration = args[:cache_duration] if args.key?(:cache_duration) - @platform_type = args[:platform_type] if args.key?(:platform_type) - @threat = args[:threat] if args.key?(:threat) - @threat_entry_metadata = args[:threat_entry_metadata] if args.key?(:threat_entry_metadata) - @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) - @threat_type = args[:threat_type] if args.key?(:threat_type) - end - end - # A single resource related to a threat hit. - class ThreatSource + class GoogleSecuritySafebrowsingV4ThreatHitThreatSource include Google::Apis::Core::Hashable # Referrer of the resource. Only set if the referrer is available. @@ -880,7 +757,7 @@ module Google end # Details about the user that encountered the threat. - class UserInfo + class GoogleSecuritySafebrowsingV4ThreatHitUserInfo include Google::Apis::Core::Hashable # The UN M.49 region code associated with the user's location. @@ -904,6 +781,129 @@ module Google @user_id = args[:user_id] if args.key?(:user_id) end end + + # The information regarding one or more threats that a client submits when + # checking for matches in threat lists. + class GoogleSecuritySafebrowsingV4ThreatInfo + include Google::Apis::Core::Hashable + + # The platform types to be checked. + # Corresponds to the JSON property `platformTypes` + # @return [Array] + attr_accessor :platform_types + + # The threat entries to be checked. + # Corresponds to the JSON property `threatEntries` + # @return [Array] + attr_accessor :threat_entries + + # The entry types to be checked. + # Corresponds to the JSON property `threatEntryTypes` + # @return [Array] + attr_accessor :threat_entry_types + + # The threat types to be checked. + # Corresponds to the JSON property `threatTypes` + # @return [Array] + attr_accessor :threat_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @platform_types = args[:platform_types] if args.key?(:platform_types) + @threat_entries = args[:threat_entries] if args.key?(:threat_entries) + @threat_entry_types = args[:threat_entry_types] if args.key?(:threat_entry_types) + @threat_types = args[:threat_types] if args.key?(:threat_types) + end + end + + # Describes an individual threat list. A list is defined by three parameters: + # the type of threat posed, the type of platform targeted by the threat, and the + # type of entries in the list. + class GoogleSecuritySafebrowsingV4ThreatListDescriptor + include Google::Apis::Core::Hashable + + # The platform type targeted by the list's entries. + # Corresponds to the JSON property `platformType` + # @return [String] + attr_accessor :platform_type + + # The entry types contained in the list. + # Corresponds to the JSON property `threatEntryType` + # @return [String] + attr_accessor :threat_entry_type + + # The threat type posed by the list's entries. + # Corresponds to the JSON property `threatType` + # @return [String] + attr_accessor :threat_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @platform_type = args[:platform_type] if args.key?(:platform_type) + @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) + @threat_type = args[:threat_type] if args.key?(:threat_type) + end + end + + # A match when checking a threat entry in the Safe Browsing threat lists. + class GoogleSecuritySafebrowsingV4ThreatMatch + include Google::Apis::Core::Hashable + + # The cache lifetime for the returned match. Clients must not cache this + # response for more than this duration to avoid false positives. + # Corresponds to the JSON property `cacheDuration` + # @return [String] + attr_accessor :cache_duration + + # The platform type matching this threat. + # Corresponds to the JSON property `platformType` + # @return [String] + attr_accessor :platform_type + + # An individual threat; for example, a malicious URL or its hash representation. + # Only one of these fields should be set. + # Corresponds to the JSON property `threat` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry] + attr_accessor :threat + + # The metadata associated with a specific threat entry. The client is expected + # to know the metadata key/value pairs associated with each threat type. + # Corresponds to the JSON property `threatEntryMetadata` + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata] + attr_accessor :threat_entry_metadata + + # The threat entry type matching this threat. + # Corresponds to the JSON property `threatEntryType` + # @return [String] + attr_accessor :threat_entry_type + + # The threat type matching this threat. + # Corresponds to the JSON property `threatType` + # @return [String] + attr_accessor :threat_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cache_duration = args[:cache_duration] if args.key?(:cache_duration) + @platform_type = args[:platform_type] if args.key?(:platform_type) + @threat = args[:threat] if args.key?(:threat) + @threat_entry_metadata = args[:threat_entry_metadata] if args.key?(:threat_entry_metadata) + @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type) + @threat_type = args[:threat_type] if args.key?(:threat_type) + end + end end end end diff --git a/generated/google/apis/safebrowsing_v4/representations.rb b/generated/google/apis/safebrowsing_v4/representations.rb index 37b375e24..7baaf43e3 100644 --- a/generated/google/apis/safebrowsing_v4/representations.rb +++ b/generated/google/apis/safebrowsing_v4/representations.rb @@ -22,170 +22,176 @@ module Google module Apis module SafebrowsingV4 - class Checksum + class GoogleProtobufEmpty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ClientInfo + class GoogleSecuritySafebrowsingV4Checksum class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Constraints + class GoogleSecuritySafebrowsingV4ClientInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Empty + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FetchThreatListUpdatesRequest + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FetchThreatListUpdatesResponse + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FindFullHashesRequest + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FindFullHashesResponse + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FindThreatMatchesRequest + class GoogleSecuritySafebrowsingV4FindFullHashesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class FindThreatMatchesResponse + class GoogleSecuritySafebrowsingV4FindFullHashesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListThreatListsResponse + class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListUpdateRequest + class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListUpdateResponse + class GoogleSecuritySafebrowsingV4ListThreatListsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class MetadataEntry + class GoogleSecuritySafebrowsingV4RawHashes class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RawHashes + class GoogleSecuritySafebrowsingV4RawIndices class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RawIndices + class GoogleSecuritySafebrowsingV4RiceDeltaEncoding class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RiceDeltaEncoding + class GoogleSecuritySafebrowsingV4ThreatEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatEntry + class GoogleSecuritySafebrowsingV4ThreatEntryMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatEntryMetadata + class GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatEntrySet + class GoogleSecuritySafebrowsingV4ThreatEntrySet class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatHit + class GoogleSecuritySafebrowsingV4ThreatHit class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatInfo + class GoogleSecuritySafebrowsingV4ThreatHitThreatSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatListDescriptor + class GoogleSecuritySafebrowsingV4ThreatHitUserInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatMatch + class GoogleSecuritySafebrowsingV4ThreatInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ThreatSource + class GoogleSecuritySafebrowsingV4ThreatListDescriptor class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UserInfo + class GoogleSecuritySafebrowsingV4ThreatMatch class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Checksum + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleSecuritySafebrowsingV4Checksum # @private class Representation < Google::Apis::Core::JsonRepresentation property :sha256, :base64 => true, as: 'sha256' end end - class ClientInfo + class GoogleSecuritySafebrowsingV4ClientInfo # @private class Representation < Google::Apis::Core::JsonRepresentation property :client_id, as: 'clientId' @@ -193,7 +199,29 @@ module Google end end - class Constraints + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client, as: 'client', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation + + collection :list_update_requests, as: 'listUpdateRequests', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest::Representation + + end + end + + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :constraints, as: 'constraints', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints::Representation + + property :platform_type, as: 'platformType' + property :state, :base64 => true, as: 'state' + property :threat_entry_type, as: 'threatEntryType' + property :threat_type, as: 'threatType' + end + end + + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints # @private class Representation < Google::Apis::Core::JsonRepresentation property :device_location, as: 'deviceLocation' @@ -205,102 +233,25 @@ module Google end end - class Empty + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class FetchThreatListUpdatesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client, as: 'client', class: Google::Apis::SafebrowsingV4::ClientInfo, decorator: Google::Apis::SafebrowsingV4::ClientInfo::Representation - - collection :list_update_requests, as: 'listUpdateRequests', class: Google::Apis::SafebrowsingV4::ListUpdateRequest, decorator: Google::Apis::SafebrowsingV4::ListUpdateRequest::Representation - - end - end - - class FetchThreatListUpdatesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :list_update_responses, as: 'listUpdateResponses', class: Google::Apis::SafebrowsingV4::ListUpdateResponse, decorator: Google::Apis::SafebrowsingV4::ListUpdateResponse::Representation + collection :list_update_responses, as: 'listUpdateResponses', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse::Representation property :minimum_wait_duration, as: 'minimumWaitDuration' end end - class FindFullHashesRequest + class GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :api_client, as: 'apiClient', class: Google::Apis::SafebrowsingV4::ClientInfo, decorator: Google::Apis::SafebrowsingV4::ClientInfo::Representation + collection :additions, as: 'additions', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet::Representation - property :client, as: 'client', class: Google::Apis::SafebrowsingV4::ClientInfo, decorator: Google::Apis::SafebrowsingV4::ClientInfo::Representation - - collection :client_states, as: 'clientStates' - property :threat_info, as: 'threatInfo', class: Google::Apis::SafebrowsingV4::ThreatInfo, decorator: Google::Apis::SafebrowsingV4::ThreatInfo::Representation - - end - end - - class FindFullHashesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :matches, as: 'matches', class: Google::Apis::SafebrowsingV4::ThreatMatch, decorator: Google::Apis::SafebrowsingV4::ThreatMatch::Representation - - property :minimum_wait_duration, as: 'minimumWaitDuration' - property :negative_cache_duration, as: 'negativeCacheDuration' - end - end - - class FindThreatMatchesRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client, as: 'client', class: Google::Apis::SafebrowsingV4::ClientInfo, decorator: Google::Apis::SafebrowsingV4::ClientInfo::Representation - - property :threat_info, as: 'threatInfo', class: Google::Apis::SafebrowsingV4::ThreatInfo, decorator: Google::Apis::SafebrowsingV4::ThreatInfo::Representation - - end - end - - class FindThreatMatchesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :matches, as: 'matches', class: Google::Apis::SafebrowsingV4::ThreatMatch, decorator: Google::Apis::SafebrowsingV4::ThreatMatch::Representation - - end - end - - class ListThreatListsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :threat_lists, as: 'threatLists', class: Google::Apis::SafebrowsingV4::ThreatListDescriptor, decorator: Google::Apis::SafebrowsingV4::ThreatListDescriptor::Representation - - end - end - - class ListUpdateRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :constraints, as: 'constraints', class: Google::Apis::SafebrowsingV4::Constraints, decorator: Google::Apis::SafebrowsingV4::Constraints::Representation - - property :platform_type, as: 'platformType' - property :state, :base64 => true, as: 'state' - property :threat_entry_type, as: 'threatEntryType' - property :threat_type, as: 'threatType' - end - end - - class ListUpdateResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :additions, as: 'additions', class: Google::Apis::SafebrowsingV4::ThreatEntrySet, decorator: Google::Apis::SafebrowsingV4::ThreatEntrySet::Representation - - property :checksum, as: 'checksum', class: Google::Apis::SafebrowsingV4::Checksum, decorator: Google::Apis::SafebrowsingV4::Checksum::Representation + property :checksum, as: 'checksum', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum::Representation property :new_client_state, :base64 => true, as: 'newClientState' property :platform_type, as: 'platformType' - collection :removals, as: 'removals', class: Google::Apis::SafebrowsingV4::ThreatEntrySet, decorator: Google::Apis::SafebrowsingV4::ThreatEntrySet::Representation + collection :removals, as: 'removals', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet::Representation property :response_type, as: 'responseType' property :threat_entry_type, as: 'threatEntryType' @@ -308,15 +259,56 @@ module Google end end - class MetadataEntry + class GoogleSecuritySafebrowsingV4FindFullHashesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :key, :base64 => true, as: 'key' - property :value, :base64 => true, as: 'value' + 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 + end end - class RawHashes + class GoogleSecuritySafebrowsingV4FindFullHashesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :matches, as: 'matches', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch::Representation + + property :minimum_wait_duration, as: 'minimumWaitDuration' + property :negative_cache_duration, as: 'negativeCacheDuration' + end + end + + class GoogleSecuritySafebrowsingV4FindThreatMatchesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + 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 + + end + end + + class GoogleSecuritySafebrowsingV4FindThreatMatchesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :matches, as: 'matches', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatMatch::Representation + + end + end + + class GoogleSecuritySafebrowsingV4ListThreatListsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :threat_lists, as: 'threatLists', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatListDescriptor::Representation + + end + end + + class GoogleSecuritySafebrowsingV4RawHashes # @private class Representation < Google::Apis::Core::JsonRepresentation property :prefix_size, as: 'prefixSize' @@ -324,14 +316,14 @@ module Google end end - class RawIndices + class GoogleSecuritySafebrowsingV4RawIndices # @private class Representation < Google::Apis::Core::JsonRepresentation collection :indices, as: 'indices' end end - class RiceDeltaEncoding + class GoogleSecuritySafebrowsingV4RiceDeltaEncoding # @private class Representation < Google::Apis::Core::JsonRepresentation property :encoded_data, :base64 => true, as: 'encodedData' @@ -341,7 +333,7 @@ module Google end end - class ThreatEntry + class GoogleSecuritySafebrowsingV4ThreatEntry # @private class Representation < Google::Apis::Core::JsonRepresentation property :digest, :base64 => true, as: 'digest' @@ -350,80 +342,54 @@ module Google end end - class ThreatEntryMetadata + class GoogleSecuritySafebrowsingV4ThreatEntryMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :entries, as: 'entries', class: Google::Apis::SafebrowsingV4::MetadataEntry, decorator: Google::Apis::SafebrowsingV4::MetadataEntry::Representation + collection :entries, as: 'entries', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry::Representation end end - class ThreatEntrySet + 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 # @private class Representation < Google::Apis::Core::JsonRepresentation property :compression_type, as: 'compressionType' - property :raw_hashes, as: 'rawHashes', class: Google::Apis::SafebrowsingV4::RawHashes, decorator: Google::Apis::SafebrowsingV4::RawHashes::Representation + property :raw_hashes, as: 'rawHashes', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawHashes::Representation - property :raw_indices, as: 'rawIndices', class: Google::Apis::SafebrowsingV4::RawIndices, decorator: Google::Apis::SafebrowsingV4::RawIndices::Representation + property :raw_indices, as: 'rawIndices', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RawIndices::Representation - property :rice_hashes, as: 'riceHashes', class: Google::Apis::SafebrowsingV4::RiceDeltaEncoding, decorator: Google::Apis::SafebrowsingV4::RiceDeltaEncoding::Representation + property :rice_hashes, as: 'riceHashes', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding::Representation - property :rice_indices, as: 'riceIndices', class: Google::Apis::SafebrowsingV4::RiceDeltaEncoding, decorator: Google::Apis::SafebrowsingV4::RiceDeltaEncoding::Representation + property :rice_indices, as: 'riceIndices', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4RiceDeltaEncoding::Representation end end - class ThreatHit + class GoogleSecuritySafebrowsingV4ThreatHit # @private class Representation < Google::Apis::Core::JsonRepresentation - property :client_info, as: 'clientInfo', class: Google::Apis::SafebrowsingV4::ClientInfo, decorator: Google::Apis::SafebrowsingV4::ClientInfo::Representation + property :client_info, as: 'clientInfo', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo::Representation - property :entry, as: 'entry', class: Google::Apis::SafebrowsingV4::ThreatEntry, decorator: Google::Apis::SafebrowsingV4::ThreatEntry::Representation + property :entry, as: 'entry', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry::Representation property :platform_type, as: 'platformType' - collection :resources, as: 'resources', class: Google::Apis::SafebrowsingV4::ThreatSource, decorator: Google::Apis::SafebrowsingV4::ThreatSource::Representation + collection :resources, as: 'resources', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitThreatSource::Representation property :threat_type, as: 'threatType' - property :user_info, as: 'userInfo', class: Google::Apis::SafebrowsingV4::UserInfo, decorator: Google::Apis::SafebrowsingV4::UserInfo::Representation + property :user_info, as: 'userInfo', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHitUserInfo::Representation end end - class ThreatInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :platform_types, as: 'platformTypes' - collection :threat_entries, as: 'threatEntries', class: Google::Apis::SafebrowsingV4::ThreatEntry, decorator: Google::Apis::SafebrowsingV4::ThreatEntry::Representation - - collection :threat_entry_types, as: 'threatEntryTypes' - collection :threat_types, as: 'threatTypes' - end - end - - class ThreatListDescriptor - # @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 - - class ThreatMatch - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cache_duration, as: 'cacheDuration' - property :platform_type, as: 'platformType' - property :threat, as: 'threat', class: Google::Apis::SafebrowsingV4::ThreatEntry, decorator: Google::Apis::SafebrowsingV4::ThreatEntry::Representation - - property :threat_entry_metadata, as: 'threatEntryMetadata', class: Google::Apis::SafebrowsingV4::ThreatEntryMetadata, decorator: Google::Apis::SafebrowsingV4::ThreatEntryMetadata::Representation - - property :threat_entry_type, as: 'threatEntryType' - property :threat_type, as: 'threatType' - end - end - - class ThreatSource + class GoogleSecuritySafebrowsingV4ThreatHitThreatSource # @private class Representation < Google::Apis::Core::JsonRepresentation property :referrer, as: 'referrer' @@ -433,13 +399,47 @@ module Google end end - class UserInfo + 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 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :platform_types, as: 'platformTypes' + collection :threat_entries, as: 'threatEntries', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry::Representation + + collection :threat_entry_types, as: 'threatEntryTypes' + collection :threat_types, as: 'threatTypes' + end + end + + class GoogleSecuritySafebrowsingV4ThreatListDescriptor + # @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 + + class GoogleSecuritySafebrowsingV4ThreatMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cache_duration, as: 'cacheDuration' + property :platform_type, as: 'platformType' + property :threat, as: 'threat', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntry::Representation + + property :threat_entry_metadata, as: 'threatEntryMetadata', class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata, decorator: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadata::Representation + + property :threat_entry_type, as: 'threatEntryType' + property :threat_type, as: 'threatType' + end + end end end end diff --git a/generated/google/apis/safebrowsing_v4/service.rb b/generated/google/apis/safebrowsing_v4/service.rb index 8b91288b2..8bef29d40 100644 --- a/generated/google/apis/safebrowsing_v4/service.rb +++ b/generated/google/apis/safebrowsing_v4/service.rb @@ -68,18 +68,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::FindFullHashesResponse] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::FindFullHashesResponse] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_encoded_full_hash(encoded_request, client_id: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/encodedFullHashes/{encodedRequest}', options) - command.response_representation = Google::Apis::SafebrowsingV4::FindFullHashesResponse::Representation - command.response_class = Google::Apis::SafebrowsingV4::FindFullHashesResponse + command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse command.params['encodedRequest'] = encoded_request unless encoded_request.nil? command.query['clientId'] = client_id unless client_id.nil? command.query['clientVersion'] = client_version unless client_version.nil? @@ -105,18 +105,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_encoded_update(encoded_request, client_id: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/encodedUpdates/{encodedRequest}', options) - command.response_representation = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse::Representation - command.response_class = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse + command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse command.params['encodedRequest'] = encoded_request unless encoded_request.nil? command.query['clientId'] = client_id unless client_id.nil? command.query['clientVersion'] = client_version unless client_version.nil? @@ -126,7 +126,7 @@ module Google end # Finds the full hashes that match the requested hash prefixes. - # @param [Google::Apis::SafebrowsingV4::FindFullHashesRequest] find_full_hashes_request_object + # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesRequest] google_security_safebrowsing_v4_find_full_hashes_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -136,20 +136,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::FindFullHashesResponse] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::FindFullHashesResponse] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def find_full_hashes(find_full_hashes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def find_full_hashes(google_security_safebrowsing_v4_find_full_hashes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/fullHashes:find', options) - command.request_representation = Google::Apis::SafebrowsingV4::FindFullHashesRequest::Representation - command.request_object = find_full_hashes_request_object - command.response_representation = Google::Apis::SafebrowsingV4::FindFullHashesResponse::Representation - command.response_class = Google::Apis::SafebrowsingV4::FindFullHashesResponse + command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesRequest::Representation + command.request_object = google_security_safebrowsing_v4_find_full_hashes_request_object + command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -157,7 +157,7 @@ module Google # Reports a Safe Browsing threat list hit to Google. Only projects with # TRUSTED_REPORTER visibility can use this method. - # @param [Google::Apis::SafebrowsingV4::ThreatHit] threat_hit_object + # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit] google_security_safebrowsing_v4_threat_hit_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -167,20 +167,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::Empty] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::Empty] + # @return [Google::Apis::SafebrowsingV4::GoogleProtobufEmpty] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_threat_hit(threat_hit_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_threat_hit(google_security_safebrowsing_v4_threat_hit_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/threatHits', options) - command.request_representation = Google::Apis::SafebrowsingV4::ThreatHit::Representation - command.request_object = threat_hit_object - command.response_representation = Google::Apis::SafebrowsingV4::Empty::Representation - command.response_class = Google::Apis::SafebrowsingV4::Empty + command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit::Representation + command.request_object = google_security_safebrowsing_v4_threat_hit_object + command.response_representation = Google::Apis::SafebrowsingV4::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleProtobufEmpty command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -188,7 +188,7 @@ module Google # Fetches the most recent threat list updates. A client can request updates for # multiple lists at once. - # @param [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesRequest] fetch_threat_list_updates_request_object + # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest] google_security_safebrowsing_v4_fetch_threat_list_updates_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -198,20 +198,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def fetch_threat_list_updates(fetch_threat_list_updates_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def fetch_threat_list_updates(google_security_safebrowsing_v4_fetch_threat_list_updates_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/threatListUpdates:fetch', options) - command.request_representation = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesRequest::Representation - command.request_object = fetch_threat_list_updates_request_object - command.response_representation = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse::Representation - command.response_class = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse + command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest::Representation + command.request_object = google_security_safebrowsing_v4_fetch_threat_list_updates_request_object + command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -227,25 +227,25 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::ListThreatListsResponse] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::ListThreatListsResponse] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_threat_lists(fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/threatLists', options) - command.response_representation = Google::Apis::SafebrowsingV4::ListThreatListsResponse::Representation - command.response_class = Google::Apis::SafebrowsingV4::ListThreatListsResponse + command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Finds the threat entries that match the Safe Browsing lists. - # @param [Google::Apis::SafebrowsingV4::FindThreatMatchesRequest] find_threat_matches_request_object + # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesRequest] google_security_safebrowsing_v4_find_threat_matches_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -255,20 +255,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SafebrowsingV4::FindThreatMatchesResponse] parsed result object + # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::SafebrowsingV4::FindThreatMatchesResponse] + # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def find_threat_matches(find_threat_matches_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def find_threat_matches(google_security_safebrowsing_v4_find_threat_matches_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/threatMatches:find', options) - command.request_representation = Google::Apis::SafebrowsingV4::FindThreatMatchesRequest::Representation - command.request_object = find_threat_matches_request_object - command.response_representation = Google::Apis::SafebrowsingV4::FindThreatMatchesResponse::Representation - command.response_class = Google::Apis::SafebrowsingV4::FindThreatMatchesResponse + command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesRequest::Representation + command.request_object = google_security_safebrowsing_v4_find_threat_matches_request_object + command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse::Representation + command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/safebrowsing_v4/synth.metadata b/generated/google/apis/safebrowsing_v4/synth.metadata index fb5a74b21..bc448a833 100644 --- a/generated/google/apis/safebrowsing_v4/synth.metadata +++ b/generated/google/apis/safebrowsing_v4/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "9840c481849200572321532ecc3b128bebbc1583" + "sha": "bf525b6e5993865dfc2f529c50905f22c583c50c" } } ]