Class: Google::Apis::CloudassetV1::AnalyzerOrgPolicy
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::AnalyzerOrgPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
This organization policy message is a modified version of the one defined in the Organization Policy system. This message contains several fields defined in the original organization policy with some new fields for analysis purpose.
Instance Attribute Summary collapse
-
#applied_resource ⇒ String
The full resource name of an organization/folder/project resource where this organization policy applies to.
-
#attached_resource ⇒ String
The full resource name of an organization/folder/project resource where this organization policy is set.
-
#inherit_from_parent ⇒ Boolean
(also: #inherit_from_parent?)
If
inherit_from_parent
is true, Rules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. -
#reset ⇒ Boolean
(also: #reset?)
Ignores policies set above this resource and restores the default behavior of the constraint at this resource.
-
#rules ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Rule>
List of rules for this organization policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyzerOrgPolicy
constructor
A new instance of AnalyzerOrgPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnalyzerOrgPolicy
Returns a new instance of AnalyzerOrgPolicy.
325 326 327 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#applied_resource ⇒ String
The full resource name of an organization/folder/project resource where this
organization policy applies to. For any user defined org policies, this field
has the same value as the [attached_resource] field. Only for default policy,
this field has the different value.
Corresponds to the JSON property appliedResource
292 293 294 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 292 def applied_resource @applied_resource end |
#attached_resource ⇒ String
The full resource name of an organization/folder/project resource where this
organization policy is set. Notice that some type of constraints are defined
with default policy. This field will be empty for them.
Corresponds to the JSON property attachedResource
300 301 302 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 300 def attached_resource @attached_resource end |
#inherit_from_parent ⇒ Boolean Also known as: inherit_from_parent?
If inherit_from_parent
is true, Rules set higher up in the hierarchy (up to
the closest root) are inherited and present in the effective policy. If it is
false, then no rules are inherited, and this policy becomes the effective root
for evaluation.
Corresponds to the JSON property inheritFromParent
308 309 310 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 308 def inherit_from_parent @inherit_from_parent end |
#reset ⇒ Boolean Also known as: reset?
Ignores policies set above this resource and restores the default behavior of
the constraint at this resource. This field can be set in policies for either
list or boolean constraints. If set, rules
must be empty and
inherit_from_parent
must be set to false.
Corresponds to the JSON property reset
317 318 319 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 317 def reset @reset end |
#rules ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Rule>
List of rules for this organization policy.
Corresponds to the JSON property rules
323 324 325 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 323 def rules @rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
330 331 332 333 334 335 336 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 330 def update!(**args) @applied_resource = args[:applied_resource] if args.key?(:applied_resource) @attached_resource = args[:attached_resource] if args.key?(:attached_resource) @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent) @reset = args[:reset] if args.key?(:reset) @rules = args[:rules] if args.key?(:rules) end |