Class: Google::Apis::IamV1::ListRolesResponse

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 response containing the roles defined under a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListRolesResponse

Returns a new instance of ListRolesResponse.



938
939
940
# File 'lib/google/apis/iam_v1/classes.rb', line 938

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

Instance Attribute Details

#next_page_tokenString

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

Returns:

  • (String)


931
932
933
# File 'lib/google/apis/iam_v1/classes.rb', line 931

def next_page_token
  @next_page_token
end

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

The Roles defined on this resource. Corresponds to the JSON property roles

Returns:



936
937
938
# File 'lib/google/apis/iam_v1/classes.rb', line 936

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



943
944
945
946
# File 'lib/google/apis/iam_v1/classes.rb', line 943

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