Google Cloud Asset V1 Client - Class IamPolicyAnalysisState (1.12.2)

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
NameDescription
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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getCause

The human-readable description of the cause of failure.

Returns
TypeDescription
string

setCause

The human-readable description of the cause of failure.

Parameter
NameDescription
var string
Returns
TypeDescription
$this