Google Cloud Asset V1 Client - Class IamPolicyAnalysisState (2.1.0)

Reference documentation and code samples for the Google Cloud Asset V1 Client class IamPolicyAnalysisState.

Represents the detailed state of an entity under analysis, such as a resource, an identity or an access.

Generated from protobuf message google.cloud.asset.v1.IamPolicyAnalysisState

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ code int

The Google standard error code that best describes the state. For example: - OK means the analysis on this entity has been successfully finished; - PERMISSION_DENIED means an access denied error is encountered; - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;

↳ cause string

The human-readable description of the cause of failure.

getCode

The Google standard error code that best describes the state.

For example:

  • OK means the analysis on this entity has been successfully finished;
  • PERMISSION_DENIED means an access denied error is encountered;
  • DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;
Returns
Type Description
int

setCode

The Google standard error code that best describes the state.

For example:

  • OK means the analysis on this entity has been successfully finished;
  • PERMISSION_DENIED means an access denied error is encountered;
  • DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;
Parameter
Name Description
var int
Returns
Type Description
$this

getCause

The human-readable description of the cause of failure.

Returns
Type Description
string

setCause

The human-readable description of the cause of failure.

Parameter
Name Description
var string
Returns
Type Description
$this