Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay

Returns a new instance of GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay.



648
649
650
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 648

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

Instance Attribute Details

#policyGoogle::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy

Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources. Corresponds to the JSON property policy



640
641
642
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 640

def policy
  @policy
end

#policy_parentString

Optional. The parent of the policy we are attaching to. Example: "projects/ 123456" Corresponds to the JSON property policyParent

Returns:

  • (String)


646
647
648
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 646

def policy_parent
  @policy_parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 653

def update!(**args)
  @policy = args[:policy] if args.key?(:policy)
  @policy_parent = args[:policy_parent] if args.key?(:policy_parent)
end