Class: Google::Apis::KeepV1::CreatePermissionRequest
- Inherits:
-
Object
- Object
- Google::Apis::KeepV1::CreatePermissionRequest
- 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
-
#parent ⇒ String
Required.
-
#permission ⇒ Google::Apis::KeepV1::Permission
A single permission on the note.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreatePermissionRequest
constructor
A new instance of CreatePermissionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#parent ⇒ String
Required. The parent note where this permission will be created. Format:
notes/
note`
Corresponds to the JSON property
parent`
121 122 123 |
# File 'lib/google/apis/keep_v1/classes.rb', line 121 def parent @parent end |
#permission ⇒ Google::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 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 |