Class ThreatListsResource.ComputeDiffRequest
Gets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a complete snapshot of the database will be returned. This Method only updates a single ThreatList at a time. To update multiple ThreatList databases, this method needs to be called once for each list.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.WebRisk.v1
Assembly: Google.Apis.WebRisk.v1.dll
Syntax
public class ThreatListsResource.ComputeDiffRequest : WebRiskBaseServiceRequest<GoogleCloudWebriskV1ComputeThreatListDiffResponse>, IClientServiceRequest<GoogleCloudWebriskV1ComputeThreatListDiffResponse>, IClientServiceRequest
Constructors
ComputeDiffRequest(IClientService)
Constructs a new ComputeDiff request.
Declaration
public ComputeDiffRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
ConstraintsMaxDatabaseEntries
Sets the maximum number of entries that the client is willing to have in the local database. This should be a power of 2 between 210 and 220. If zero, no database size limit is set.
Declaration
[RequestParameter("constraints.maxDatabaseEntries", RequestParameterType.Query)]
public virtual int? ConstraintsMaxDatabaseEntries { get; set; }
Property Value
Type | Description |
---|---|
int? |
ConstraintsMaxDiffEntries
The maximum size in number of entries. The diff will not contain more entries than this value. This should be a power of 2 between 210 and 220. If zero, no diff size limit is set.
Declaration
[RequestParameter("constraints.maxDiffEntries", RequestParameterType.Query)]
public virtual int? ConstraintsMaxDiffEntries { get; set; }
Property Value
Type | Description |
---|---|
int? |
ConstraintsSupportedCompressions
The compression types supported by the client.
Declaration
[RequestParameter("constraints.supportedCompressions", RequestParameterType.Query)]
public virtual ThreatListsResource.ComputeDiffRequest.ConstraintsSupportedCompressionsEnum? ConstraintsSupportedCompressions { get; set; }
Property Value
Type | Description |
---|---|
ThreatListsResource.ComputeDiffRequest.ConstraintsSupportedCompressionsEnum? |
Remarks
Use this property to set a single value for the parameter, or ConstraintsSupportedCompressionsList to set multiple values. Do not set both properties.
ConstraintsSupportedCompressionsList
The compression types supported by the client.
Declaration
[RequestParameter("constraints.supportedCompressions", RequestParameterType.Query)]
public virtual Repeatable<ThreatListsResource.ComputeDiffRequest.ConstraintsSupportedCompressionsEnum> ConstraintsSupportedCompressionsList { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<ThreatListsResource.ComputeDiffRequest.ConstraintsSupportedCompressionsEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and ConstraintsSupportedCompressions.
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
ThreatType
Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.
Declaration
[RequestParameter("threatType", RequestParameterType.Query)]
public virtual ThreatListsResource.ComputeDiffRequest.ThreatTypeEnum? ThreatType { get; set; }
Property Value
Type | Description |
---|---|
ThreatListsResource.ComputeDiffRequest.ThreatTypeEnum? |
VersionToken
The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.
Declaration
[RequestParameter("versionToken", RequestParameterType.Query)]
public virtual string VersionToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes ComputeDiff parameter list.
Declaration
protected override void InitParameters()