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

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

Overview

The grantable role query response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryGrantableRolesResponse

Returns a new instance of QueryGrantableRolesResponse.


521
522
523
# File 'generated/google/apis/iam_v1/classes.rb', line 521

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

Instance Attribute Details

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

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

Returns:


519
520
521
# File 'generated/google/apis/iam_v1/classes.rb', line 519

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


526
527
528
# File 'generated/google/apis/iam_v1/classes.rb', line 526

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