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

Constructor Details

#initialize(**args) ⇒ TriggerCondition

Returns a new instance of TriggerCondition.



4616
4617
4618
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4616

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)


4588
4589
4590
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4588

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)


4593
4594
4595
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4593

def message
  @message
end

#reasonString

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

Returns:

  • (String)


4598
4599
4600
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4598

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)


4604
4605
4606
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4604

def severity
  @severity
end

#statusString

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

Returns:

  • (String)


4609
4610
4611
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4609

def status
  @status
end

#typeString

Type of Trigger condition. Corresponds to the JSON property type

Returns:

  • (String)


4614
4615
4616
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4614

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4621
4622
4623
4624
4625
4626
4627
4628
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4621

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