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.
382 383 384 |
# File 'lib/google/apis/keep_v1/classes.rb', line 382 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
346 347 348 |
# File 'lib/google/apis/keep_v1/classes.rb', line 346 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
354 355 356 |
# File 'lib/google/apis/keep_v1/classes.rb', line 354 def email @email end |
#family ⇒ Google::Apis::KeepV1::Family
Describes a single Google Family.
Corresponds to the JSON property family
359 360 361 |
# File 'lib/google/apis/keep_v1/classes.rb', line 359 def family @family end |
#group ⇒ Google::Apis::KeepV1::Group
Describes a single Group.
Corresponds to the JSON property group
364 365 366 |
# File 'lib/google/apis/keep_v1/classes.rb', line 364 def group @group end |
#name ⇒ String
Output only. The resource name.
Corresponds to the JSON property name
369 370 371 |
# File 'lib/google/apis/keep_v1/classes.rb', line 369 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
375 376 377 |
# File 'lib/google/apis/keep_v1/classes.rb', line 375 def role @role end |
#user ⇒ Google::Apis::KeepV1::User
Describes a single user.
Corresponds to the JSON property user
380 381 382 |
# File 'lib/google/apis/keep_v1/classes.rb', line 380 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
387 388 389 390 391 392 393 394 395 |
# File 'lib/google/apis/keep_v1/classes.rb', line 387 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 |