Google Cloud Asset V1 Client - Class IamPolicyAnalysis (1.16.4)

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

An analysis message to group the query and results.

Generated from protobuf message google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis

Namespace

Google \ Cloud \ Asset \ V1 \ AnalyzeIamPolicyResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ analysis_query Google\Cloud\Asset\V1\IamPolicyAnalysisQuery

The analysis query.

↳ analysis_results array<Google\Cloud\Asset\V1\IamPolicyAnalysisResult>

A list of IamPolicyAnalysisResult that matches the analysis query, or empty if no result is found.

↳ fully_explored bool

Represents whether all entries in the analysis_results have been fully explored to answer the query.

↳ non_critical_errors array<Google\Cloud\Asset\V1\IamPolicyAnalysisState>

A list of non-critical errors happened during the query handling.

getAnalysisQuery

The analysis query.

Returns
Type Description
Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null

hasAnalysisQuery

clearAnalysisQuery

setAnalysisQuery

The analysis query.

Parameter
Name Description
var Google\Cloud\Asset\V1\IamPolicyAnalysisQuery
Returns
Type Description
$this

getAnalysisResults

A list of IamPolicyAnalysisResult that matches the analysis query, or empty if no result is found.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAnalysisResults

A list of IamPolicyAnalysisResult that matches the analysis query, or empty if no result is found.

Parameter
Name Description
var array<Google\Cloud\Asset\V1\IamPolicyAnalysisResult>
Returns
Type Description
$this

getFullyExplored

Represents whether all entries in the analysis_results have been fully explored to answer the query.

Returns
Type Description
bool

setFullyExplored

Represents whether all entries in the analysis_results have been fully explored to answer the query.

Parameter
Name Description
var bool
Returns
Type Description
$this

getNonCriticalErrors

A list of non-critical errors happened during the query handling.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNonCriticalErrors

A list of non-critical errors happened during the query handling.

Parameter
Name Description
var array<Google\Cloud\Asset\V1\IamPolicyAnalysisState>
Returns
Type Description
$this