Google Cloud Asset V1 Client - Class Identity (1.9.2)

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

An identity under analysis.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The identity name in any form of members appear in IAM policy binding, such as: - user:foo@google.com - group:group1@google.com - serviceAccount:s1@prj1.iam.gserviceaccount.com - projectOwner:some_project_id - domain:google.com - allUsers - etc.

↳ analysis_state Google\Cloud\Asset\V1\IamPolicyAnalysisState

The analysis state of this identity.

getName

The identity name in any form of members appear in IAM policy binding, such as:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers
  • etc.

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

The identity name in any form of members appear in IAM policy binding, such as:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers
  • etc.

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAnalysisState

The analysis state of this identity.

Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;

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

hasAnalysisState

clearAnalysisState

setAnalysisState

The analysis state of this identity.

Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;

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