Class ReplayConfig (0.1.5)

ReplayConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The configuration used for a Replay.

Attributes

NameDescription
policy_overlay MutableMapping[str, google.iam.v1.policy_pb2.Policy]
A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy][google.iam.v1.Policy] objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
log_source google.cloud.policysimulator_v1.types.ReplayConfig.LogSource
The logs to use as input for the Replay.

Classes

LogSource

LogSource(value)

The source of the logs to use for a Replay.

Values: LOG_SOURCE_UNSPECIFIED (0): An unspecified log source. If the log source is unspecified, the Replay defaults to using RECENT_ACCESSES. RECENT_ACCESSES (1): All access logs from the last 90 days. These logs may not include logs from the most recent 7 days.

PolicyOverlayEntry

PolicyOverlayEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.