diff --git a/api_names_out.yaml b/api_names_out.yaml index 9432dbc325b..52b282f5103 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -61796,6 +61796,7 @@ "/calendar:v3/AclRule/scope/value": value "/calendar:v3/Calendar": calendar "/calendar:v3/Calendar/conferenceProperties": conference_properties +"/calendar:v3/Calendar/dataOwner": data_owner "/calendar:v3/Calendar/description": description "/calendar:v3/Calendar/etag": etag "/calendar:v3/Calendar/id": id @@ -61815,6 +61816,7 @@ "/calendar:v3/CalendarListEntry/backgroundColor": background_color "/calendar:v3/CalendarListEntry/colorId": color_id "/calendar:v3/CalendarListEntry/conferenceProperties": conference_properties +"/calendar:v3/CalendarListEntry/dataOwner": data_owner "/calendar:v3/CalendarListEntry/defaultReminders": default_reminders "/calendar:v3/CalendarListEntry/defaultReminders/default_reminder": default_reminder "/calendar:v3/CalendarListEntry/deleted": deleted diff --git a/generated/google-apis-calendar_v3/CHANGELOG.md b/generated/google-apis-calendar_v3/CHANGELOG.md index 080d7acd3cc..3c2db20b352 100644 --- a/generated/google-apis-calendar_v3/CHANGELOG.md +++ b/generated/google-apis-calendar_v3/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-calendar_v3 +### v0.49.0 (2025-11-09) + +* Regenerated from discovery document revision 20251028 +* Regenerated using generator version 0.18.0 + ### v0.48.0 (2025-05-04) * Regenerated using generator version 0.17.0 diff --git a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/classes.rb b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/classes.rb index 19172770a99..69ddf5db208 100644 --- a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/classes.rb +++ b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/classes.rb @@ -95,8 +95,11 @@ class AclRule # - "writer" - Provides read and write access to the calendar. Private events # will appear to users with writer access, and event details will be visible. # Provides read access to the calendar's ACLs. - # - "owner" - Provides ownership of the calendar. This role has all of the - # permissions of the writer role with the additional ability to manipulate ACLs. + # - "owner" - Provides manager access to the calendar. This role has all of the + # permissions of the writer role with the additional ability to modify access + # levels of other users. + # Important: the owner role is different from the calendar's data owner. A + # calendar has a single data owner, but can have multiple users with owner role. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -161,6 +164,12 @@ class Calendar # @return [Google::Apis::CalendarV3::ConferenceProperties] attr_accessor :conference_properties + # The email of the owner of the calendar. Set only for secondary calendars. Read- + # only. + # Corresponds to the JSON property `dataOwner` + # @return [String] + attr_accessor :data_owner + # Description of the calendar. Optional. # Corresponds to the JSON property `description` # @return [String] @@ -205,6 +214,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @conference_properties = args[:conference_properties] if args.key?(:conference_properties) + @data_owner = args[:data_owner] if args.key?(:data_owner) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @@ -272,9 +282,11 @@ class CalendarListEntry # to users with reader access, but event details will be hidden. # - "writer" - Provides read and write access to the calendar. Private events # will appear to users with writer access, and event details will be visible. - # - "owner" - Provides ownership of the calendar. This role has all of the - # permissions of the writer role with the additional ability to see and - # manipulate ACLs. + # - "owner" - Provides manager access to the calendar. This role has all of the + # permissions of the writer role with the additional ability to see and modify + # access levels of other users. + # Important: the owner role is different from the calendar's data owner. A + # calendar has a single data owner, but can have multiple users with owner role. # Corresponds to the JSON property `accessRole` # @return [String] attr_accessor :access_role @@ -301,6 +313,12 @@ class CalendarListEntry # @return [Google::Apis::CalendarV3::ConferenceProperties] attr_accessor :conference_properties + # The email of the owner of the calendar. Set only for secondary calendars. Read- + # only. + # Corresponds to the JSON property `dataOwner` + # @return [String] + attr_accessor :data_owner + # The default reminders that the authenticated user has for this calendar. # Corresponds to the JSON property `defaultReminders` # @return [Array] @@ -397,6 +415,7 @@ def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) @color_id = args[:color_id] if args.key?(:color_id) @conference_properties = args[:conference_properties] if args.key?(:conference_properties) + @data_owner = args[:data_owner] if args.key?(:data_owner) @default_reminders = args[:default_reminders] if args.key?(:default_reminders) @deleted = args[:deleted] if args.key?(:deleted) @description = args[:description] if args.key?(:description) @@ -2088,9 +2107,11 @@ class Events # - "writer" - The user has read and write access to the calendar. Private # events will appear to users with writer access, and event details will be # visible. - # - "owner" - The user has ownership of the calendar. This role has all of the - # permissions of the writer role with the additional ability to see and - # manipulate ACLs. + # - "owner" - The user has manager access to the calendar. This role has all of + # the permissions of the writer role with the additional ability to see and + # modify access levels of other users. + # Important: the owner role is different from the calendar's data owner. A + # calendar has a single data owner, but can have multiple users with owner role. # Corresponds to the JSON property `accessRole` # @return [String] attr_accessor :access_role diff --git a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/gem_version.rb b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/gem_version.rb index 0939b6ce63b..c151cea43eb 100644 --- a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/gem_version.rb +++ b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module CalendarV3 # Version of the google-apis-calendar_v3 gem - GEM_VERSION = "0.48.0" + GEM_VERSION = "0.49.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.17.0" + GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250404" + REVISION = "20251028" end end end diff --git a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/representations.rb b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/representations.rb index 2551255654d..b97a9e64686 100644 --- a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/representations.rb +++ b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/representations.rb @@ -341,6 +341,7 @@ class Calendar class Representation < Google::Apis::Core::JsonRepresentation property :conference_properties, as: 'conferenceProperties', class: Google::Apis::CalendarV3::ConferenceProperties, decorator: Google::Apis::CalendarV3::ConferenceProperties::Representation + property :data_owner, as: 'dataOwner' property :description, as: 'description' property :etag, as: 'etag' property :id, as: 'id' @@ -371,6 +372,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :color_id, as: 'colorId' property :conference_properties, as: 'conferenceProperties', class: Google::Apis::CalendarV3::ConferenceProperties, decorator: Google::Apis::CalendarV3::ConferenceProperties::Representation + property :data_owner, as: 'dataOwner' collection :default_reminders, as: 'defaultReminders', class: Google::Apis::CalendarV3::EventReminder, decorator: Google::Apis::CalendarV3::EventReminder::Representation property :deleted, as: 'deleted' diff --git a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/service.rb b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/service.rb index 6694adcd9e8..8f17adbfa02 100644 --- a/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/service.rb +++ b/generated/google-apis-calendar_v3/lib/google/apis/calendar_v3/service.rb @@ -813,6 +813,14 @@ def get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, option end # Creates a secondary calendar. + # The authenticated user for the request is made the data owner of the new + # calendar. + # Note: We recommend to authenticate as the intended data owner of the calendar. + # You can use domain-wide delegation of authority to allow applications to act + # on behalf of a specific user. Don't use a service account for authentication. + # If you use a service account for authentication, the service account is the + # data owner, which can lead to unexpected behavior. For example, if a service + # account is the data owner, data ownership cannot be transferred. # @param [Google::Apis::CalendarV3::Calendar] calendar_object # @param [String] fields # Selector specifying which fields to include in a partial response.