Class: Google::Apis::KeepV1::CreatePermissionRequest

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 add a single permission on the note.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreatePermissionRequest

Returns a new instance of CreatePermissionRequest.



128
129
130
# File 'lib/google/apis/keep_v1/classes.rb', line 128

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

Instance Attribute Details

#parentString

Required. The parent note where this permission will be created. Format: notes/note` Corresponds to the JSON propertyparent`

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/keep_v1/classes.rb', line 121

def parent
  @parent
end

#permissionGoogle::Apis::KeepV1::Permission

A single permission on the note. Associates a member with a role. Corresponds to the JSON property permission



126
127
128
# File 'lib/google/apis/keep_v1/classes.rb', line 126

def permission
  @permission
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



133
134
135
136
# File 'lib/google/apis/keep_v1/classes.rb', line 133

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