From 2d4087d1597e1a16ca7882d521f48e8913c22c92 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:36:22 -0800 Subject: [PATCH] feat: Automated regeneration of calendar v3 client (#20591) Auto-created at 2024-11-17 09:56:24 +0000 using the toys pull request generator. --- api_names_out.yaml | 5 ++ .../google-apis-calendar_v3/CHANGELOG.md | 4 ++ .../lib/google/apis/calendar_v3/classes.rb | 49 +++++++++++++++++++ .../google/apis/calendar_v3/gem_version.rb | 4 +- .../apis/calendar_v3/representations.rb | 17 +++++++ 5 files changed, 77 insertions(+), 2 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 49fc8430ee7..3cf2d44bd6d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -51545,6 +51545,7 @@ "/calendar:v3/Event/attendees": attendees "/calendar:v3/Event/attendees/attendee": attendee "/calendar:v3/Event/attendeesOmitted": attendees_omitted +"/calendar:v3/Event/birthdayProperties": birthday_properties "/calendar:v3/Event/colorId": color_id "/calendar:v3/Event/conferenceData": conference_data "/calendar:v3/Event/created": created @@ -51627,6 +51628,10 @@ "/calendar:v3/EventAttendee/resource": resource "/calendar:v3/EventAttendee/responseStatus": response_status "/calendar:v3/EventAttendee/self": self +"/calendar:v3/EventBirthdayProperties": event_birthday_properties +"/calendar:v3/EventBirthdayProperties/contact": contact +"/calendar:v3/EventBirthdayProperties/customTypeName": custom_type_name +"/calendar:v3/EventBirthdayProperties/type": type "/calendar:v3/EventDateTime": event_date_time "/calendar:v3/EventDateTime/date": date "/calendar:v3/EventDateTime/dateTime": date_time diff --git a/generated/google-apis-calendar_v3/CHANGELOG.md b/generated/google-apis-calendar_v3/CHANGELOG.md index 5471727faf5..8a64d9a7492 100644 --- a/generated/google-apis-calendar_v3/CHANGELOG.md +++ b/generated/google-apis-calendar_v3/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-calendar_v3 +### v0.45.0 (2024-11-17) + +* Regenerated from discovery document revision 20241101 + ### v0.44.0 (2024-10-06) * Regenerated from discovery document revision 20240927 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 921b26ef3e1..25300b29746 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 @@ -1062,6 +1062,11 @@ class Event attr_accessor :attendees_omitted alias_method :attendees_omitted?, :attendees_omitted + # Birthday or special event data. Used if eventType is "birthday". Immutable. + # Corresponds to the JSON property `birthdayProperties` + # @return [Google::Apis::CalendarV3::EventBirthdayProperties] + attr_accessor :birthday_properties + # The color of the event. This is an ID referring to an entry in the event # section of the colors definition (see the colors endpoint). Optional. # Corresponds to the JSON property `colorId` @@ -1365,6 +1370,7 @@ def update!(**args) @attachments = args[:attachments] if args.key?(:attachments) @attendees = args[:attendees] if args.key?(:attendees) @attendees_omitted = args[:attendees_omitted] if args.key?(:attendees_omitted) + @birthday_properties = args[:birthday_properties] if args.key?(:birthday_properties) @color_id = args[:color_id] if args.key?(:color_id) @conference_data = args[:conference_data] if args.key?(:conference_data) @created = args[:created] if args.key?(:created) @@ -1781,6 +1787,49 @@ def update!(**args) end end + # + class EventBirthdayProperties + include Google::Apis::Core::Hashable + + # Resource name of the contact this birthday event is linked to. This can be + # used to fetch contact details from People API. Format: "people/c12345". Read- + # only. + # Corresponds to the JSON property `contact` + # @return [String] + attr_accessor :contact + + # Custom type label specified for this event. This is populated if + # birthdayProperties.type is set to "custom". Read-only. + # Corresponds to the JSON property `customTypeName` + # @return [String] + attr_accessor :custom_type_name + + # Type of birthday or special event. Possible values are: + # - "anniversary" - An anniversary other than birthday. Always has a contact. + # - "birthday" - A birthday event. This is the default value. + # - "custom" - A special date whose label is further specified in the + # customTypeName field. Always has a contact. + # - "other" - A special date which does not fall into the other categories, and + # does not have a custom label. Always has a contact. + # - "self" - Calendar owner's own birthday. Cannot have a contact. The Calendar + # API only supports creating events with the type "birthday". The type cannot be + # changed after the event is created. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact = args[:contact] if args.key?(:contact) + @custom_type_name = args[:custom_type_name] if args.key?(:custom_type_name) + @type = args[:type] if args.key?(:type) + end + end + # class EventDateTime include Google::Apis::Core::Hashable 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 d3ef6b9c511..e2a5f3dedb7 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.44.0" + GEM_VERSION = "0.45.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20240927" + REVISION = "20241101" 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 c4a2b04f116..2551255654d 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 @@ -202,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class EventBirthdayProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EventDateTime class Representation < Google::Apis::Core::JsonRepresentation; end @@ -545,6 +551,8 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :attendees, as: 'attendees', class: Google::Apis::CalendarV3::EventAttendee, decorator: Google::Apis::CalendarV3::EventAttendee::Representation property :attendees_omitted, as: 'attendeesOmitted' + property :birthday_properties, as: 'birthdayProperties', class: Google::Apis::CalendarV3::EventBirthdayProperties, decorator: Google::Apis::CalendarV3::EventBirthdayProperties::Representation + property :color_id, as: 'colorId' property :conference_data, as: 'conferenceData', class: Google::Apis::CalendarV3::ConferenceData, decorator: Google::Apis::CalendarV3::ConferenceData::Representation @@ -687,6 +695,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class EventBirthdayProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contact, as: 'contact' + property :custom_type_name, as: 'customTypeName' + property :type, as: 'type' + end + end + class EventDateTime # @private class Representation < Google::Apis::Core::JsonRepresentation