Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1DeniedAccessAccess

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) ⇒ GoogleCloudAssetV1DeniedAccessAccess

Returns a new instance of GoogleCloudAssetV1DeniedAccessAccess.



1768
1769
1770
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1768

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

Instance Attribute Details

#permissionString

The IAM permission in v1 format Corresponds to the JSON property permission

Returns:

  • (String)


1761
1762
1763
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1761

def permission
  @permission
end

#roleString

The IAM role. Corresponds to the JSON property role

Returns:

  • (String)


1766
1767
1768
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1766

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1773
1774
1775
1776
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1773

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