Google Cloud Asset V1 Client - Class AnalyzeIamPolicyResponse (1.9.2)

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

A response message for AssetService.AnalyzeIamPolicy.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ main_analysis Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis

The main analysis that matches the original request.

↳ service_account_impersonation_analysis array<Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis>

The service account impersonation analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is enabled.

↳ fully_explored bool

Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.

getMainAnalysis

The main analysis that matches the original request.

Generated from protobuf field .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Returns
TypeDescription
Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis|null

hasMainAnalysis

clearMainAnalysis

setMainAnalysis

The main analysis that matches the original request.

Generated from protobuf field .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

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

getServiceAccountImpersonationAnalysis

The service account impersonation analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is enabled.

Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setServiceAccountImpersonationAnalysis

The service account impersonation analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is enabled.

Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

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

getFullyExplored

Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.

Generated from protobuf field bool fully_explored = 3;

Returns
TypeDescription
bool

setFullyExplored

Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.

Generated from protobuf field bool fully_explored = 3;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this