Class: Google::Apis::CloudassetV1::OrgPolicyResult

Inherits:
Object
  • Object
show all
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

The organization policy result to the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrgPolicyResult

Returns a new instance of OrgPolicyResult.



4298
4299
4300
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4298

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

Instance Attribute Details

#consolidated_policyGoogle::Apis::CloudassetV1::AnalyzerOrgPolicy

This organization policy message is a modified version of the one defined in the OrgPolicy system. This message contains several fields defined in the original organization policy with some new fields for analysis purpose. Corresponds to the JSON property consolidatedPolicy



4288
4289
4290
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4288

def consolidated_policy
  @consolidated_policy
end

#policy_bundleArray<Google::Apis::CloudassetV1::AnalyzerOrgPolicy>

The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy. attached_resource. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list. Corresponds to the JSON property policyBundle



4296
4297
4298
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4296

def policy_bundle
  @policy_bundle
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4303
4304
4305
4306
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4303

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