# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/policysimulator/v1/simulator.proto for package 'Google.Cloud.PolicySimulator.V1' # Original file comments: # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'grpc' require 'google/cloud/policysimulator/v1/simulator_pb' module Google module Cloud module PolicySimulator module V1 module Simulator # Policy Simulator API service. # # Policy Simulator is a collection of endpoints for creating, running, and # viewing a [Replay][google.cloud.policysimulator.v1.Replay]. A # [Replay][google.cloud.policysimulator.v1.Replay] is a type of simulation that # lets you see how your principals' access to resources might change if you # changed your IAM policy. # # During a [Replay][google.cloud.policysimulator.v1.Replay], Policy Simulator # re-evaluates, or replays, past access attempts under both the current policy # and your proposed policy, and compares those results to determine how your # principals' access might change under the proposed policy. class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.policysimulator.v1.Simulator' # Gets the specified [Replay][google.cloud.policysimulator.v1.Replay]. Each # `Replay` is available for at least 7 days. rpc :GetReplay, ::Google::Cloud::PolicySimulator::V1::GetReplayRequest, ::Google::Cloud::PolicySimulator::V1::Replay # Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using # the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig]. rpc :CreateReplay, ::Google::Cloud::PolicySimulator::V1::CreateReplayRequest, ::Google::Longrunning::Operation # Lists the results of running a # [Replay][google.cloud.policysimulator.v1.Replay]. rpc :ListReplayResults, ::Google::Cloud::PolicySimulator::V1::ListReplayResultsRequest, ::Google::Cloud::PolicySimulator::V1::ListReplayResultsResponse end Stub = Service.rpc_stub_class end end end end end