Class: Google::Apis::ConnectorsV1::EventSubscription
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::EventSubscription
- 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
-
#create_time ⇒ String
Output only.
-
#destinations ⇒ Google::Apis::ConnectorsV1::EventSubscriptionDestination
Message for EventSubscription Destination to act on receiving an event Corresponds to the JSON property
destinations. -
#event_type_id ⇒ String
Optional.
-
#jms ⇒ Google::Apis::ConnectorsV1::Jms
JMS message denotes the source of the event Corresponds to the JSON property
jms. -
#name ⇒ String
Required.
-
#status ⇒ Google::Apis::ConnectorsV1::EventSubscriptionStatus
EventSubscription Status denotes the status of the EventSubscription resource.
-
#subscriber ⇒ String
Optional.
-
#subscriber_link ⇒ String
Optional.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventSubscription
constructor
A new instance of EventSubscription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventSubscription
Returns a new instance of EventSubscription.
1842 1843 1844 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1842 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Created time.
Corresponds to the JSON property createTime
1798 1799 1800 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1798 def create_time @create_time end |
#destinations ⇒ Google::Apis::ConnectorsV1::EventSubscriptionDestination
Message for EventSubscription Destination to act on receiving an event
Corresponds to the JSON property destinations
1803 1804 1805 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1803 def destinations @destinations end |
#event_type_id ⇒ String
Optional. Event type id of the event of current EventSubscription.
Corresponds to the JSON property eventTypeId
1808 1809 1810 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1808 def event_type_id @event_type_id end |
#jms ⇒ Google::Apis::ConnectorsV1::Jms
JMS message denotes the source of the event
Corresponds to the JSON property jms
1813 1814 1815 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1813 def jms @jms end |
#name ⇒ String
Required. Resource name of the EventSubscription. Format: projects/project/
locations/location/connections/connection/eventSubscriptions/
event_subscription
Corresponds to the JSON property name
1820 1821 1822 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1820 def name @name end |
#status ⇒ Google::Apis::ConnectorsV1::EventSubscriptionStatus
EventSubscription Status denotes the status of the EventSubscription resource.
Corresponds to the JSON property status
1825 1826 1827 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1825 def status @status end |
#subscriber ⇒ String
Optional. name of the Subscriber for the current EventSubscription.
Corresponds to the JSON property subscriber
1830 1831 1832 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1830 def subscriber @subscriber end |
#subscriber_link ⇒ String
Optional. Link for Subscriber of the current EventSubscription.
Corresponds to the JSON property subscriberLink
1835 1836 1837 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1835 def subscriber_link @subscriber_link end |
#update_time ⇒ String
Output only. Updated time.
Corresponds to the JSON property updateTime
1840 1841 1842 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1840 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1847 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 |