Class: Google::Apis::KeepV1::Permission

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#deletedBoolean 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

Returns:

  • (Boolean)


346
347
348
# File 'lib/google/apis/keep_v1/classes.rb', line 346

def deleted
  @deleted
end

#emailString

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

Returns:

  • (String)


354
355
356
# File 'lib/google/apis/keep_v1/classes.rb', line 354

def email
  @email
end

#familyGoogle::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

#groupGoogle::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

#nameString

Output only. The resource name. Corresponds to the JSON property name

Returns:

  • (String)


369
370
371
# File 'lib/google/apis/keep_v1/classes.rb', line 369

def name
  @name
end

#roleString

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

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/keep_v1/classes.rb', line 375

def role
  @role
end

#userGoogle::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