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.



383
384
385
# File 'lib/google/apis/keep_v1/classes.rb', line 383

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)


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

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)


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

def email
  @email
end

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

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

#nameString

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

Returns:

  • (String)


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

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)


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

def role
  @role
end

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