Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::Datastore::Rest::ServiceStub.
REST service stub for the Datastore service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#allocate_ids
def allocate_ids(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::AllocateIdsResponse
Baseline implementation for the allocate_ids REST call
- request_pb (::Google::Cloud::Datastore::V1::AllocateIdsRequest) — 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::Datastore::V1::AllocateIdsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::AllocateIdsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#begin_transaction
def begin_transaction(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::BeginTransactionResponse
Baseline implementation for the begin_transaction REST call
- request_pb (::Google::Cloud::Datastore::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::Datastore::V1::BeginTransactionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::BeginTransactionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#commit
def commit(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::CommitResponse
Baseline implementation for the commit REST call
- request_pb (::Google::Cloud::Datastore::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::Datastore::V1::CommitResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::CommitResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#lookup
def lookup(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::LookupResponse
Baseline implementation for the lookup REST call
- request_pb (::Google::Cloud::Datastore::V1::LookupRequest) — 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::Datastore::V1::LookupResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::LookupResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#reserve_ids
def reserve_ids(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::ReserveIdsResponse
Baseline implementation for the reserve_ids REST call
- request_pb (::Google::Cloud::Datastore::V1::ReserveIdsRequest) — 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::Datastore::V1::ReserveIdsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::ReserveIdsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#rollback
def rollback(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::RollbackResponse
Baseline implementation for the rollback REST call
- request_pb (::Google::Cloud::Datastore::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::Cloud::Datastore::V1::RollbackResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::RollbackResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#run_aggregation_query
def run_aggregation_query(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::RunAggregationQueryResponse
Baseline implementation for the run_aggregation_query REST call
- request_pb (::Google::Cloud::Datastore::V1::RunAggregationQueryRequest) — 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::Datastore::V1::RunAggregationQueryResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::RunAggregationQueryResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#run_query
def run_query(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Datastore::V1::RunQueryResponse
Baseline implementation for the run_query REST call
- request_pb (::Google::Cloud::Datastore::V1::RunQueryRequest) — 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::Datastore::V1::RunQueryResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Datastore::V1::RunQueryResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)