PolicySimulator
import { PolicySimulator } from "https://googleapis.deno.dev/v1/policysimulator:v1.ts";
Policy Simulator is a collection of endpoints for creating, running, and
viewing a Replay. A Replay
is a type of simulation that lets you see how
your members' access to resources might change if you changed your IAM
policy. During a 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 members' access might change
under the proposed policy.
§Methods
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Creates and starts a Replay using the given ReplayConfig.
Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: projects/my-example-project/locations/global
Gets the specified Replay. Each Replay
is available for at least 7 days.
Required. The name of the Replay to retrieve, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where {resource-id}
is the ID of the project, folder, or organization that owns the Replay
. Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
Lists the results of running a Replay.
Required. The Replay whose results are listed, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
Example: projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for
the proposed changes in the provided
OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are
specified by this OrgPolicyOverlay
. The resources to scan are inferred
from these specified changes.
Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: organizations/my-example-org/locations/global
GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days.
Required. The name of the OrgPolicyViolationsPreview to get.
ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
Required. The parent the violations are scoped to. Format: organizations/{organization}/locations/{location}
Example: organizations/my-example-org/locations/global
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview.
Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format: organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}
Creates and starts a Replay using the given ReplayConfig.
Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: projects/my-example-project/locations/global
Gets the specified Replay. Each Replay
is available for at least 7 days.
Required. The name of the Replay to retrieve, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where {resource-id}
is the ID of the project, folder, or organization that owns the Replay
. Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
Lists the results of running a Replay.
Required. The Replay whose results are listed, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
Example: projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Creates and starts a Replay using the given ReplayConfig.
Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: projects/my-example-project/locations/global
Gets the specified Replay. Each Replay
is available for at least 7 days.
Required. The name of the Replay to retrieve, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where {resource-id}
is the ID of the project, folder, or organization that owns the Replay
. Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
Lists the results of running a Replay.
Required. The Replay whose results are listed, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
Example: projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36