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.
431 432 433 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_id ⇒ String
Immutable. Identifier of the attachment.
Corresponds to the JSON property attachmentId
413 414 415 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 413 def @attachment_id end |
#course_id ⇒ String
Immutable. Identifier of the course.
Corresponds to the JSON property courseId
418 419 420 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 418 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
424 425 426 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 424 def item_id @item_id end |
#post_id ⇒ String
Immutable. Deprecated, use item_id instead.
Corresponds to the JSON property postId
429 430 431 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 429 def post_id @post_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
436 437 438 439 440 441 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 436 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 |