Class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ListPoliciesResponse
- Inherits:
-
Object
- Object
- Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ListPoliciesResponse
- 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 ListPolicies method. It will be empty if no policies are set on the resource.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
Page token used to retrieve the next page.
-
#policies ⇒ Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy>
All policies that exist on the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ListPoliciesResponse
constructor
A new instance of GoogleCloudOrgpolicyV2ListPoliciesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ListPoliciesResponse
Returns a new instance of GoogleCloudOrgpolicyV2ListPoliciesResponse.
441 442 443 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
Page token used to retrieve the next page. This is currently not used, but the
server may at any point start supplying a valid token.
Corresponds to the JSON property nextPageToken
433 434 435 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 433 def next_page_token @next_page_token end |
#policies ⇒ Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy>
All policies that exist on the resource. It will be empty if no policies are
set.
Corresponds to the JSON property policies
439 440 441 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 439 def policies @policies end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
446 447 448 449 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 446 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @policies = args[:policies] if args.key?(:policies) end |