Class: Google::Apis::IamV1::QueryTestablePermissionsRequest

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

A request to get permissions which can be tested on a resource.

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) ⇒ QueryTestablePermissionsRequest

Returns a new instance of QueryTestablePermissionsRequest



726
727
728
# File 'generated/google/apis/iam_v1/classes.rb', line 726

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

Instance Attribute Details

#full_resource_nameString

Required. The full resource name to query from the list of testable permissions. The name follows the Google Cloud Platform resource format. For example, a Cloud Platform project with id my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project. Corresponds to the JSON property fullResourceName

Returns:

  • (String)


713
714
715
# File 'generated/google/apis/iam_v1/classes.rb', line 713

def full_resource_name
  @full_resource_name
end

#page_sizeFixnum

Optional limit on the number of permissions to include in the response. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


718
719
720
# File 'generated/google/apis/iam_v1/classes.rb', line 718

def page_size
  @page_size
end

#page_tokenString

Optional pagination token returned in an earlier QueryTestablePermissionsRequest. Corresponds to the JSON property pageToken

Returns:

  • (String)


724
725
726
# File 'generated/google/apis/iam_v1/classes.rb', line 724

def page_token
  @page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



731
732
733
734
735
# File 'generated/google/apis/iam_v1/classes.rb', line 731

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