Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::TopicAdmin::Rest::ServiceStub.
REST service stub for the TopicAdmin service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_topic
def create_topic(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::TopicBaseline implementation for the create_topic REST call
- request_pb (::Google::Cloud::PubSub::V1::Topic) — 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::PubSub::V1::Topic)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Topic) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_topic
def delete_topic(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the delete_topic REST call
- request_pb (::Google::Cloud::PubSub::V1::DeleteTopicRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#detach_subscription
def detach_subscription(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::DetachSubscriptionResponseBaseline implementation for the detach_subscription REST call
- request_pb (::Google::Cloud::PubSub::V1::DetachSubscriptionRequest) — 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::PubSub::V1::DetachSubscriptionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::DetachSubscriptionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> StringThe effective endpoint
- (String)
#get_topic
def get_topic(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::TopicBaseline implementation for the get_topic REST call
- request_pb (::Google::Cloud::PubSub::V1::GetTopicRequest) — 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::PubSub::V1::Topic)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Topic) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_topic_snapshots
def list_topic_snapshots(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListTopicSnapshotsResponseBaseline implementation for the list_topic_snapshots REST call
- request_pb (::Google::Cloud::PubSub::V1::ListTopicSnapshotsRequest) — 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::PubSub::V1::ListTopicSnapshotsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::ListTopicSnapshotsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_topic_subscriptions
def list_topic_subscriptions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListTopicSubscriptionsResponseBaseline implementation for the list_topic_subscriptions REST call
- request_pb (::Google::Cloud::PubSub::V1::ListTopicSubscriptionsRequest) — 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::PubSub::V1::ListTopicSubscriptionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::ListTopicSubscriptionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_topics
def list_topics(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListTopicsResponseBaseline implementation for the list_topics REST call
- request_pb (::Google::Cloud::PubSub::V1::ListTopicsRequest) — 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::PubSub::V1::ListTopicsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::ListTopicsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> LoggerThe logger used for request/response debug logging.
- (Logger)
#publish
def publish(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::PublishResponseBaseline implementation for the publish REST call
- request_pb (::Google::Cloud::PubSub::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::PubSub::V1::PublishResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::PublishResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_topic
def update_topic(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::TopicBaseline implementation for the update_topic REST call
- request_pb (::Google::Cloud::PubSub::V1::UpdateTopicRequest) — 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::PubSub::V1::Topic)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Topic) — A result object deserialized from the server's reply
- (::ArgumentError)