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.



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

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

Instance Attribute Details

#attachment_idString

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

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/classroom_v1/classes.rb', line 412

def attachment_id
  @attachment_id
end

#course_idString

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

Returns:

  • (String)


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

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)


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

def item_id
  @item_id
end

#post_idString

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

Returns:

  • (String)


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

def post_id
  @post_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



435
436
437
438
439
440
# File 'lib/google/apis/classroom_v1/classes.rb', line 435

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