Class UrisResource.SearchRequest
This method is used to check whether a URI is on a given threatList. Multiple threatLists may be searched in a single query. The response will list all requested threatLists the URI was found to match. If the URI is not found on any of the requested ThreatList an empty response will be returned.
Inheritance
Inherited Members
Namespace: Google.Apis.WebRisk.v1
Assembly: Google.Apis.WebRisk.v1.dll
Syntax
public class UrisResource.SearchRequest : WebRiskBaseServiceRequest<GoogleCloudWebriskV1SearchUrisResponse>, IClientServiceRequest<GoogleCloudWebriskV1SearchUrisResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
Declaration
[RequestParameter("threatTypes", RequestParameterType.Query)]
public virtual UrisResource.SearchRequest.ThreatTypesEnum? ThreatTypes { get; set; }
Property Value
Type | Description |
---|---|
UrisResource.SearchRequest.ThreatTypesEnum? |
Remarks
Use this property to set a single value for the parameter, or ThreatTypesList to set multiple values. Do not set both properties.
ThreatTypesList
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
Declaration
[RequestParameter("threatTypes", RequestParameterType.Query)]
public virtual Repeatable<UrisResource.SearchRequest.ThreatTypesEnum> ThreatTypesList { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<UrisResource.SearchRequest.ThreatTypesEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and ThreatTypes.
Uri
Required. The URI to be checked for matches.
Declaration
[RequestParameter("uri", RequestParameterType.Query)]
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Search parameter list.
Declaration
protected override void InitParameters()