Skip to content

Commit

Permalink
feat: Automated regeneration of calendar v3 client (#20591)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-17 09:56:24 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 18, 2024
1 parent 38ffda0 commit 2d4087d
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 2 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-calendar_v3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
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.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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d4087d

Please sign in to comment.