google-api-ruby-client/generated/google/apis/fcm_v1/representations.rb

168 lines
5.7 KiB
Ruby

# Copyright 2015 Google Inc.
#
# 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.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module FcmV1
class AndroidConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AndroidNotification
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApnsConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Message
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Notification
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SendMessageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebpushConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebpushFcmOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AndroidConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :collapse_key, as: 'collapseKey'
hash :data, as: 'data'
property :notification, as: 'notification', class: Google::Apis::FcmV1::AndroidNotification, decorator: Google::Apis::FcmV1::AndroidNotification::Representation
property :priority, as: 'priority'
property :restricted_package_name, as: 'restrictedPackageName'
property :ttl, as: 'ttl'
end
end
class AndroidNotification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body'
collection :body_loc_args, as: 'bodyLocArgs'
property :body_loc_key, as: 'bodyLocKey'
property :channel_id, as: 'channelId'
property :click_action, as: 'clickAction'
property :color, as: 'color'
property :icon, as: 'icon'
property :sound, as: 'sound'
property :tag, as: 'tag'
property :title, as: 'title'
collection :title_loc_args, as: 'titleLocArgs'
property :title_loc_key, as: 'titleLocKey'
end
end
class ApnsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :headers, as: 'headers'
hash :payload, as: 'payload'
end
end
class Message
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android, as: 'android', class: Google::Apis::FcmV1::AndroidConfig, decorator: Google::Apis::FcmV1::AndroidConfig::Representation
property :apns, as: 'apns', class: Google::Apis::FcmV1::ApnsConfig, decorator: Google::Apis::FcmV1::ApnsConfig::Representation
property :condition, as: 'condition'
hash :data, as: 'data'
property :name, as: 'name'
property :notification, as: 'notification', class: Google::Apis::FcmV1::Notification, decorator: Google::Apis::FcmV1::Notification::Representation
property :token, as: 'token'
property :topic, as: 'topic'
property :webpush, as: 'webpush', class: Google::Apis::FcmV1::WebpushConfig, decorator: Google::Apis::FcmV1::WebpushConfig::Representation
end
end
class Notification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body'
property :title, as: 'title'
end
end
class SendMessageRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message', class: Google::Apis::FcmV1::Message, decorator: Google::Apis::FcmV1::Message::Representation
property :validate_only, as: 'validateOnly'
end
end
class WebpushConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :data, as: 'data'
property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::WebpushFcmOptions, decorator: Google::Apis::FcmV1::WebpushFcmOptions::Representation
hash :headers, as: 'headers'
hash :notification, as: 'notification'
end
end
class WebpushFcmOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :link, as: 'link'
end
end
end
end
end