Class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ListConstraintsResponse

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

Overview

The response returned from the ListConstraints method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ListConstraintsResponse

Returns a new instance of GoogleCloudOrgpolicyV2ListConstraintsResponse.



265
266
267
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 265

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

Instance Attribute Details

#constraintsArray<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Constraint>

The collection of constraints that are available on the targeted resource. Corresponds to the JSON property constraints



258
259
260
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 258

def constraints
  @constraints
end

#next_page_tokenString

Page token used to retrieve the next page. This is currently not used. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


263
264
265
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 263

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 270

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