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

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

Represents analysis state of each node in the result graph or non-critical errors in the response.

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

Returns a new instance of GoogleCloudAssetV1p4beta1AnalysisState.



398
399
400
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 398

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)


387
388
389
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 387

def cause
  @cause
end

#codeString

The Google standard error code that best describes the state. For example:

  • OK means the node has been successfully explored;
  • PERMISSION_DENIED means an access denied error is encountered;
  • DEADLINE_EXCEEDED means the node hasn't been explored in time; Corresponds to the JSON property code

Returns:

  • (String)


396
397
398
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 396

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



403
404
405
406
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 403

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