Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of FCMData client #11399

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/fcm_data/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_fcm_data, "~> 0.2"}]
[{:google_api_fcm_data, "~> 0.3"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.FCMData.V1beta1 do
API client metadata for GoogleApi.FCMData.V1beta1.
"""

@discovery_revision "20220405"
@discovery_revision "20240519"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ defmodule GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1Data do

## Attributes

* `countMessagesAccepted` (*type:* `String.t`, *default:* `nil`) - Count of messages accepted by FCM intended to Android devices. The targeted device must have opted in to the collection of usage and diagnostic information.
* `countMessagesAccepted` (*type:* `String.t`, *default:* `nil`) - Count of messages accepted by FCM intended for Android devices. The targeted device must have opted in to the collection of usage and diagnostic information.
* `countNotificationsAccepted` (*type:* `String.t`, *default:* `nil`) - Count of notifications accepted by FCM intended for Android devices. The targeted device must have opted in to the collection of usage and diagnostic information.
* `deliveryPerformancePercents` (*type:* `GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents.t`, *default:* `nil`) - Additional information about delivery performance for messages that were successfully delivered.
* `messageInsightPercents` (*type:* `GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1MessageInsightPercents.t`, *default:* `nil`) - Additional general insights about message delivery.
* `messageOutcomePercents` (*type:* `GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.t`, *default:* `nil`) - Mutually exclusive breakdown of message delivery outcomes.
* `proxyNotificationInsightPercents` (*type:* `GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents.t`, *default:* `nil`) - Additional insights about proxy notification delivery.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:countMessagesAccepted => String.t() | nil,
:countNotificationsAccepted => String.t() | nil,
:deliveryPerformancePercents =>
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents.t()
| nil,
Expand All @@ -39,10 +42,14 @@ defmodule GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1Data do
| nil,
:messageOutcomePercents =>
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.t()
| nil,
:proxyNotificationInsightPercents =>
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents.t()
| nil
}

field(:countMessagesAccepted)
field(:countNotificationsAccepted)

field(:deliveryPerformancePercents,
as: GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents
Expand All @@ -55,6 +62,11 @@ defmodule GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1Data do
field(:messageOutcomePercents,
as: GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents
)

field(:proxyNotificationInsightPercents,
as:
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents
)
end

defimpl Poison.Decoder, for: GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1Data do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents do
@moduledoc """
Additional information about proxy notification delivery. All percentages are calculated with countNotificationsAccepted as the denominator.

## Attributes

* `failed` (*type:* `number()`, *default:* `nil`) - The percentage of accepted notifications that failed to be proxied. This is usually caused by exceptions that occurred while calling [notifyAsPackage](https://developer.android.com/reference/android/app/NotificationManager#notifyAsPackage%28java.lang.String,%20java.lang.String,%20int,%20android.app.Notification%29).
* `proxied` (*type:* `number()`, *default:* `nil`) - The percentage of accepted notifications that were successfully proxied by [Google Play services](https://developers.google.com/android/guides/overview).
* `skippedNotThrottled` (*type:* `number()`, *default:* `nil`) - The percentage of accepted notifications that were skipped because the messages were not throttled.
* `skippedOptedOut` (*type:* `number()`, *default:* `nil`) - The percentage of accepted notifications that were skipped because the app disallowed these messages to be proxied.
* `skippedUnconfigured` (*type:* `number()`, *default:* `nil`) - The percentage of accepted notifications that were skipped because configurations required for notifications to be proxied were missing.
* `skippedUnsupported` (*type:* `number()`, *default:* `nil`) - The percentage of accepted notifications that were skipped because proxy notification is unsupported for the recipient.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:failed => number() | nil,
:proxied => number() | nil,
:skippedNotThrottled => number() | nil,
:skippedOptedOut => number() | nil,
:skippedUnconfigured => number() | nil,
:skippedUnsupported => number() | nil
}

field(:failed)
field(:proxied)
field(:skippedNotThrottled)
field(:skippedOptedOut)
field(:skippedUnconfigured)
field(:skippedUnsupported)
end

defimpl Poison.Decoder,
for:
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents do
def decode(value, options) do
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.FCMData.V1beta1.Model.GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/fcm_data/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.FCMData.Mixfile do
use Mix.Project

@version "0.2.4"
@version "0.3.0"

def project() do
[
Expand Down
Loading