Class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2AlternatePolicySpec
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2AlternatePolicySpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1/classes.rb,
lib/google/apis/policysimulator_v1/representations.rb,
lib/google/apis/policysimulator_v1/representations.rb
Overview
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.
Instance Attribute Summary collapse
-
#launch ⇒ String
Reference to the launch that will be used while audit logging and to control the launch.
-
#spec ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec
Defines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2AlternatePolicySpec
constructor
A new instance of GoogleCloudOrgpolicyV2AlternatePolicySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2AlternatePolicySpec
Returns a new instance of GoogleCloudOrgpolicyV2AlternatePolicySpec.
42 43 44 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#launch ⇒ String
Reference to the launch that will be used while audit logging and to control
the launch. Should be set only in the alternate policy.
Corresponds to the JSON property launch
34 35 36 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 34 def launch @launch end |
#spec ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec
Defines a Google Cloud policy specification which is used to specify
constraints for configurations of Google Cloud resources.
Corresponds to the JSON property spec
40 41 42 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 40 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 47 def update!(**args) @launch = args[:launch] if args.key?(:launch) @spec = args[:spec] if args.key?(:spec) end |