Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::SubscriptionAdmin::Rest::ServiceStub.
REST service stub for the SubscriptionAdmin service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#acknowledge
def acknowledge(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the acknowledge REST call
- request_pb (::Google::Cloud::PubSub::V1::AcknowledgeRequest) — 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)
#create_snapshot
def create_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SnapshotBaseline implementation for the create_snapshot REST call
- request_pb (::Google::Cloud::PubSub::V1::CreateSnapshotRequest) — 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::Snapshot)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Snapshot) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_subscription
def create_subscription(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SubscriptionBaseline implementation for the create_subscription REST call
- request_pb (::Google::Cloud::PubSub::V1::Subscription) — 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::Subscription)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Subscription) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_snapshot
def delete_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the delete_snapshot REST call
- request_pb (::Google::Cloud::PubSub::V1::DeleteSnapshotRequest) — 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)
#delete_subscription
def delete_subscription(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the delete_subscription REST call
- request_pb (::Google::Cloud::PubSub::V1::DeleteSubscriptionRequest) — 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)
#endpoint
def endpoint() -> StringThe effective endpoint
- (String)
#get_snapshot
def get_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SnapshotBaseline implementation for the get_snapshot REST call
- request_pb (::Google::Cloud::PubSub::V1::GetSnapshotRequest) — 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::Snapshot)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Snapshot) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_subscription
def get_subscription(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SubscriptionBaseline implementation for the get_subscription REST call
- request_pb (::Google::Cloud::PubSub::V1::GetSubscriptionRequest) — 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::Subscription)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Subscription) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_snapshots
def list_snapshots(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListSnapshotsResponseBaseline implementation for the list_snapshots REST call
- request_pb (::Google::Cloud::PubSub::V1::ListSnapshotsRequest) — 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::ListSnapshotsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::ListSnapshotsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_subscriptions
def list_subscriptions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::ListSubscriptionsResponseBaseline implementation for the list_subscriptions REST call
- request_pb (::Google::Cloud::PubSub::V1::ListSubscriptionsRequest) — 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::ListSubscriptionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::ListSubscriptionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> LoggerThe logger used for request/response debug logging.
- (Logger)
#modify_ack_deadline
def modify_ack_deadline(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the modify_ack_deadline REST call
- request_pb (::Google::Cloud::PubSub::V1::ModifyAckDeadlineRequest) — 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)
#modify_push_config
def modify_push_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the modify_push_config REST call
- request_pb (::Google::Cloud::PubSub::V1::ModifyPushConfigRequest) — 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)
#pull
def pull(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::PullResponseBaseline implementation for the pull REST call
- request_pb (::Google::Cloud::PubSub::V1::PullRequest) — 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::PullResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::PullResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#seek
def seek(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SeekResponseBaseline implementation for the seek REST call
- request_pb (::Google::Cloud::PubSub::V1::SeekRequest) — 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::SeekResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::SeekResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_snapshot
def update_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SnapshotBaseline implementation for the update_snapshot REST call
- request_pb (::Google::Cloud::PubSub::V1::UpdateSnapshotRequest) — 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::Snapshot)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Snapshot) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_subscription
def update_subscription(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PubSub::V1::SubscriptionBaseline implementation for the update_subscription REST call
- request_pb (::Google::Cloud::PubSub::V1::UpdateSubscriptionRequest) — 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::Subscription)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PubSub::V1::Subscription) — A result object deserialized from the server's reply
- (::ArgumentError)