Class: Google::Apis::CalendarV3::CalendarService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::CalendarV3::CalendarService
- Defined in:
- generated/google/apis/calendar_v3/service.rb
Overview
Calendar API
Manipulates events and other calendar data.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
-
#user_ip ⇒ String
IP address of the site where the request originates.
Attributes inherited from Google::Apis::Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#clear_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Clears a primary calendar.
-
#delete_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes an access control rule.
-
#delete_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a secondary calendar.
-
#delete_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes an entry on the user's calendar list.
-
#delete_event(calendar_id, event_id, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes an event.
-
#get_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Returns an access control rule.
-
#get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Returns metadata for a calendar.
-
#get_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Returns an entry on the user's calendar list.
-
#get_color(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Colors
Returns the color definitions for calendars and events.
-
#get_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Returns an event.
-
#get_setting(setting, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Setting
Returns a single user setting.
-
#import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Imports an event.
-
#initialize ⇒ CalendarService
constructor
A new instance of CalendarService.
-
#insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Creates an access control rule.
-
#insert_calendar(calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Creates a secondary calendar.
-
#insert_calendar_list(calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Adds an entry to the user's calendar list.
-
#insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Creates an event.
-
#list_acls(calendar_id, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Acl
Returns the rules in the access control list for the calendar.
-
#list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarList
Returns entries on the user's calendar list.
-
#list_event_instances(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Events
Returns instances of the specified recurring event.
-
#list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Events
Returns events on the specified calendar.
-
#list_settings(max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Settings
Returns all user settings for the authenticated user.
-
#move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Moves an event to another calendar, i.e.
-
#patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Updates an access control rule.
-
#patch_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Updates metadata for a calendar.
-
#patch_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Updates an entry on the user's calendar list.
-
#patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Updates an event.
-
#query_freebusy(free_busy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::FreeBusyResponse
Returns free/busy information for a set of calendars.
-
#quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Creates an event based on a simple text string.
-
#stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Stop watching resources through this channel.
-
#update_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Updates an access control rule.
-
#update_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Updates metadata for a calendar.
-
#update_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Updates an entry on the user's calendar list.
-
#update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Updates an event.
-
#watch_acl(calendar_id, channel_object = nil, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to ACL resources.
-
#watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to CalendarList resources.
-
#watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to Events resources.
-
#watch_setting(channel_object = nil, max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to Settings resources.
Methods inherited from Google::Apis::Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Constructor Details
#initialize ⇒ CalendarService
Returns a new instance of CalendarService.
51 52 53 |
# File 'generated/google/apis/calendar_v3/service.rb', line 51 def initialize super('https://www.googleapis.com/', 'calendar/v3/') end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/calendar_v3/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
44 45 46 |
# File 'generated/google/apis/calendar_v3/service.rb', line 44 def quota_user @quota_user end |
#user_ip ⇒ String
Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.
49 50 51 |
# File 'generated/google/apis/calendar_v3/service.rb', line 49 def user_ip @user_ip end |
Instance Method Details
#clear_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.
752 753 754 755 756 757 758 759 |
# File 'generated/google/apis/calendar_v3/service.rb', line 752 def clear_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/clear', ) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an access control rule.
83 84 85 86 87 88 89 90 91 |
# File 'generated/google/apis/calendar_v3/service.rb', line 83 def delete_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'calendars/{calendarId}/acl/{ruleId}', ) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
788 789 790 791 792 793 794 795 |
# File 'generated/google/apis/calendar_v3/service.rb', line 788 def delete_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'calendars/{calendarId}', ) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an entry on the user's calendar list.
410 411 412 413 414 415 416 417 |
# File 'generated/google/apis/calendar_v3/service.rb', line 410 def delete_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'users/me/calendarList/{calendarId}', ) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_event(calendar_id, event_id, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an event.
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1045 def delete_event(calendar_id, event_id, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'calendars/{calendarId}/events/{eventId}', ) command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Returns an access control rule.
121 122 123 124 125 126 127 128 129 130 131 |
# File 'generated/google/apis/calendar_v3/service.rb', line 121 def get_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'calendars/{calendarId}/acl/{ruleId}', ) command.response_representation = Google::Apis::CalendarV3::AclRule::Representation command.response_class = Google::Apis::CalendarV3::AclRule command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Returns metadata for a calendar.
823 824 825 826 827 828 829 830 831 832 |
# File 'generated/google/apis/calendar_v3/service.rb', line 823 def get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'calendars/{calendarId}', ) command.response_representation = Google::Apis::CalendarV3::Calendar::Representation command.response_class = Google::Apis::CalendarV3::Calendar command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Returns an entry on the user's calendar list.
445 446 447 448 449 450 451 452 453 454 |
# File 'generated/google/apis/calendar_v3/service.rb', line 445 def get_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'users/me/calendarList/{calendarId}', ) command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.response_class = Google::Apis::CalendarV3::CalendarListEntry command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_color(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Colors
Returns the color definitions for calendars and events.
1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1004 def get_color(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'colors', ) command.response_representation = Google::Apis::CalendarV3::Colors::Representation command.response_class = Google::Apis::CalendarV3::Colors command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Returns an event.
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1097 def get_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}', ) command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['timeZone'] = time_zone unless time_zone.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_setting(setting, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Setting
Returns a single user setting.
1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1846 def get_setting(setting, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'users/me/settings/{setting}', ) command.response_representation = Google::Apis::CalendarV3::Setting::Representation command.response_class = Google::Apis::CalendarV3::Setting command.params['setting'] = setting unless setting.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1143 def import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/events/import', ) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['supportsAttachments'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Creates an access control rule.
160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'generated/google/apis/calendar_v3/service.rb', line 160 def insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/acl', ) command.request_representation = Google::Apis::CalendarV3::AclRule::Representation command.request_object = acl_rule_object command.response_representation = Google::Apis::CalendarV3::AclRule::Representation command.response_class = Google::Apis::CalendarV3::AclRule command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_calendar(calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Creates a secondary calendar.
857 858 859 860 861 862 863 864 865 866 867 |
# File 'generated/google/apis/calendar_v3/service.rb', line 857 def insert_calendar(calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars', ) command.request_representation = Google::Apis::CalendarV3::Calendar::Representation command.request_object = calendar_object command.response_representation = Google::Apis::CalendarV3::Calendar::Representation command.response_class = Google::Apis::CalendarV3::Calendar command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_calendar_list(calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Adds an entry to the user's calendar list.
484 485 486 487 488 489 490 491 492 493 494 495 |
# File 'generated/google/apis/calendar_v3/service.rb', line 484 def insert_calendar_list(calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'users/me/calendarList', ) command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.request_object = calendar_list_entry_object command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.response_class = Google::Apis::CalendarV3::CalendarListEntry command.query['colorRgbFormat'] = color_rgb_format unless color_rgb_format.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Creates an event.
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1194 def insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/events', ) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? command.query['supportsAttachments'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_acls(calendar_id, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Acl
Returns the rules in the access control list for the calendar.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'generated/google/apis/calendar_v3/service.rb', line 219 def list_acls(calendar_id, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'calendars/{calendarId}/acl', ) command.response_representation = Google::Apis::CalendarV3::Acl::Representation command.response_class = Google::Apis::CalendarV3::Acl command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarList
Returns entries on the user's calendar list.
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'generated/google/apis/calendar_v3/service.rb', line 547 def list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'users/me/calendarList', ) command.response_representation = Google::Apis::CalendarV3::CalendarList::Representation command.response_class = Google::Apis::CalendarV3::CalendarList command.query['maxResults'] = max_results unless max_results.nil? command.query['minAccessRole'] = min_access_role unless min_access_role.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['showHidden'] = show_hidden unless show_hidden.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_event_instances(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Events
Returns instances of the specified recurring event.
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1270 def list_event_instances(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}/instances', ) command.response_representation = Google::Apis::CalendarV3::Events::Representation command.response_class = Google::Apis::CalendarV3::Events command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['originalStart'] = original_start unless original_start.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['timeMax'] = time_max unless time_max.nil? command.query['timeMin'] = time_min unless time_min.nil? command.query['timeZone'] = time_zone unless time_zone.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Events
Returns events on the specified calendar.
1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1402 def list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'calendars/{calendarId}/events', ) command.response_representation = Google::Apis::CalendarV3::Events::Representation command.response_class = Google::Apis::CalendarV3::Events command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil? command.query['iCalUID'] = i_cal_uid unless i_cal_uid.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['privateExtendedProperty'] = private_extended_property unless private_extended_property.nil? command.query['q'] = q unless q.nil? command.query['sharedExtendedProperty'] = shared_extended_property unless shared_extended_property.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['showHiddenInvitations'] = show_hidden_invitations unless show_hidden_invitations.nil? command.query['singleEvents'] = single_events unless single_events.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['timeMax'] = time_max unless time_max.nil? command.query['timeMin'] = time_min unless time_min.nil? command.query['timeZone'] = time_zone unless time_zone.nil? command.query['updatedMin'] = updated_min unless updated_min.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_settings(max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Settings
Returns all user settings for the authenticated user.
1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1893 def list_settings(max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'users/me/settings', ) command.response_representation = Google::Apis::CalendarV3::Settings::Representation command.response_class = Google::Apis::CalendarV3::Settings command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Moves an event to another calendar, i.e. changes an event's organizer.
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1461 def move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/events/{eventId}/move', ) command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['destination'] = destination unless destination.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Updates an access control rule. This method supports patch semantics.
263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'generated/google/apis/calendar_v3/service.rb', line 263 def patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'calendars/{calendarId}/acl/{ruleId}', ) command.request_representation = Google::Apis::CalendarV3::AclRule::Representation command.request_object = acl_rule_object command.response_representation = Google::Apis::CalendarV3::AclRule::Representation command.response_class = Google::Apis::CalendarV3::AclRule command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Updates metadata for a calendar. This method supports patch semantics.
896 897 898 899 900 901 902 903 904 905 906 907 |
# File 'generated/google/apis/calendar_v3/service.rb', line 896 def patch_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'calendars/{calendarId}', ) command.request_representation = Google::Apis::CalendarV3::Calendar::Representation command.request_object = calendar_object command.response_representation = Google::Apis::CalendarV3::Calendar::Representation command.response_class = Google::Apis::CalendarV3::Calendar command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Updates an entry on the user's calendar list. This method supports patch semantics.
596 597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'generated/google/apis/calendar_v3/service.rb', line 596 def patch_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'users/me/calendarList/{calendarId}', ) command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.request_object = calendar_list_entry_object command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.response_class = Google::Apis::CalendarV3::CalendarListEntry command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['colorRgbFormat'] = color_rgb_format unless color_rgb_format.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Updates an event. This method supports patch semantics.
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1520 def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'calendars/{calendarId}/events/{eventId}', ) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? command.query['supportsAttachments'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#query_freebusy(free_busy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::FreeBusyResponse
Returns free/busy information for a set of calendars.
1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1810 def query_freebusy(free_busy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'freeBusy', ) command.request_representation = Google::Apis::CalendarV3::FreeBusyRequest::Representation command.request_object = free_busy_request_object command.response_representation = Google::Apis::CalendarV3::FreeBusyResponse::Representation command.response_class = Google::Apis::CalendarV3::FreeBusyResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Creates an event based on a simple text string.
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1569 def quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/events/quickAdd', ) command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? command.query['text'] = text unless text.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Stop watching resources through this channel
972 973 974 975 976 977 978 979 980 |
# File 'generated/google/apis/calendar_v3/service.rb', line 972 def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'channels/stop', ) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::AclRule
Updates an access control rule.
306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'generated/google/apis/calendar_v3/service.rb', line 306 def update_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'calendars/{calendarId}/acl/{ruleId}', ) command.request_representation = Google::Apis::CalendarV3::AclRule::Representation command.request_object = acl_rule_object command.response_representation = Google::Apis::CalendarV3::AclRule::Representation command.response_class = Google::Apis::CalendarV3::AclRule command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Calendar
Updates metadata for a calendar.
936 937 938 939 940 941 942 943 944 945 946 947 |
# File 'generated/google/apis/calendar_v3/service.rb', line 936 def update_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'calendars/{calendarId}', ) command.request_representation = Google::Apis::CalendarV3::Calendar::Representation command.request_object = calendar_object command.response_representation = Google::Apis::CalendarV3::Calendar::Representation command.response_class = Google::Apis::CalendarV3::Calendar command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::CalendarListEntry
Updates an entry on the user's calendar list.
642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'generated/google/apis/calendar_v3/service.rb', line 642 def update_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'users/me/calendarList/{calendarId}', ) command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.request_object = calendar_list_entry_object command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation command.response_class = Google::Apis::CalendarV3::CalendarListEntry command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['colorRgbFormat'] = color_rgb_format unless color_rgb_format.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Event
Updates an event.
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1627 def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'calendars/{calendarId}/events/{eventId}', ) command.request_representation = Google::Apis::CalendarV3::Event::Representation command.request_object = event_object command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_class = Google::Apis::CalendarV3::Event command.params['calendarId'] = calendar_id unless calendar_id.nil? command.params['eventId'] = event_id unless event_id.nil? command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['sendNotifications'] = send_notifications unless send_notifications.nil? command.query['supportsAttachments'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#watch_acl(calendar_id, channel_object = nil, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to ACL resources.
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'generated/google/apis/calendar_v3/service.rb', line 367 def watch_acl(calendar_id, channel_object = nil, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/acl/watch', ) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation command.response_class = Google::Apis::CalendarV3::Channel command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to CalendarList resources.
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'generated/google/apis/calendar_v3/service.rb', line 707 def watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'users/me/calendarList/watch', ) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation command.response_class = Google::Apis::CalendarV3::Channel command.query['maxResults'] = max_results unless max_results.nil? command.query['minAccessRole'] = min_access_role unless min_access_role.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['showHidden'] = show_hidden unless show_hidden.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to Events resources.
1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1757 def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'calendars/{calendarId}/events/watch', ) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation command.response_class = Google::Apis::CalendarV3::Channel command.params['calendarId'] = calendar_id unless calendar_id.nil? command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil? command.query['iCalUID'] = i_cal_uid unless i_cal_uid.nil? command.query['maxAttendees'] = max_attendees unless max_attendees.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['privateExtendedProperty'] = private_extended_property unless private_extended_property.nil? command.query['q'] = q unless q.nil? command.query['sharedExtendedProperty'] = shared_extended_property unless shared_extended_property.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['showHiddenInvitations'] = show_hidden_invitations unless show_hidden_invitations.nil? command.query['singleEvents'] = single_events unless single_events.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['timeMax'] = time_max unless time_max.nil? command.query['timeMin'] = time_min unless time_min.nil? command.query['timeZone'] = time_zone unless time_zone.nil? command.query['updatedMin'] = updated_min unless updated_min.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#watch_setting(channel_object = nil, max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CalendarV3::Channel
Watch for changes to Settings resources.
1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 |
# File 'generated/google/apis/calendar_v3/service.rb', line 1943 def watch_setting(channel_object = nil, max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'users/me/settings/watch', ) command.request_representation = Google::Apis::CalendarV3::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::CalendarV3::Channel::Representation command.response_class = Google::Apis::CalendarV3::Channel command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |