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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Diagnostic

Returns a new instance of Diagnostic.



919
920
921
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 919

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)


912
913
914
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 912

def field
  @field
end

#levelString

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

Returns:

  • (String)


917
918
919
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 917

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



924
925
926
927
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 924

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