Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/policysimulator_v1beta/classes.rb,
lib/google/apis/policysimulator_v1beta/representations.rb,
lib/google/apis/policysimulator_v1beta/representations.rb

Overview

A change to an OrgPolicy custom constraint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay

Returns a new instance of GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay.



1417
1418
1419
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1417

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_constraintGoogle::Apis::PolicysimulatorV1beta::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



1409
1410
1411
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1409

def custom_constraint
  @custom_constraint
end

#custom_constraint_parentString

Optional. Resource the constraint is attached to. Example: "organization/ 987654" Corresponds to the JSON property customConstraintParent

Returns:

  • (String)


1415
1416
1417
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1415

def custom_constraint_parent
  @custom_constraint_parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1422
1423
1424
1425
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1422

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