Google Cloud Policy Simulator V1 Client - Class CreateOrgPolicyViolationsPreviewOperationMetadata (1.2.0)

Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class CreateOrgPolicyViolationsPreviewOperationMetadata.

CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an OrgPolicyViolationsPreview generations operation.

Generated from protobuf message google.cloud.policysimulator.v1.CreateOrgPolicyViolationsPreviewOperationMetadata

Namespace

Google \ Cloud \ PolicySimulator \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ request_time Google\Protobuf\Timestamp

Time when the request was received.

↳ start_time Google\Protobuf\Timestamp

Time when the request started processing, i.e., when the state was set to RUNNING.

↳ state int

Output only. The current state of the operation.

↳ resources_found int

Total number of resources that need scanning. Should equal resource_scanned + resources_pending

↳ resources_scanned int

Number of resources already scanned.

↳ resources_pending int

Number of resources still to scan.

getRequestTime

Time when the request was received.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasRequestTime

clearRequestTime

setRequestTime

Time when the request was received.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getStartTime

Time when the request started processing, i.e., when the state was set to RUNNING.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Time when the request started processing, i.e., when the state was set to RUNNING.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getState

Output only. The current state of the operation.

Returns
Type Description
int

setState

Output only. The current state of the operation.

Parameter
Name Description
var int
Returns
Type Description
$this

getResourcesFound

Total number of resources that need scanning.

Should equal resource_scanned + resources_pending

Returns
Type Description
int

setResourcesFound

Total number of resources that need scanning.

Should equal resource_scanned + resources_pending

Parameter
Name Description
var int
Returns
Type Description
$this

getResourcesScanned

Number of resources already scanned.

Returns
Type Description
int

setResourcesScanned

Number of resources already scanned.

Parameter
Name Description
var int
Returns
Type Description
$this

getResourcesPending

Number of resources still to scan.

Returns
Type Description
int

setResourcesPending

Number of resources still to scan.

Parameter
Name Description
var int
Returns
Type Description
$this