Class: Google::Apis::DeploymentmanagerAlpha::Diagnostic

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/deploymentmanager_alpha/classes.rb,
generated/google/apis/deploymentmanager_alpha/representations.rb,
generated/google/apis/deploymentmanager_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Diagnostic

Returns a new instance of Diagnostic



857
858
859
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 857

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

Instance Attribute Details

#fieldString

JsonPath expression on the resource that if non empty, indicates that this field needs to be extracted as a diagnostic. Corresponds to the JSON property field

Returns:

  • (String)


850
851
852
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 850

def field
  @field
end

#levelString

Level to record this diagnostic. Corresponds to the JSON property level

Returns:

  • (String)


855
856
857
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 855

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



862
863
864
865
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 862

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