class Google::Apis::KeepV1::Permission
A single permission on the note. Associates a `member` with a `role`.
Attributes
Output only. Whether this member has been deleted. If the member is recovered, this value is set to false and the recovered member retains the role on the note. Corresponds to the JSON property `deleted` @return [Boolean]
Output only. Whether this member has been deleted. If the member is recovered, this value is set to false and the recovered member retains the role on the note. Corresponds to the JSON property `deleted` @return [Boolean]
The email associated with the member. If set on create, the `email` field in the `User` or `Group` message must either be empty or match this field. On read, may be unset if the member does not have an associated email. Corresponds to the JSON property `email` @return [String]
Describes a single Group
. Corresponds to the JSON property `group` @return [Google::Apis::KeepV1::Group]
Output only. The resource name. Corresponds to the JSON property `name` @return [String]
The role granted by this permission. The role determines the entity’s ability to read, write, and share notes. Corresponds to the JSON property `role` @return [String]
Describes a single user. Corresponds to the JSON property `user` @return [Google::Apis::KeepV1::User]
Public Class Methods
# File lib/google/apis/keep_v1/classes.rb, line 383 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/keep_v1/classes.rb, line 388 def update!(**args) @deleted = args[:deleted] if args.key?(:deleted) @email = args[:email] if args.key?(:email) @family = args[:family] if args.key?(:family) @group = args[:group] if args.key?(:group) @name = args[:name] if args.key?(:name) @role = args[:role] if args.key?(:role) @user = args[:user] if args.key?(:user) end