Skip to content

Commit

Permalink
feat: Automated regeneration of fcmdata v1beta1 client (#19463)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-26 10:11:56 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored May 26, 2024
1 parent 38d2e4b commit 6bf6707
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 3 deletions.
9 changes: 9 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203688,9 +203688,11 @@
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1AndroidDeliveryData/date": date
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data": google_firebase_fcm_data_v1beta1_data
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data/countMessagesAccepted": count_messages_accepted
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data/countNotificationsAccepted": count_notifications_accepted
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data/deliveryPerformancePercents": delivery_performance_percents
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data/messageInsightPercents": message_insight_percents
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data/messageOutcomePercents": message_outcome_percents
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1Data/proxyNotificationInsightPercents": proxy_notification_insight_percents
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents": google_firebase_fcm_data_v1beta1_delivery_performance_percents
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents/delayedDeviceDoze": delayed_device_doze
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents/delayedDeviceOffline": delayed_device_offline
Expand All @@ -203709,6 +203711,13 @@
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1MessageOutcomePercents/droppedDeviceInactive": dropped_device_inactive
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1MessageOutcomePercents/droppedTooManyPendingMessages": dropped_too_many_pending_messages
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1MessageOutcomePercents/pending": pending
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents": google_firebase_fcm_data_v1beta1_proxy_notification_insight_percents
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents/failed": failed
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents/proxied": proxied
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents/skippedNotThrottled": skipped_not_throttled
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents/skippedOptedOut": skipped_opted_out
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents/skippedUnconfigured": skipped_unconfigured
"/fcmdata:v1beta1/GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents/skippedUnsupported": skipped_unsupported
"/fcmdata:v1beta1/GoogleTypeDate": google_type_date
"/fcmdata:v1beta1/GoogleTypeDate/day": day
"/fcmdata:v1beta1/GoogleTypeDate/month": month
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-fcmdata_v1beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-fcmdata_v1beta1

### v0.17.0 (2024-05-26)

* Regenerated from discovery document revision 20240519

### v0.16.0 (2024-05-19)

* Regenerated using generator version 0.15.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,20 @@ def update!(**args)
class GoogleFirebaseFcmDataV1beta1Data
include Google::Apis::Core::Hashable

# Count of messages accepted by FCM intended to Android devices. The targeted
# 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.
# Corresponds to the JSON property `countMessagesAccepted`
# @return [Fixnum]
attr_accessor :count_messages_accepted

# 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.
# Corresponds to the JSON property `countNotificationsAccepted`
# @return [Fixnum]
attr_accessor :count_notifications_accepted

# Overview of delivery performance for messages that were successfully delivered.
# All percentages are calculated with countMessagesAccepted as the denominator.
# These categories are not mutually exclusive; a message can be delayed for
Expand All @@ -99,16 +106,24 @@ class GoogleFirebaseFcmDataV1beta1Data
# @return [Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageOutcomePercents]
attr_accessor :message_outcome_percents

# Additional information about proxy notification delivery. All percentages are
# calculated with countNotificationsAccepted as the denominator.
# Corresponds to the JSON property `proxyNotificationInsightPercents`
# @return [Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents]
attr_accessor :proxy_notification_insight_percents

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@count_messages_accepted = args[:count_messages_accepted] if args.key?(:count_messages_accepted)
@count_notifications_accepted = args[:count_notifications_accepted] if args.key?(:count_notifications_accepted)
@delivery_performance_percents = args[:delivery_performance_percents] if args.key?(:delivery_performance_percents)
@message_insight_percents = args[:message_insight_percents] if args.key?(:message_insight_percents)
@message_outcome_percents = args[:message_outcome_percents] if args.key?(:message_outcome_percents)
@proxy_notification_insight_percents = args[:proxy_notification_insight_percents] if args.key?(:proxy_notification_insight_percents)
end
end

Expand Down Expand Up @@ -286,6 +301,65 @@ def update!(**args)
end
end

# Additional information about proxy notification delivery. All percentages are
# calculated with countNotificationsAccepted as the denominator.
class GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents
include Google::Apis::Core::Hashable

# 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).
# Corresponds to the JSON property `failed`
# @return [Float]
attr_accessor :failed

# The percentage of accepted notifications that were successfully proxied by [
# Google Play services](https://developers.google.com/android/guides/overview).
# Corresponds to the JSON property `proxied`
# @return [Float]
attr_accessor :proxied

# The percentage of accepted notifications that were skipped because the
# messages were not throttled.
# Corresponds to the JSON property `skippedNotThrottled`
# @return [Float]
attr_accessor :skipped_not_throttled

# The percentage of accepted notifications that were skipped because the app
# disallowed these messages to be proxied.
# Corresponds to the JSON property `skippedOptedOut`
# @return [Float]
attr_accessor :skipped_opted_out

# The percentage of accepted notifications that were skipped because
# configurations required for notifications to be proxied were missing.
# Corresponds to the JSON property `skippedUnconfigured`
# @return [Float]
attr_accessor :skipped_unconfigured

# The percentage of accepted notifications that were skipped because proxy
# notification is unsupported for the recipient.
# Corresponds to the JSON property `skippedUnsupported`
# @return [Float]
attr_accessor :skipped_unsupported

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@failed = args[:failed] if args.key?(:failed)
@proxied = args[:proxied] if args.key?(:proxied)
@skipped_not_throttled = args[:skipped_not_throttled] if args.key?(:skipped_not_throttled)
@skipped_opted_out = args[:skipped_opted_out] if args.key?(:skipped_opted_out)
@skipped_unconfigured = args[:skipped_unconfigured] if args.key?(:skipped_unconfigured)
@skipped_unsupported = args[:skipped_unsupported] if args.key?(:skipped_unsupported)
end
end

# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module FcmdataV1beta1
# Version of the google-apis-fcmdata_v1beta1 gem
GEM_VERSION = "0.16.0"
GEM_VERSION = "0.17.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20220405"
REVISION = "20240519"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleTypeDate
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand All @@ -80,12 +86,15 @@ class GoogleFirebaseFcmDataV1beta1Data
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count_messages_accepted, :numeric_string => true, as: 'countMessagesAccepted'
property :count_notifications_accepted, :numeric_string => true, as: 'countNotificationsAccepted'
property :delivery_performance_percents, as: 'deliveryPerformancePercents', class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents, decorator: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents::Representation

property :message_insight_percents, as: 'messageInsightPercents', class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageInsightPercents, decorator: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageInsightPercents::Representation

property :message_outcome_percents, as: 'messageOutcomePercents', class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageOutcomePercents, decorator: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageOutcomePercents::Representation

property :proxy_notification_insight_percents, as: 'proxyNotificationInsightPercents', class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents, decorator: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents::Representation

end
end

Expand Down Expand Up @@ -127,6 +136,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :failed, as: 'failed'
property :proxied, as: 'proxied'
property :skipped_not_throttled, as: 'skippedNotThrottled'
property :skipped_opted_out, as: 'skippedOptedOut'
property :skipped_unconfigured, as: 'skippedUnconfigured'
property :skipped_unsupported, as: 'skippedUnsupported'
end
end

class GoogleTypeDate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 6bf6707

Please sign in to comment.