# Eventarc Publishing V1 API - Class Google::Cloud::Eventarc::Publishing::V1::Publisher::Rest::ServiceStub (v1.7.1)

1.7.1 (latest) 1.7.0 1.6.0 1.5.2 1.4.1 1.3.3 1.2.0 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 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
**Returns**

- (String)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #publish

    def publish(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Eventarc::Publishing::V1::PublishResponse

Baseline implementation for the publish REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Eventarc::Publishing::V1::PublishRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/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.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Eventarc::Publishing::V1::PublishResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/Google-Cloud-Eventarc-Publishing-V1-PublishResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Eventarc::Publishing::V1::PublishResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/Google-Cloud-Eventarc-Publishing-V1-PublishResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::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
**Parameters**

- **request_pb** ([::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/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.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/Google-Cloud-Eventarc-Publishing-V1-PublishChannelConnectionEventsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/Google-Cloud-Eventarc-Publishing-V1-PublishChannelConnectionEventsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::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
**Parameters**

- **request_pb** ([::Google::Cloud::Eventarc::Publishing::V1::PublishEventsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/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.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Eventarc::Publishing::V1::PublishEventsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/Google-Cloud-Eventarc-Publishing-V1-PublishEventsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Eventarc::Publishing::V1::PublishEventsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-publishing-v1/latest/Google-Cloud-Eventarc-Publishing-V1-PublishEventsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)