google-apis-calendar_v3 0.55.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd313849c53041d3761c2454678efd239d6a40334e29c0d55cbb7414aa79e436
4
- data.tar.gz: 5c5b8f5b17f845e4ae809e37fc70c52dc7b358fc6473ecf31dfc10289ee22d44
3
+ metadata.gz: b4c1aa668fed6bb3cdfeddd223769095d40fcade6486239cc9a1a6fd68c81171
4
+ data.tar.gz: 8573a5c2f6156d0420a10b6fd99c8a179c7730143b63c6890bbd3c878c3c3f01
5
5
  SHA512:
6
- metadata.gz: f450b95b01f168a83ed8a376b6521f3e047c73c4c6d4c5e2d9e6e7c9b06069c1fbdc00906c194bfa19e4c791c257853ec8772bb10476099f3f9bd6119fa05829
7
- data.tar.gz: 8dabee4435c27d371388bc7de188034b0620ddc52805d9c29ad77d9190458efc08fe255da11fb6d7aa1850c62b1d700aad9b4d76f7960cc39bc74fe75549ae0b
6
+ metadata.gz: 9ad189be1c2059d3358db09a162b0ca8443797e404c52c6e1130048d36af42e2820e6afafc67e4493a5a27503c3d5602de2013fe1efe23a34e18506010e699ec
7
+ data.tar.gz: b0f729c0e142fc6e30d7d6573d1f740fcf5006f23efa9ab88f7f5e9093a7ffde0e7d2d86d3c82bc637f08f9316212364f5075645062dbd40abb1df16c10fe81e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-calendar_v3
2
2
 
3
+ ### v0.56.0 (2026-07-12)
4
+
5
+ * Regenerated from discovery document revision 20260702
6
+
3
7
  ### v0.55.0 (2026-06-14)
4
8
 
5
9
  * Regenerated using generator version 0.19.0
@@ -198,6 +198,13 @@ module Google
198
198
  # @return [String]
199
199
  attr_accessor :kind
200
200
 
201
+ # Label properties defined on this calendar. If specified, overwrites the
202
+ # existing label properties. If not specified, the label properties remain
203
+ # unchanged.
204
+ # Corresponds to the JSON property `labelProperties`
205
+ # @return [Google::Apis::CalendarV3::LabelProperties]
206
+ attr_accessor :label_properties
207
+
201
208
  # Geographic location of the calendar as free-form text. Optional.
202
209
  # Corresponds to the JSON property `location`
203
210
  # @return [String]
@@ -227,6 +234,7 @@ module Google
227
234
  @etag = args[:etag] if args.key?(:etag)
228
235
  @id = args[:id] if args.key?(:id)
229
236
  @kind = args[:kind] if args.key?(:kind)
237
+ @label_properties = args[:label_properties] if args.key?(:label_properties)
230
238
  @location = args[:location] if args.key?(:location)
231
239
  @summary = args[:summary] if args.key?(:summary)
232
240
  @time_zone = args[:time_zone] if args.key?(:time_zone)
@@ -1154,6 +1162,18 @@ module Google
1154
1162
  # @return [String]
1155
1163
  attr_accessor :etag
1156
1164
 
1165
+ # The ID of the event label assigned to the event. Optional. This refers to the
1166
+ # ID of an entry in the labelProperties.eventLabels property of the calendar (
1167
+ # see the Calendars.get endpoint.)
1168
+ # This property supersedes the index-based colorId property. To set or change
1169
+ # this property, you need to specify eventLabelVersion=1 in the parameters of
1170
+ # the insert, import, update, and patch methods.
1171
+ # Setting an empty string, or not setting this field at all, will remove the
1172
+ # existing label from the event.
1173
+ # Corresponds to the JSON property `eventLabelId`
1174
+ # @return [String]
1175
+ attr_accessor :event_label_id
1176
+
1157
1177
  # Specific type of the event. This cannot be modified after the event is created.
1158
1178
  # Possible values are:
1159
1179
  # - "birthday" - A special all-day event with an annual recurrence.
@@ -1418,6 +1438,7 @@ module Google
1418
1438
  @end = args[:end] if args.key?(:end)
1419
1439
  @end_time_unspecified = args[:end_time_unspecified] if args.key?(:end_time_unspecified)
1420
1440
  @etag = args[:etag] if args.key?(:etag)
1441
+ @event_label_id = args[:event_label_id] if args.key?(:event_label_id)
1421
1442
  @event_type = args[:event_type] if args.key?(:event_type)
1422
1443
  @extended_properties = args[:extended_properties] if args.key?(:extended_properties)
1423
1444
  @focus_time_properties = args[:focus_time_properties] if args.key?(:focus_time_properties)
@@ -1960,12 +1981,34 @@ module Google
1960
1981
  class EventLabel
1961
1982
  include Google::Apis::Core::Hashable
1962
1983
 
1984
+ # Background color of the label in hexadecimal format, such as "#039be5". Events
1985
+ # with this label are displayed in this color. Required.
1986
+ # Corresponds to the JSON property `backgroundColor`
1987
+ # @return [String]
1988
+ attr_accessor :background_color
1989
+
1990
+ # The ID of the label. Optional when inserting a new label. If not provided, a
1991
+ # unique ID will be generated. Required when updating a label.
1992
+ # If provided, the ID must be unique within the calendar and follow UUID format.
1993
+ # Corresponds to the JSON property `id`
1994
+ # @return [String]
1995
+ attr_accessor :id
1996
+
1997
+ # Name of the label. Optional.
1998
+ # If provided this must have at most 50 characters.
1999
+ # Corresponds to the JSON property `name`
2000
+ # @return [String]
2001
+ attr_accessor :name
2002
+
1963
2003
  def initialize(**args)
1964
2004
  update!(**args)
1965
2005
  end
1966
2006
 
1967
2007
  # Update properties of this object
1968
2008
  def update!(**args)
2009
+ @background_color = args[:background_color] if args.key?(:background_color)
2010
+ @id = args[:id] if args.key?(:id)
2011
+ @name = args[:name] if args.key?(:name)
1969
2012
  end
1970
2013
  end
1971
2014
 
@@ -2403,12 +2446,22 @@ module Google
2403
2446
  class LabelProperties
2404
2447
  include Google::Apis::Core::Hashable
2405
2448
 
2449
+ # Event labels defined on this calendar. If this is present when updating the
2450
+ # calendar, it will replace the existing event labels.
2451
+ # Extend the list to add a new event label, and remove entities from the list to
2452
+ # delete a label from calendar.
2453
+ # Each calendar can have a maximum of 200 labels.
2454
+ # Corresponds to the JSON property `eventLabels`
2455
+ # @return [Array<Google::Apis::CalendarV3::EventLabel>]
2456
+ attr_accessor :event_labels
2457
+
2406
2458
  def initialize(**args)
2407
2459
  update!(**args)
2408
2460
  end
2409
2461
 
2410
2462
  # Update properties of this object
2411
2463
  def update!(**args)
2464
+ @event_labels = args[:event_labels] if args.key?(:event_labels)
2412
2465
  end
2413
2466
  end
2414
2467
 
@@ -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.55.0"
19
+ GEM_VERSION = "0.56.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260517"
25
+ REVISION = "20260702"
26
26
  end
27
27
  end
28
28
  end
@@ -359,6 +359,8 @@ module Google
359
359
  property :etag, as: 'etag'
360
360
  property :id, as: 'id'
361
361
  property :kind, as: 'kind'
362
+ property :label_properties, as: 'labelProperties', class: Google::Apis::CalendarV3::LabelProperties, decorator: Google::Apis::CalendarV3::LabelProperties::Representation
363
+
362
364
  property :location, as: 'location'
363
365
  property :summary, as: 'summary'
364
366
  property :time_zone, as: 'timeZone'
@@ -581,6 +583,7 @@ module Google
581
583
 
582
584
  property :end_time_unspecified, as: 'endTimeUnspecified'
583
585
  property :etag, as: 'etag'
586
+ property :event_label_id, as: 'eventLabelId'
584
587
  property :event_type, as: 'eventType'
585
588
  property :extended_properties, as: 'extendedProperties', class: Google::Apis::CalendarV3::Event::ExtendedProperties, decorator: Google::Apis::CalendarV3::Event::ExtendedProperties::Representation
586
589
 
@@ -744,6 +747,9 @@ module Google
744
747
  class EventLabel
745
748
  # @private
746
749
  class Representation < Google::Apis::Core::JsonRepresentation
750
+ property :background_color, as: 'backgroundColor'
751
+ property :id, as: 'id'
752
+ property :name, as: 'name'
747
753
  end
748
754
  end
749
755
 
@@ -872,6 +878,8 @@ module Google
872
878
  class LabelProperties
873
879
  # @private
874
880
  class Representation < Google::Apis::Core::JsonRepresentation
881
+ collection :event_labels, as: 'eventLabels', class: Google::Apis::CalendarV3::EventLabel, decorator: Google::Apis::CalendarV3::EventLabel::Representation
882
+
875
883
  end
876
884
  end
877
885
 
@@ -891,6 +891,53 @@ module Google
891
891
  execute_or_queue_command(command, &block)
892
892
  end
893
893
 
894
+ # Transfers a secondary calendar between users within a Google Workspace
895
+ # organization. Requires user authentication with Manage Calendars administrator
896
+ # privilege, and one of the following authorization scopes:
897
+ # - https://www.googleapis.com/auth/calendar
898
+ # - https://www.googleapis.com/auth/calendar.calendars In the request, set
899
+ # useAdminAccess to true. The secondary calendar must be active to be
900
+ # transferred. Transferring disabled or deleted calendars isn't supported.
901
+ # @param [String] calendar_id
902
+ # Calendar identifier. To retrieve calendar IDs, call the calendarList.list
903
+ # method.
904
+ # @param [String] new_data_owner
905
+ # The email address of a user who will become the data owner of the calendar.
906
+ # @param [Boolean] use_admin_access
907
+ # When true, the method runs using the user's Google Workspace administrator
908
+ # privileges. The calling user must be a Google Workspace administrator with the
909
+ # Manage Calendars privilege. This method currently only supports admin access,
910
+ # thus only true is accepted for this field.
911
+ # @param [String] fields
912
+ # Selector specifying which fields to include in a partial response.
913
+ # @param [String] quota_user
914
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
915
+ # characters.
916
+ # @param [String] user_ip
917
+ # Deprecated. Please use quotaUser instead.
918
+ # @param [Google::Apis::RequestOptions] options
919
+ # Request-specific options
920
+ #
921
+ # @yield [result, err] Result & error if block supplied
922
+ # @yieldparam result [NilClass] No result returned for this method
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [void]
926
+ #
927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
930
+ def transfer_calendar_ownership(calendar_id, new_data_owner, use_admin_access, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
931
+ command = make_simple_command(:post, 'calendars/{calendarId}/transferOwnership', options)
932
+ command.params['calendarId'] = calendar_id unless calendar_id.nil?
933
+ command.query['newDataOwner'] = new_data_owner unless new_data_owner.nil?
934
+ command.query['useAdminAccess'] = use_admin_access unless use_admin_access.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ command.query['userIp'] = user_ip unless user_ip.nil?
938
+ execute_or_queue_command(command, &block)
939
+ end
940
+
894
941
  # Updates metadata for a calendar.
895
942
  # @param [String] calendar_id
896
943
  # Calendar identifier. To retrieve calendar IDs call the calendarList.list
@@ -1104,6 +1151,12 @@ module Google
1104
1151
  # body. Version 1 enables support for copying of ConferenceData as well as for
1105
1152
  # creating new conferences using the createRequest field of conferenceData. The
1106
1153
  # default is 0.
1154
+ # @param [Fixnum] event_label_version
1155
+ # Version number of the event label feature supported by the API client. Version
1156
+ # 0 assumes no event label support and processes the colorId field for color
1157
+ # management. Version 1 enables support for event labels, and processes the
1158
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1159
+ # The default is 0.
1107
1160
  # @param [Boolean] supports_attachments
1108
1161
  # Whether API client performing operation supports event attachments. Optional.
1109
1162
  # The default is False.
@@ -1126,7 +1179,7 @@ module Google
1126
1179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1127
1180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1128
1181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1129
- def import_event(calendar_id, event_object = nil, conference_data_version: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1182
+ def import_event(calendar_id, event_object = nil, conference_data_version: nil, event_label_version: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1130
1183
  command = make_simple_command(:post, 'calendars/{calendarId}/events/import', options)
1131
1184
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1132
1185
  command.request_object = event_object
@@ -1134,6 +1187,7 @@ module Google
1134
1187
  command.response_class = Google::Apis::CalendarV3::Event
1135
1188
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1136
1189
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1190
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1137
1191
  command.query['supportsAttachments'] = supports_attachments unless supports_attachments.nil?
1138
1192
  command.query['fields'] = fields unless fields.nil?
1139
1193
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1153,6 +1207,12 @@ module Google
1153
1207
  # body. Version 1 enables support for copying of ConferenceData as well as for
1154
1208
  # creating new conferences using the createRequest field of conferenceData. The
1155
1209
  # default is 0.
1210
+ # @param [Fixnum] event_label_version
1211
+ # Version number of the event label feature supported by the API client. Version
1212
+ # 0 assumes no event label support and processes the colorId field for color
1213
+ # management. Version 1 enables support for event labels, and processes the
1214
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1215
+ # The default is 0.
1156
1216
  # @param [Fixnum] max_attendees
1157
1217
  # The maximum number of attendees to include in the response. If there are more
1158
1218
  # than the specified number of attendees, only the participant is returned.
@@ -1187,7 +1247,7 @@ module Google
1187
1247
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1188
1248
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1189
1249
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1190
- def insert_event(calendar_id, event_object = nil, conference_data_version: nil, max_attendees: nil, send_notifications: nil, send_updates: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1250
+ def insert_event(calendar_id, event_object = nil, conference_data_version: nil, event_label_version: nil, max_attendees: nil, send_notifications: nil, send_updates: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1191
1251
  command = make_simple_command(:post, 'calendars/{calendarId}/events', options)
1192
1252
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1193
1253
  command.request_object = event_object
@@ -1195,6 +1255,7 @@ module Google
1195
1255
  command.response_class = Google::Apis::CalendarV3::Event
1196
1256
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1197
1257
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1258
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1198
1259
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1199
1260
  command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
1200
1261
  command.query['sendUpdates'] = send_updates unless send_updates.nil?
@@ -1510,6 +1571,12 @@ module Google
1510
1571
  # body. Version 1 enables support for copying of ConferenceData as well as for
1511
1572
  # creating new conferences using the createRequest field of conferenceData. The
1512
1573
  # default is 0.
1574
+ # @param [Fixnum] event_label_version
1575
+ # Version number of the event label feature supported by the API client. Version
1576
+ # 0 assumes no event label support and processes the colorId field for color
1577
+ # management. Version 1 enables support for event labels, and processes the
1578
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1579
+ # The default is 0.
1513
1580
  # @param [Fixnum] max_attendees
1514
1581
  # The maximum number of attendees to include in the response. If there are more
1515
1582
  # than the specified number of attendees, only the participant is returned.
@@ -1544,7 +1611,7 @@ module Google
1544
1611
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1545
1612
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1546
1613
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1547
- def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, conference_data_version: nil, max_attendees: nil, send_notifications: nil, send_updates: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1614
+ def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, conference_data_version: nil, event_label_version: nil, max_attendees: nil, send_notifications: nil, send_updates: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1548
1615
  command = make_simple_command(:patch, 'calendars/{calendarId}/events/{eventId}', options)
1549
1616
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1550
1617
  command.request_object = event_object
@@ -1554,6 +1621,7 @@ module Google
1554
1621
  command.params['eventId'] = event_id unless event_id.nil?
1555
1622
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1556
1623
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1624
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1557
1625
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1558
1626
  command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
1559
1627
  command.query['sendUpdates'] = send_updates unless send_updates.nil?
@@ -1629,6 +1697,12 @@ module Google
1629
1697
  # body. Version 1 enables support for copying of ConferenceData as well as for
1630
1698
  # creating new conferences using the createRequest field of conferenceData. The
1631
1699
  # default is 0.
1700
+ # @param [Fixnum] event_label_version
1701
+ # Version number of the event label feature supported by the API client. Version
1702
+ # 0 assumes no event label support and processes the colorId field for color
1703
+ # management. Version 1 enables support for event labels, and processes the
1704
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1705
+ # The default is 0.
1632
1706
  # @param [Fixnum] max_attendees
1633
1707
  # The maximum number of attendees to include in the response. If there are more
1634
1708
  # than the specified number of attendees, only the participant is returned.
@@ -1663,7 +1737,7 @@ module Google
1663
1737
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1664
1738
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1665
1739
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1666
- def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, conference_data_version: nil, max_attendees: nil, send_notifications: nil, send_updates: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1740
+ def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, conference_data_version: nil, event_label_version: nil, max_attendees: nil, send_notifications: nil, send_updates: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1667
1741
  command = make_simple_command(:put, 'calendars/{calendarId}/events/{eventId}', options)
1668
1742
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1669
1743
  command.request_object = event_object
@@ -1673,6 +1747,7 @@ module Google
1673
1747
  command.params['eventId'] = event_id unless event_id.nil?
1674
1748
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1675
1749
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1750
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1676
1751
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1677
1752
  command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
1678
1753
  command.query['sendUpdates'] = send_updates unless send_updates.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-calendar_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.0
4
+ version: 0.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-calendar_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-calendar_v3/v0.55.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-calendar_v3/v0.56.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-calendar_v3
62
62
  rdoc_options: []
63
63
  require_paths: