Class: Google::Apis::RunV1alpha1::TriggerStatus

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

Overview

TriggerStatus represents the current state of a Trigger.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TriggerStatus

Returns a new instance of TriggerStatus.



5168
5169
5170
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5168

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

Instance Attribute Details

#conditionsArray<Google::Apis::RunV1alpha1::TriggerCondition>

Array of observed TriggerConditions, indicating the current state of the Trigger. Corresponds to the JSON property conditions



5155
5156
5157
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5155

def conditions
  @conditions
end

#observed_generationFixnum

ObservedGeneration is the 'Generation' of the Trigger that was last processed by the controller. Corresponds to the JSON property observedGeneration

Returns:

  • (Fixnum)


5161
5162
5163
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5161

def observed_generation
  @observed_generation
end

#subscriber_uriString

SubscriberURI is the resolved URI of the receiver for this Trigger. Corresponds to the JSON property subscriberUri

Returns:

  • (String)


5166
5167
5168
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5166

def subscriber_uri
  @subscriber_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5173
5174
5175
5176
5177
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5173

def update!(**args)
  @conditions = args[:conditions] if args.key?(:conditions)
  @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
  @subscriber_uri = args[:subscriber_uri] if args.key?(:subscriber_uri)
end