google-apis-calendar_v3 0.55.0 → 0.57.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: a5bc88fb6b0ab9e7fa4fac0761068e58a9d546c0715515919395e30647400d85
4
+ data.tar.gz: 91d2c3b6852f969a938fa3981a4ca25aeb6c7507ec8cb03dd033cf2dbc7b750b
5
5
  SHA512:
6
- metadata.gz: f450b95b01f168a83ed8a376b6521f3e047c73c4c6d4c5e2d9e6e7c9b06069c1fbdc00906c194bfa19e4c791c257853ec8772bb10476099f3f9bd6119fa05829
7
- data.tar.gz: 8dabee4435c27d371388bc7de188034b0620ddc52805d9c29ad77d9190458efc08fe255da11fb6d7aa1850c62b1d700aad9b4d76f7960cc39bc74fe75549ae0b
6
+ metadata.gz: 0abb4d8ff2e79a263036bd1e5337d3afa22cbcefddc33cdf06bcb51b192e60fb7a0f409fb0b0802f26ce3a37c99277f3652b6399a17f123e79d5a207f3aa95b6
7
+ data.tar.gz: 9718b52d494b73bcc5baba192f80b3758e090ba8758cd31186f14d6a9c76340cae09fcca0ba5308a688b73497b9b73656e7b8d7c68a71b7f88d25079ce25ccba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-calendar_v3
2
2
 
3
+ ### v0.57.0 (2026-07-19)
4
+
5
+ * Regenerated from discovery document revision 20260708
6
+
7
+ ### v0.56.0 (2026-07-12)
8
+
9
+ * Regenerated from discovery document revision 20260702
10
+
3
11
  ### v0.55.0 (2026-06-14)
4
12
 
5
13
  * Regenerated using generator version 0.19.0
@@ -92,6 +92,9 @@ module Google
92
92
  # - "freeBusyReader" - Provides read access to free/busy information.
93
93
  # - "reader" - Provides read access to the calendar. Private events will appear
94
94
  # to users with reader access, but event details will be hidden.
95
+ # - "writerWithoutPrivateAccess" - Provides read and write access to the
96
+ # calendar. Private events will appear to users with writerWithoutPrivateAccess
97
+ # access, but event details will be hidden.
95
98
  # - "writer" - Provides read and write access to the calendar. Private events
96
99
  # will appear to users with writer access, and event details will be visible.
97
100
  # Provides read access to the calendar's ACLs.
@@ -198,6 +201,13 @@ module Google
198
201
  # @return [String]
199
202
  attr_accessor :kind
200
203
 
204
+ # Label properties defined on this calendar. If specified, overwrites the
205
+ # existing label properties. If not specified, the label properties remain
206
+ # unchanged.
207
+ # Corresponds to the JSON property `labelProperties`
208
+ # @return [Google::Apis::CalendarV3::LabelProperties]
209
+ attr_accessor :label_properties
210
+
201
211
  # Geographic location of the calendar as free-form text. Optional.
202
212
  # Corresponds to the JSON property `location`
203
213
  # @return [String]
@@ -227,6 +237,7 @@ module Google
227
237
  @etag = args[:etag] if args.key?(:etag)
228
238
  @id = args[:id] if args.key?(:id)
229
239
  @kind = args[:kind] if args.key?(:kind)
240
+ @label_properties = args[:label_properties] if args.key?(:label_properties)
230
241
  @location = args[:location] if args.key?(:location)
231
242
  @summary = args[:summary] if args.key?(:summary)
232
243
  @time_zone = args[:time_zone] if args.key?(:time_zone)
@@ -288,6 +299,9 @@ module Google
288
299
  # - "freeBusyReader" - Provides read access to free/busy information.
289
300
  # - "reader" - Provides read access to the calendar. Private events will appear
290
301
  # to users with reader access, but event details will be hidden.
302
+ # - "writerWithoutPrivateAccess" - Provides read and write access to the
303
+ # calendar. Private events will appear to users with writerWithoutPrivateAccess
304
+ # access, but event details will be hidden.
291
305
  # - "writer" - Provides read and write access to the calendar. Private events
292
306
  # will appear to users with writer access, and event details will be visible.
293
307
  # - "owner" - Provides manager access to the calendar. This role has all of the
@@ -1154,6 +1168,18 @@ module Google
1154
1168
  # @return [String]
1155
1169
  attr_accessor :etag
1156
1170
 
1171
+ # The ID of the event label assigned to the event. Optional. This refers to the
1172
+ # ID of an entry in the labelProperties.eventLabels property of the calendar (
1173
+ # see the Calendars.get endpoint.)
1174
+ # This property supersedes the index-based colorId property. To set or change
1175
+ # this property, you need to specify eventLabelVersion=1 in the parameters of
1176
+ # the insert, import, update, and patch methods.
1177
+ # Setting an empty string, or not setting this field at all, will remove the
1178
+ # existing label from the event.
1179
+ # Corresponds to the JSON property `eventLabelId`
1180
+ # @return [String]
1181
+ attr_accessor :event_label_id
1182
+
1157
1183
  # Specific type of the event. This cannot be modified after the event is created.
1158
1184
  # Possible values are:
1159
1185
  # - "birthday" - A special all-day event with an annual recurrence.
@@ -1390,6 +1416,12 @@ module Google
1390
1416
  # details.
1391
1417
  # - "confidential" - The event is private. This value is provided for
1392
1418
  # compatibility reasons.
1419
+ # Note on recurring events: Changing the visibility of a single instance of a
1420
+ # recurring event can affect all instances of the series. If the new setting is
1421
+ # more restrictive (e.g. from public to private), it is applied to all instances.
1422
+ # If the new setting is less restrictive (e.g. from private to public), the
1423
+ # change is ignored. To make a recurring event less restrictive, you must update
1424
+ # the parent recurring event.
1393
1425
  # Corresponds to the JSON property `visibility`
1394
1426
  # @return [String]
1395
1427
  attr_accessor :visibility
@@ -1418,6 +1450,7 @@ module Google
1418
1450
  @end = args[:end] if args.key?(:end)
1419
1451
  @end_time_unspecified = args[:end_time_unspecified] if args.key?(:end_time_unspecified)
1420
1452
  @etag = args[:etag] if args.key?(:etag)
1453
+ @event_label_id = args[:event_label_id] if args.key?(:event_label_id)
1421
1454
  @event_type = args[:event_type] if args.key?(:event_type)
1422
1455
  @extended_properties = args[:extended_properties] if args.key?(:extended_properties)
1423
1456
  @focus_time_properties = args[:focus_time_properties] if args.key?(:focus_time_properties)
@@ -1960,12 +1993,34 @@ module Google
1960
1993
  class EventLabel
1961
1994
  include Google::Apis::Core::Hashable
1962
1995
 
1996
+ # Background color of the label in hexadecimal format, such as "#039be5". Events
1997
+ # with this label are displayed in this color. Required.
1998
+ # Corresponds to the JSON property `backgroundColor`
1999
+ # @return [String]
2000
+ attr_accessor :background_color
2001
+
2002
+ # The ID of the label. Optional when inserting a new label. If not provided, a
2003
+ # unique ID will be generated. Required when updating a label.
2004
+ # If provided, the ID must be unique within the calendar and follow UUID format.
2005
+ # Corresponds to the JSON property `id`
2006
+ # @return [String]
2007
+ attr_accessor :id
2008
+
2009
+ # Name of the label. Optional.
2010
+ # If provided this must have at most 50 characters.
2011
+ # Corresponds to the JSON property `name`
2012
+ # @return [String]
2013
+ attr_accessor :name
2014
+
1963
2015
  def initialize(**args)
1964
2016
  update!(**args)
1965
2017
  end
1966
2018
 
1967
2019
  # Update properties of this object
1968
2020
  def update!(**args)
2021
+ @background_color = args[:background_color] if args.key?(:background_color)
2022
+ @id = args[:id] if args.key?(:id)
2023
+ @name = args[:name] if args.key?(:name)
1969
2024
  end
1970
2025
  end
1971
2026
 
@@ -2148,6 +2203,9 @@ module Google
2148
2203
  # - "freeBusyReader" - The user has read access to free/busy information.
2149
2204
  # - "reader" - The user has read access to the calendar. Private events will
2150
2205
  # appear to users with reader access, but event details will be hidden.
2206
+ # - "writerWithoutPrivateAccess" - The user has read and write access to the
2207
+ # calendar. Private events will appear to users with writerWithoutPrivateAccess
2208
+ # access, but event details will be hidden.
2151
2209
  # - "writer" - The user has read and write access to the calendar. Private
2152
2210
  # events will appear to users with writer access, and event details will be
2153
2211
  # visible.
@@ -2403,12 +2461,22 @@ module Google
2403
2461
  class LabelProperties
2404
2462
  include Google::Apis::Core::Hashable
2405
2463
 
2464
+ # Event labels defined on this calendar. If this is present when updating the
2465
+ # calendar, it will replace the existing event labels.
2466
+ # Extend the list to add a new event label, and remove entities from the list to
2467
+ # delete a label from calendar.
2468
+ # Each calendar can have a maximum of 200 labels.
2469
+ # Corresponds to the JSON property `eventLabels`
2470
+ # @return [Array<Google::Apis::CalendarV3::EventLabel>]
2471
+ attr_accessor :event_labels
2472
+
2406
2473
  def initialize(**args)
2407
2474
  update!(**args)
2408
2475
  end
2409
2476
 
2410
2477
  # Update properties of this object
2411
2478
  def update!(**args)
2479
+ @event_labels = args[:event_labels] if args.key?(:event_labels)
2412
2480
  end
2413
2481
  end
2414
2482
 
@@ -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.57.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 = "20260708"
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
 
@@ -503,6 +503,10 @@ module Google
503
503
  # default is False.
504
504
  # @param [Boolean] show_hidden
505
505
  # Whether to show hidden entries. Optional. The default is False.
506
+ # @param [Boolean] show_own_organization_only
507
+ # Whether to show only entries for calendars from the organization. This
508
+ # parameter is only applicable to Google Workspace users. Optional. The default
509
+ # is False.
506
510
  # @param [String] sync_token
507
511
  # Token obtained from the nextSyncToken field returned on the last page of
508
512
  # results from the previous list request. It makes the result of this list
@@ -511,8 +515,8 @@ module Google
511
515
  # returned. All entries deleted and hidden since the previous list request will
512
516
  # always be in the result set and it is not allowed to set showDeleted neither
513
517
  # showHidden to False.
514
- # To ensure client state consistency minAccessRole query parameter cannot be
515
- # specified together with nextSyncToken.
518
+ # To ensure client state consistency minAccessRole and showOwnOrganizationOnly
519
+ # query parameters cannot be specified together with nextSyncToken.
516
520
  # If the syncToken expires, the server will respond with a 410 GONE response
517
521
  # code and the client should clear its storage and perform a full
518
522
  # synchronization without any syncToken.
@@ -537,7 +541,7 @@ module Google
537
541
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
538
542
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
543
  # @raise [Google::Apis::AuthorizationError] Authorization is required
540
- 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)
544
+ def list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, show_own_organization_only: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
541
545
  command = make_simple_command(:get, 'users/me/calendarList', options)
542
546
  command.response_representation = Google::Apis::CalendarV3::CalendarList::Representation
543
547
  command.response_class = Google::Apis::CalendarV3::CalendarList
@@ -546,6 +550,7 @@ module Google
546
550
  command.query['pageToken'] = page_token unless page_token.nil?
547
551
  command.query['showDeleted'] = show_deleted unless show_deleted.nil?
548
552
  command.query['showHidden'] = show_hidden unless show_hidden.nil?
553
+ command.query['showOwnOrganizationOnly'] = show_own_organization_only unless show_own_organization_only.nil?
549
554
  command.query['syncToken'] = sync_token unless sync_token.nil?
550
555
  command.query['fields'] = fields unless fields.nil?
551
556
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -657,6 +662,10 @@ module Google
657
662
  # default is False.
658
663
  # @param [Boolean] show_hidden
659
664
  # Whether to show hidden entries. Optional. The default is False.
665
+ # @param [Boolean] show_own_organization_only
666
+ # Whether to show only entries for calendars from the organization. This
667
+ # parameter is only applicable to Google Workspace users. Optional. The default
668
+ # is False.
660
669
  # @param [String] sync_token
661
670
  # Token obtained from the nextSyncToken field returned on the last page of
662
671
  # results from the previous list request. It makes the result of this list
@@ -665,8 +674,8 @@ module Google
665
674
  # returned. All entries deleted and hidden since the previous list request will
666
675
  # always be in the result set and it is not allowed to set showDeleted neither
667
676
  # showHidden to False.
668
- # To ensure client state consistency minAccessRole query parameter cannot be
669
- # specified together with nextSyncToken.
677
+ # To ensure client state consistency minAccessRole and showOwnOrganizationOnly
678
+ # query parameters cannot be specified together with nextSyncToken.
670
679
  # If the syncToken expires, the server will respond with a 410 GONE response
671
680
  # code and the client should clear its storage and perform a full
672
681
  # synchronization without any syncToken.
@@ -691,7 +700,7 @@ module Google
691
700
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
692
701
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
693
702
  # @raise [Google::Apis::AuthorizationError] Authorization is required
694
- 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)
703
+ def watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, show_own_organization_only: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
695
704
  command = make_simple_command(:post, 'users/me/calendarList/watch', options)
696
705
  command.request_representation = Google::Apis::CalendarV3::Channel::Representation
697
706
  command.request_object = channel_object
@@ -702,6 +711,7 @@ module Google
702
711
  command.query['pageToken'] = page_token unless page_token.nil?
703
712
  command.query['showDeleted'] = show_deleted unless show_deleted.nil?
704
713
  command.query['showHidden'] = show_hidden unless show_hidden.nil?
714
+ command.query['showOwnOrganizationOnly'] = show_own_organization_only unless show_own_organization_only.nil?
705
715
  command.query['syncToken'] = sync_token unless sync_token.nil?
706
716
  command.query['fields'] = fields unless fields.nil?
707
717
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -891,6 +901,53 @@ module Google
891
901
  execute_or_queue_command(command, &block)
892
902
  end
893
903
 
904
+ # Transfers a secondary calendar between users within a Google Workspace
905
+ # organization. Requires user authentication with Manage Calendars administrator
906
+ # privilege, and one of the following authorization scopes:
907
+ # - https://www.googleapis.com/auth/calendar
908
+ # - https://www.googleapis.com/auth/calendar.calendars In the request, set
909
+ # useAdminAccess to true. The secondary calendar must be active to be
910
+ # transferred. Transferring disabled or deleted calendars isn't supported.
911
+ # @param [String] calendar_id
912
+ # Calendar identifier. To retrieve calendar IDs, call the calendarList.list
913
+ # method.
914
+ # @param [String] new_data_owner
915
+ # The email address of a user who will become the data owner of the calendar.
916
+ # @param [Boolean] use_admin_access
917
+ # When true, the method runs using the user's Google Workspace administrator
918
+ # privileges. The calling user must be a Google Workspace administrator with the
919
+ # Manage Calendars privilege. This method currently only supports admin access,
920
+ # thus only true is accepted for this field.
921
+ # @param [String] fields
922
+ # Selector specifying which fields to include in a partial response.
923
+ # @param [String] quota_user
924
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
925
+ # characters.
926
+ # @param [String] user_ip
927
+ # Deprecated. Please use quotaUser instead.
928
+ # @param [Google::Apis::RequestOptions] options
929
+ # Request-specific options
930
+ #
931
+ # @yield [result, err] Result & error if block supplied
932
+ # @yieldparam result [NilClass] No result returned for this method
933
+ # @yieldparam err [StandardError] error object if request failed
934
+ #
935
+ # @return [void]
936
+ #
937
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
938
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
939
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
940
+ def transfer_calendar_ownership(calendar_id, new_data_owner, use_admin_access, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
941
+ command = make_simple_command(:post, 'calendars/{calendarId}/transferOwnership', options)
942
+ command.params['calendarId'] = calendar_id unless calendar_id.nil?
943
+ command.query['newDataOwner'] = new_data_owner unless new_data_owner.nil?
944
+ command.query['useAdminAccess'] = use_admin_access unless use_admin_access.nil?
945
+ command.query['fields'] = fields unless fields.nil?
946
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
947
+ command.query['userIp'] = user_ip unless user_ip.nil?
948
+ execute_or_queue_command(command, &block)
949
+ end
950
+
894
951
  # Updates metadata for a calendar.
895
952
  # @param [String] calendar_id
896
953
  # Calendar identifier. To retrieve calendar IDs call the calendarList.list
@@ -1104,6 +1161,12 @@ module Google
1104
1161
  # body. Version 1 enables support for copying of ConferenceData as well as for
1105
1162
  # creating new conferences using the createRequest field of conferenceData. The
1106
1163
  # default is 0.
1164
+ # @param [Fixnum] event_label_version
1165
+ # Version number of the event label feature supported by the API client. Version
1166
+ # 0 assumes no event label support and processes the colorId field for color
1167
+ # management. Version 1 enables support for event labels, and processes the
1168
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1169
+ # The default is 0.
1107
1170
  # @param [Boolean] supports_attachments
1108
1171
  # Whether API client performing operation supports event attachments. Optional.
1109
1172
  # The default is False.
@@ -1126,7 +1189,7 @@ module Google
1126
1189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1127
1190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1128
1191
  # @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)
1192
+ 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
1193
  command = make_simple_command(:post, 'calendars/{calendarId}/events/import', options)
1131
1194
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1132
1195
  command.request_object = event_object
@@ -1134,6 +1197,7 @@ module Google
1134
1197
  command.response_class = Google::Apis::CalendarV3::Event
1135
1198
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1136
1199
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1200
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1137
1201
  command.query['supportsAttachments'] = supports_attachments unless supports_attachments.nil?
1138
1202
  command.query['fields'] = fields unless fields.nil?
1139
1203
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1153,6 +1217,12 @@ module Google
1153
1217
  # body. Version 1 enables support for copying of ConferenceData as well as for
1154
1218
  # creating new conferences using the createRequest field of conferenceData. The
1155
1219
  # default is 0.
1220
+ # @param [Fixnum] event_label_version
1221
+ # Version number of the event label feature supported by the API client. Version
1222
+ # 0 assumes no event label support and processes the colorId field for color
1223
+ # management. Version 1 enables support for event labels, and processes the
1224
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1225
+ # The default is 0.
1156
1226
  # @param [Fixnum] max_attendees
1157
1227
  # The maximum number of attendees to include in the response. If there are more
1158
1228
  # than the specified number of attendees, only the participant is returned.
@@ -1187,7 +1257,7 @@ module Google
1187
1257
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1188
1258
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1189
1259
  # @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)
1260
+ 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
1261
  command = make_simple_command(:post, 'calendars/{calendarId}/events', options)
1192
1262
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1193
1263
  command.request_object = event_object
@@ -1195,6 +1265,7 @@ module Google
1195
1265
  command.response_class = Google::Apis::CalendarV3::Event
1196
1266
  command.params['calendarId'] = calendar_id unless calendar_id.nil?
1197
1267
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1268
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1198
1269
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1199
1270
  command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
1200
1271
  command.query['sendUpdates'] = send_updates unless send_updates.nil?
@@ -1510,6 +1581,12 @@ module Google
1510
1581
  # body. Version 1 enables support for copying of ConferenceData as well as for
1511
1582
  # creating new conferences using the createRequest field of conferenceData. The
1512
1583
  # default is 0.
1584
+ # @param [Fixnum] event_label_version
1585
+ # Version number of the event label feature supported by the API client. Version
1586
+ # 0 assumes no event label support and processes the colorId field for color
1587
+ # management. Version 1 enables support for event labels, and processes the
1588
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1589
+ # The default is 0.
1513
1590
  # @param [Fixnum] max_attendees
1514
1591
  # The maximum number of attendees to include in the response. If there are more
1515
1592
  # than the specified number of attendees, only the participant is returned.
@@ -1544,7 +1621,7 @@ module Google
1544
1621
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1545
1622
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1546
1623
  # @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)
1624
+ 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
1625
  command = make_simple_command(:patch, 'calendars/{calendarId}/events/{eventId}', options)
1549
1626
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1550
1627
  command.request_object = event_object
@@ -1554,6 +1631,7 @@ module Google
1554
1631
  command.params['eventId'] = event_id unless event_id.nil?
1555
1632
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1556
1633
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1634
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1557
1635
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1558
1636
  command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
1559
1637
  command.query['sendUpdates'] = send_updates unless send_updates.nil?
@@ -1629,6 +1707,12 @@ module Google
1629
1707
  # body. Version 1 enables support for copying of ConferenceData as well as for
1630
1708
  # creating new conferences using the createRequest field of conferenceData. The
1631
1709
  # default is 0.
1710
+ # @param [Fixnum] event_label_version
1711
+ # Version number of the event label feature supported by the API client. Version
1712
+ # 0 assumes no event label support and processes the colorId field for color
1713
+ # management. Version 1 enables support for event labels, and processes the
1714
+ # eventLabelId in the event's body. In this case, the colorId field is ignored.
1715
+ # The default is 0.
1632
1716
  # @param [Fixnum] max_attendees
1633
1717
  # The maximum number of attendees to include in the response. If there are more
1634
1718
  # than the specified number of attendees, only the participant is returned.
@@ -1663,7 +1747,7 @@ module Google
1663
1747
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1664
1748
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1665
1749
  # @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)
1750
+ 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
1751
  command = make_simple_command(:put, 'calendars/{calendarId}/events/{eventId}', options)
1668
1752
  command.request_representation = Google::Apis::CalendarV3::Event::Representation
1669
1753
  command.request_object = event_object
@@ -1673,6 +1757,7 @@ module Google
1673
1757
  command.params['eventId'] = event_id unless event_id.nil?
1674
1758
  command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
1675
1759
  command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
1760
+ command.query['eventLabelVersion'] = event_label_version unless event_label_version.nil?
1676
1761
  command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
1677
1762
  command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
1678
1763
  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.57.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.57.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: