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
The name of the user or group the permission applies to. Corresponds to the JSON property `name` @return [String]
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]
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]
Indicates how widely permissions are granted. Corresponds to the JSON property `type` @return [String]
A representation of a user. Corresponds to the JSON property `user` @return [Google::Apis::AppsactivityV1::User]
Whether the permission requires a link to the file. Corresponds to the JSON property `withLink` @return [Boolean]
Whether the permission requires a link to the file. Corresponds to the JSON property `withLink` @return [Boolean]
Public Class Methods
# File generated/google/apis/appsactivity_v1/classes.rb, line 248 def initialize(**args) update!(**args) end
Public Instance Methods
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