Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1Identity

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

An identity under analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1Identity

Returns a new instance of GoogleCloudAssetV1Identity.



2005
2006
2007
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2005

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#analysis_stateGoogle::Apis::CloudassetV1::IamPolicyAnalysisState

Represents the detailed state of an entity under analysis, such as a resource, an identity or an access. Corresponds to the JSON property analysisState



1994
1995
1996
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1994

def analysis_state
  @analysis_state
end

#nameString

The identity of members, formatted as appear in an IAM policy binding. For example, they might be formatted like the following: - user:[email protected] - group:[email protected] - serviceAccount:[email protected] - projectOwner:some_project_id

  • domain:google.com - allUsers Corresponds to the JSON property name

Returns:

  • (String)


2003
2004
2005
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2003

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2010
2011
2012
2013
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2010

def update!(**args)
  @analysis_state = args[:analysis_state] if args.key?(:analysis_state)
  @name = args[:name] if args.key?(:name)
end