Grafeas V1 Client - Class DiscoveryOccurrence (0.5.0)

Reference documentation and code samples for the Grafeas V1 Client class DiscoveryOccurrence.

Provides information about the analysis status of a discovered resource.

Generated from protobuf message grafeas.v1.DiscoveryOccurrence

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ continuous_analysis int

Whether the resource is continuously analyzed.

↳ analysis_status int

The status of discovery for the resource.

↳ analysis_completed Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted
↳ analysis_error array<Google\Rpc\Status>

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

↳ analysis_status_error Google\Rpc\Status

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

↳ cpe string

The CPE of the resource being scanned.

↳ last_scan_time Google\Protobuf\Timestamp

The last time this resource was scanned.

↳ archive_time Google\Protobuf\Timestamp

The time occurrences related to this discovery occurrence were archived.

getContinuousAnalysis

Whether the resource is continuously analyzed.

Returns
TypeDescription
int

setContinuousAnalysis

Whether the resource is continuously analyzed.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAnalysisStatus

The status of discovery for the resource.

Returns
TypeDescription
int

setAnalysisStatus

The status of discovery for the resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAnalysisCompleted

Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;

Returns
TypeDescription
Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted|null

hasAnalysisCompleted

clearAnalysisCompleted

setAnalysisCompleted

Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;

Parameter
NameDescription
var Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted
Returns
TypeDescription
$this

getAnalysisError

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAnalysisError

Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.

Parameter
NameDescription
var array<Google\Rpc\Status>
Returns
TypeDescription
$this

getAnalysisStatusError

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

Returns
TypeDescription
Google\Rpc\Status|null

hasAnalysisStatusError

clearAnalysisStatusError

setAnalysisStatusError

When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getCpe

The CPE of the resource being scanned.

Returns
TypeDescription
string

setCpe

The CPE of the resource being scanned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLastScanTime

The last time this resource was scanned.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastScanTime

clearLastScanTime

setLastScanTime

The last time this resource was scanned.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getArchiveTime

The time occurrences related to this discovery occurrence were archived.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasArchiveTime

clearArchiveTime

setArchiveTime

The time occurrences related to this discovery occurrence were archived.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this