Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::Simulator::Rest::ServiceStub (v1.1.0)

Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::Simulator::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_replay

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

Baseline implementation for the create_replay REST call

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

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_replay

def get_replay(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PolicySimulator::V1::Replay

Baseline implementation for the get_replay REST call

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

#list_replay_results

def list_replay_results(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PolicySimulator::V1::ListReplayResultsResponse

Baseline implementation for the list_replay_results REST call

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

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)