Skip to content

Commit 077f2b7

Browse files
feat: Automated regeneration of Calendar client (googleapis#12504)
Auto-created at 2024-11-10 13:11:47 +0000 using the toys pull request generator.
1 parent 9a49bd1 commit 077f2b7

File tree

5 files changed

+63
-3
lines changed

5 files changed

+63
-3
lines changed

clients/calendar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_calendar, "~> 0.24"}]
14+
[{:google_api_calendar, "~> 0.25"}]
1515
end
1616
```
1717

clients/calendar/lib/google_api/calendar/v3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Calendar.V3 do
2020
API client metadata for GoogleApi.Calendar.V3.
2121
"""
2222

23-
@discovery_revision "20240927"
23+
@discovery_revision "20241101"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/calendar/lib/google_api/calendar/v3/model/event.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ defmodule GoogleApi.Calendar.V3.Model.Event do
4545
* `guestsCanModify` (*type:* `boolean()`, *default:* `false`) - Whether attendees other than the organizer can modify the event. Optional. The default is False.
4646
* `location` (*type:* `String.t`, *default:* `nil`) - Geographic location of the event as free-form text. Optional.
4747
* `extendedProperties` (*type:* `GoogleApi.Calendar.V3.Model.EventExtendedProperties.t`, *default:* `nil`) - Extended properties of the event.
48+
* `birthdayProperties` (*type:* `GoogleApi.Calendar.V3.Model.EventBirthdayProperties.t`, *default:* `nil`) - Birthday or special event data. Used if eventType is "birthday". Immutable.
4849
* `source` (*type:* `GoogleApi.Calendar.V3.Model.EventSource.t`, *default:* `nil`) - Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
4950
* `attachments` (*type:* `list(GoogleApi.Calendar.V3.Model.EventAttachment.t)`, *default:* `nil`) - File attachments for the event.
5051
In order to modify attachments the supportsAttachments request parameter should be set to true.
@@ -119,6 +120,7 @@ defmodule GoogleApi.Calendar.V3.Model.Event do
119120
:guestsCanModify => boolean() | nil,
120121
:location => String.t() | nil,
121122
:extendedProperties => GoogleApi.Calendar.V3.Model.EventExtendedProperties.t() | nil,
123+
:birthdayProperties => GoogleApi.Calendar.V3.Model.EventBirthdayProperties.t() | nil,
122124
:source => GoogleApi.Calendar.V3.Model.EventSource.t() | nil,
123125
:attachments => list(GoogleApi.Calendar.V3.Model.EventAttachment.t()) | nil,
124126
:colorId => String.t() | nil,
@@ -165,6 +167,7 @@ defmodule GoogleApi.Calendar.V3.Model.Event do
165167
field(:guestsCanModify)
166168
field(:location)
167169
field(:extendedProperties, as: GoogleApi.Calendar.V3.Model.EventExtendedProperties)
170+
field(:birthdayProperties, as: GoogleApi.Calendar.V3.Model.EventBirthdayProperties)
168171
field(:source, as: GoogleApi.Calendar.V3.Model.EventSource)
169172
field(:attachments, as: GoogleApi.Calendar.V3.Model.EventAttachment, type: :list)
170173
field(:colorId)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Calendar.V3.Model.EventBirthdayProperties do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `contact` (*type:* `String.t`, *default:* `nil`) - 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.
25+
* `customTypeName` (*type:* `String.t`, *default:* `nil`) - Custom type label specified for this event. This is populated if birthdayProperties.type is set to "custom". Read-only.
26+
* `type` (*type:* `String.t`, *default:* `birthday`) - Type of birthday or special event. Possible values are:
27+
- "anniversary" - An anniversary other than birthday. Always has a contact.
28+
- "birthday" - A birthday event. This is the default value.
29+
- "custom" - A special date whose label is further specified in the customTypeName field. Always has a contact.
30+
- "other" - A special date which does not fall into the other categories, and does not have a custom label. Always has a contact.
31+
- "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.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:contact => String.t() | nil,
38+
:customTypeName => String.t() | nil,
39+
:type => String.t() | nil
40+
}
41+
42+
field(:contact)
43+
field(:customTypeName)
44+
field(:type)
45+
end
46+
47+
defimpl Poison.Decoder, for: GoogleApi.Calendar.V3.Model.EventBirthdayProperties do
48+
def decode(value, options) do
49+
GoogleApi.Calendar.V3.Model.EventBirthdayProperties.decode(value, options)
50+
end
51+
end
52+
53+
defimpl Poison.Encoder, for: GoogleApi.Calendar.V3.Model.EventBirthdayProperties do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end

clients/calendar/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Calendar.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.24.2"
21+
@version "0.25.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)