Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalTestPermissionsRequest

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

Overview

Request message for TestPermissions method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SasPortalTestPermissionsRequest

Returns a new instance of SasPortalTestPermissionsRequest.



1491
1492
1493
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1491

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

Instance Attribute Details

#permissionsArray<String>

The set of permissions to check for the resource. Corresponds to the JSON property permissions

Returns:

  • (Array<String>)


1484
1485
1486
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1484

def permissions
  @permissions
end

#resourceString

Required. The resource for which the permissions are being requested. Corresponds to the JSON property resource

Returns:

  • (String)


1489
1490
1491
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1489

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1496
1497
1498
1499
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1496

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