Google Cloud Asset V1 Client - Class IamPolicyAnalysisState (1.9.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

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;

Generated from protobuf field .google.rpc.Code code = 1;

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;

Generated from protobuf field .google.rpc.Code code = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCause

The human-readable description of the cause of failure.

Generated from protobuf field string cause = 2;

Returns
TypeDescription
string

setCause

The human-readable description of the cause of failure.

Generated from protobuf field string cause = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this