Class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
- 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
A change to an OrgPolicy custom constraint.
Instance Attribute Summary collapse
-
#custom_constraint ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint
A custom constraint defined by customers which can only be applied to the given resource types and organization.
-
#custom_constraint_parent ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
constructor
A new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
Returns a new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay.
1105 1106 1107 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1105 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_constraint ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint
A custom constraint defined by customers which can only be applied to the
given resource types and organization. By creating a custom constraint,
customers can apply policies of this custom constraint. Creating a custom
constraint itself does NOT apply any policy enforcement.
Corresponds to the JSON property customConstraint
1097 1098 1099 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1097 def custom_constraint @custom_constraint end |
#custom_constraint_parent ⇒ String
Optional. Resource the constraint is attached to. Example: "organization/
987654"
Corresponds to the JSON property customConstraintParent
1103 1104 1105 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1103 def custom_constraint_parent @custom_constraint_parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1110 1111 1112 1113 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 1110 def update!(**args) @custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint) @custom_constraint_parent = args[:custom_constraint_parent] if args.key?(:custom_constraint_parent) end |