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.



1825
1826
1827
# File 'lib/google/apis/connectors_v1/classes.rb', line 1825

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


1781
1782
1783
# File 'lib/google/apis/connectors_v1/classes.rb', line 1781

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



1786
1787
1788
# File 'lib/google/apis/connectors_v1/classes.rb', line 1786

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)


1791
1792
1793
# File 'lib/google/apis/connectors_v1/classes.rb', line 1791

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



1796
1797
1798
# File 'lib/google/apis/connectors_v1/classes.rb', line 1796

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)


1803
1804
1805
# File 'lib/google/apis/connectors_v1/classes.rb', line 1803

def name
  @name
end

#statusGoogle::Apis::ConnectorsV1::EventSubscriptionStatus

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



1808
1809
1810
# File 'lib/google/apis/connectors_v1/classes.rb', line 1808

def status
  @status
end

#subscriberString

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

Returns:

  • (String)


1813
1814
1815
# File 'lib/google/apis/connectors_v1/classes.rb', line 1813

def subscriber
  @subscriber
end

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

Returns:

  • (String)


1818
1819
1820
# File 'lib/google/apis/connectors_v1/classes.rb', line 1818

def subscriber_link
  @subscriber_link
end

#update_timeString

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

Returns:

  • (String)


1823
1824
1825
# File 'lib/google/apis/connectors_v1/classes.rb', line 1823

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
# File 'lib/google/apis/connectors_v1/classes.rb', line 1830

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)
  @update_time = args[:update_time] if args.key?(:update_time)
end