Class: Google::Apis::ClassroomV1::CopyHistory

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

Overview

Identifier of a previous copy of a given attachment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CopyHistory

Returns a new instance of CopyHistory.



423
424
425
# File 'lib/google/apis/classroom_v1/classes.rb', line 423

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

Instance Attribute Details

#attachment_idString

Immutable. Identifier of the attachment. Corresponds to the JSON property attachmentId

Returns:

  • (String)


405
406
407
# File 'lib/google/apis/classroom_v1/classes.rb', line 405

def attachment_id
  @attachment_id
end

#course_idString

Immutable. Identifier of the course. Corresponds to the JSON property courseId

Returns:

  • (String)


410
411
412
# File 'lib/google/apis/classroom_v1/classes.rb', line 410

def course_id
  @course_id
end

#item_idString

Immutable. Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached. Corresponds to the JSON property itemId

Returns:

  • (String)


416
417
418
# File 'lib/google/apis/classroom_v1/classes.rb', line 416

def item_id
  @item_id
end

#post_idString

Immutable. Deprecated, use item_id instead. Corresponds to the JSON property postId

Returns:

  • (String)


421
422
423
# File 'lib/google/apis/classroom_v1/classes.rb', line 421

def post_id
  @post_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



428
429
430
431
432
433
# File 'lib/google/apis/classroom_v1/classes.rb', line 428

def update!(**args)
  @attachment_id = args[:attachment_id] if args.key?(:attachment_id)
  @course_id = args[:course_id] if args.key?(:course_id)
  @item_id = args[:item_id] if args.key?(:item_id)
  @post_id = args[:post_id] if args.key?(:post_id)
end