Class: Google::Apis::ClassroomV1::ModifyAttachmentsRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb

Overview

Request to modify the attachments of a student submission.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ModifyAttachmentsRequest

Returns a new instance of ModifyAttachmentsRequest.



1561
1562
1563
# File 'generated/google/apis/classroom_v1/classes.rb', line 1561

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

Instance Attribute Details

#add_attachmentsArray<Google::Apis::ClassroomV1::Attachment>

Attachments to add. A student submission may not have more than 20 attachments. This may only contain link attachments. Corresponds to the JSON property addAttachments



1559
1560
1561
# File 'generated/google/apis/classroom_v1/classes.rb', line 1559

def add_attachments
  @add_attachments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1566
1567
1568
# File 'generated/google/apis/classroom_v1/classes.rb', line 1566

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