Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::Simulator::Rest::ServiceStub (v0.2.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)

#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)

#initialize

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

#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)