Skip to content

Commit e04c79d

Browse files
feat: Automated regeneration of calendar v3 client (#24904)
Auto-created at 2025-11-09 09:50:53 +0000 using the toys pull request generator.
1 parent ffc49d7 commit e04c79d

File tree

6 files changed

+49
-11
lines changed

6 files changed

+49
-11
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61901,6 +61901,7 @@
6190161901
"/calendar:v3/AclRule/scope/value": value
6190261902
"/calendar:v3/Calendar": calendar
6190361903
"/calendar:v3/Calendar/conferenceProperties": conference_properties
61904+
"/calendar:v3/Calendar/dataOwner": data_owner
6190461905
"/calendar:v3/Calendar/description": description
6190561906
"/calendar:v3/Calendar/etag": etag
6190661907
"/calendar:v3/Calendar/id": id
@@ -61920,6 +61921,7 @@
6192061921
"/calendar:v3/CalendarListEntry/backgroundColor": background_color
6192161922
"/calendar:v3/CalendarListEntry/colorId": color_id
6192261923
"/calendar:v3/CalendarListEntry/conferenceProperties": conference_properties
61924+
"/calendar:v3/CalendarListEntry/dataOwner": data_owner
6192361925
"/calendar:v3/CalendarListEntry/defaultReminders": default_reminders
6192461926
"/calendar:v3/CalendarListEntry/defaultReminders/default_reminder": default_reminder
6192561927
"/calendar:v3/CalendarListEntry/deleted": deleted

generated/google-apis-calendar_v3/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-calendar_v3
22

3+
### v0.49.0 (2025-11-09)
4+
5+
* Regenerated from discovery document revision 20251028
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.48.0 (2025-05-04)
49

510
* Regenerated using generator version 0.17.0

generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/classes.rb

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ class AclRule
9595
# - "writer" - Provides read and write access to the calendar. Private events
9696
# will appear to users with writer access, and event details will be visible.
9797
# Provides read access to the calendar's ACLs.
98-
# - "owner" - Provides ownership of the calendar. This role has all of the
99-
# permissions of the writer role with the additional ability to manipulate ACLs.
98+
# - "owner" - Provides manager access to the calendar. This role has all of the
99+
# permissions of the writer role with the additional ability to modify access
100+
# levels of other users.
101+
# Important: the owner role is different from the calendar's data owner. A
102+
# calendar has a single data owner, but can have multiple users with owner role.
100103
# Corresponds to the JSON property `role`
101104
# @return [String]
102105
attr_accessor :role
@@ -161,6 +164,12 @@ class Calendar
161164
# @return [Google::Apis::CalendarV3::ConferenceProperties]
162165
attr_accessor :conference_properties
163166

167+
# The email of the owner of the calendar. Set only for secondary calendars. Read-
168+
# only.
169+
# Corresponds to the JSON property `dataOwner`
170+
# @return [String]
171+
attr_accessor :data_owner
172+
164173
# Description of the calendar. Optional.
165174
# Corresponds to the JSON property `description`
166175
# @return [String]
@@ -205,6 +214,7 @@ def initialize(**args)
205214
# Update properties of this object
206215
def update!(**args)
207216
@conference_properties = args[:conference_properties] if args.key?(:conference_properties)
217+
@data_owner = args[:data_owner] if args.key?(:data_owner)
208218
@description = args[:description] if args.key?(:description)
209219
@etag = args[:etag] if args.key?(:etag)
210220
@id = args[:id] if args.key?(:id)
@@ -272,9 +282,11 @@ class CalendarListEntry
272282
# to users with reader access, but event details will be hidden.
273283
# - "writer" - Provides read and write access to the calendar. Private events
274284
# will appear to users with writer access, and event details will be visible.
275-
# - "owner" - Provides ownership of the calendar. This role has all of the
276-
# permissions of the writer role with the additional ability to see and
277-
# manipulate ACLs.
285+
# - "owner" - Provides manager access to the calendar. This role has all of the
286+
# permissions of the writer role with the additional ability to see and modify
287+
# access levels of other users.
288+
# Important: the owner role is different from the calendar's data owner. A
289+
# calendar has a single data owner, but can have multiple users with owner role.
278290
# Corresponds to the JSON property `accessRole`
279291
# @return [String]
280292
attr_accessor :access_role
@@ -301,6 +313,12 @@ class CalendarListEntry
301313
# @return [Google::Apis::CalendarV3::ConferenceProperties]
302314
attr_accessor :conference_properties
303315

316+
# The email of the owner of the calendar. Set only for secondary calendars. Read-
317+
# only.
318+
# Corresponds to the JSON property `dataOwner`
319+
# @return [String]
320+
attr_accessor :data_owner
321+
304322
# The default reminders that the authenticated user has for this calendar.
305323
# Corresponds to the JSON property `defaultReminders`
306324
# @return [Array<Google::Apis::CalendarV3::EventReminder>]
@@ -397,6 +415,7 @@ def update!(**args)
397415
@background_color = args[:background_color] if args.key?(:background_color)
398416
@color_id = args[:color_id] if args.key?(:color_id)
399417
@conference_properties = args[:conference_properties] if args.key?(:conference_properties)
418+
@data_owner = args[:data_owner] if args.key?(:data_owner)
400419
@default_reminders = args[:default_reminders] if args.key?(:default_reminders)
401420
@deleted = args[:deleted] if args.key?(:deleted)
402421
@description = args[:description] if args.key?(:description)
@@ -2088,9 +2107,11 @@ class Events
20882107
# - "writer" - The user has read and write access to the calendar. Private
20892108
# events will appear to users with writer access, and event details will be
20902109
# visible.
2091-
# - "owner" - The user has ownership of the calendar. This role has all of the
2092-
# permissions of the writer role with the additional ability to see and
2093-
# manipulate ACLs.
2110+
# - "owner" - The user has manager access to the calendar. This role has all of
2111+
# the permissions of the writer role with the additional ability to see and
2112+
# modify access levels of other users.
2113+
# Important: the owner role is different from the calendar's data owner. A
2114+
# calendar has a single data owner, but can have multiple users with owner role.
20942115
# Corresponds to the JSON property `accessRole`
20952116
# @return [String]
20962117
attr_accessor :access_role

generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CalendarV3
1818
# Version of the google-apis-calendar_v3 gem
19-
GEM_VERSION = "0.48.0"
19+
GEM_VERSION = "0.49.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250404"
25+
REVISION = "20251028"
2626
end
2727
end
2828
end

generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ class Calendar
341341
class Representation < Google::Apis::Core::JsonRepresentation
342342
property :conference_properties, as: 'conferenceProperties', class: Google::Apis::CalendarV3::ConferenceProperties, decorator: Google::Apis::CalendarV3::ConferenceProperties::Representation
343343

344+
property :data_owner, as: 'dataOwner'
344345
property :description, as: 'description'
345346
property :etag, as: 'etag'
346347
property :id, as: 'id'
@@ -371,6 +372,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
371372
property :color_id, as: 'colorId'
372373
property :conference_properties, as: 'conferenceProperties', class: Google::Apis::CalendarV3::ConferenceProperties, decorator: Google::Apis::CalendarV3::ConferenceProperties::Representation
373374

375+
property :data_owner, as: 'dataOwner'
374376
collection :default_reminders, as: 'defaultReminders', class: Google::Apis::CalendarV3::EventReminder, decorator: Google::Apis::CalendarV3::EventReminder::Representation
375377

376378
property :deleted, as: 'deleted'

generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/service.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,14 @@ def get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, option
813813
end
814814

815815
# Creates a secondary calendar.
816+
# The authenticated user for the request is made the data owner of the new
817+
# calendar.
818+
# Note: We recommend to authenticate as the intended data owner of the calendar.
819+
# You can use domain-wide delegation of authority to allow applications to act
820+
# on behalf of a specific user. Don't use a service account for authentication.
821+
# If you use a service account for authentication, the service account is the
822+
# data owner, which can lead to unexpected behavior. For example, if a service
823+
# account is the data owner, data ownership cannot be transferred.
816824
# @param [Google::Apis::CalendarV3::Calendar] calendar_object
817825
# @param [String] fields
818826
# Selector specifying which fields to include in a partial response.

0 commit comments

Comments
 (0)