Class: Google::Apis::CalendarV3::EventAttachment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CalendarV3::EventAttachment
 
- Defined in:
- generated/google/apis/calendar_v3/classes.rb,
 generated/google/apis/calendar_v3/representations.rb,
 generated/google/apis/calendar_v3/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #file_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of the attached file. 
- 
  
    
      #file_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL link to the attachment. 
- 
  
    
      #icon_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL link to the attachment's icon. 
- 
  
    
      #mime_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Internet media type (MIME type) of the attachment. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Attachment title. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ EventAttachment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of EventAttachment. 
- 
  
    
      #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) ⇒ EventAttachment
Returns a new instance of EventAttachment
| 1590 1591 1592 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1590 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#file_id ⇒ String
ID of the attached file. Read-only.
For Google Drive files, this is the ID of the corresponding Files resource
entry in the Drive API.
Corresponds to the JSON property fileId
| 1566 1567 1568 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1566 def file_id @file_id end | 
#file_url ⇒ String
URL link to the attachment.
For adding Google Drive file attachments use the same format as in
alternateLink property of the Files resource in the Drive API.
Corresponds to the JSON property fileUrl
| 1573 1574 1575 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1573 def file_url @file_url end | 
#icon_link ⇒ String
URL link to the attachment's icon. Read-only.
Corresponds to the JSON property iconLink
| 1578 1579 1580 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1578 def icon_link @icon_link end | 
#mime_type ⇒ String
Internet media type (MIME type) of the attachment.
Corresponds to the JSON property mimeType
| 1583 1584 1585 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1583 def mime_type @mime_type end | 
#title ⇒ String
Attachment title.
Corresponds to the JSON property title
| 1588 1589 1590 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1588 def title @title end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1595 1596 1597 1598 1599 1600 1601 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1595 def update!(**args) @file_id = args[:file_id] if args.key?(:file_id) @file_url = args[:file_url] if args.key?(:file_url) @icon_link = args[:icon_link] if args.key?(:icon_link) @mime_type = args[:mime_type] if args.key?(:mime_type) @title = args[:title] if args.key?(:title) end |