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
- request_pb (::Google::Cloud::PolicySimulator::V1::CreateReplayRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::PolicySimulator::V1::GetReplayRequest) — 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::PolicySimulator::V1::Replay)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PolicySimulator::V1::Replay) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#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
- request_pb (::Google::Cloud::PolicySimulator::V1::ListReplayResultsRequest) — 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::PolicySimulator::V1::ListReplayResultsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::PolicySimulator::V1::ListReplayResultsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)