Class: Google::Apis::CloudassetV1::AnalyzeOrgPoliciesResponse

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 response message for AssetService.AnalyzeOrgPolicies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyzeOrgPoliciesResponse

Returns a new instance of AnalyzeOrgPoliciesResponse.



203
204
205
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 203

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

Instance Attribute Details

#constraintGoogle::Apis::CloudassetV1::AnalyzerOrgPolicyConstraint

The organization policy constraint definition. Corresponds to the JSON property constraint



189
190
191
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 189

def constraint
  @constraint
end

#next_page_tokenString

The page token to fetch the next page for AnalyzeOrgPoliciesResponse. org_policy_results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 195

def next_page_token
  @next_page_token
end

#org_policy_resultsArray<Google::Apis::CloudassetV1::OrgPolicyResult>

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint. Corresponds to the JSON property orgPolicyResults



201
202
203
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 201

def org_policy_results
  @org_policy_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



208
209
210
211
212
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 208

def update!(**args)
  @constraint = args[:constraint] if args.key?(:constraint)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @org_policy_results = args[:org_policy_results] if args.key?(:org_policy_results)
end