diff --git a/clients/chat/README.md b/clients/chat/README.md index 068c0299a5..a305485be6 100644 --- a/clients/chat/README.md +++ b/clients/chat/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_chat, "~> 0.33"}] + [{:google_api_chat, "~> 0.34"}] end ``` diff --git a/clients/chat/lib/google_api/chat/v1/api/spaces.ex b/clients/chat/lib/google_api/chat/v1/api/spaces.ex index 74c34909b8..6a4813acd5 100644 --- a/clients/chat/lib/google_api/chat/v1/api/spaces.ex +++ b/clients/chat/lib/google_api/chat/v1/api/spaces.ex @@ -1047,7 +1047,7 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:allowMissing` (*type:* `boolean()`) - Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails. - * `:updateMask` (*type:* `String.t`) - Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - Developer Preview: `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) + * `:updateMask` (*type:* `String.t`) - Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) * `:body` (*type:* `GoogleApi.Chat.V1.Model.Message.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -1113,7 +1113,7 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:allowMissing` (*type:* `boolean()`) - Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails. - * `:updateMask` (*type:* `String.t`) - Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - Developer Preview: `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) + * `:updateMask` (*type:* `String.t`) - Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) * `:body` (*type:* `GoogleApi.Chat.V1.Model.Message.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -1416,4 +1416,130 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do |> Connection.execute(request) |> Response.decode(opts ++ [struct: %GoogleApi.Chat.V1.Model.ListReactionsResponse{}]) end + + @doc """ + Returns a SpaceEvent. You can request events from up to 28 days before the time of the request. The server will return the most recent version of the resource. For example, if a `google.workspace.chat.message.v1.created` event is requested and the message has since been deleted, the returned event will contain the deleted message resource in the payload. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). + + ## Parameters + + * `connection` (*type:* `GoogleApi.Chat.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the event. Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Chat.V1.Model.SpaceEvent{}}` on success + * `{:error, info}` on failure + """ + @spec chat_spaces_space_events_get(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Chat.V1.Model.SpaceEvent.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def chat_spaces_space_events_get(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Chat.V1.Model.SpaceEvent{}]) + end + + @doc """ + Lists SpaceEvents in a space that the caller is a member of. You can request events from up to 28 days before the time of the request. The server will return the most recent version of the resources. For example, if a `google.workspace.chat.message.v1.created` event is requested and the message has since been deleted, the returned event will contain the deleted message resource in the payload. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). + + ## Parameters + + * `connection` (*type:* `GoogleApi.Chat.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the space from which to list events. Format: `spaces/{space}`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Required. A query filter. This method supports filtering by: `event_types`, `start_time`, and `end_time`. `event_types`: You must specify at least one event type in your query. `event_types` supports the has `:` operator. To filter by multiple event types, use the `OR` operator. To see the list of currently supported event types, see google.chat.v1.SpaceEvent.event_type `start_time`: Exclusive timestamp from which to start listing space events. You can list events that occurred up to 28 days ago. If unspecified, lists space events from the 28 days ago up to end time. `end_time`: Inclusive timestamp up to which space events are listed. Default value is the present. `start_time` and `end_time` accept a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and support the equals `=` comparison operator. To filter by both `start_time` and `end_time`, use the `AND` operator. For example, the following queries are valid: ``` start_time="2023-08-23T19:20:33+00:00" AND end_time="2023-08-23T19:21:54+00:00" ``` ``` start_time="2023-08-23T19:20:33+00:00" AND (event_types:"google.workspace.chat.space.v1.updated" OR event_types:"google.workspace.chat.message.v1.created") ``` The following queries are invalid: ``` start_time="2023-08-23T19:20:33+00:00" OR end_time="2023-08-23T19:21:54+00:00" ``` ``` event_types:"google.workspace.chat.space.v1.updated" AND event_types:"google.workspace.chat.message.v1.created" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. + * `:pageSize` (*type:* `integer()`) - Optional. The maximum number of space events returned. The service may return fewer than this value. Negative values return an `INVALID_ARGUMENT` error. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Chat.V1.Model.ListSpaceEventsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec chat_spaces_space_events_list(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Chat.V1.Model.ListSpaceEventsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def chat_spaces_space_events_list(connection, parent, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/spaceEvents", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Chat.V1.Model.ListSpaceEventsResponse{}]) + end end diff --git a/clients/chat/lib/google_api/chat/v1/metadata.ex b/clients/chat/lib/google_api/chat/v1/metadata.ex index 1fa75aa1fd..4a606183d6 100644 --- a/clients/chat/lib/google_api/chat/v1/metadata.ex +++ b/clients/chat/lib/google_api/chat/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Chat.V1 do API client metadata for GoogleApi.Chat.V1. """ - @discovery_revision "20240315" + @discovery_revision "20240324" def discovery_revision(), do: @discovery_revision end diff --git a/clients/chat/lib/google_api/chat/v1/model/accessory_widget.ex b/clients/chat/lib/google_api/chat/v1/model/accessory_widget.ex new file mode 100644 index 0000000000..ec8ec7e553 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/accessory_widget.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.AccessoryWidget do + @moduledoc """ + One or more interactive widgets that appear at the bottom of a message. For details, see [Add interactive widgets at the bottom of a message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). + + ## Attributes + + * `buttonList` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1ButtonList.t`, *default:* `nil`) - A list of buttons. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :buttonList => GoogleApi.Chat.V1.Model.GoogleAppsCardV1ButtonList.t() | nil + } + + field(:buttonList, as: GoogleApi.Chat.V1.Model.GoogleAppsCardV1ButtonList) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.AccessoryWidget do + def decode(value, options) do + GoogleApi.Chat.V1.Model.AccessoryWidget.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.AccessoryWidget do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_icon.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_icon.ex index ba7ee8b5c8..1cbc1de65f 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_icon.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_icon.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1Icon do * `iconUrl` (*type:* `String.t`, *default:* `nil`) - Display a custom icon hosted at an HTTPS URL. For example: ``` "iconUrl": "https://developers.google.com/chat/images/quickstart-app-avatar.png" ``` Supported file types include `.png` and `.jpg`. * `imageType` (*type:* `String.t`, *default:* `nil`) - The crop style applied to the image. In some cases, applying a `CIRCLE` crop causes the image to be drawn larger than a built-in icon. * `knownIcon` (*type:* `String.t`, *default:* `nil`) - Display one of the built-in icons provided by Google Workspace. For example, to display an airplane icon, specify `AIRPLANE`. For a bus, specify `BUS`. For a full list of supported icons, see [built-in icons](https://developers.google.com/chat/format-messages#builtinicons). - * `materialIcon` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1MaterialIcon.t`, *default:* `nil`) - Display one of the [Google Material Icons](https://fonts.google.com/icons). For example, to display a [checkbox icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), use "material_icon": { "name": "check_box" } Available for Chat apps and in [Developer Preview](https://developers.google.com/workspace/preview) for Google Workspace Add-ons. + * `materialIcon` (*type:* `GoogleApi.Chat.V1.Model.GoogleAppsCardV1MaterialIcon.t`, *default:* `nil`) - Display one of the [Google Material Icons](https://fonts.google.com/icons). For example, to display a [checkbox icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), use ``` "material_icon": { "name": "check_box" } ``` [Google Chat apps](https://developers.google.com/workspace/chat): """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_material_icon.ex b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_material_icon.ex index 01291fe22f..078e7dac86 100644 --- a/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_material_icon.ex +++ b/clients/chat/lib/google_api/chat/v1/model/google_apps_card_v1_material_icon.ex @@ -17,14 +17,14 @@ defmodule GoogleApi.Chat.V1.Model.GoogleAppsCardV1MaterialIcon do @moduledoc """ - A [Google Material Icon](https://fonts.google.com/icons), which includes over 2500+ options. For example, to display a [checkbox icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write { "name": "check_box", "fill": true, "weight": 300, "grade": -25 } Available for Chat apps and in [Developer Preview](https://developers.google.com/workspace/preview) for Google Workspace Add-ons. + A [Google Material Icon](https://fonts.google.com/icons), which includes over 2500+ options. For example, to display a [checkbox icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write the following: ``` { "name": "check_box", "fill": true, "weight": 300, "grade": -25 } ``` [Google Chat apps](https://developers.google.com/workspace/chat): ## Attributes - * `fill` (*type:* `boolean()`, *default:* `nil`) - Whether it renders a filled icon. Default value is false. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details. - * `grade` (*type:* `integer()`, *default:* `nil`) - Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, a broken image icon is displayed. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details. - * `name` (*type:* `String.t`, *default:* `nil`) - The icon name defined in the [Google Material Icon Icon](https://fonts.google.com/icons) in snake_case. e.g. "check_box". Any invalid names are abandoned and replaced with empty string and results in the icon failing to render. - * `weight` (*type:* `integer()`, *default:* `nil`) - The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, a broken image icon is displayed. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details. + * `fill` (*type:* `boolean()`, *default:* `nil`) - Whether the icon renders as filled. Default value is false. To preview different icon settings, go to [Google Font Icons](https://fonts.google.com/icons) and adjust the settings under **Customize**. + * `grade` (*type:* `integer()`, *default:* `nil`) - Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, a broken image icon is displayed. To preview different icon settings, go to [Google Font Icons](https://fonts.google.com/icons) and adjust the settings under **Customize**. + * `name` (*type:* `String.t`, *default:* `nil`) - The icon name defined in the [Google Material Icon](https://fonts.google.com/icons), for example, `check_box`. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render. + * `weight` (*type:* `integer()`, *default:* `nil`) - The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, a broken image icon is displayed. To preview different icon settings, go to [Google Font Icons](https://fonts.google.com/icons) and adjust the settings under **Customize**. """ use GoogleApi.Gax.ModelBase diff --git a/clients/chat/lib/google_api/chat/v1/model/list_space_events_response.ex b/clients/chat/lib/google_api/chat/v1/model/list_space_events_response.ex new file mode 100644 index 0000000000..b53afefa65 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/list_space_events_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.ListSpaceEventsResponse do + @moduledoc """ + Response message for listing space events. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Continuation token used to fetch more events. If this field is omitted, there are no subsequent pages. + * `spaceEvents` (*type:* `list(GoogleApi.Chat.V1.Model.SpaceEvent.t)`, *default:* `nil`) - Results are returned in chronological order (oldest event first). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :spaceEvents => list(GoogleApi.Chat.V1.Model.SpaceEvent.t()) | nil + } + + field(:nextPageToken) + field(:spaceEvents, as: GoogleApi.Chat.V1.Model.SpaceEvent, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.ListSpaceEventsResponse do + def decode(value, options) do + GoogleApi.Chat.V1.Model.ListSpaceEventsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.ListSpaceEventsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex new file mode 100644 index 0000000000..7e1d2e5941 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/membership_batch_created_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData do + @moduledoc """ + Payload for batch new membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchCreated`. + + ## Attributes + + * `memberships` (*type:* `list(GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t)`, *default:* `nil`) - A list of created memberships. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :memberships => list(GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t()) | nil + } + + field(:memberships, as: GoogleApi.Chat.V1.Model.MembershipCreatedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex new file mode 100644 index 0000000000..602dac5b88 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/membership_batch_deleted_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData do + @moduledoc """ + Payload for batch deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchDeleted`. + + ## Attributes + + * `memberships` (*type:* `list(GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t)`, *default:* `nil`) - A list of deleted memberships. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :memberships => list(GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t()) | nil + } + + field(:memberships, as: GoogleApi.Chat.V1.Model.MembershipDeletedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex new file mode 100644 index 0000000000..540a723364 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/membership_batch_updated_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData do + @moduledoc """ + Payload for batch updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchUpdated`. + + ## Attributes + + * `memberships` (*type:* `list(GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t)`, *default:* `nil`) - A list of updated memberships. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :memberships => list(GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t()) | nil + } + + field(:memberships, as: GoogleApi.Chat.V1.Model.MembershipUpdatedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex new file mode 100644 index 0000000000..a89bd2e882 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/membership_created_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MembershipCreatedEventData do + @moduledoc """ + Payload for new membership events where the `EventType` field is `google.workspace.chat.membership.v1.created`. + + ## Attributes + + * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The most recent version of membership. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :membership => GoogleApi.Chat.V1.Model.Membership.t() | nil + } + + field(:membership, as: GoogleApi.Chat.V1.Model.Membership) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MembershipCreatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MembershipCreatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MembershipCreatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex new file mode 100644 index 0000000000..c38c3f1770 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/membership_deleted_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MembershipDeletedEventData do + @moduledoc """ + Payload for deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.deleted`. + + ## Attributes + + * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The deleted membership. Only `name` and `state` are populated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :membership => GoogleApi.Chat.V1.Model.Membership.t() | nil + } + + field(:membership, as: GoogleApi.Chat.V1.Model.Membership) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MembershipDeletedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MembershipDeletedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MembershipDeletedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex new file mode 100644 index 0000000000..14ad6b2e30 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/membership_updated_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MembershipUpdatedEventData do + @moduledoc """ + Payload for updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.updated`. + + ## Attributes + + * `membership` (*type:* `GoogleApi.Chat.V1.Model.Membership.t`, *default:* `nil`) - The most recent version of membership. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :membership => GoogleApi.Chat.V1.Model.Membership.t() | nil + } + + field(:membership, as: GoogleApi.Chat.V1.Model.Membership) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MembershipUpdatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MembershipUpdatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/message.ex b/clients/chat/lib/google_api/chat/v1/model/message.ex index df8b4b49a6..a49de2ac62 100644 --- a/clients/chat/lib/google_api/chat/v1/model/message.ex +++ b/clients/chat/lib/google_api/chat/v1/model/message.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Chat.V1.Model.Message do ## Attributes + * `accessoryWidgets` (*type:* `list(GoogleApi.Chat.V1.Model.AccessoryWidget.t)`, *default:* `nil`) - One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages that contain dialogs. For details, see [Add interactive widgets at the bottom of a message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). Creating a message with accessory widgets requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). * `actionResponse` (*type:* `GoogleApi.Chat.V1.Model.ActionResponse.t`, *default:* `nil`) - Input only. Parameters that a Chat app can use to configure how its response is posted. * `annotations` (*type:* `list(GoogleApi.Chat.V1.Model.Annotation.t)`, *default:* `nil`) - Output only. Annotations associated with the `text` in this message. * `argumentText` (*type:* `String.t`, *default:* `nil`) - Output only. Plain-text body of the message with all Chat app mentions stripped out. @@ -51,6 +52,7 @@ defmodule GoogleApi.Chat.V1.Model.Message do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :accessoryWidgets => list(GoogleApi.Chat.V1.Model.AccessoryWidget.t()) | nil, :actionResponse => GoogleApi.Chat.V1.Model.ActionResponse.t() | nil, :annotations => list(GoogleApi.Chat.V1.Model.Annotation.t()) | nil, :argumentText => String.t() | nil, @@ -78,6 +80,7 @@ defmodule GoogleApi.Chat.V1.Model.Message do :threadReply => boolean() | nil } + field(:accessoryWidgets, as: GoogleApi.Chat.V1.Model.AccessoryWidget, type: :list) field(:actionResponse, as: GoogleApi.Chat.V1.Model.ActionResponse) field(:annotations, as: GoogleApi.Chat.V1.Model.Annotation, type: :list) field(:argumentText) diff --git a/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex new file mode 100644 index 0000000000..ac71e9947d --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/message_batch_created_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData do + @moduledoc """ + Payload for batch new message events where the `EventType` field is `google.workspace.chat.message.v1.batchCreated`. + + ## Attributes + + * `messages` (*type:* `list(GoogleApi.Chat.V1.Model.MessageCreatedEventData.t)`, *default:* `nil`) - A list of created messages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messages => list(GoogleApi.Chat.V1.Model.MessageCreatedEventData.t()) | nil + } + + field(:messages, as: GoogleApi.Chat.V1.Model.MessageCreatedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex new file mode 100644 index 0000000000..eb21cd103a --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/message_batch_deleted_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData do + @moduledoc """ + Payload for batch deleted message events where the `EventType` field is `google.workspace.chat.message.v1.batchDeleted`. + + ## Attributes + + * `messages` (*type:* `list(GoogleApi.Chat.V1.Model.MessageDeletedEventData.t)`, *default:* `nil`) - A list of deleted messages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messages => list(GoogleApi.Chat.V1.Model.MessageDeletedEventData.t()) | nil + } + + field(:messages, as: GoogleApi.Chat.V1.Model.MessageDeletedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex new file mode 100644 index 0000000000..74c1748b62 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/message_batch_updated_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData do + @moduledoc """ + Payload for batch updated message events where the `EventType` field is `google.workspace.chat.message.v1.batchUpdated`. + + ## Attributes + + * `messages` (*type:* `list(GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t)`, *default:* `nil`) - A list of updated messages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :messages => list(GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t()) | nil + } + + field(:messages, as: GoogleApi.Chat.V1.Model.MessageUpdatedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex new file mode 100644 index 0000000000..3e53107bc6 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/message_created_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MessageCreatedEventData do + @moduledoc """ + Payload for new message events where the `EventType` field is `google.workspace.chat.message.v1.created`. + + ## Attributes + + * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The most recent version of the message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => GoogleApi.Chat.V1.Model.Message.t() | nil + } + + field(:message, as: GoogleApi.Chat.V1.Model.Message) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MessageCreatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MessageCreatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MessageCreatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex new file mode 100644 index 0000000000..5b1d3d021d --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/message_deleted_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MessageDeletedEventData do + @moduledoc """ + Payload for deleted message events where the `EventType` field is `google.workspace.chat.message.v1.deleted`. + + ## Attributes + + * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The deleted message. Only `name`, `createTime`, `deleteTime`, and `deletionMetadata` are populated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => GoogleApi.Chat.V1.Model.Message.t() | nil + } + + field(:message, as: GoogleApi.Chat.V1.Model.Message) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MessageDeletedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MessageDeletedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MessageDeletedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex new file mode 100644 index 0000000000..6db7dab634 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/message_updated_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.MessageUpdatedEventData do + @moduledoc """ + Payload for updated message events where the `EventType` field is `google.workspace.chat.message.v1.updated`. + + ## Attributes + + * `message` (*type:* `GoogleApi.Chat.V1.Model.Message.t`, *default:* `nil`) - The most recent version of the message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => GoogleApi.Chat.V1.Model.Message.t() | nil + } + + field(:message, as: GoogleApi.Chat.V1.Model.Message) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.MessageUpdatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.MessageUpdatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.MessageUpdatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex new file mode 100644 index 0000000000..db81c42147 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_created_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData do + @moduledoc """ + Payload for batch new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchCreated`. + + ## Attributes + + * `reactions` (*type:* `list(GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t)`, *default:* `nil`) - A list of created reactions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :reactions => list(GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t()) | nil + } + + field(:reactions, as: GoogleApi.Chat.V1.Model.ReactionCreatedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex new file mode 100644 index 0000000000..a8e3ff5177 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_batch_deleted_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData do + @moduledoc """ + Payload for batch deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchDeleted`. + + ## Attributes + + * `reactions` (*type:* `list(GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t)`, *default:* `nil`) - A list of deleted reactions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :reactions => list(GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t()) | nil + } + + field(:reactions, as: GoogleApi.Chat.V1.Model.ReactionDeletedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex new file mode 100644 index 0000000000..4ca1b44457 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_created_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.ReactionCreatedEventData do + @moduledoc """ + Payload for new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.created`. + + ## Attributes + + * `reaction` (*type:* `GoogleApi.Chat.V1.Model.Reaction.t`, *default:* `nil`) - The created reaction. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :reaction => GoogleApi.Chat.V1.Model.Reaction.t() | nil + } + + field(:reaction, as: GoogleApi.Chat.V1.Model.Reaction) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.ReactionCreatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.ReactionCreatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.ReactionCreatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex new file mode 100644 index 0000000000..1f452a8364 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/reaction_deleted_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.ReactionDeletedEventData do + @moduledoc """ + Payload for deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.deleted`. + + ## Attributes + + * `reaction` (*type:* `GoogleApi.Chat.V1.Model.Reaction.t`, *default:* `nil`) - The deleted reaction. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :reaction => GoogleApi.Chat.V1.Model.Reaction.t() | nil + } + + field(:reaction, as: GoogleApi.Chat.V1.Model.Reaction) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.ReactionDeletedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.ReactionDeletedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.ReactionDeletedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/space.ex b/clients/chat/lib/google_api/chat/v1/model/space.ex index 59c980c19e..3075448a1d 100644 --- a/clients/chat/lib/google_api/chat/v1/model/space.ex +++ b/clients/chat/lib/google_api/chat/v1/model/space.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.Chat.V1.Model.Space do * `adminInstalled` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the Chat app was installed by a Google Workspace administrator. Administrators can install a Chat app for their domain, organizational unit, or a group of users. Administrators can only install Chat apps for direct messaging between users and the app. To support admin install, your app must feature direct messaging. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Immutable. For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time. Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. * `displayName` (*type:* `String.t`, *default:* `nil`) - The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). If you receive the error message `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. For direct messages, this field might be empty. Supports up to 128 characters. - * `externalUserAllowed` (*type:* `boolean()`, *default:* `nil`) - Immutable. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions: * The authenticated user uses a Google Account. By default, the space permits any Google Chat user. * The space is used to [import data to Google Chat] (https://developers.google.com/chat/api/guides/import-data-overview). Import mode spaces must only permit members from the same Google Workspace organization. For existing spaces, this field is output only. + * `externalUserAllowed` (*type:* `boolean()`, *default:* `nil`) - Immutable. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions: * The authenticated user uses a consumer account (unmanaged user account). By default, a space created by a consumer account permits any Google Chat user. * The space is used to [import data to Google Chat] (https://developers.google.com/chat/api/guides/import-data-overview). Import mode spaces must only permit members from the same Google Workspace organization. For existing spaces, this field is output only. * `importMode` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether this space is created in `Import Mode` as part of a data migration into Google Workspace. While spaces are being imported, they aren't visible to users until the import is complete. * `name` (*type:* `String.t`, *default:* `nil`) - Resource name of the space. Format: `spaces/{space}` * `singleUserBotDm` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether the space is a DM between a Chat app and a single human. diff --git a/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex new file mode 100644 index 0000000000..bfa44aecb5 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/space_batch_updated_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData do + @moduledoc """ + Payload for batch updated space events where the `EventType` field is `google.workspace.chat.space.v1.batchUpdated`. + + ## Attributes + + * `spaces` (*type:* `list(GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t)`, *default:* `nil`) - A list of updated spaces. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :spaces => list(GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t()) | nil + } + + field(:spaces, as: GoogleApi.Chat.V1.Model.SpaceUpdatedEventData, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/space_event.ex b/clients/chat/lib/google_api/chat/v1/model/space_event.ex new file mode 100644 index 0000000000..7a44b96eff --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/space_event.ex @@ -0,0 +1,128 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.SpaceEvent do + @moduledoc """ + An event that happens in a specific space. + + ## Attributes + + * `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - Time of the event. + * `eventType` (*type:* `String.t`, *default:* `nil`) - Type of the space event. The following event types are supported: * New membership: `google.workspace.chat.membership.v1.created` * Deleted membership: `google.workspace.chat.membership.v1.deleted` * Updated membership: `google.workspace.chat.membership.v1.updated` * New message: `google.workspace.chat.message.v1.created` * Deleted message: `google.workspace.chat.message.v1.deleted` * Updated message: `google.workspace.chat.message.v1.updated` * New reaction: `google.workspace.chat.reaction.v1.created` * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` * Updated space: `google.workspace.chat.space.v1.updated` Note that requesting or subscribing to the preceding event types automatically sets up the subscription or response to also return batched versions of the event type. For example, if you subscribe to `google.workspace.chat.membership.v1.created`, you also receive events for `google.workspace.chat.membership.v1.batchCreated`. For more details see https://developers.google.com/workspace/events/guides/events-chat#output_only_event_types. + * `membershipBatchCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData.t`, *default:* `nil`) - Payload for batch new membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchCreated`. + * `membershipBatchDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData.t`, *default:* `nil`) - Payload for batch deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchDeleted`. + * `membershipBatchUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData.t`, *default:* `nil`) - Payload for batch updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.batchUpdated`. + * `membershipCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t`, *default:* `nil`) - Payload for new membership events where the `EventType` field is `google.workspace.chat.membership.v1.created`. + * `membershipDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t`, *default:* `nil`) - Payload for deleted membership events where the `EventType` field is `google.workspace.chat.membership.v1.deleted`. + * `membershipUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t`, *default:* `nil`) - Payload for updated membership events where the `EventType` field is `google.workspace.chat.membership.v1.updated`. + * `messageBatchCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData.t`, *default:* `nil`) - Payload for batch new message events where the `EventType` field is `google.workspace.chat.message.v1.batchCreated`. + * `messageBatchDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData.t`, *default:* `nil`) - Payload for batch deleted message events where the `EventType` field is `google.workspace.chat.message.v1.batchDeleted`. + * `messageBatchUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData.t`, *default:* `nil`) - Payload for batch updated message events where the `EventType` field is `google.workspace.chat.message.v1.batchUpdated`. + * `messageCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageCreatedEventData.t`, *default:* `nil`) - Payload for new message events where the `EventType` field is `google.workspace.chat.message.v1.created`. + * `messageDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageDeletedEventData.t`, *default:* `nil`) - Payload for deleted message events where the `EventType` field is `google.workspace.chat.message.v1.deleted`. + * `messageUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t`, *default:* `nil`) - Payload for updated message events where the `EventType` field is `google.workspace.chat.message.v1.updated`. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}` + * `reactionBatchCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData.t`, *default:* `nil`) - Payload for batch new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchCreated`. + * `reactionBatchDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData.t`, *default:* `nil`) - Payload for batch deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.batchDeleted`. + * `reactionCreatedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t`, *default:* `nil`) - Payload for new reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.created`. + * `reactionDeletedEventData` (*type:* `GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t`, *default:* `nil`) - Payload for deleted reaction events where the `EventType` field is `google.workspace.chat.reaction.v1.deleted`. + * `spaceBatchUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData.t`, *default:* `nil`) - Payload for batch updated space events where the `EventType` field is `google.workspace.chat.space.v1.batchUpdated`. + * `spaceUpdatedEventData` (*type:* `GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t`, *default:* `nil`) - Payload for updated space events where the `EventType` field is `google.workspace.chat.space.v1.updated`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventTime => DateTime.t() | nil, + :eventType => String.t() | nil, + :membershipBatchCreatedEventData => + GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData.t() | nil, + :membershipBatchDeletedEventData => + GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData.t() | nil, + :membershipBatchUpdatedEventData => + GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData.t() | nil, + :membershipCreatedEventData => + GoogleApi.Chat.V1.Model.MembershipCreatedEventData.t() | nil, + :membershipDeletedEventData => + GoogleApi.Chat.V1.Model.MembershipDeletedEventData.t() | nil, + :membershipUpdatedEventData => + GoogleApi.Chat.V1.Model.MembershipUpdatedEventData.t() | nil, + :messageBatchCreatedEventData => + GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData.t() | nil, + :messageBatchDeletedEventData => + GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData.t() | nil, + :messageBatchUpdatedEventData => + GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData.t() | nil, + :messageCreatedEventData => GoogleApi.Chat.V1.Model.MessageCreatedEventData.t() | nil, + :messageDeletedEventData => GoogleApi.Chat.V1.Model.MessageDeletedEventData.t() | nil, + :messageUpdatedEventData => GoogleApi.Chat.V1.Model.MessageUpdatedEventData.t() | nil, + :name => String.t() | nil, + :reactionBatchCreatedEventData => + GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData.t() | nil, + :reactionBatchDeletedEventData => + GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData.t() | nil, + :reactionCreatedEventData => GoogleApi.Chat.V1.Model.ReactionCreatedEventData.t() | nil, + :reactionDeletedEventData => GoogleApi.Chat.V1.Model.ReactionDeletedEventData.t() | nil, + :spaceBatchUpdatedEventData => + GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData.t() | nil, + :spaceUpdatedEventData => GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.t() | nil + } + + field(:eventTime, as: DateTime) + field(:eventType) + + field(:membershipBatchCreatedEventData, + as: GoogleApi.Chat.V1.Model.MembershipBatchCreatedEventData + ) + + field(:membershipBatchDeletedEventData, + as: GoogleApi.Chat.V1.Model.MembershipBatchDeletedEventData + ) + + field(:membershipBatchUpdatedEventData, + as: GoogleApi.Chat.V1.Model.MembershipBatchUpdatedEventData + ) + + field(:membershipCreatedEventData, as: GoogleApi.Chat.V1.Model.MembershipCreatedEventData) + field(:membershipDeletedEventData, as: GoogleApi.Chat.V1.Model.MembershipDeletedEventData) + field(:membershipUpdatedEventData, as: GoogleApi.Chat.V1.Model.MembershipUpdatedEventData) + field(:messageBatchCreatedEventData, as: GoogleApi.Chat.V1.Model.MessageBatchCreatedEventData) + field(:messageBatchDeletedEventData, as: GoogleApi.Chat.V1.Model.MessageBatchDeletedEventData) + field(:messageBatchUpdatedEventData, as: GoogleApi.Chat.V1.Model.MessageBatchUpdatedEventData) + field(:messageCreatedEventData, as: GoogleApi.Chat.V1.Model.MessageCreatedEventData) + field(:messageDeletedEventData, as: GoogleApi.Chat.V1.Model.MessageDeletedEventData) + field(:messageUpdatedEventData, as: GoogleApi.Chat.V1.Model.MessageUpdatedEventData) + field(:name) + field(:reactionBatchCreatedEventData, as: GoogleApi.Chat.V1.Model.ReactionBatchCreatedEventData) + field(:reactionBatchDeletedEventData, as: GoogleApi.Chat.V1.Model.ReactionBatchDeletedEventData) + field(:reactionCreatedEventData, as: GoogleApi.Chat.V1.Model.ReactionCreatedEventData) + field(:reactionDeletedEventData, as: GoogleApi.Chat.V1.Model.ReactionDeletedEventData) + field(:spaceBatchUpdatedEventData, as: GoogleApi.Chat.V1.Model.SpaceBatchUpdatedEventData) + field(:spaceUpdatedEventData, as: GoogleApi.Chat.V1.Model.SpaceUpdatedEventData) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.SpaceEvent do + def decode(value, options) do + GoogleApi.Chat.V1.Model.SpaceEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.SpaceEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex b/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex new file mode 100644 index 0000000000..c1c0493d54 --- /dev/null +++ b/clients/chat/lib/google_api/chat/v1/model/space_updated_event_data.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Chat.V1.Model.SpaceUpdatedEventData do + @moduledoc """ + Payload for updated space events where the `EventType` field is `google.workspace.chat.space.v1.updated`. + + ## Attributes + + * `space` (*type:* `GoogleApi.Chat.V1.Model.Space.t`, *default:* `nil`) - The recent version of the space. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :space => GoogleApi.Chat.V1.Model.Space.t() | nil + } + + field(:space, as: GoogleApi.Chat.V1.Model.Space) +end + +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.SpaceUpdatedEventData do + def decode(value, options) do + GoogleApi.Chat.V1.Model.SpaceUpdatedEventData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.SpaceUpdatedEventData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chat/mix.exs b/clients/chat/mix.exs index f164bed996..05d093f2d9 100644 --- a/clients/chat/mix.exs +++ b/clients/chat/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Chat.Mixfile do use Mix.Project - @version "0.33.0" + @version "0.34.0" def project() do [