Skip to content

Commit 2d4087d

Browse files
feat: Automated regeneration of calendar v3 client (googleapis#20591)
Auto-created at 2024-11-17 09:56:24 +0000 using the toys pull request generator.
1 parent 38ffda0 commit 2d4087d

File tree

5 files changed

+77
-2
lines changed

5 files changed

+77
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51545,6 +51545,7 @@
5154551545
"/calendar:v3/Event/attendees": attendees
5154651546
"/calendar:v3/Event/attendees/attendee": attendee
5154751547
"/calendar:v3/Event/attendeesOmitted": attendees_omitted
51548+
"/calendar:v3/Event/birthdayProperties": birthday_properties
5154851549
"/calendar:v3/Event/colorId": color_id
5154951550
"/calendar:v3/Event/conferenceData": conference_data
5155051551
"/calendar:v3/Event/created": created
@@ -51627,6 +51628,10 @@
5162751628
"/calendar:v3/EventAttendee/resource": resource
5162851629
"/calendar:v3/EventAttendee/responseStatus": response_status
5162951630
"/calendar:v3/EventAttendee/self": self
51631+
"/calendar:v3/EventBirthdayProperties": event_birthday_properties
51632+
"/calendar:v3/EventBirthdayProperties/contact": contact
51633+
"/calendar:v3/EventBirthdayProperties/customTypeName": custom_type_name
51634+
"/calendar:v3/EventBirthdayProperties/type": type
5163051635
"/calendar:v3/EventDateTime": event_date_time
5163151636
"/calendar:v3/EventDateTime/date": date
5163251637
"/calendar:v3/EventDateTime/dateTime": date_time

generated/google-apis-calendar_v3/CHANGELOG.md

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

3+
### v0.45.0 (2024-11-17)
4+
5+
* Regenerated from discovery document revision 20241101
6+
37
### v0.44.0 (2024-10-06)
48

59
* Regenerated from discovery document revision 20240927

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,11 @@ class Event
10621062
attr_accessor :attendees_omitted
10631063
alias_method :attendees_omitted?, :attendees_omitted
10641064

1065+
# Birthday or special event data. Used if eventType is "birthday". Immutable.
1066+
# Corresponds to the JSON property `birthdayProperties`
1067+
# @return [Google::Apis::CalendarV3::EventBirthdayProperties]
1068+
attr_accessor :birthday_properties
1069+
10651070
# The color of the event. This is an ID referring to an entry in the event
10661071
# section of the colors definition (see the colors endpoint). Optional.
10671072
# Corresponds to the JSON property `colorId`
@@ -1365,6 +1370,7 @@ def update!(**args)
13651370
@attachments = args[:attachments] if args.key?(:attachments)
13661371
@attendees = args[:attendees] if args.key?(:attendees)
13671372
@attendees_omitted = args[:attendees_omitted] if args.key?(:attendees_omitted)
1373+
@birthday_properties = args[:birthday_properties] if args.key?(:birthday_properties)
13681374
@color_id = args[:color_id] if args.key?(:color_id)
13691375
@conference_data = args[:conference_data] if args.key?(:conference_data)
13701376
@created = args[:created] if args.key?(:created)
@@ -1781,6 +1787,49 @@ def update!(**args)
17811787
end
17821788
end
17831789

1790+
#
1791+
class EventBirthdayProperties
1792+
include Google::Apis::Core::Hashable
1793+
1794+
# Resource name of the contact this birthday event is linked to. This can be
1795+
# used to fetch contact details from People API. Format: "people/c12345". Read-
1796+
# only.
1797+
# Corresponds to the JSON property `contact`
1798+
# @return [String]
1799+
attr_accessor :contact
1800+
1801+
# Custom type label specified for this event. This is populated if
1802+
# birthdayProperties.type is set to "custom". Read-only.
1803+
# Corresponds to the JSON property `customTypeName`
1804+
# @return [String]
1805+
attr_accessor :custom_type_name
1806+
1807+
# Type of birthday or special event. Possible values are:
1808+
# - "anniversary" - An anniversary other than birthday. Always has a contact.
1809+
# - "birthday" - A birthday event. This is the default value.
1810+
# - "custom" - A special date whose label is further specified in the
1811+
# customTypeName field. Always has a contact.
1812+
# - "other" - A special date which does not fall into the other categories, and
1813+
# does not have a custom label. Always has a contact.
1814+
# - "self" - Calendar owner's own birthday. Cannot have a contact. The Calendar
1815+
# API only supports creating events with the type "birthday". The type cannot be
1816+
# changed after the event is created.
1817+
# Corresponds to the JSON property `type`
1818+
# @return [String]
1819+
attr_accessor :type
1820+
1821+
def initialize(**args)
1822+
update!(**args)
1823+
end
1824+
1825+
# Update properties of this object
1826+
def update!(**args)
1827+
@contact = args[:contact] if args.key?(:contact)
1828+
@custom_type_name = args[:custom_type_name] if args.key?(:custom_type_name)
1829+
@type = args[:type] if args.key?(:type)
1830+
end
1831+
end
1832+
17841833
#
17851834
class EventDateTime
17861835
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 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.44.0"
19+
GEM_VERSION = "0.45.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
202202
include Google::Apis::Core::JsonObjectSupport
203203
end
204204

205+
class EventBirthdayProperties
206+
class Representation < Google::Apis::Core::JsonRepresentation; end
207+
208+
include Google::Apis::Core::JsonObjectSupport
209+
end
210+
205211
class EventDateTime
206212
class Representation < Google::Apis::Core::JsonRepresentation; end
207213

@@ -545,6 +551,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
545551
collection :attendees, as: 'attendees', class: Google::Apis::CalendarV3::EventAttendee, decorator: Google::Apis::CalendarV3::EventAttendee::Representation
546552

547553
property :attendees_omitted, as: 'attendeesOmitted'
554+
property :birthday_properties, as: 'birthdayProperties', class: Google::Apis::CalendarV3::EventBirthdayProperties, decorator: Google::Apis::CalendarV3::EventBirthdayProperties::Representation
555+
548556
property :color_id, as: 'colorId'
549557
property :conference_data, as: 'conferenceData', class: Google::Apis::CalendarV3::ConferenceData, decorator: Google::Apis::CalendarV3::ConferenceData::Representation
550558

@@ -687,6 +695,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
687695
end
688696
end
689697

698+
class EventBirthdayProperties
699+
# @private
700+
class Representation < Google::Apis::Core::JsonRepresentation
701+
property :contact, as: 'contact'
702+
property :custom_type_name, as: 'customTypeName'
703+
property :type, as: 'type'
704+
end
705+
end
706+
690707
class EventDateTime
691708
# @private
692709
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)