Skip to content

Commit

Permalink
feat: Automated regeneration of Calendar client (#10965)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 02:42:27 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 37d27f8 commit 395b1d8
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 12 deletions.
2 changes: 1 addition & 1 deletion clients/calendar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_calendar, "~> 0.21"}]
[{:google_api_calendar, "~> 0.22"}]
end
```

Expand Down
44 changes: 37 additions & 7 deletions clients/calendar/lib/google_api/calendar/v3/api/events.ex
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,28 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
* `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
* `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead.
* `:alwaysIncludeEmail` (*type:* `boolean()`) - Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).
* `:alwaysIncludeEmail` (*type:* `boolean()`) - Deprecated and ignored.
* `:eventTypes` (*type:* `list(String.t)`) - Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
* `:iCalUID` (*type:* `String.t`) - Specifies an event ID in the iCalendar format to be provided in the response. Optional. Use this if you want to search for an event by its iCalendar ID.
* `:maxAttendees` (*type:* `integer()`) - The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
* `:maxResults` (*type:* `integer()`) - Maximum number of events returned on one result page. The number of events in the resulting page may be less than this value, or none at all, even if there are more events matching the query. Incomplete pages can be detected by a non-empty nextPageToken field in the response. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.
* `:orderBy` (*type:* `String.t`) - The order of the events returned in the result. Optional. The default is an unspecified, stable order.
* `:pageToken` (*type:* `String.t`) - Token specifying which result page to return. Optional.
* `:privateExtendedProperty` (*type:* `list(String.t)`) - Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints.
* `:q` (*type:* `String.t`) - Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional.
* `:q` (*type:* `String.t`) - Free text search terms to find events that match these terms in the following fields:
- summary
- description
- location
- attendee's displayName
- attendee's email
- organizer's displayName
- organizer's email
- workingLocationProperties.officeLocation.buildingId
- workingLocationProperties.officeLocation.deskId
- workingLocationProperties.officeLocation.label
- workingLocationProperties.customLocation.label
These search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
* `:sharedExtendedProperty` (*type:* `list(String.t)`) - Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.
* `:showDeleted` (*type:* `boolean()`) - Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
* `:showHiddenInvitations` (*type:* `boolean()`) - Whether to include hidden invitations in the result. Optional. The default is False.
Expand All @@ -388,7 +402,7 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
- sharedExtendedProperty
- timeMin
- timeMax
- updatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
- updatedMin All other query parameters should be the same as for the initial synchronization to avoid undefined behavior. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.
* `:timeMax` (*type:* `DateTime.t`) - Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMin is set, timeMax must be greater than timeMin.
Expand Down Expand Up @@ -417,6 +431,7 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
:quotaUser => :query,
:userIp => :query,
:alwaysIncludeEmail => :query,
:eventTypes => :query,
:iCalUID => :query,
:maxAttendees => :query,
:maxResults => :query,
Expand Down Expand Up @@ -450,7 +465,7 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
end

@doc """
Moves an event to another calendar, i.e. changes an event's organizer.
Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime and workingLocation events cannot be moved.
## Parameters
Expand Down Expand Up @@ -746,14 +761,28 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
* `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
* `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead.
* `:alwaysIncludeEmail` (*type:* `boolean()`) - Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).
* `:alwaysIncludeEmail` (*type:* `boolean()`) - Deprecated and ignored.
* `:eventTypes` (*type:* `list(String.t)`) - Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
* `:iCalUID` (*type:* `String.t`) - Specifies an event ID in the iCalendar format to be provided in the response. Optional. Use this if you want to search for an event by its iCalendar ID.
* `:maxAttendees` (*type:* `integer()`) - The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
* `:maxResults` (*type:* `integer()`) - Maximum number of events returned on one result page. The number of events in the resulting page may be less than this value, or none at all, even if there are more events matching the query. Incomplete pages can be detected by a non-empty nextPageToken field in the response. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.
* `:orderBy` (*type:* `String.t`) - The order of the events returned in the result. Optional. The default is an unspecified, stable order.
* `:pageToken` (*type:* `String.t`) - Token specifying which result page to return. Optional.
* `:privateExtendedProperty` (*type:* `list(String.t)`) - Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints.
* `:q` (*type:* `String.t`) - Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional.
* `:q` (*type:* `String.t`) - Free text search terms to find events that match these terms in the following fields:
- summary
- description
- location
- attendee's displayName
- attendee's email
- organizer's displayName
- organizer's email
- workingLocationProperties.officeLocation.buildingId
- workingLocationProperties.officeLocation.deskId
- workingLocationProperties.officeLocation.label
- workingLocationProperties.customLocation.label
These search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
* `:sharedExtendedProperty` (*type:* `list(String.t)`) - Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.
* `:showDeleted` (*type:* `boolean()`) - Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
* `:showHiddenInvitations` (*type:* `boolean()`) - Whether to include hidden invitations in the result. Optional. The default is False.
Expand All @@ -769,7 +798,7 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
- sharedExtendedProperty
- timeMin
- timeMax
- updatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
- updatedMin All other query parameters should be the same as for the initial synchronization to avoid undefined behavior. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.
* `:timeMax` (*type:* `DateTime.t`) - Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMin is set, timeMax must be greater than timeMin.
Expand Down Expand Up @@ -799,6 +828,7 @@ defmodule GoogleApi.Calendar.V3.Api.Events do
:quotaUser => :query,
:userIp => :query,
:alwaysIncludeEmail => :query,
:eventTypes => :query,
:iCalUID => :query,
:maxAttendees => :query,
:maxResults => :query,
Expand Down
2 changes: 1 addition & 1 deletion clients/calendar/lib/google_api/calendar/v3/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Calendar.V3 do
API client metadata for GoogleApi.Calendar.V3.
"""

@discovery_revision "20220722"
@discovery_revision "20240223"

def discovery_revision(), do: @discovery_revision
end
Loading

0 comments on commit 395b1d8

Please sign in to comment.