Class: Google::Apis::KeepV1::BatchDeletePermissionsRequest

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

The request to remove one or more permissions from a note. A permission with the OWNER role can't be removed. If removing a permission fails, then the entire request fails and no changes are made. Returns a 400 bad request error if a specified permission does not exist on the note.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDeletePermissionsRequest

Returns a new instance of BatchDeletePermissionsRequest.



103
104
105
# File 'lib/google/apis/keep_v1/classes.rb', line 103

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#namesArray<String>

Required. The names of the permissions to delete. Format: notes/note/ permissions/permission` Corresponds to the JSON propertynames`

Returns:

  • (Array<String>)


101
102
103
# File 'lib/google/apis/keep_v1/classes.rb', line 101

def names
  @names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
# File 'lib/google/apis/keep_v1/classes.rb', line 108

def update!(**args)
  @names = args[:names] if args.key?(:names)
end