Class: Google::Apis::ConnectorsV1::EventType

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

EventType includes fields.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventType

Returns a new instance of EventType.



2440
2441
2442
# File 'lib/google/apis/connectors_v1/classes.rb', line 2440

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


2398
2399
2400
# File 'lib/google/apis/connectors_v1/classes.rb', line 2398

def create_time
  @create_time
end

#enriched_event_payload_schemaString

Output only. Schema of the event payload after enriched. Will be null if read before send is not supported. Corresponds to the JSON property enrichedEventPayloadSchema

Returns:

  • (String)


2404
2405
2406
# File 'lib/google/apis/connectors_v1/classes.rb', line 2404

def enriched_event_payload_schema
  @enriched_event_payload_schema
end

#entity_typeString

Output only. Runtime entity type name. Will be null if entity type map is not available. Used for read before send feature. Corresponds to the JSON property entityType

Returns:

  • (String)


2410
2411
2412
# File 'lib/google/apis/connectors_v1/classes.rb', line 2410

def entity_type
  @entity_type
end

#event_payload_schemaString

Output only. Schema of webhook event payload. Corresponds to the JSON property eventPayloadSchema

Returns:

  • (String)


2415
2416
2417
# File 'lib/google/apis/connectors_v1/classes.rb', line 2415

def event_payload_schema
  @event_payload_schema
end

#event_type_idString

Output only. Event type id. Example: ticket.created. Corresponds to the JSON property eventTypeId

Returns:

  • (String)


2420
2421
2422
# File 'lib/google/apis/connectors_v1/classes.rb', line 2420

def event_type_id
  @event_type_id
end

#id_pathString

Output only. Id path denotes the path of id in webhook payload. Corresponds to the JSON property idPath

Returns:

  • (String)


2425
2426
2427
# File 'lib/google/apis/connectors_v1/classes.rb', line 2425

def id_path
  @id_path
end

#nameString

Output only. Resource name of the eventtype. Format: projects/project/ locations/location/providers/provider/connectors/connector/versions/ version/eventtypes/eventtype Only global location is supported for Connector resource. Corresponds to the JSON property name

Returns:

  • (String)


2433
2434
2435
# File 'lib/google/apis/connectors_v1/classes.rb', line 2433

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


2438
2439
2440
# File 'lib/google/apis/connectors_v1/classes.rb', line 2438

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
# File 'lib/google/apis/connectors_v1/classes.rb', line 2445

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @enriched_event_payload_schema = args[:enriched_event_payload_schema] if args.key?(:enriched_event_payload_schema)
  @entity_type = args[:entity_type] if args.key?(:entity_type)
  @event_payload_schema = args[:event_payload_schema] if args.key?(:event_payload_schema)
  @event_type_id = args[:event_type_id] if args.key?(:event_type_id)
  @id_path = args[:id_path] if args.key?(:id_path)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end