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

Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;

Returns
TypeDescription
Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null

hasAnalysisQuery

clearAnalysisQuery

setAnalysisQuery

The analysis query.

Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;

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.

Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAnalysisResults

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

Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;

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.

Generated from protobuf field bool fully_explored = 3;

Returns
TypeDescription
bool

setFullyExplored

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

Generated from protobuf field bool fully_explored = 3;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getNonCriticalErrors

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

Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNonCriticalErrors

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

Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;

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