From 616c097d1cb61f503abe1ac8307487ff798b899d Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 25 May 2019 00:38:22 +0000 Subject: [PATCH] Autogenerated update (2019-05-25) Update: - fcm_v1 - securitycenter_v1 - securitycenter_v1beta1 --- generated/google/apis/fcm_v1.rb | 2 +- generated/google/apis/fcm_v1/classes.rb | 19 +++++++++++++++++++ .../google/apis/fcm_v1/representations.rb | 14 ++++++++++++++ generated/google/apis/securitycenter_v1.rb | 2 +- .../google/apis/securitycenter_v1/classes.rb | 6 ++---- .../google/apis/securitycenter_v1beta1.rb | 2 +- .../apis/securitycenter_v1beta1/classes.rb | 6 ++---- 7 files changed, 40 insertions(+), 11 deletions(-) diff --git a/generated/google/apis/fcm_v1.rb b/generated/google/apis/fcm_v1.rb index 2e94a6540..f17047721 100644 --- a/generated/google/apis/fcm_v1.rb +++ b/generated/google/apis/fcm_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com/docs/cloud-messaging module FcmV1 VERSION = 'V1' - REVISION = '20190516' + REVISION = '20190524' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/fcm_v1/classes.rb b/generated/google/apis/fcm_v1/classes.rb index b131aa5c9..d1fcf0216 100644 --- a/generated/google/apis/fcm_v1/classes.rb +++ b/generated/google/apis/fcm_v1/classes.rb @@ -207,6 +207,11 @@ module Google class ApnsConfig include Google::Apis::Core::Hashable + # Options for features provided by the FCM SDK for iOS. + # Corresponds to the JSON property `fcmOptions` + # @return [Google::Apis::FcmV1::ApnsFcmOptions] + attr_accessor :fcm_options + # HTTP request headers defined in Apple Push Notification Service. Refer to # [APNs request headers](https://goo.gl/C6Yhia) for # supported headers, e.g. "apns-priority": "10". @@ -228,11 +233,25 @@ module Google # Update properties of this object def update!(**args) + @fcm_options = args[:fcm_options] if args.key?(:fcm_options) @headers = args[:headers] if args.key?(:headers) @payload = args[:payload] if args.key?(:payload) end end + # Options for features provided by the FCM SDK for iOS. + class ApnsFcmOptions + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Message to send by Firebase Cloud Messaging Service. class Message include Google::Apis::Core::Hashable diff --git a/generated/google/apis/fcm_v1/representations.rb b/generated/google/apis/fcm_v1/representations.rb index d501c0e6f..e3bb9206f 100644 --- a/generated/google/apis/fcm_v1/representations.rb +++ b/generated/google/apis/fcm_v1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ApnsFcmOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Message class Representation < Google::Apis::Core::JsonRepresentation; end @@ -104,11 +110,19 @@ module Google class ApnsConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::ApnsFcmOptions, decorator: Google::Apis::FcmV1::ApnsFcmOptions::Representation + hash :headers, as: 'headers' hash :payload, as: 'payload' end end + class ApnsFcmOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Message # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index bc825e6bf..fec40f847 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20190503' + REVISION = '20190522' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 85f0273fa..73a874254 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -1481,10 +1481,8 @@ module Google # The source's display name. # A source's display name must be unique amongst its siblings, for example, # two sources with the same parent can't share the same display name. - # The display name must start and end with a letter or digit, may contain - # letters, digits, spaces, hyphens, and underscores, and can be no longer - # than 32 characters. This is captured by the regular expression: - # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,30`[\p`L`\p`N`])?. + # The display name must have a length between 1 and 64 characters + # (inclusive). # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index 7171a1e3c..fbe387493 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20190503' + REVISION = '20190522' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index 8bbb54e8c..f65488b41 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -1368,10 +1368,8 @@ module Google # The source’s display name. # A source’s display name must be unique amongst its siblings, for example, # two sources with the same parent can't share the same display name. - # The display name must start and end with a letter or digit, may contain - # letters, digits, spaces, hyphens, and underscores, and can be no longer - # than 32 characters. This is captured by the regular expression: - # [\p`L`\p`N`](`\p`L`\p`N`_- ]`0,30`[\p`L`\p`N`])?. + # The display name must have a length between 1 and 64 characters + # (inclusive). # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name