Class: Google::Apis::ConnectorsV1::EventSubscription

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

Overview

represents the Connector's EventSubscription resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventSubscription

Returns a new instance of EventSubscription.



1909
1910
1911
# File 'lib/google/apis/connectors_v1/classes.rb', line 1909

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

Instance Attribute Details

#create_timeString

Output only. Created time. Corresponds to the JSON property createTime

Returns:

  • (String)


1860
1861
1862
# File 'lib/google/apis/connectors_v1/classes.rb', line 1860

def create_time
  @create_time
end

#destinationsGoogle::Apis::ConnectorsV1::EventSubscriptionDestination

Message for EventSubscription Destination to act on receiving an event Corresponds to the JSON property destinations



1865
1866
1867
# File 'lib/google/apis/connectors_v1/classes.rb', line 1865

def destinations
  @destinations
end

#event_type_idString

Optional. Event type id of the event of current EventSubscription. Corresponds to the JSON property eventTypeId

Returns:

  • (String)


1870
1871
1872
# File 'lib/google/apis/connectors_v1/classes.rb', line 1870

def event_type_id
  @event_type_id
end

#jmsGoogle::Apis::ConnectorsV1::Jms

JMS message denotes the source of the event Corresponds to the JSON property jms



1875
1876
1877
# File 'lib/google/apis/connectors_v1/classes.rb', line 1875

def jms
  @jms
end

#nameString

Required. Resource name of the EventSubscription. Format: projects/project/ locations/location/connections/connection/eventSubscriptions/ event_subscription Corresponds to the JSON property name

Returns:

  • (String)


1882
1883
1884
# File 'lib/google/apis/connectors_v1/classes.rb', line 1882

def name
  @name
end

#statusGoogle::Apis::ConnectorsV1::EventSubscriptionStatus

EventSubscription Status denotes the status of the EventSubscription resource. Corresponds to the JSON property status



1887
1888
1889
# File 'lib/google/apis/connectors_v1/classes.rb', line 1887

def status
  @status
end

#subscriberString

Optional. name of the Subscriber for the current EventSubscription. Corresponds to the JSON property subscriber

Returns:

  • (String)


1892
1893
1894
# File 'lib/google/apis/connectors_v1/classes.rb', line 1892

def subscriber
  @subscriber
end

Optional. Link for Subscriber of the current EventSubscription. Corresponds to the JSON property subscriberLink

Returns:

  • (String)


1897
1898
1899
# File 'lib/google/apis/connectors_v1/classes.rb', line 1897

def subscriber_link
  @subscriber_link
end

#trigger_config_variablesArray<Google::Apis::ConnectorsV1::ConfigVariable>

Optional. Configuration for configuring the trigger Corresponds to the JSON property triggerConfigVariables



1902
1903
1904
# File 'lib/google/apis/connectors_v1/classes.rb', line 1902

def trigger_config_variables
  @trigger_config_variables
end

#update_timeString

Output only. Updated time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1907
1908
1909
# File 'lib/google/apis/connectors_v1/classes.rb', line 1907

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
# File 'lib/google/apis/connectors_v1/classes.rb', line 1914

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @destinations = args[:destinations] if args.key?(:destinations)
  @event_type_id = args[:event_type_id] if args.key?(:event_type_id)
  @jms = args[:jms] if args.key?(:jms)
  @name = args[:name] if args.key?(:name)
  @status = args[:status] if args.key?(:status)
  @subscriber = args[:subscriber] if args.key?(:subscriber)
  @subscriber_link = args[:subscriber_link] if args.key?(:subscriber_link)
  @trigger_config_variables = args[:trigger_config_variables] if args.key?(:trigger_config_variables)
  @update_time = args[:update_time] if args.key?(:update_time)
end