Reference documentation and code samples for the Eventarc Publishing V1 API class Google::Cloud::Eventarc::Publishing::V1::Publisher::Rest::ServiceStub.
REST service stub for the Publisher service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#publish
def publish(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Eventarc::Publishing::V1::PublishResponse
Baseline implementation for the publish REST call
- request_pb (::Google::Cloud::Eventarc::Publishing::V1::PublishRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Eventarc::Publishing::V1::PublishResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Eventarc::Publishing::V1::PublishResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#publish_channel_connection_events
def publish_channel_connection_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsResponse
Baseline implementation for the publish_channel_connection_events REST call
- request_pb (::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#publish_events
def publish_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Eventarc::Publishing::V1::PublishEventsResponse
Baseline implementation for the publish_events REST call
- request_pb (::Google::Cloud::Eventarc::Publishing::V1::PublishEventsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Eventarc::Publishing::V1::PublishEventsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Eventarc::Publishing::V1::PublishEventsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)