Class: Google::Apis::CalendarV3::EventAttachment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventAttachment


1207
1208
1209
# File 'generated/google/apis/calendar_v3/classes.rb', line 1207

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

Instance Attribute Details

#file_idString

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


1183
1184
1185
# File 'generated/google/apis/calendar_v3/classes.rb', line 1183

def file_id
  @file_id
end

#file_urlString

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


1190
1191
1192
# File 'generated/google/apis/calendar_v3/classes.rb', line 1190

def file_url
  @file_url
end

URL link to the attachment's icon. Read-only. Corresponds to the JSON property iconLink


1195
1196
1197
# File 'generated/google/apis/calendar_v3/classes.rb', line 1195

def icon_link
  @icon_link
end

#mime_typeString

Internet media type (MIME type) of the attachment. Corresponds to the JSON property mimeType


1200
1201
1202
# File 'generated/google/apis/calendar_v3/classes.rb', line 1200

def mime_type
  @mime_type
end

#titleString

Attachment title. Corresponds to the JSON property title


1205
1206
1207
# File 'generated/google/apis/calendar_v3/classes.rb', line 1205

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1212
1213
1214
1215
1216
1217
1218
# File 'generated/google/apis/calendar_v3/classes.rb', line 1212

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