Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::Spanner::Rest::ServiceStub.
REST service stub for the Spanner service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#batch_create_sessions
def batch_create_sessions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::BatchCreateSessionsResponseBaseline implementation for the batch_create_sessions REST call
- request_pb (::Google::Cloud::Spanner::V1::BatchCreateSessionsRequest) — 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::Spanner::V1::BatchCreateSessionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::BatchCreateSessionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#batch_write
def batch_write(request_pb, options = nil) { |chunk| ... } -> ::Gapic::Rest::TransportOperationBaseline implementation for the batch_write REST call
- request_pb (::Google::Cloud::Spanner::V1::BatchWriteRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- chunk (::String) — The chunk of data received during server streaming.
- (::Gapic::Rest::TransportOperation)
- (::ArgumentError)
#begin_transaction
def begin_transaction(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::TransactionBaseline implementation for the begin_transaction REST call
- request_pb (::Google::Cloud::Spanner::V1::BeginTransactionRequest) — 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::Spanner::V1::Transaction)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::Transaction) — A result object deserialized from the server's reply
- (::ArgumentError)
#commit
def commit(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::CommitResponseBaseline implementation for the commit REST call
- request_pb (::Google::Cloud::Spanner::V1::CommitRequest) — 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::Spanner::V1::CommitResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::CommitResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_session
def create_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::SessionBaseline implementation for the create_session REST call
- request_pb (::Google::Cloud::Spanner::V1::CreateSessionRequest) — 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::Spanner::V1::Session)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::Session) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_session
def delete_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the delete_session REST call
- request_pb (::Google::Cloud::Spanner::V1::DeleteSessionRequest) — 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)
#execute_batch_dml
def execute_batch_dml(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::ExecuteBatchDmlResponseBaseline implementation for the execute_batch_dml REST call
- request_pb (::Google::Cloud::Spanner::V1::ExecuteBatchDmlRequest) — 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::Spanner::V1::ExecuteBatchDmlResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::ExecuteBatchDmlResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#execute_sql
def execute_sql(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::ResultSetBaseline implementation for the execute_sql REST call
- request_pb (::Google::Cloud::Spanner::V1::ExecuteSqlRequest) — 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::Spanner::V1::ResultSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::ResultSet) — A result object deserialized from the server's reply
- (::ArgumentError)
#execute_streaming_sql
def execute_streaming_sql(request_pb, options = nil) { |chunk| ... } -> ::Gapic::Rest::TransportOperationBaseline implementation for the execute_streaming_sql REST call
- request_pb (::Google::Cloud::Spanner::V1::ExecuteSqlRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- chunk (::String) — The chunk of data received during server streaming.
- (::Gapic::Rest::TransportOperation)
- (::ArgumentError)
#fetch_cache_update
def fetch_cache_update(request_pb, options = nil) { |chunk| ... } -> ::Gapic::Rest::TransportOperationBaseline implementation for the fetch_cache_update REST call
- request_pb (::Google::Cloud::Spanner::V1::FetchCacheUpdateRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- chunk (::String) — The chunk of data received during server streaming.
- (::Gapic::Rest::TransportOperation)
- (::ArgumentError)
#get_session
def get_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::SessionBaseline implementation for the get_session REST call
- request_pb (::Google::Cloud::Spanner::V1::GetSessionRequest) — 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::Spanner::V1::Session)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::Session) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_sessions
def list_sessions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::ListSessionsResponseBaseline implementation for the list_sessions REST call
- request_pb (::Google::Cloud::Spanner::V1::ListSessionsRequest) — 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::Spanner::V1::ListSessionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::ListSessionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> LoggerThe logger used for request/response debug logging.
- (Logger)
#partition_query
def partition_query(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::PartitionResponseBaseline implementation for the partition_query REST call
- request_pb (::Google::Cloud::Spanner::V1::PartitionQueryRequest) — 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::Spanner::V1::PartitionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::PartitionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#partition_read
def partition_read(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::PartitionResponseBaseline implementation for the partition_read REST call
- request_pb (::Google::Cloud::Spanner::V1::PartitionReadRequest) — 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::Spanner::V1::PartitionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::PartitionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#read
def read(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Spanner::V1::ResultSetBaseline implementation for the read REST call
- request_pb (::Google::Cloud::Spanner::V1::ReadRequest) — 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::Spanner::V1::ResultSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Spanner::V1::ResultSet) — A result object deserialized from the server's reply
- (::ArgumentError)
#rollback
def rollback(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the rollback REST call
- request_pb (::Google::Cloud::Spanner::V1::RollbackRequest) — 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)
#streaming_read
def streaming_read(request_pb, options = nil) { |chunk| ... } -> ::Gapic::Rest::TransportOperationBaseline implementation for the streaming_read REST call
- request_pb (::Google::Cloud::Spanner::V1::ReadRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- chunk (::String) — The chunk of data received during server streaming.
- (::Gapic::Rest::TransportOperation)
- (::ArgumentError)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)