Class: Google::Apis::RunV1alpha1::TriggerCondition

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

Overview

TriggerCondition contains state information for an Trigger.

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

Returns a new instance of TriggerCondition.



4983
4984
4985
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4983

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

Instance Attribute Details

#last_transition_timeString

Optional. Last time the condition transitioned from one status to another. Corresponds to the JSON property lastTransitionTime

Returns:

  • (String)


4955
4956
4957
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4955

def last_transition_time
  @last_transition_time
end

#messageString

Optional. Human readable message indicating details about the current status. Corresponds to the JSON property message

Returns:

  • (String)


4960
4961
4962
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4960

def message
  @message
end

#reasonString

Optional. One-word CamelCase reason for the condition's current status. Corresponds to the JSON property reason

Returns:

  • (String)


4965
4966
4967
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4965

def reason
  @reason
end

#severityString

Optional. How to interpret failures of this condition, one of Error, Warning, Info Corresponds to the JSON property severity

Returns:

  • (String)


4971
4972
4973
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4971

def severity
  @severity
end

#statusString

Status of the condition, one of True, False, Unknown. Corresponds to the JSON property status

Returns:

  • (String)


4976
4977
4978
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4976

def status
  @status
end

#typeString

Type of Trigger condition. Corresponds to the JSON property type

Returns:

  • (String)


4981
4982
4983
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4981

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4988
4989
4990
4991
4992
4993
4994
4995
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4988

def update!(**args)
  @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
  @severity = args[:severity] if args.key?(:severity)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end