Class: Google::Apis::PubsubV1beta1a::PushConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pubsub_v1beta1a/classes.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb

Overview

Configuration for a push delivery endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PushConfig

Returns a new instance of PushConfig



522
523
524
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 522

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

Instance Attribute Details

#push_endpointString

A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push". Corresponds to the JSON property pushEndpoint

Returns:

  • (String)


520
521
522
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 520

def push_endpoint
  @push_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



527
528
529
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 527

def update!(**args)
  @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
end