Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1Access
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::GoogleCloudAssetV1Access
- 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
-
#analysis_state ⇒ Google::Apis::CloudassetV1::IamPolicyAnalysisState
Represents the detailed state of an entity under analysis, such as a resource, an identity or an access.
-
#permission ⇒ String
The permission.
-
#role ⇒ String
The role.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssetV1Access
constructor
A new instance of GoogleCloudAssetV1Access.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1Access
Returns a new instance of GoogleCloudAssetV1Access.
1361 1362 1363 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1361 def initialize(**args) update!(**args) end |
Instance Attribute Details
#analysis_state ⇒ Google::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
1349 1350 1351 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1349 def analysis_state @analysis_state end |
#permission ⇒ String
The permission.
Corresponds to the JSON property permission
1354 1355 1356 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1354 def @permission end |
#role ⇒ String
The role.
Corresponds to the JSON property role
1359 1360 1361 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1359 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1366 1367 1368 1369 1370 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1366 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 |