Google Cloud Asset V1 Client - Class Access (1.11.3)

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

An IAM role or permission under analysis.

Generated from protobuf message google.cloud.asset.v1.IamPolicyAnalysisResult.Access

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ role string

The role.

↳ permission string

The permission.

↳ analysis_state Google\Cloud\Asset\V1\IamPolicyAnalysisState

The analysis state of this access.

getRole

The role.

Returns
TypeDescription
string

hasRole

setRole

The role.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPermission

The permission.

Returns
TypeDescription
string

hasPermission

setPermission

The permission.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAnalysisState

The analysis state of this access.

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

hasAnalysisState

clearAnalysisState

setAnalysisState

The analysis state of this access.

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

getOneofAccess

Returns
TypeDescription
string