Class: Google::Apis::KeepV1::Permission
- Inherits:
-
Object
- Object
- Google::Apis::KeepV1::Permission
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/keep_v1/classes.rb,
lib/google/apis/keep_v1/representations.rb,
lib/google/apis/keep_v1/representations.rb
Overview
A single permission on the note. Associates a member
with a role
.
Instance Attribute Summary collapse
-
#deleted ⇒ Boolean
(also: #deleted?)
Output only.
-
#email ⇒ String
The email associated with the member.
-
#family ⇒ Google::Apis::KeepV1::Family
Describes a single Google Family.
-
#group ⇒ Google::Apis::KeepV1::Group
Describes a single Group.
-
#name ⇒ String
Output only.
-
#role ⇒ String
The role granted by this permission.
-
#user ⇒ Google::Apis::KeepV1::User
Describes a single user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Permission
constructor
A new instance of Permission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission.
383 384 385 |
# File 'lib/google/apis/keep_v1/classes.rb', line 383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deleted ⇒ Boolean Also known as: deleted?
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
347 348 349 |
# File 'lib/google/apis/keep_v1/classes.rb', line 347 def deleted @deleted end |
#email ⇒ String
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
355 356 357 |
# File 'lib/google/apis/keep_v1/classes.rb', line 355 def email @email end |
#family ⇒ Google::Apis::KeepV1::Family
Describes a single Google Family.
Corresponds to the JSON property family
360 361 362 |
# File 'lib/google/apis/keep_v1/classes.rb', line 360 def family @family end |
#group ⇒ Google::Apis::KeepV1::Group
Describes a single Group.
Corresponds to the JSON property group
365 366 367 |
# File 'lib/google/apis/keep_v1/classes.rb', line 365 def group @group end |
#name ⇒ String
Output only. The resource name.
Corresponds to the JSON property name
370 371 372 |
# File 'lib/google/apis/keep_v1/classes.rb', line 370 def name @name end |
#role ⇒ 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
376 377 378 |
# File 'lib/google/apis/keep_v1/classes.rb', line 376 def role @role end |
#user ⇒ Google::Apis::KeepV1::User
Describes a single user.
Corresponds to the JSON property user
381 382 383 |
# File 'lib/google/apis/keep_v1/classes.rb', line 381 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
388 389 390 391 392 393 394 395 396 |
# 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 |