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.



1377
1378
1379
# File 'lib/google/apis/connectors_v1/classes.rb', line 1377

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


1338
1339
1340
# File 'lib/google/apis/connectors_v1/classes.rb', line 1338

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



1343
1344
1345
# File 'lib/google/apis/connectors_v1/classes.rb', line 1343

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)


1348
1349
1350
# File 'lib/google/apis/connectors_v1/classes.rb', line 1348

def event_type_id
  @event_type_id
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)


1355
1356
1357
# File 'lib/google/apis/connectors_v1/classes.rb', line 1355

def name
  @name
end

#statusGoogle::Apis::ConnectorsV1::EventSubscriptionStatus

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



1360
1361
1362
# File 'lib/google/apis/connectors_v1/classes.rb', line 1360

def status
  @status
end

#subscriberString

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

Returns:

  • (String)


1365
1366
1367
# File 'lib/google/apis/connectors_v1/classes.rb', line 1365

def subscriber
  @subscriber
end

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

Returns:

  • (String)


1370
1371
1372
# File 'lib/google/apis/connectors_v1/classes.rb', line 1370

def subscriber_link
  @subscriber_link
end

#update_timeString

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

Returns:

  • (String)


1375
1376
1377
# File 'lib/google/apis/connectors_v1/classes.rb', line 1375

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
# File 'lib/google/apis/connectors_v1/classes.rb', line 1382

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)
  @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