Class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState

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

Overview

Represents the detailed state of an entity under analysis, such as a resource, an identity or an access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1p4beta1AnalysisState

Returns a new instance of GoogleCloudAssetV1p4beta1AnalysisState.



456
457
458
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 456

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

Instance Attribute Details

#causeString

The human-readable description of the cause of failure. Corresponds to the JSON property cause

Returns:

  • (String)


445
446
447
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 445

def cause
  @cause
end

#codeString

The Google standard error code that best describes the state. For example: - OK means the analysis on this entity has been successfully finished; - PERMISSION_DENIED means an access denied error is encountered; - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time; Corresponds to the JSON property code

Returns:

  • (String)


454
455
456
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 454

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



461
462
463
464
# File 'lib/google/apis/cloudasset_v1p4beta1/classes.rb', line 461

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