Class: Google::Apis::RunV1alpha1::CloudPubSubSourceStatus

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

CloudPubSubSourceStatus represents the current state of a CloudPubSubSource.

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

Returns a new instance of CloudPubSubSourceStatus.



626
627
628
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 626

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

Instance Attribute Details

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

Array of observed CloudPubSubSourceConditions, indicating the current state of the CloudPubSubSource. Corresponds to the JSON property conditions



611
612
613
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 611

def conditions
  @conditions
end

#observed_generationFixnum

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

Returns:

  • (Fixnum)


617
618
619
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 617

def observed_generation
  @observed_generation
end

#sink_uriString

SinkURI is the current active sink URI that has been configured for the Source. +optional Corresponds to the JSON property sinkUri

Returns:

  • (String)


624
625
626
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 624

def sink_uri
  @sink_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



631
632
633
634
635
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 631

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