2017-03-30 22:30:51 +00:00
|
|
|
# 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 FirebasedynamiclinksV1
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class Suffix
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class GooglePlayAnalytics
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class DynamicLinkInfo
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class ITunesConnectAnalytics
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class SocialMetaTagInfo
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
class DynamicLinkWarning
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
class DynamicLinkStats
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class AndroidInfo
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class NavigationInfo
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class IosInfo
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class AnalyticsInfo
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class CreateShortDynamicLinkRequest
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
class DynamicLinkEventStat
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-30 22:30:51 +00:00
|
|
|
class CreateShortDynamicLinkResponse
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Suffix
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :option, as: 'option'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GooglePlayAnalytics
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :utm_source, as: 'utmSource'
|
|
|
|
property :gclid, as: 'gclid'
|
2017-05-26 16:44:32 +00:00
|
|
|
property :utm_campaign, as: 'utmCampaign'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :utm_content, as: 'utmContent'
|
2017-06-14 17:02:03 +00:00
|
|
|
property :utm_medium, as: 'utmMedium'
|
|
|
|
property :utm_term, as: 'utmTerm'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class DynamicLinkInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :android_info, as: 'androidInfo', class: Google::Apis::FirebasedynamiclinksV1::AndroidInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AndroidInfo::Representation
|
|
|
|
|
|
|
|
property :navigation_info, as: 'navigationInfo', class: Google::Apis::FirebasedynamiclinksV1::NavigationInfo, decorator: Google::Apis::FirebasedynamiclinksV1::NavigationInfo::Representation
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :analytics_info, as: 'analyticsInfo', class: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo::Representation
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
property :dynamic_link_domain, as: 'dynamicLinkDomain'
|
2017-06-14 17:02:03 +00:00
|
|
|
property :link, as: 'link'
|
|
|
|
property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation
|
|
|
|
|
|
|
|
property :social_meta_tag_info, as: 'socialMetaTagInfo', class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo, decorator: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ITunesConnectAnalytics
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-26 16:44:32 +00:00
|
|
|
property :at, as: 'at'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :mt, as: 'mt'
|
2017-06-02 06:11:31 +00:00
|
|
|
property :ct, as: 'ct'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :pt, as: 'pt'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
2017-04-03 20:18:48 +00:00
|
|
|
|
|
|
|
class SocialMetaTagInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :social_image_link, as: 'socialImageLink'
|
2017-06-02 06:11:31 +00:00
|
|
|
property :social_title, as: 'socialTitle'
|
2017-05-26 16:44:32 +00:00
|
|
|
property :social_description, as: 'socialDescription'
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
class DynamicLinkWarning
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-06-14 17:02:03 +00:00
|
|
|
property :warning_code, as: 'warningCode'
|
|
|
|
property :warning_message, as: 'warningMessage'
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
class DynamicLinkStats
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-06-14 17:02:03 +00:00
|
|
|
collection :link_event_stats, as: 'linkEventStats', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkEventStat, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkEventStat::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class AndroidInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :android_package_name, as: 'androidPackageName'
|
|
|
|
property :android_min_package_version_code, as: 'androidMinPackageVersionCode'
|
|
|
|
property :android_link, as: 'androidLink'
|
|
|
|
property :android_fallback_link, as: 'androidFallbackLink'
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
class NavigationInfo
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-06-02 06:11:31 +00:00
|
|
|
property :enable_forced_redirect, as: 'enableForcedRedirect'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class IosInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-06-14 17:02:03 +00:00
|
|
|
property :ios_fallback_link, as: 'iosFallbackLink'
|
|
|
|
property :ios_app_store_id, as: 'iosAppStoreId'
|
2017-06-02 06:11:31 +00:00
|
|
|
property :ios_ipad_fallback_link, as: 'iosIpadFallbackLink'
|
|
|
|
property :ios_ipad_bundle_id, as: 'iosIpadBundleId'
|
|
|
|
property :ios_custom_scheme, as: 'iosCustomScheme'
|
|
|
|
property :ios_bundle_id, as: 'iosBundleId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class AnalyticsInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :itunes_connect_analytics, as: 'itunesConnectAnalytics', class: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics::Representation
|
|
|
|
|
|
|
|
property :google_play_analytics, as: 'googlePlayAnalytics', class: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CreateShortDynamicLinkRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :long_dynamic_link, as: 'longDynamicLink'
|
|
|
|
property :suffix, as: 'suffix', class: Google::Apis::FirebasedynamiclinksV1::Suffix, decorator: Google::Apis::FirebasedynamiclinksV1::Suffix::Representation
|
|
|
|
|
|
|
|
property :dynamic_link_info, as: 'dynamicLinkInfo', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
2017-06-14 17:02:03 +00:00
|
|
|
|
|
|
|
class DynamicLinkEventStat
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :count, :numeric_string => true, as: 'count'
|
|
|
|
property :event, as: 'event'
|
|
|
|
property :platform, as: 'platform'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CreateShortDynamicLinkResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :short_link, as: 'shortLink'
|
|
|
|
property :preview_link, as: 'previewLink'
|
|
|
|
collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|