Autogenerated update (2018-04-04)

Update:
- firebasedynamiclinks_v1
- partners_v2
This commit is contained in:
Google APIs 2018-04-04 00:35:50 +00:00
parent 39761cf42f
commit 87be47bb2a
8 changed files with 272 additions and 4 deletions

View File

@ -50979,6 +50979,16 @@
"/firebasedynamiclinks:v1/AndroidInfo/androidLink": android_link
"/firebasedynamiclinks:v1/AndroidInfo/androidMinPackageVersionCode": android_min_package_version_code
"/firebasedynamiclinks:v1/AndroidInfo/androidPackageName": android_package_name
"/firebasedynamiclinks:v1/CreateManagedShortLinkRequest": create_managed_short_link_request
"/firebasedynamiclinks:v1/CreateManagedShortLinkRequest/dynamicLinkInfo": dynamic_link_info
"/firebasedynamiclinks:v1/CreateManagedShortLinkRequest/longDynamicLink": long_dynamic_link
"/firebasedynamiclinks:v1/CreateManagedShortLinkRequest/name": name
"/firebasedynamiclinks:v1/CreateManagedShortLinkRequest/suffix": suffix
"/firebasedynamiclinks:v1/CreateManagedShortLinkResponse": create_managed_short_link_response
"/firebasedynamiclinks:v1/CreateManagedShortLinkResponse/managedShortLink": managed_short_link
"/firebasedynamiclinks:v1/CreateManagedShortLinkResponse/previewLink": preview_link
"/firebasedynamiclinks:v1/CreateManagedShortLinkResponse/warning": warning
"/firebasedynamiclinks:v1/CreateManagedShortLinkResponse/warning/warning": warning
"/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest": create_short_dynamic_link_request
"/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest/dynamicLinkInfo": dynamic_link_info
"/firebasedynamiclinks:v1/CreateShortDynamicLinkRequest/longDynamicLink": long_dynamic_link
@ -51006,6 +51016,7 @@
"/firebasedynamiclinks:v1/DynamicLinkInfo/analyticsInfo": analytics_info
"/firebasedynamiclinks:v1/DynamicLinkInfo/androidInfo": android_info
"/firebasedynamiclinks:v1/DynamicLinkInfo/desktopInfo": desktop_info
"/firebasedynamiclinks:v1/DynamicLinkInfo/domainUriPrefix": domain_uri_prefix
"/firebasedynamiclinks:v1/DynamicLinkInfo/dynamicLinkDomain": dynamic_link_domain
"/firebasedynamiclinks:v1/DynamicLinkInfo/iosInfo": ios_info
"/firebasedynamiclinks:v1/DynamicLinkInfo/link": link
@ -51060,6 +51071,14 @@
"/firebasedynamiclinks:v1/IosInfo/iosFallbackLink": ios_fallback_link
"/firebasedynamiclinks:v1/IosInfo/iosIpadBundleId": ios_ipad_bundle_id
"/firebasedynamiclinks:v1/IosInfo/iosIpadFallbackLink": ios_ipad_fallback_link
"/firebasedynamiclinks:v1/ManagedShortLink": managed_short_link
"/firebasedynamiclinks:v1/ManagedShortLink/creationTime": creation_time
"/firebasedynamiclinks:v1/ManagedShortLink/flaggedAttribute": flagged_attribute
"/firebasedynamiclinks:v1/ManagedShortLink/flaggedAttribute/flagged_attribute": flagged_attribute
"/firebasedynamiclinks:v1/ManagedShortLink/info": info
"/firebasedynamiclinks:v1/ManagedShortLink/link": link
"/firebasedynamiclinks:v1/ManagedShortLink/linkName": link_name
"/firebasedynamiclinks:v1/ManagedShortLink/visibility": visibility
"/firebasedynamiclinks:v1/NavigationInfo": navigation_info
"/firebasedynamiclinks:v1/NavigationInfo/enableForcedRedirect": enable_forced_redirect
"/firebasedynamiclinks:v1/SocialMetaTagInfo": social_meta_tag_info
@ -51067,11 +51086,13 @@
"/firebasedynamiclinks:v1/SocialMetaTagInfo/socialImageLink": social_image_link
"/firebasedynamiclinks:v1/SocialMetaTagInfo/socialTitle": social_title
"/firebasedynamiclinks:v1/Suffix": suffix
"/firebasedynamiclinks:v1/Suffix/customSuffix": custom_suffix
"/firebasedynamiclinks:v1/Suffix/option": option
"/firebasedynamiclinks:v1/fields": fields
"/firebasedynamiclinks:v1/firebasedynamiclinks.getLinkStats": get_link_stats
"/firebasedynamiclinks:v1/firebasedynamiclinks.getLinkStats/durationDays": duration_days
"/firebasedynamiclinks:v1/firebasedynamiclinks.getLinkStats/dynamicLink": dynamic_link
"/firebasedynamiclinks:v1/firebasedynamiclinks.managedShortLinks.create": create_managed_short_link
"/firebasedynamiclinks:v1/firebasedynamiclinks.shortLinks.create": create_short_link_short_dynamic_link
"/firebasedynamiclinks:v1/key": key
"/firebasedynamiclinks:v1/quotaUser": quota_user
@ -58980,6 +59001,7 @@
"/partners:v2/TrafficSource/trafficSourceId": traffic_source_id
"/partners:v2/TrafficSource/trafficSubId": traffic_sub_id
"/partners:v2/User": user
"/partners:v2/User/afaInfoShared": afa_info_shared
"/partners:v2/User/availableAdwordsManagerAccounts": available_adwords_manager_accounts
"/partners:v2/User/availableAdwordsManagerAccounts/available_adwords_manager_account": available_adwords_manager_account
"/partners:v2/User/certificationStatus": certification_status

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/dynamic-links/
module FirebasedynamiclinksV1
VERSION = 'V1'
REVISION = '20180303'
REVISION = '20180403'
# View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'

View File

@ -87,6 +87,81 @@ module Google
end
end
# Request to create a managed Short Dynamic Link.
class CreateManagedShortLinkRequest
include Google::Apis::Core::Hashable
# Information about a Dynamic Link.
# Corresponds to the JSON property `dynamicLinkInfo`
# @return [Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo]
attr_accessor :dynamic_link_info
# Full long Dynamic Link URL with desired query parameters specified.
# For example,
# "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample",
# [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-
# shortener).
# Corresponds to the JSON property `longDynamicLink`
# @return [String]
attr_accessor :long_dynamic_link
# Link name to associate with the link. It's used for marketer to identify
# manually-created links in the Firebase console
# (https://console.firebase.google.com/).
# Links must be named to be tracked.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Short Dynamic Link suffix.
# Corresponds to the JSON property `suffix`
# @return [Google::Apis::FirebasedynamiclinksV1::Suffix]
attr_accessor :suffix
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dynamic_link_info = args[:dynamic_link_info] if args.key?(:dynamic_link_info)
@long_dynamic_link = args[:long_dynamic_link] if args.key?(:long_dynamic_link)
@name = args[:name] if args.key?(:name)
@suffix = args[:suffix] if args.key?(:suffix)
end
end
# Response to create a short Dynamic Link.
class CreateManagedShortLinkResponse
include Google::Apis::Core::Hashable
# Managed Short Link.
# Corresponds to the JSON property `managedShortLink`
# @return [Google::Apis::FirebasedynamiclinksV1::ManagedShortLink]
attr_accessor :managed_short_link
# Preview link to show the link flow chart. (debug info.)
# Corresponds to the JSON property `previewLink`
# @return [String]
attr_accessor :preview_link
# Information about potential warnings on link creation.
# Corresponds to the JSON property `warning`
# @return [Array<Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning>]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@managed_short_link = args[:managed_short_link] if args.key?(:managed_short_link)
@preview_link = args[:preview_link] if args.key?(:preview_link)
@warning = args[:warning] if args.key?(:warning)
end
end
# Request to create a short Dynamic Link.
class CreateShortDynamicLinkRequest
include Google::Apis::Core::Hashable
@ -126,7 +201,7 @@ module Google
class CreateShortDynamicLinkResponse
include Google::Apis::Core::Hashable
# Preivew link to show the link flow chart.
# Preview link to show the link flow chart. (debug info.)
# Corresponds to the JSON property `previewLink`
# @return [String]
attr_accessor :preview_link
@ -281,6 +356,13 @@ module Google
# @return [Google::Apis::FirebasedynamiclinksV1::DesktopInfo]
attr_accessor :desktop_info
# E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps
# More examples can be found in description of getNormalizedUriPrefix in
# j/c/g/firebase/dynamiclinks/uri/DdlDomain.java
# Corresponds to the JSON property `domainUriPrefix`
# @return [String]
attr_accessor :domain_uri_prefix
# Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
# [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive)
# on how to set up Dynamic Link domain associated with your Firebase project.
@ -324,6 +406,7 @@ module Google
@analytics_info = args[:analytics_info] if args.key?(:analytics_info)
@android_info = args[:android_info] if args.key?(:android_info)
@desktop_info = args[:desktop_info] if args.key?(:desktop_info)
@domain_uri_prefix = args[:domain_uri_prefix] if args.key?(:domain_uri_prefix)
@dynamic_link_domain = args[:dynamic_link_domain] if args.key?(:dynamic_link_domain)
@ios_info = args[:ios_info] if args.key?(:ios_info)
@link = args[:link] if args.key?(:link)
@ -710,6 +793,57 @@ module Google
end
end
# Managed Short Link.
class ManagedShortLink
include Google::Apis::Core::Hashable
# Creation timestamp of the short link.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# Attributes that have been flagged about this short url.
# Corresponds to the JSON property `flaggedAttribute`
# @return [Array<String>]
attr_accessor :flagged_attribute
# Information about a Dynamic Link.
# Corresponds to the JSON property `info`
# @return [Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo]
attr_accessor :info
# Short durable link url, for example, "https://sample.app.goo.gl/xyz123".
# Required.
# Corresponds to the JSON property `link`
# @return [String]
attr_accessor :link
# Link name defined by the creator.
# Required.
# Corresponds to the JSON property `linkName`
# @return [String]
attr_accessor :link_name
# Visibility status of link.
# Corresponds to the JSON property `visibility`
# @return [String]
attr_accessor :visibility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@flagged_attribute = args[:flagged_attribute] if args.key?(:flagged_attribute)
@info = args[:info] if args.key?(:info)
@link = args[:link] if args.key?(:link)
@link_name = args[:link_name] if args.key?(:link_name)
@visibility = args[:visibility] if args.key?(:visibility)
end
end
# Information of navigation behavior.
class NavigationInfo
include Google::Apis::Core::Hashable
@ -767,6 +901,11 @@ module Google
class Suffix
include Google::Apis::Core::Hashable
# Only applies to Option.CUSTOM.
# Corresponds to the JSON property `customSuffix`
# @return [String]
attr_accessor :custom_suffix
# Suffix option.
# Corresponds to the JSON property `option`
# @return [String]
@ -778,6 +917,7 @@ module Google
# Update properties of this object
def update!(**args)
@custom_suffix = args[:custom_suffix] if args.key?(:custom_suffix)
@option = args[:option] if args.key?(:option)
end
end

View File

@ -34,6 +34,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateManagedShortLinkRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateManagedShortLinkResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateShortDynamicLinkRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ManagedShortLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NavigationInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -150,6 +168,29 @@ module Google
end
end
class CreateManagedShortLinkRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dynamic_link_info, as: 'dynamicLinkInfo', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
property :long_dynamic_link, as: 'longDynamicLink'
property :name, as: 'name'
property :suffix, as: 'suffix', class: Google::Apis::FirebasedynamiclinksV1::Suffix, decorator: Google::Apis::FirebasedynamiclinksV1::Suffix::Representation
end
end
class CreateManagedShortLinkResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :managed_short_link, as: 'managedShortLink', class: Google::Apis::FirebasedynamiclinksV1::ManagedShortLink, decorator: Google::Apis::FirebasedynamiclinksV1::ManagedShortLink::Representation
property :preview_link, as: 'previewLink'
collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation
end
end
class CreateShortDynamicLinkRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -209,6 +250,7 @@ module Google
property :desktop_info, as: 'desktopInfo', class: Google::Apis::FirebasedynamiclinksV1::DesktopInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DesktopInfo::Representation
property :domain_uri_prefix, as: 'domainUriPrefix'
property :dynamic_link_domain, as: 'dynamicLinkDomain'
property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation
@ -305,6 +347,19 @@ module Google
end
end
class ManagedShortLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
collection :flagged_attribute, as: 'flaggedAttribute'
property :info, as: 'info', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
property :link, as: 'link'
property :link_name, as: 'linkName'
property :visibility, as: 'visibility'
end
end
class NavigationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -324,6 +379,7 @@ module Google
class Suffix
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_suffix, as: 'customSuffix'
property :option, as: 'option'
end
end

View File

@ -47,6 +47,46 @@ module Google
@batch_path = 'batch'
end
# Creates a managed short Dynamic Link given either a valid long Dynamic Link
# or details such as Dynamic Link domain, Android and iOS app information.
# The created short Dynamic Link will not expire.
# This differs from CreateShortDynamicLink in the following ways:
# - The request will also contain a name for the link (non unique name
# for the front end).
# - The response must be authenticated with an auth token (generated with
# the admin service account).
# - The link will appear in the FDL list of links in the console front end.
# The Dynamic Link domain in the request must be owned by requester's
# Firebase project.
# @param [Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkRequest] create_managed_short_link_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_managed_short_link(create_managed_short_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/managedShortLinks:create', options)
command.request_representation = Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkRequest::Representation
command.request_object = create_managed_short_link_request_object
command.response_representation = Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse::Representation
command.response_class = Google::Apis::FirebasedynamiclinksV1::CreateManagedShortLinkResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a short Dynamic Link given either a valid long Dynamic Link or
# details such as Dynamic Link domain, Android and iOS app information.
# The created short Dynamic Link will not expire.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/partners/
module PartnersV2
VERSION = 'V2'
REVISION = '20180122'
REVISION = '20180403'
end
end
end

View File

@ -748,7 +748,8 @@ module Google
# @return [Fixnum]
attr_accessor :day
# Month of year. Must be from 1 to 12.
# Month of year. Must be from 1 to 12, or 0 if specifying a date without a
# month.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
@ -2016,6 +2017,13 @@ module Google
class User
include Google::Apis::Core::Hashable
# Whether or not the user has opted to share their Academy for Ads info with
# Google Partners.
# Corresponds to the JSON property `afaInfoShared`
# @return [Boolean]
attr_accessor :afa_info_shared
alias_method :afa_info_shared?, :afa_info_shared
# This is the list of AdWords Manager Accounts the user has edit access to.
# If the user has edit access to multiple accounts, the user can choose the
# preferred account and we use this when a personal account is needed. Can
@ -2089,6 +2097,7 @@ module Google
# Update properties of this object
def update!(**args)
@afa_info_shared = args[:afa_info_shared] if args.key?(:afa_info_shared)
@available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
@certification_status = args[:certification_status] if args.key?(:certification_status)
@company = args[:company] if args.key?(:company)

View File

@ -848,6 +848,7 @@ module Google
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :afa_info_shared, as: 'afaInfoShared'
collection :available_adwords_manager_accounts, as: 'availableAdwordsManagerAccounts', class: Google::Apis::PartnersV2::AdWordsManagerAccountInfo, decorator: Google::Apis::PartnersV2::AdWordsManagerAccountInfo::Representation
collection :certification_status, as: 'certificationStatus', class: Google::Apis::PartnersV2::Certification, decorator: Google::Apis::PartnersV2::Certification::Representation