google-apis-calendar_v3 0.24.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 416bab9c2fcea7328872a96b95c3217e517626e2e1c05db5292bd1b1e19ae730
4
- data.tar.gz: 5339c93c55e1b9ba7326fd1fbe1e853e6b296af10d165133d79c3d9d31c97210
3
+ metadata.gz: ee9763af721c56b6227ae0cd5cde516bca6e4963e0d3325f0f335f6cb6c49ecc
4
+ data.tar.gz: 6393698a70a4a1872fad7d31643e340cde7dc3fae41c15df1e5d0b681de18ef6
5
5
  SHA512:
6
- metadata.gz: 3a85aa9808f50d699e8a27068158197bc16cc6d318655305fbf43ff25b1a1d4adaf511dc66cf6a440b5694206cb8a56c27b39dab9fa83c6b59f3df11e44e3a11
7
- data.tar.gz: 65e9046073dd84a67e7be43949f5e01a56e7b13e1b823da5cdb031d264a405d879e1a5acfc62c6ed264884284cf8ebe20274919dcde56cbba9d240047cbdb409
6
+ metadata.gz: 98e3d3e0d066689cc1df99edf2f3484b171ad943d689f1e59102b8dc71eebf3a456c9529146eed4432852c9ec1c59574b26a5ce462f4a8145b721d80cae837d3
7
+ data.tar.gz: c4c29a84ef2b89ae930cc1f0fb997c616e0bd809e8856ca80a27330bdc9e73ce3978e60e95a19da6b6ad48136c3708ec37a3b09c4b53f4b19ba8c7e5999077be
data/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # Release history for google-apis-calendar_v3
2
2
 
3
+ ### v0.36.0 (2023-12-24)
4
+
5
+ * Regenerated from discovery document revision 20231215
6
+
7
+ ### v0.35.0 (2023-12-03)
8
+
9
+ * Regenerated from discovery document revision 20231123
10
+
11
+ ### v0.34.0 (2023-11-26)
12
+
13
+ * Regenerated from discovery document revision 20231116
14
+
15
+ ### v0.33.0 (2023-09-03)
16
+
17
+ * Regenerated from discovery document revision 20230825
18
+
19
+ ### v0.32.0 (2023-07-16)
20
+
21
+ * Regenerated from discovery document revision 20230707
22
+
23
+ ### v0.31.0 (2023-07-02)
24
+
25
+ * Regenerated from discovery document revision 20230623
26
+
27
+ ### v0.30.0 (2023-06-25)
28
+
29
+ * Regenerated from discovery document revision 20230616
30
+
31
+ ### v0.29.0 (2023-06-11)
32
+
33
+ * Regenerated from discovery document revision 20230602
34
+
35
+ ### v0.28.0 (2023-04-16)
36
+
37
+ * Regenerated from discovery document revision 20230406
38
+
39
+ ### v0.27.0 (2023-03-26)
40
+
41
+ * Regenerated from discovery document revision 20230317
42
+
43
+ ### v0.26.0 (2023-03-19)
44
+
45
+ * Regenerated from discovery document revision 20230313
46
+
47
+ ### v0.25.0 (2023-02-26)
48
+
49
+ * Regenerated from discovery document revision 20230217
50
+ * Regenerated using generator version 0.12.0
51
+
3
52
  ### v0.24.0 (2022-10-28)
4
53
 
5
54
  * Regenerated using generator version 0.11.0
@@ -1110,10 +1110,14 @@ module Google
1110
1110
  # @return [String]
1111
1111
  attr_accessor :etag
1112
1112
 
1113
- # Specific type of the event. Read-only. Possible values are:
1113
+ # Specific type of the event. This cannot be modified after the event is created.
1114
+ # Possible values are:
1114
1115
  # - "default" - A regular event or not further specified.
1115
1116
  # - "outOfOffice" - An out-of-office event.
1116
1117
  # - "focusTime" - A focus-time event.
1118
+ # - "workingLocation" - A working location event. Currently, only "default "
1119
+ # and "workingLocation" events can be created using the API. Extended support
1120
+ # for other event types will be made available in later releases.
1117
1121
  # Corresponds to the JSON property `eventType`
1118
1122
  # @return [String]
1119
1123
  attr_accessor :event_type
@@ -1123,6 +1127,11 @@ module Google
1123
1127
  # @return [Google::Apis::CalendarV3::Event::ExtendedProperties]
1124
1128
  attr_accessor :extended_properties
1125
1129
 
1130
+ # Focus Time event data. Used if eventType is focusTime.
1131
+ # Corresponds to the JSON property `focusTimeProperties`
1132
+ # @return [Google::Apis::CalendarV3::EventFocusTimeProperties]
1133
+ attr_accessor :focus_time_properties
1134
+
1126
1135
  # A gadget that extends this event. Gadgets are deprecated; this structure is
1127
1136
  # instead only used for returning birthday calendar metadata.
1128
1137
  # Corresponds to the JSON property `gadget`
@@ -1225,6 +1234,11 @@ module Google
1225
1234
  # @return [Google::Apis::CalendarV3::EventDateTime]
1226
1235
  attr_accessor :original_start_time
1227
1236
 
1237
+ # Out of office event data. Used if eventType is outOfOffice.
1238
+ # Corresponds to the JSON property `outOfOfficeProperties`
1239
+ # @return [Google::Apis::CalendarV3::EventOutOfOfficeProperties]
1240
+ attr_accessor :out_of_office_properties
1241
+
1228
1242
  # If set to True, Event propagation is disabled. Note that it is not the same
1229
1243
  # thing as Private event properties. Optional. Immutable. The default is False.
1230
1244
  # Corresponds to the JSON property `privateCopy`
@@ -1333,6 +1347,11 @@ module Google
1333
1347
  # @return [String]
1334
1348
  attr_accessor :visibility
1335
1349
 
1350
+ # Working location event data.
1351
+ # Corresponds to the JSON property `workingLocationProperties`
1352
+ # @return [Google::Apis::CalendarV3::EventWorkingLocationProperties]
1353
+ attr_accessor :working_location_properties
1354
+
1336
1355
  def initialize(**args)
1337
1356
  update!(**args)
1338
1357
  end
@@ -1353,6 +1372,7 @@ module Google
1353
1372
  @etag = args[:etag] if args.key?(:etag)
1354
1373
  @event_type = args[:event_type] if args.key?(:event_type)
1355
1374
  @extended_properties = args[:extended_properties] if args.key?(:extended_properties)
1375
+ @focus_time_properties = args[:focus_time_properties] if args.key?(:focus_time_properties)
1356
1376
  @gadget = args[:gadget] if args.key?(:gadget)
1357
1377
  @guests_can_invite_others = args[:guests_can_invite_others] if args.key?(:guests_can_invite_others)
1358
1378
  @guests_can_modify = args[:guests_can_modify] if args.key?(:guests_can_modify)
@@ -1366,6 +1386,7 @@ module Google
1366
1386
  @locked = args[:locked] if args.key?(:locked)
1367
1387
  @organizer = args[:organizer] if args.key?(:organizer)
1368
1388
  @original_start_time = args[:original_start_time] if args.key?(:original_start_time)
1389
+ @out_of_office_properties = args[:out_of_office_properties] if args.key?(:out_of_office_properties)
1369
1390
  @private_copy = args[:private_copy] if args.key?(:private_copy)
1370
1391
  @recurrence = args[:recurrence] if args.key?(:recurrence)
1371
1392
  @recurring_event_id = args[:recurring_event_id] if args.key?(:recurring_event_id)
@@ -1378,6 +1399,7 @@ module Google
1378
1399
  @transparency = args[:transparency] if args.key?(:transparency)
1379
1400
  @updated = args[:updated] if args.key?(:updated)
1380
1401
  @visibility = args[:visibility] if args.key?(:visibility)
1402
+ @working_location_properties = args[:working_location_properties] if args.key?(:working_location_properties)
1381
1403
  end
1382
1404
 
1383
1405
  # The creator of the event. Read-only.
@@ -1789,6 +1811,77 @@ module Google
1789
1811
  end
1790
1812
  end
1791
1813
 
1814
+ #
1815
+ class EventFocusTimeProperties
1816
+ include Google::Apis::Core::Hashable
1817
+
1818
+ # Whether to decline meeting invitations which overlap Focus Time events. Valid
1819
+ # values are declineNone, meaning that no meeting invitations are declined;
1820
+ # declineAllConflictingInvitations, meaning that all conflicting meeting
1821
+ # invitations that conflict with the event are declined; and
1822
+ # declineOnlyNewConflictingInvitations, meaning that only new conflicting
1823
+ # meeting invitations which arrive while the Focus Time event is present are to
1824
+ # be declined.
1825
+ # Corresponds to the JSON property `autoDeclineMode`
1826
+ # @return [String]
1827
+ attr_accessor :auto_decline_mode
1828
+
1829
+ # The status to mark the user in Chat and related products. This can be
1830
+ # available or doNotDisturb.
1831
+ # Corresponds to the JSON property `chatStatus`
1832
+ # @return [String]
1833
+ attr_accessor :chat_status
1834
+
1835
+ # Response message to set if an existing event or new invitation is
1836
+ # automatically declined by Calendar.
1837
+ # Corresponds to the JSON property `declineMessage`
1838
+ # @return [String]
1839
+ attr_accessor :decline_message
1840
+
1841
+ def initialize(**args)
1842
+ update!(**args)
1843
+ end
1844
+
1845
+ # Update properties of this object
1846
+ def update!(**args)
1847
+ @auto_decline_mode = args[:auto_decline_mode] if args.key?(:auto_decline_mode)
1848
+ @chat_status = args[:chat_status] if args.key?(:chat_status)
1849
+ @decline_message = args[:decline_message] if args.key?(:decline_message)
1850
+ end
1851
+ end
1852
+
1853
+ #
1854
+ class EventOutOfOfficeProperties
1855
+ include Google::Apis::Core::Hashable
1856
+
1857
+ # Whether to decline meeting invitations which overlap Out of office events.
1858
+ # Valid values are declineNone, meaning that no meeting invitations are declined;
1859
+ # declineAllConflictingInvitations, meaning that all conflicting meeting
1860
+ # invitations that conflict with the event are declined; and
1861
+ # declineOnlyNewConflictingInvitations, meaning that only new conflicting
1862
+ # meeting invitations which arrive while the Out of office event is present are
1863
+ # to be declined.
1864
+ # Corresponds to the JSON property `autoDeclineMode`
1865
+ # @return [String]
1866
+ attr_accessor :auto_decline_mode
1867
+
1868
+ # Response message to set if an existing event or new invitation is
1869
+ # automatically declined by Calendar.
1870
+ # Corresponds to the JSON property `declineMessage`
1871
+ # @return [String]
1872
+ attr_accessor :decline_message
1873
+
1874
+ def initialize(**args)
1875
+ update!(**args)
1876
+ end
1877
+
1878
+ # Update properties of this object
1879
+ def update!(**args)
1880
+ @auto_decline_mode = args[:auto_decline_mode] if args.key?(:auto_decline_mode)
1881
+ @decline_message = args[:decline_message] if args.key?(:decline_message)
1882
+ end
1883
+ end
1884
+
1792
1885
  #
1793
1886
  class EventReminder
1794
1887
  include Google::Apis::Core::Hashable
@@ -1819,6 +1912,114 @@ module Google
1819
1912
  end
1820
1913
  end
1821
1914
 
1915
+ #
1916
+ class EventWorkingLocationProperties
1917
+ include Google::Apis::Core::Hashable
1918
+
1919
+ # If present, specifies that the user is working from a custom location.
1920
+ # Corresponds to the JSON property `customLocation`
1921
+ # @return [Google::Apis::CalendarV3::EventWorkingLocationProperties::CustomLocation]
1922
+ attr_accessor :custom_location
1923
+
1924
+ # If present, specifies that the user is working at home.
1925
+ # Corresponds to the JSON property `homeOffice`
1926
+ # @return [Object]
1927
+ attr_accessor :home_office
1928
+
1929
+ # If present, specifies that the user is working from an office.
1930
+ # Corresponds to the JSON property `officeLocation`
1931
+ # @return [Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation]
1932
+ attr_accessor :office_location
1933
+
1934
+ # Type of the working location. Possible values are:
1935
+ # - "homeOffice" - The user is working at home.
1936
+ # - "officeLocation" - The user is working from an office.
1937
+ # - "customLocation" - The user is working from a custom location. Any details
1938
+ # are specified in a sub-field of the specified name, but this field may be
1939
+ # missing if empty. Any other fields are ignored.
1940
+ # Required when adding working location properties.
1941
+ # Corresponds to the JSON property `type`
1942
+ # @return [String]
1943
+ attr_accessor :type
1944
+
1945
+ def initialize(**args)
1946
+ update!(**args)
1947
+ end
1948
+
1949
+ # Update properties of this object
1950
+ def update!(**args)
1951
+ @custom_location = args[:custom_location] if args.key?(:custom_location)
1952
+ @home_office = args[:home_office] if args.key?(:home_office)
1953
+ @office_location = args[:office_location] if args.key?(:office_location)
1954
+ @type = args[:type] if args.key?(:type)
1955
+ end
1956
+
1957
+ # If present, specifies that the user is working from a custom location.
1958
+ class CustomLocation
1959
+ include Google::Apis::Core::Hashable
1960
+
1961
+ # An optional extra label for additional information.
1962
+ # Corresponds to the JSON property `label`
1963
+ # @return [String]
1964
+ attr_accessor :label
1965
+
1966
+ def initialize(**args)
1967
+ update!(**args)
1968
+ end
1969
+
1970
+ # Update properties of this object
1971
+ def update!(**args)
1972
+ @label = args[:label] if args.key?(:label)
1973
+ end
1974
+ end
1975
+
1976
+ # If present, specifies that the user is working from an office.
1977
+ class OfficeLocation
1978
+ include Google::Apis::Core::Hashable
1979
+
1980
+ # An optional building identifier. This should reference a building ID in the
1981
+ # organization's Resources database.
1982
+ # Corresponds to the JSON property `buildingId`
1983
+ # @return [String]
1984
+ attr_accessor :building_id
1985
+
1986
+ # An optional desk identifier.
1987
+ # Corresponds to the JSON property `deskId`
1988
+ # @return [String]
1989
+ attr_accessor :desk_id
1990
+
1991
+ # An optional floor identifier.
1992
+ # Corresponds to the JSON property `floorId`
1993
+ # @return [String]
1994
+ attr_accessor :floor_id
1995
+
1996
+ # An optional floor section identifier.
1997
+ # Corresponds to the JSON property `floorSectionId`
1998
+ # @return [String]
1999
+ attr_accessor :floor_section_id
2000
+
2001
+ # The office name that's displayed in Calendar Web and Mobile clients. We
2002
+ # recommend you reference a building name in the organization's Resources
2003
+ # database.
2004
+ # Corresponds to the JSON property `label`
2005
+ # @return [String]
2006
+ attr_accessor :label
2007
+
2008
+ def initialize(**args)
2009
+ update!(**args)
2010
+ end
2011
+
2012
+ # Update properties of this object
2013
+ def update!(**args)
2014
+ @building_id = args[:building_id] if args.key?(:building_id)
2015
+ @desk_id = args[:desk_id] if args.key?(:desk_id)
2016
+ @floor_id = args[:floor_id] if args.key?(:floor_id)
2017
+ @floor_section_id = args[:floor_section_id] if args.key?(:floor_section_id)
2018
+ @label = args[:label] if args.key?(:label)
2019
+ end
2020
+ end
2021
+ end
2022
+
1822
2023
  #
1823
2024
  class Events
1824
2025
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CalendarV3
18
18
  # Version of the google-apis-calendar_v3 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220715"
25
+ REVISION = "20231215"
26
26
  end
27
27
  end
28
28
  end
@@ -208,12 +208,42 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
+ class EventFocusTimeProperties
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class EventOutOfOfficeProperties
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
211
223
  class EventReminder
212
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
225
 
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class EventWorkingLocationProperties
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ class CustomLocation
233
+ class Representation < Google::Apis::Core::JsonRepresentation; end
234
+
235
+ include Google::Apis::Core::JsonObjectSupport
236
+ end
237
+
238
+ class OfficeLocation
239
+ class Representation < Google::Apis::Core::JsonRepresentation; end
240
+
241
+ include Google::Apis::Core::JsonObjectSupport
242
+ end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
217
247
  class Events
218
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
249
 
@@ -530,6 +560,8 @@ module Google
530
560
  property :event_type, as: 'eventType'
531
561
  property :extended_properties, as: 'extendedProperties', class: Google::Apis::CalendarV3::Event::ExtendedProperties, decorator: Google::Apis::CalendarV3::Event::ExtendedProperties::Representation
532
562
 
563
+ property :focus_time_properties, as: 'focusTimeProperties', class: Google::Apis::CalendarV3::EventFocusTimeProperties, decorator: Google::Apis::CalendarV3::EventFocusTimeProperties::Representation
564
+
533
565
  property :gadget, as: 'gadget', class: Google::Apis::CalendarV3::Event::Gadget, decorator: Google::Apis::CalendarV3::Event::Gadget::Representation
534
566
 
535
567
  property :guests_can_invite_others, as: 'guestsCanInviteOthers'
@@ -546,6 +578,8 @@ module Google
546
578
 
547
579
  property :original_start_time, as: 'originalStartTime', class: Google::Apis::CalendarV3::EventDateTime, decorator: Google::Apis::CalendarV3::EventDateTime::Representation
548
580
 
581
+ property :out_of_office_properties, as: 'outOfOfficeProperties', class: Google::Apis::CalendarV3::EventOutOfOfficeProperties, decorator: Google::Apis::CalendarV3::EventOutOfOfficeProperties::Representation
582
+
549
583
  property :private_copy, as: 'privateCopy'
550
584
  collection :recurrence, as: 'recurrence'
551
585
  property :recurring_event_id, as: 'recurringEventId'
@@ -562,6 +596,8 @@ module Google
562
596
  property :updated, as: 'updated', type: DateTime
563
597
 
564
598
  property :visibility, as: 'visibility'
599
+ property :working_location_properties, as: 'workingLocationProperties', class: Google::Apis::CalendarV3::EventWorkingLocationProperties, decorator: Google::Apis::CalendarV3::EventWorkingLocationProperties::Representation
600
+
565
601
  end
566
602
 
567
603
  class Creator
@@ -662,6 +698,23 @@ module Google
662
698
  end
663
699
  end
664
700
 
701
+ class EventFocusTimeProperties
702
+ # @private
703
+ class Representation < Google::Apis::Core::JsonRepresentation
704
+ property :auto_decline_mode, as: 'autoDeclineMode'
705
+ property :chat_status, as: 'chatStatus'
706
+ property :decline_message, as: 'declineMessage'
707
+ end
708
+ end
709
+
710
+ class EventOutOfOfficeProperties
711
+ # @private
712
+ class Representation < Google::Apis::Core::JsonRepresentation
713
+ property :auto_decline_mode, as: 'autoDeclineMode'
714
+ property :decline_message, as: 'declineMessage'
715
+ end
716
+ end
717
+
665
718
  class EventReminder
666
719
  # @private
667
720
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -670,6 +723,36 @@ module Google
670
723
  end
671
724
  end
672
725
 
726
+ class EventWorkingLocationProperties
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :custom_location, as: 'customLocation', class: Google::Apis::CalendarV3::EventWorkingLocationProperties::CustomLocation, decorator: Google::Apis::CalendarV3::EventWorkingLocationProperties::CustomLocation::Representation
730
+
731
+ property :home_office, as: 'homeOffice'
732
+ property :office_location, as: 'officeLocation', class: Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation, decorator: Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation::Representation
733
+
734
+ property :type, as: 'type'
735
+ end
736
+
737
+ class CustomLocation
738
+ # @private
739
+ class Representation < Google::Apis::Core::JsonRepresentation
740
+ property :label, as: 'label'
741
+ end
742
+ end
743
+
744
+ class OfficeLocation
745
+ # @private
746
+ class Representation < Google::Apis::Core::JsonRepresentation
747
+ property :building_id, as: 'buildingId'
748
+ property :desk_id, as: 'deskId'
749
+ property :floor_id, as: 'floorId'
750
+ property :floor_section_id, as: 'floorSectionId'
751
+ property :label, as: 'label'
752
+ end
753
+ end
754
+ end
755
+
673
756
  class Events
674
757
  # @private
675
758
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1278,6 +1278,14 @@ module Google
1278
1278
  # Deprecated and ignored. A value will always be returned in the email field for
1279
1279
  # the organizer, creator and attendees, even if no real email address is
1280
1280
  # available (i.e. a generated, non-working value will be provided).
1281
+ # @param [Array<String>, String] event_types
1282
+ # Event types to return. Optional. Possible values are:
1283
+ # - "default"
1284
+ # - "focusTime"
1285
+ # - "outOfOffice"
1286
+ # - "workingLocation"This parameter can be repeated multiple times to return
1287
+ # events of different types. The default is ["default", "focusTime", "
1288
+ # outOfOffice"].
1281
1289
  # @param [String] i_cal_uid
1282
1290
  # Specifies an event ID in the iCalendar format to be provided in the response.
1283
1291
  # Optional. Use this if you want to search for an event by its iCalendar ID.
@@ -1302,8 +1310,21 @@ module Google
1302
1310
  # events that match all given constraints.
1303
1311
  # @param [String] q
1304
1312
  # Free text search terms to find events that match these terms in the following
1305
- # fields: summary, description, location, attendee's displayName, attendee's
1306
- # email. Optional.
1313
+ # fields:
1314
+ # - summary
1315
+ # - description
1316
+ # - location
1317
+ # - attendee's displayName
1318
+ # - attendee's email
1319
+ # - workingLocationProperties.officeLocation.buildingId
1320
+ # - workingLocationProperties.officeLocation.deskId
1321
+ # - workingLocationProperties.officeLocation.label
1322
+ # - workingLocationProperties.customLocation.label
1323
+ # These search terms also match predefined keywords against all display title
1324
+ # translations of working location, out-of-office, and focus-time events. For
1325
+ # example, searching for "Office" or "Bureau" returns working location events of
1326
+ # type officeLocation, whereas searching for "Out of office" or "Abwesend"
1327
+ # returns out-of-office events. Optional.
1307
1328
  # @param [Array<String>, String] shared_extended_property
1308
1329
  # Extended properties constraint specified as propertyName=value. Matches only
1309
1330
  # shared properties. This parameter might be repeated multiple times to return
@@ -1338,9 +1359,10 @@ module Google
1338
1359
  # - sharedExtendedProperty
1339
1360
  # - timeMin
1340
1361
  # - timeMax
1341
- # - updatedMin If the syncToken expires, the server will respond with a 410 GONE
1342
- # response code and the client should clear its storage and perform a full
1343
- # synchronization without any syncToken.
1362
+ # - updatedMin All other query parameters should be the same as for the initial
1363
+ # synchronization to avoid undefined behavior. If the syncToken expires, the
1364
+ # server will respond with a 410 GONE response code and the client should clear
1365
+ # its storage and perform a full synchronization without any syncToken.
1344
1366
  # Learn more about incremental synchronization.
1345
1367
  # Optional. The default is to return all entries.
1346
1368
  # @param [DateTime] time_max
@@ -1382,12 +1404,13 @@ module Google
1382
1404
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1383
1405
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1384
1406
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1385
- 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)
1407
+ def list_events(calendar_id, always_include_email: nil, event_types: 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)
1386
1408
  command = make_simple_command(:get, 'calendars/{calendarId}/events', options)
1387
1409
  command.response_representation = Google::Apis::CalendarV3::Events::Representation
1388
1410
  command.response_class = Google::Apis::CalendarV3::Events
1389
1411
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1390
1412
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1413
+ command.query['eventTypes'] = event_types unless event_types.nil?
1391
1414
  command.query['iCalUID'] = i_cal_uid unless i_cal_uid.nil?
1392
1415
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1393
1416
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1410,7 +1433,9 @@ module Google
1410
1433
  execute_or_queue_command(command, &block)
1411
1434
  end
1412
1435
 
1413
- # Moves an event to another calendar, i.e. changes an event's organizer.
1436
+ # Moves an event to another calendar, i.e. changes an event's organizer. Note
1437
+ # that only default events can be moved; outOfOffice, focusTime and
1438
+ # workingLocation events cannot be moved.
1414
1439
  # @param [String] calendar_id
1415
1440
  # Calendar identifier of the source calendar where the event currently is on.
1416
1441
  # @param [String] event_id
@@ -1660,6 +1685,14 @@ module Google
1660
1685
  # Deprecated and ignored. A value will always be returned in the email field for
1661
1686
  # the organizer, creator and attendees, even if no real email address is
1662
1687
  # available (i.e. a generated, non-working value will be provided).
1688
+ # @param [Array<String>, String] event_types
1689
+ # Event types to return. Optional. Possible values are:
1690
+ # - "default"
1691
+ # - "focusTime"
1692
+ # - "outOfOffice"
1693
+ # - "workingLocation"This parameter can be repeated multiple times to return
1694
+ # events of different types. The default is ["default", "focusTime", "
1695
+ # outOfOffice"].
1663
1696
  # @param [String] i_cal_uid
1664
1697
  # Specifies an event ID in the iCalendar format to be provided in the response.
1665
1698
  # Optional. Use this if you want to search for an event by its iCalendar ID.
@@ -1684,8 +1717,21 @@ module Google
1684
1717
  # events that match all given constraints.
1685
1718
  # @param [String] q
1686
1719
  # Free text search terms to find events that match these terms in the following
1687
- # fields: summary, description, location, attendee's displayName, attendee's
1688
- # email. Optional.
1720
+ # fields:
1721
+ # - summary
1722
+ # - description
1723
+ # - location
1724
+ # - attendee's displayName
1725
+ # - attendee's email
1726
+ # - workingLocationProperties.officeLocation.buildingId
1727
+ # - workingLocationProperties.officeLocation.deskId
1728
+ # - workingLocationProperties.officeLocation.label
1729
+ # - workingLocationProperties.customLocation.label
1730
+ # These search terms also match predefined keywords against all display title
1731
+ # translations of working location, out-of-office, and focus-time events. For
1732
+ # example, searching for "Office" or "Bureau" returns working location events of
1733
+ # type officeLocation, whereas searching for "Out of office" or "Abwesend"
1734
+ # returns out-of-office events. Optional.
1689
1735
  # @param [Array<String>, String] shared_extended_property
1690
1736
  # Extended properties constraint specified as propertyName=value. Matches only
1691
1737
  # shared properties. This parameter might be repeated multiple times to return
@@ -1720,9 +1766,10 @@ module Google
1720
1766
  # - sharedExtendedProperty
1721
1767
  # - timeMin
1722
1768
  # - timeMax
1723
- # - updatedMin If the syncToken expires, the server will respond with a 410 GONE
1724
- # response code and the client should clear its storage and perform a full
1725
- # synchronization without any syncToken.
1769
+ # - updatedMin All other query parameters should be the same as for the initial
1770
+ # synchronization to avoid undefined behavior. If the syncToken expires, the
1771
+ # server will respond with a 410 GONE response code and the client should clear
1772
+ # its storage and perform a full synchronization without any syncToken.
1726
1773
  # Learn more about incremental synchronization.
1727
1774
  # Optional. The default is to return all entries.
1728
1775
  # @param [DateTime] time_max
@@ -1764,7 +1811,7 @@ module Google
1764
1811
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
1812
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
1813
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
- 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)
1814
+ def watch_event(calendar_id, channel_object = nil, always_include_email: nil, event_types: 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)
1768
1815
  command = make_simple_command(:post, 'calendars/{calendarId}/events/watch', options)
1769
1816
  command.request_representation = Google::Apis::CalendarV3::Channel::Representation
1770
1817
  command.request_object = channel_object
@@ -1772,6 +1819,7 @@ module Google
1772
1819
  command.response_class = Google::Apis::CalendarV3::Channel
1773
1820
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1774
1821
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1822
+ command.query['eventTypes'] = event_types unless event_types.nil?
1775
1823
  command.query['iCalUID'] = i_cal_uid unless i_cal_uid.nil?
1776
1824
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1777
1825
  command.query['maxResults'] = max_results unless max_results.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-calendar_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-calendar_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-calendar_v3/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-calendar_v3/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-calendar_v3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Calendar API V3