Class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Access

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 IAM role or permission 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) ⇒ GoogleCloudAssetV1p4beta1Access

Returns a new instance of GoogleCloudAssetV1p4beta1Access.


293
294
295
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 293

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


281
282
283
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 281

def analysis_state
  @analysis_state
end

#permissionString

The permission. Corresponds to the JSON property permission

Returns:

  • (String)

286
287
288
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 286

def permission
  @permission
end

#roleString

The role. Corresponds to the JSON property role

Returns:

  • (String)

291
292
293
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 291

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


298
299
300
301
302
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 298

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