Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-calendar_v3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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<Google::Apis::CalendarV3::EventReminder>]
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down