Class: Google::Apis::ClassroomV1::CopyHistory
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CopyHistory
- 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
-
#attachment_id ⇒ String
Immutable.
-
#course_id ⇒ String
Immutable.
-
#item_id ⇒ String
Immutable.
-
#post_id ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CopyHistory
constructor
A new instance of CopyHistory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CopyHistory
Returns a new instance of CopyHistory.
448 449 450 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_id ⇒ String
Immutable. Identifier of the attachment.
Corresponds to the JSON property attachmentId
430 431 432 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 430 def @attachment_id end |
#course_id ⇒ String
Immutable. Identifier of the course.
Corresponds to the JSON property courseId
435 436 437 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 435 def course_id @course_id end |
#item_id ⇒ String
Immutable. Identifier of the Announcement, CourseWork, or
CourseWorkMaterial under which the attachment is attached.
Corresponds to the JSON property itemId
441 442 443 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 441 def item_id @item_id end |
#post_id ⇒ String
Immutable. Deprecated, use item_id instead.
Corresponds to the JSON property postId
446 447 448 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 446 def post_id @post_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
453 454 455 456 457 458 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 453 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 |