Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1Access

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 IAM role or permission under analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1Access

Returns a new instance of GoogleCloudAssetV1Access.



1393
1394
1395
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1393

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



1381
1382
1383
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1381

def analysis_state
  @analysis_state
end

#permissionString

The permission. Corresponds to the JSON property permission

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1386

def permission
  @permission
end

#roleString

The role. Corresponds to the JSON property role

Returns:

  • (String)


1391
1392
1393
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1391

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1398
1399
1400
1401
1402
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1398

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