Google Cloud Asset V1 Client - Class IamPolicyAnalysis (1.10.2)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null

hasAnalysisQuery

clearAnalysisQuery

setAnalysisQuery

The analysis query.

Parameter
NameDescription
var Google\Cloud\Asset\V1\IamPolicyAnalysisQuery
Returns
TypeDescription
$this

getAnalysisResults

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAnalysisResults

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

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\IamPolicyAnalysisResult>
Returns
TypeDescription
$this

getFullyExplored

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

Returns
TypeDescription
bool

setFullyExplored

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getNonCriticalErrors

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNonCriticalErrors

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

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\IamPolicyAnalysisState>
Returns
TypeDescription
$this