Class: Google::Apis::KeepV1::BatchCreatePermissionsRequest

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 one or more permissions on the note. Currently, only the WRITER role may be specified. If adding a permission fails, then the entire request fails and no changes are made.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchCreatePermissionsRequest

Returns a new instance of BatchCreatePermissionsRequest.



61
62
63
# File 'lib/google/apis/keep_v1/classes.rb', line 61

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

Instance Attribute Details

#requestsArray<Google::Apis::KeepV1::CreatePermissionRequest>

The request message specifying the resources to create. Corresponds to the JSON property requests



59
60
61
# File 'lib/google/apis/keep_v1/classes.rb', line 59

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



66
67
68
# File 'lib/google/apis/keep_v1/classes.rb', line 66

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