Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplayConfig
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplayConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1alpha/classes.rb,
lib/google/apis/policysimulator_v1alpha/representations.rb,
lib/google/apis/policysimulator_v1alpha/representations.rb
Overview
The configuration used for a Replay.
Instance Attribute Summary collapse
-
#log_source ⇒ String
The logs to use as input for the Replay.
-
#policy_overlay ⇒ Hash<String,Google::Apis::PolicysimulatorV1alpha::GoogleIamV1Policy>
A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaReplayConfig
constructor
A new instance of GoogleCloudPolicysimulatorV1alphaReplayConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaReplayConfig
Returns a new instance of GoogleCloudPolicysimulatorV1alphaReplayConfig.
1279 1280 1281 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_source ⇒ String
The logs to use as input for the Replay.
Corresponds to the JSON property logSource
1264 1265 1266 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1264 def log_source @log_source end |
#policy_overlay ⇒ Hash<String,Google::Apis::PolicysimulatorV1alpha::GoogleIamV1Policy>
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.
Corresponds to the JSON property policyOverlay
1277 1278 1279 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1277 def @policy_overlay end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1284 1285 1286 1287 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1284 def update!(**args) @log_source = args[:log_source] if args.key?(:log_source) @policy_overlay = args[:policy_overlay] if args.key?(:policy_overlay) end |