Class: Google::Cloud::PolicySimulator::V1::ReplayConfig
- Inherits:
-
Object
- Object
- Google::Cloud::PolicySimulator::V1::ReplayConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/policysimulator/v1/simulator.rb
Overview
The configuration used for a Replay.
Defined Under Namespace
Modules: LogSource Classes: PolicyOverlayEntry
Instance Attribute Summary collapse
-
#log_source ⇒ ::Google::Cloud::PolicySimulator::V1::ReplayConfig::LogSource
The logs to use as input for the Replay.
-
#policy_overlay ⇒ ::Google::Protobuf::Map{::String => ::Google::Iam::V1::Policy}
A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.
Instance Attribute Details
#log_source ⇒ ::Google::Cloud::PolicySimulator::V1::ReplayConfig::LogSource
Returns The logs to use as input for the Replay.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'proto_docs/google/cloud/policysimulator/v1/simulator.rb', line 251 class ReplayConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Iam::V1::Policy] class PolicyOverlayEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The source of the logs to use for a # {::Google::Cloud::PolicySimulator::V1::Replay Replay}. module LogSource # An unspecified log source. # If the log source is unspecified, the # {::Google::Cloud::PolicySimulator::V1::Replay Replay} defaults to using # `RECENT_ACCESSES`. LOG_SOURCE_UNSPECIFIED = 0 # All access logs from the last 90 days. These logs may not include logs # from the most recent 7 days. RECENT_ACCESSES = 1 end end |
#policy_overlay ⇒ ::Google::Protobuf::Map{::String => ::Google::Iam::V1::Policy}
Returns 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 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.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'proto_docs/google/cloud/policysimulator/v1/simulator.rb', line 251 class ReplayConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Iam::V1::Policy] class PolicyOverlayEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The source of the logs to use for a # {::Google::Cloud::PolicySimulator::V1::Replay Replay}. module LogSource # An unspecified log source. # If the log source is unspecified, the # {::Google::Cloud::PolicySimulator::V1::Replay Replay} defaults to using # `RECENT_ACCESSES`. LOG_SOURCE_UNSPECIFIED = 0 # All access logs from the last 90 days. These logs may not include logs # from the most recent 7 days. RECENT_ACCESSES = 1 end end |