Class: Google::Apis::IamV1::QueryGrantableRolesResponse

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

Overview

The grantable role query response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryGrantableRolesResponse

Returns a new instance of QueryGrantableRolesResponse.



2021
2022
2023
# File 'lib/google/apis/iam_v1/classes.rb', line 2021

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

Instance Attribute Details

#next_page_tokenString

To retrieve the next page of results, set QueryGrantableRolesRequest. page_token to this value. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2014
2015
2016
# File 'lib/google/apis/iam_v1/classes.rb', line 2014

def next_page_token
  @next_page_token
end

#rolesArray<Google::Apis::IamV1::Role>

The list of matching roles. Corresponds to the JSON property roles

Returns:



2019
2020
2021
# File 'lib/google/apis/iam_v1/classes.rb', line 2019

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2026
2027
2028
2029
# File 'lib/google/apis/iam_v1/classes.rb', line 2026

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