Class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Identity

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

Overview

An identity under analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1p4beta1Identity

Returns a new instance of GoogleCloudAssetV1p4beta1Identity.


425
426
427
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 425

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

Instance Attribute Details

#analysis_stateGoogle::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState

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


415
416
417
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 415

def analysis_state
  @analysis_state
end

#nameString

The identity name in any form of members appear in IAM policy binding, such as: - user:[email protected]. com - group:[email protected] - serviceAccount:[email protected]

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

Returns:

  • (String)

423
424
425
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 423

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


430
431
432
433
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 430

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