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 messagegoogle.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Asset V1 Client - Class IamPolicyAnalysisState (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisState)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.IamPolicyAnalysisState)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.IamPolicyAnalysisState)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.IamPolicyAnalysisState)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.IamPolicyAnalysisState)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.IamPolicyAnalysisState)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.IamPolicyAnalysisState)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.IamPolicyAnalysisState)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.IamPolicyAnalysisState)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.IamPolicyAnalysisState)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.IamPolicyAnalysisState) \nReference documentation and code samples for the Google Cloud Asset V1 Client class IamPolicyAnalysisState.\n\nRepresents the detailed state of an entity under analysis, such as a\nresource, an identity or an access.\n\nGenerated from protobuf message `google.cloud.asset.v1.IamPolicyAnalysisState`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCode\n\nThe Google standard error code that best describes the state.\n\nFor example:\n\n- OK means the analysis on this entity has been successfully finished;\n- PERMISSION_DENIED means an access denied error is encountered;\n- DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;\n\n### setCode\n\nThe Google standard error code that best describes the state.\n\nFor example:\n\n- OK means the analysis on this entity has been successfully finished;\n- PERMISSION_DENIED means an access denied error is encountered;\n- DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;\n\n### getCause\n\nThe human-readable description of the cause of failure.\n\n### setCause\n\nThe human-readable description of the cause of failure."]]