Cloud Gaming V1 API - Class Google::Cloud::Gaming::V1::RealmsService::Rest::ServiceStub (v0.6.0)

Reference documentation and code samples for the Cloud Gaming V1 API class Google::Cloud::Gaming::V1::RealmsService::Rest::ServiceStub.

REST service stub for the RealmsService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_realm

def create_realm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_realm REST call

Parameters
  • request_pb (::Google::Cloud::Gaming::V1::CreateRealmRequest) — 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
Returns
Raises
  • (::ArgumentError)

#delete_realm

def delete_realm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_realm REST call

Parameters
  • request_pb (::Google::Cloud::Gaming::V1::DeleteRealmRequest) — 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
Returns
Raises
  • (::ArgumentError)

#get_realm

def get_realm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Gaming::V1::Realm

Baseline implementation for the get_realm REST call

Parameters
  • request_pb (::Google::Cloud::Gaming::V1::GetRealmRequest) — 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
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_realms

def list_realms(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Gaming::V1::ListRealmsResponse

Baseline implementation for the list_realms REST call

Parameters
  • request_pb (::Google::Cloud::Gaming::V1::ListRealmsRequest) — 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
Returns
Raises
  • (::ArgumentError)

#preview_realm_update

def preview_realm_update(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Gaming::V1::PreviewRealmUpdateResponse

Baseline implementation for the preview_realm_update REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_realm

def update_realm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_realm REST call

Parameters
  • request_pb (::Google::Cloud::Gaming::V1::UpdateRealmRequest) — 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
Returns
Raises
  • (::ArgumentError)