Class: Google::Apis::DriveV3::PermissionList

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

Overview

A list of permissions for a file.

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

Returns a new instance of PermissionList.


1248
1249
1250
# File 'generated/google/apis/drive_v3/classes.rb', line 1248

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string "drive# permissionList". Corresponds to the JSON property kind

Returns:

  • (String)

1241
1242
1243
# File 'generated/google/apis/drive_v3/classes.rb', line 1241

def kind
  @kind
end

#permissionsArray<Google::Apis::DriveV3::Permission>

The full list of permissions. Corresponds to the JSON property permissions


1246
1247
1248
# File 'generated/google/apis/drive_v3/classes.rb', line 1246

def permissions
  @permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1253
1254
1255
1256
# File 'generated/google/apis/drive_v3/classes.rb', line 1253

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