@Generated(value="by gapic-generator-java")
See: Description
| Class | Description |
|---|---|
| SimulatorClient |
Service Description: Policy Simulator API service.
|
| SimulatorClient.ListReplayResultsFixedSizeCollection | |
| SimulatorClient.ListReplayResultsPage | |
| SimulatorClient.ListReplayResultsPagedResponse | |
| SimulatorSettings |
Settings class to configure an instance of
SimulatorClient. |
| SimulatorSettings.Builder |
Builder for SimulatorSettings.
|
The interfaces provided are listed below, along with usage samples.
======================= SimulatorClient =======================
Service Description: 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.
Sample for SimulatorClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (SimulatorClient simulatorClient = SimulatorClient.create()) {
ReplayName name =
ReplayName.ofProjectLocationReplayName("[PROJECT]", "[LOCATION]", "[REPLAY]");
Replay response = simulatorClient.getReplay(name);
}
Copyright © 2024 Google LLC. All rights reserved.