class Google::Apis::AppsactivityV1::Permission

Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.

Attributes

name[RW]

The name of the user or group the permission applies to. Corresponds to the JSON property `name` @return [String]

permission_id[RW]

The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource. Corresponds to the JSON property `permissionId` @return [String]

role[RW]

Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file. Corresponds to the JSON property `role` @return [String]

type[RW]

Indicates how widely permissions are granted. Corresponds to the JSON property `type` @return [String]

user[RW]

A representation of a user. Corresponds to the JSON property `user` @return [Google::Apis::AppsactivityV1::User]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/appsactivity_v1/classes.rb, line 248
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/appsactivity_v1/classes.rb, line 253
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @permission_id = args[:permission_id] if args.key?(:permission_id)
  @role = args[:role] if args.key?(:role)
  @type = args[:type] if args.key?(:type)
  @user = args[:user] if args.key?(:user)
  @with_link = args[:with_link] if args.key?(:with_link)
end