Class: Google::Apis::ClassroomV1::Announcement
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ClassroomV1::Announcement
 
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
 generated/google/apis/classroom_v1/representations.rb,
 generated/google/apis/classroom_v1/representations.rb
Overview
Announcement created by a teacher for students of the course
Instance Attribute Summary collapse
- 
  
    
      #alternate_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Absolute link to this announcement in the Classroom web UI. 
- 
  
    
      #assignee_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Assignee mode of the announcement. 
- 
  
    
      #course_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifier of the course. 
- 
  
    
      #creation_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Timestamp when this announcement was created. 
- 
  
    
      #creator_user_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifier for the user that created the announcement. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Classroom-assigned identifier of this announcement, unique per course. 
- 
  
    
      #individual_students_options  ⇒ Google::Apis::ClassroomV1::IndividualStudentsOptions 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Assignee details about a coursework/announcement. 
- 
  
    
      #materials  ⇒ Array<Google::Apis::ClassroomV1::Material> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Additional materials. 
- 
  
    
      #scheduled_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional timestamp when this announcement is scheduled to be published. 
- 
  
    
      #state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Status of this announcement. 
- 
  
    
      #text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Description of this announcement. 
- 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Timestamp of the most recent change to this announcement. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Announcement 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Announcement. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Announcement
Returns a new instance of Announcement
| 102 103 104 | # File 'generated/google/apis/classroom_v1/classes.rb', line 102 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#alternate_link ⇒ String
Absolute link to this announcement in the Classroom web UI.
This is only populated if state is PUBLISHED.
Read-only.
Corresponds to the JSON property alternateLink
| 34 35 36 | # File 'generated/google/apis/classroom_v1/classes.rb', line 34 def alternate_link @alternate_link end | 
#assignee_mode ⇒ String
Assignee mode of the announcement.
If unspecified, the default value is ALL_STUDENTS.
Corresponds to the JSON property assigneeMode
| 40 41 42 | # File 'generated/google/apis/classroom_v1/classes.rb', line 40 def assignee_mode @assignee_mode end | 
#course_id ⇒ String
Identifier of the course.
Read-only.
Corresponds to the JSON property courseId
| 46 47 48 | # File 'generated/google/apis/classroom_v1/classes.rb', line 46 def course_id @course_id end | 
#creation_time ⇒ String
Timestamp when this announcement was created.
Read-only.
Corresponds to the JSON property creationTime
| 52 53 54 | # File 'generated/google/apis/classroom_v1/classes.rb', line 52 def creation_time @creation_time end | 
#creator_user_id ⇒ String
Identifier for the user that created the announcement.
Read-only.
Corresponds to the JSON property creatorUserId
| 58 59 60 | # File 'generated/google/apis/classroom_v1/classes.rb', line 58 def creator_user_id @creator_user_id end | 
#id ⇒ String
Classroom-assigned identifier of this announcement, unique per course.
Read-only.
Corresponds to the JSON property id
| 64 65 66 | # File 'generated/google/apis/classroom_v1/classes.rb', line 64 def id @id end | 
#individual_students_options ⇒ Google::Apis::ClassroomV1::IndividualStudentsOptions
Assignee details about a coursework/announcement.
This field is set if and only if assigneeMode is INDIVIDUAL_STUDENTS.
Corresponds to the JSON property individualStudentsOptions
| 70 71 72 | # File 'generated/google/apis/classroom_v1/classes.rb', line 70 def @individual_students_options end | 
#materials ⇒ Array<Google::Apis::ClassroomV1::Material>
Additional materials.
Announcements must have no more than 20 material items.
Corresponds to the JSON property materials
| 76 77 78 | # File 'generated/google/apis/classroom_v1/classes.rb', line 76 def materials @materials end | 
#scheduled_time ⇒ String
Optional timestamp when this announcement is scheduled to be published.
Corresponds to the JSON property scheduledTime
| 81 82 83 | # File 'generated/google/apis/classroom_v1/classes.rb', line 81 def scheduled_time @scheduled_time end | 
#state ⇒ String
Status of this announcement.
If unspecified, the default state is DRAFT.
Corresponds to the JSON property state
| 87 88 89 | # File 'generated/google/apis/classroom_v1/classes.rb', line 87 def state @state end | 
#text ⇒ String
Description of this announcement.
The text must be a valid UTF-8 string containing no more
than 30,000 characters.
Corresponds to the JSON property text
| 94 95 96 | # File 'generated/google/apis/classroom_v1/classes.rb', line 94 def text @text end | 
#update_time ⇒ String
Timestamp of the most recent change to this announcement.
Read-only.
Corresponds to the JSON property updateTime
| 100 101 102 | # File 'generated/google/apis/classroom_v1/classes.rb', line 100 def update_time @update_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | # File 'generated/google/apis/classroom_v1/classes.rb', line 107 def update!(**args) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode) @course_id = args[:course_id] if args.key?(:course_id) @creation_time = args[:creation_time] if args.key?(:creation_time) @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id) @id = args[:id] if args.key?(:id) @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options) @materials = args[:materials] if args.key?(:materials) @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time) @state = args[:state] if args.key?(:state) @text = args[:text] if args.key?(:text) @update_time = args[:update_time] if args.key?(:update_time) end |