mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
vendor: update all dependencies
This commit is contained in:
572
vendor/google.golang.org/api/firebasedynamiclinks/v1/firebasedynamiclinks-api.json
generated
vendored
572
vendor/google.golang.org/api/firebasedynamiclinks/v1/firebasedynamiclinks-api.json
generated
vendored
@ -1,46 +1,180 @@
|
||||
{
|
||||
"documentationLink": "https://firebase.google.com/docs/dynamic-links/",
|
||||
"revision": "20170430",
|
||||
"canonicalName": "Firebase Dynamic Links",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/firebase": {
|
||||
"description": "View and administer all your Firebase data and settings"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://firebasedynamiclinks.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "firebasedynamiclinks",
|
||||
"batchPath": "batch",
|
||||
"title": "Firebase Dynamic Links API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"shortLinks": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"request": {
|
||||
"$ref": "CreateShortDynamicLinkRequest"
|
||||
},
|
||||
"description": "Creates a short Dynamic Link given either a valid long Dynamic Link or\ndetails such as Dynamic Link domain, Android and iOS app information.\nThe created short Dynamic Link will not expire.\n\nRepeated calls with the same long Dynamic Link or Dynamic Link information\nwill produce the same short Dynamic Link.\n\nThe Dynamic Link domain in the request must be owned by requester's\nFirebase project.",
|
||||
"response": {
|
||||
"$ref": "CreateShortDynamicLinkResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "POST",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/firebase"
|
||||
],
|
||||
"parameters": {},
|
||||
"flatPath": "v1/shortLinks",
|
||||
"id": "firebasedynamiclinks.shortLinks.create",
|
||||
"path": "v1/shortLinks"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1": {
|
||||
"methods": {
|
||||
"getLinkStats": {
|
||||
"id": "firebasedynamiclinks.getLinkStats",
|
||||
"path": "v1/{dynamicLink}/linkStats",
|
||||
"description": "Fetches analytics stats of a short Dynamic Link for a given\nduration. Metrics include number of clicks, redirects, installs,\napp first opens, and app reopens.",
|
||||
"response": {
|
||||
"$ref": "DynamicLinkStats"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"dynamicLink"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"durationDays": {
|
||||
"location": "query",
|
||||
"format": "int64",
|
||||
"description": "The span of time requested in days.",
|
||||
"type": "string"
|
||||
},
|
||||
"dynamicLink": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"location": "path",
|
||||
"description": "Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/firebase"
|
||||
],
|
||||
"flatPath": "v1/{dynamicLink}/linkStats"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "OAuth access token."
|
||||
},
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "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.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://firebasedynamiclinks.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"description": "Programmatically creates and manages Firebase Dynamic Links.",
|
||||
"kind": "discovery#restDescription",
|
||||
"basePath": "",
|
||||
"id": "firebasedynamiclinks:v1",
|
||||
"revision": "20170703",
|
||||
"documentationLink": "https://firebase.google.com/docs/dynamic-links/",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"schemas": {
|
||||
"DynamicLinkInfo": {
|
||||
"description": "Information about a Dynamic Link.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"dynamicLinkDomain": {
|
||||
"description": "Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl\n[Learn more](https://firebase.google.com/docs/dynamic-links/android#set-up-firebase-and-the-dynamic-links-sdk)\non how to set up Dynamic Link domain associated with your Firebase project.\n\nRequired.",
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"description": "The link your app will open, You can specify any URL your app can handle.\nThis link must be a well-formatted URL, be properly URL-encoded, and use\nthe HTTP or HTTPS scheme. See 'link' parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically).\n\nRequired.",
|
||||
"type": "string"
|
||||
},
|
||||
"iosInfo": {
|
||||
"$ref": "IosInfo",
|
||||
"description": "iOS related information. See iOS related parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/ios#create-a-dynamic-link-programmatically)."
|
||||
},
|
||||
"socialMetaTagInfo": {
|
||||
"description": "Parameters for social meta tag params.\nUsed to set meta tag data for link previews on social sites.",
|
||||
"$ref": "SocialMetaTagInfo"
|
||||
},
|
||||
"androidInfo": {
|
||||
"description": "Android related information. See Android related parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically).",
|
||||
"$ref": "AndroidInfo"
|
||||
},
|
||||
"navigationInfo": {
|
||||
"description": "Information of navigation behavior of a Firebase Dynamic Links.",
|
||||
"$ref": "NavigationInfo"
|
||||
},
|
||||
"analyticsInfo": {
|
||||
"description": "Parameters used for tracking. See all tracking parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically).",
|
||||
"$ref": "AnalyticsInfo"
|
||||
}
|
||||
},
|
||||
"id": "DynamicLinkInfo"
|
||||
},
|
||||
"ITunesConnectAnalytics": {
|
||||
"id": "ITunesConnectAnalytics",
|
||||
"description": "Parameters for iTunes Connect App Analytics.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -48,42 +182,52 @@
|
||||
"description": "Affiliate token used to create affiliate-coded links.",
|
||||
"type": "string"
|
||||
},
|
||||
"ct": {
|
||||
"description": "Campaign text that developers can optionally add to any link in order to\ntrack sales from a specific marketing campaign.",
|
||||
"type": "string"
|
||||
},
|
||||
"mt": {
|
||||
"description": "iTune media types, including music, podcasts, audiobooks and so on.",
|
||||
"type": "string"
|
||||
},
|
||||
"ct": {
|
||||
"description": "Campaign text that developers can optionally add to any link in order to\ntrack sales from a specific marketing campaign.",
|
||||
"type": "string"
|
||||
},
|
||||
"pt": {
|
||||
"description": "Provider token that enables analytics for Dynamic Links from within iTunes\nConnect.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ITunesConnectAnalytics"
|
||||
}
|
||||
},
|
||||
"SocialMetaTagInfo": {
|
||||
"id": "SocialMetaTagInfo",
|
||||
"description": "Parameters for social meta tag params.\nUsed to set meta tag data for link previews on social sites.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"socialDescription": {
|
||||
"description": "A short description of the link. Optional.",
|
||||
"type": "string"
|
||||
},
|
||||
"socialTitle": {
|
||||
"description": "Title to be displayed. Optional.",
|
||||
"type": "string"
|
||||
},
|
||||
"socialImageLink": {
|
||||
"description": "An image url string. Optional.",
|
||||
"type": "string"
|
||||
},
|
||||
"socialTitle": {
|
||||
"description": "Title to be displayed. Optional.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "SocialMetaTagInfo",
|
||||
"description": "Parameters for social meta tag params.\nUsed to set meta tag data for link previews on social sites.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"AndroidInfo": {
|
||||
"id": "AndroidInfo",
|
||||
"description": "Android related attributes to the Dynamic Link.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"androidLink": {
|
||||
"type": "string",
|
||||
"description": "If specified, this overrides the ‘link’ parameter on Android."
|
||||
},
|
||||
"androidFallbackLink": {
|
||||
"description": "Link to open on Android if the app is not installed.",
|
||||
"type": "string"
|
||||
},
|
||||
"androidPackageName": {
|
||||
"description": "Android package name of the app.",
|
||||
"type": "string"
|
||||
@ -91,25 +235,16 @@
|
||||
"androidMinPackageVersionCode": {
|
||||
"description": "Minimum version code for the Android app. If the installed app’s version\ncode is lower, then the user is taken to the Play Store.",
|
||||
"type": "string"
|
||||
},
|
||||
"androidLink": {
|
||||
"description": "If specified, this overrides the ‘link’ parameter on Android.",
|
||||
"type": "string"
|
||||
},
|
||||
"androidFallbackLink": {
|
||||
"description": "Link to open on Android if the app is not installed.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "AndroidInfo",
|
||||
"description": "Android related attributes to the Dynamic Link.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"DynamicLinkWarning": {
|
||||
"description": "Dynamic Links warning messages.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"warningCode": {
|
||||
"description": "The warning code.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unknown code.",
|
||||
"The Android package does not match any in developer's DevConsole project.",
|
||||
@ -171,9 +306,7 @@
|
||||
"LINK_LENGTH_TOO_LONG",
|
||||
"LINK_WITH_FRAGMENTS",
|
||||
"NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID"
|
||||
],
|
||||
"description": "The warning code.",
|
||||
"type": "string"
|
||||
]
|
||||
},
|
||||
"warningMessage": {
|
||||
"description": "The warning message to help developers improve their requests.",
|
||||
@ -182,6 +315,20 @@
|
||||
},
|
||||
"id": "DynamicLinkWarning"
|
||||
},
|
||||
"DynamicLinkStats": {
|
||||
"properties": {
|
||||
"linkEventStats": {
|
||||
"description": "Dynamic Link event stats.",
|
||||
"items": {
|
||||
"$ref": "DynamicLinkEventStat"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "DynamicLinkStats",
|
||||
"description": "Analytics stats of a Dynamic Link for a given timeframe.",
|
||||
"type": "object"
|
||||
},
|
||||
"NavigationInfo": {
|
||||
"description": "Information of navigation behavior.",
|
||||
"type": "object",
|
||||
@ -208,8 +355,8 @@
|
||||
"type": "string"
|
||||
},
|
||||
"iosIpadBundleId": {
|
||||
"description": "iPad bundle ID of the app.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "iPad bundle ID of the app."
|
||||
},
|
||||
"iosCustomScheme": {
|
||||
"description": "Custom (destination) scheme to use for iOS. By default, we’ll use the\nbundle ID as the custom scheme. Developer can override this behavior using\nthis param.",
|
||||
@ -229,17 +376,18 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"itunesConnectAnalytics": {
|
||||
"$ref": "ITunesConnectAnalytics",
|
||||
"description": "iTunes Connect App Analytics."
|
||||
"description": "iTunes Connect App Analytics.",
|
||||
"$ref": "ITunesConnectAnalytics"
|
||||
},
|
||||
"googlePlayAnalytics": {
|
||||
"description": "Google Play Campaign Measurements.",
|
||||
"$ref": "GooglePlayAnalytics"
|
||||
"$ref": "GooglePlayAnalytics",
|
||||
"description": "Google Play Campaign Measurements."
|
||||
}
|
||||
},
|
||||
"id": "AnalyticsInfo"
|
||||
},
|
||||
"CreateShortDynamicLinkRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"dynamicLinkInfo": {
|
||||
"$ref": "DynamicLinkInfo",
|
||||
@ -250,73 +398,116 @@
|
||||
"type": "string"
|
||||
},
|
||||
"suffix": {
|
||||
"$ref": "Suffix",
|
||||
"description": "Short Dynamic Link suffix. Optional."
|
||||
"description": "Short Dynamic Link suffix. Optional.",
|
||||
"$ref": "Suffix"
|
||||
}
|
||||
},
|
||||
"id": "CreateShortDynamicLinkRequest",
|
||||
"description": "Request to create a short Dynamic Link.",
|
||||
"type": "object"
|
||||
"description": "Request to create a short Dynamic Link."
|
||||
},
|
||||
"DynamicLinkEventStat": {
|
||||
"description": "Dynamic Link event stat.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"platform": {
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unspecified platform.",
|
||||
"Represents Android platform.\nAll apps and browsers on Android are classfied in this category.",
|
||||
"Represents iOS platform.\nAll apps and browsers on iOS are classfied in this category.",
|
||||
"Represents desktop.\nNote: other platforms like Windows, Blackberry, Amazon fall into this\ncategory."
|
||||
],
|
||||
"enum": [
|
||||
"DYNAMIC_LINK_PLATFORM_UNSPECIFIED",
|
||||
"ANDROID",
|
||||
"IOS",
|
||||
"DESKTOP"
|
||||
],
|
||||
"description": "Requested platform."
|
||||
},
|
||||
"count": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "The number of times this event occurred."
|
||||
},
|
||||
"event": {
|
||||
"enum": [
|
||||
"DYNAMIC_LINK_EVENT_UNSPECIFIED",
|
||||
"CLICK",
|
||||
"REDIRECT",
|
||||
"APP_INSTALL",
|
||||
"APP_FIRST_OPEN",
|
||||
"APP_RE_OPEN"
|
||||
],
|
||||
"description": "Link event.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unspecified type.",
|
||||
"Indicates that an FDL is clicked by users.",
|
||||
"Indicates that an FDL redirects users to fallback link.",
|
||||
"Indicates that an FDL triggers an app install from Play store, currently\nit's impossible to get stats from App store.",
|
||||
"Indicates that the app is opened for the first time after an install\ntriggered by FDLs",
|
||||
"Indicates that the app is opened via an FDL for non-first time."
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "DynamicLinkEventStat"
|
||||
},
|
||||
"CreateShortDynamicLinkResponse": {
|
||||
"id": "CreateShortDynamicLinkResponse",
|
||||
"description": "Response to create a short Dynamic Link.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"warning": {
|
||||
"description": "Information about potential warnings on link creation.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "DynamicLinkWarning"
|
||||
}
|
||||
},
|
||||
"shortLink": {
|
||||
"description": "Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz",
|
||||
"type": "string"
|
||||
},
|
||||
"previewLink": {
|
||||
"description": "Preivew link to show the link flow chart.",
|
||||
"type": "string"
|
||||
},
|
||||
"warning": {
|
||||
"description": "Information about potential warnings on link creation.",
|
||||
"items": {
|
||||
"$ref": "DynamicLinkWarning"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"shortLink": {
|
||||
"type": "string",
|
||||
"description": "Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz"
|
||||
}
|
||||
},
|
||||
"id": "CreateShortDynamicLinkResponse"
|
||||
}
|
||||
},
|
||||
"Suffix": {
|
||||
"description": "Short Dynamic Link suffix.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"option": {
|
||||
"enumDescriptions": [
|
||||
"The suffix option is not specified, performs as NOT_GUESSABLE .",
|
||||
"Short Dynamic Link suffix is a base62 [0-9A-Za-z] encoded string of\na random generated 96 bit random number, which has a length of 17 chars.\nFor example, \"nlAR8U4SlKRZw1cb2\".\nIt prevents other people from guessing and crawling short Dynamic Links\nthat contain personal identifiable information.",
|
||||
"Short Dynamic Link suffix is a base62 [0-9A-Za-z] string starting with a\nlength of 4 chars. the length will increase when all the space is\noccupied."
|
||||
],
|
||||
"enum": [
|
||||
"OPTION_UNSPECIFIED",
|
||||
"UNGUESSABLE",
|
||||
"SHORT"
|
||||
],
|
||||
"description": "Suffix option.",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"The suffix option is not specified, performs as NOT_GUESSABLE .",
|
||||
"Short Dynamic Link suffix is a base62 [0-9A-Za-z] encoded string of\na random generated 96 bit random number, which has a length of 17 chars.\nFor example, \"nlAR8U4SlKRZw1cb2\".\nIt prevents other people from guessing and crawling short Dynamic Links\nthat contain personal identifiable information.",
|
||||
"Short Dynamic Link suffix is a base62 [0-9A-Za-z] string starting with a\nlength of 4 chars. the length will increase when all the space is\noccupied."
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "Suffix"
|
||||
"id": "Suffix",
|
||||
"description": "Short Dynamic Link suffix."
|
||||
},
|
||||
"GooglePlayAnalytics": {
|
||||
"description": "Parameters for Google Play Campaign Measurements.\n[Learn more](https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#campaign-params)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"utmSource": {
|
||||
"description": "Campaign source; used to identify a search engine, newsletter, or other\nsource.",
|
||||
"gclid": {
|
||||
"description": "[AdWords autotagging parameter](https://support.google.com/analytics/answer/1033981?hl=en);\nused to measure Google AdWords ads. This value is generated dynamically\nand should never be modified.",
|
||||
"type": "string"
|
||||
},
|
||||
"utmCampaign": {
|
||||
"description": "Campaign name; used for keyword analysis to identify a specific product\npromotion or strategic campaign.",
|
||||
"type": "string"
|
||||
},
|
||||
"gclid": {
|
||||
"description": "[AdWords autotagging parameter](https://support.google.com/analytics/answer/1033981?hl=en);\nused to measure Google AdWords ads. This value is generated dynamically\nand should never be modified.",
|
||||
"type": "string"
|
||||
},
|
||||
"utmContent": {
|
||||
"description": "Campaign content; used for A/B testing and content-targeted ads to\ndifferentiate ads or links that point to the same URL.",
|
||||
"type": "string"
|
||||
@ -328,148 +519,53 @@
|
||||
"utmTerm": {
|
||||
"description": "Campaign term; used with paid search to supply the keywords for ads.",
|
||||
"type": "string"
|
||||
},
|
||||
"utmSource": {
|
||||
"description": "Campaign source; used to identify a search engine, newsletter, or other\nsource.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "GooglePlayAnalytics"
|
||||
},
|
||||
"DynamicLinkInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"androidInfo": {
|
||||
"$ref": "AndroidInfo",
|
||||
"description": "Android related information. See Android related parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/create-manually)."
|
||||
},
|
||||
"navigationInfo": {
|
||||
"description": "Information of navigation behavior of a Firebase Dynamic Links.",
|
||||
"$ref": "NavigationInfo"
|
||||
},
|
||||
"analyticsInfo": {
|
||||
"description": "Parameters used for tracking. See all tracking parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/create-manually).",
|
||||
"$ref": "AnalyticsInfo"
|
||||
},
|
||||
"dynamicLinkDomain": {
|
||||
"description": "Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl\n[Learn more](https://firebase.google.com/docs/dynamic-links/android/receive)\non how to set up Dynamic Link domain associated with your Firebase project.\n\nRequired.",
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string",
|
||||
"description": "The link your app will open, You can specify any URL your app can handle.\nThis link must be a well-formatted URL, be properly URL-encoded, and use\nthe HTTP or HTTPS scheme. See 'link' parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/create-manually).\n\nRequired."
|
||||
},
|
||||
"iosInfo": {
|
||||
"$ref": "IosInfo",
|
||||
"description": "iOS related information. See iOS related parameters in the\n[documentation](https://firebase.google.com/docs/dynamic-links/create-manually)."
|
||||
},
|
||||
"socialMetaTagInfo": {
|
||||
"$ref": "SocialMetaTagInfo",
|
||||
"description": "Parameters for social meta tag params.\nUsed to set meta tag data for link previews on social sites."
|
||||
}
|
||||
},
|
||||
"id": "DynamicLinkInfo",
|
||||
"description": "Information about a Dynamic Link."
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"canonicalName": "Firebase Dynamic Links",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/firebase": {
|
||||
"description": "View and administer all your Firebase data and settings"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://firebasedynamiclinks.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "firebasedynamiclinks",
|
||||
"batchPath": "batch",
|
||||
"title": "Firebase Dynamic Links API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"shortLinks": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"request": {
|
||||
"$ref": "CreateShortDynamicLinkRequest"
|
||||
},
|
||||
"description": "Creates a short Dynamic Link given either a valid long Dynamic Link or\ndetails such as Dynamic Link domain, Android and iOS app information.\nThe created short Dynamic Link will not expire.\n\nRepeated calls with the same long Dynamic Link or Dynamic Link information\nwill produce the same short Dynamic Link.\n\nThe Dynamic Link domain in the request must be owned by requester's\nFirebase project.",
|
||||
"response": {
|
||||
"$ref": "CreateShortDynamicLinkResponse"
|
||||
},
|
||||
"parameterOrder": [],
|
||||
"httpMethod": "POST",
|
||||
"parameters": {},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/firebase"
|
||||
],
|
||||
"flatPath": "v1/shortLinks",
|
||||
"path": "v1/shortLinks",
|
||||
"id": "firebasedynamiclinks.shortLinks.create"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "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.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://firebasedynamiclinks.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Programmatically creates and manages Firebase Dynamic Links.",
|
||||
"servicePath": "",
|
||||
"basePath": ""
|
||||
"protocol": "rest"
|
||||
}
|
||||
|
279
vendor/google.golang.org/api/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go
generated
vendored
279
vendor/google.golang.org/api/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go
generated
vendored
@ -57,6 +57,7 @@ func New(client *http.Client) (*Service, error) {
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
s.ShortLinks = NewShortLinksService(s)
|
||||
s.V1 = NewV1Service(s)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
@ -66,6 +67,8 @@ type Service struct {
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
|
||||
ShortLinks *ShortLinksService
|
||||
|
||||
V1 *V1Service
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
@ -84,6 +87,15 @@ type ShortLinksService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewV1Service(s *Service) *V1Service {
|
||||
rs := &V1Service{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type V1Service struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
// AnalyticsInfo: Tracking parameters supported by Dynamic Link.
|
||||
type AnalyticsInfo struct {
|
||||
// GooglePlayAnalytics: Google Play Campaign Measurements.
|
||||
@ -246,27 +258,86 @@ func (s *CreateShortDynamicLinkResponse) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DynamicLinkEventStat: Dynamic Link event stat.
|
||||
type DynamicLinkEventStat struct {
|
||||
// Count: The number of times this event occurred.
|
||||
Count int64 `json:"count,omitempty,string"`
|
||||
|
||||
// Event: Link event.
|
||||
//
|
||||
// Possible values:
|
||||
// "DYNAMIC_LINK_EVENT_UNSPECIFIED" - Unspecified type.
|
||||
// "CLICK" - Indicates that an FDL is clicked by users.
|
||||
// "REDIRECT" - Indicates that an FDL redirects users to fallback
|
||||
// link.
|
||||
// "APP_INSTALL" - Indicates that an FDL triggers an app install from
|
||||
// Play store, currently
|
||||
// it's impossible to get stats from App store.
|
||||
// "APP_FIRST_OPEN" - Indicates that the app is opened for the first
|
||||
// time after an install
|
||||
// triggered by FDLs
|
||||
// "APP_RE_OPEN" - Indicates that the app is opened via an FDL for
|
||||
// non-first time.
|
||||
Event string `json:"event,omitempty"`
|
||||
|
||||
// Platform: Requested platform.
|
||||
//
|
||||
// Possible values:
|
||||
// "DYNAMIC_LINK_PLATFORM_UNSPECIFIED" - Unspecified platform.
|
||||
// "ANDROID" - Represents Android platform.
|
||||
// All apps and browsers on Android are classfied in this category.
|
||||
// "IOS" - Represents iOS platform.
|
||||
// All apps and browsers on iOS are classfied in this category.
|
||||
// "DESKTOP" - Represents desktop.
|
||||
// Note: other platforms like Windows, Blackberry, Amazon fall into
|
||||
// this
|
||||
// category.
|
||||
Platform string `json:"platform,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Count") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Count") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *DynamicLinkEventStat) MarshalJSON() ([]byte, error) {
|
||||
type noMethod DynamicLinkEventStat
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DynamicLinkInfo: Information about a Dynamic Link.
|
||||
type DynamicLinkInfo struct {
|
||||
// AnalyticsInfo: Parameters used for tracking. See all tracking
|
||||
// parameters in
|
||||
// the
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/and
|
||||
// roid#create-a-dynamic-link-programmatically).
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/cre
|
||||
// ate-manually).
|
||||
AnalyticsInfo *AnalyticsInfo `json:"analyticsInfo,omitempty"`
|
||||
|
||||
// AndroidInfo: Android related information. See Android related
|
||||
// parameters in
|
||||
// the
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/and
|
||||
// roid#create-a-dynamic-link-programmatically).
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/cre
|
||||
// ate-manually).
|
||||
AndroidInfo *AndroidInfo `json:"androidInfo,omitempty"`
|
||||
|
||||
// DynamicLinkDomain: Dynamic Links domain that the project owns, e.g.
|
||||
// abcd.app.goo.gl
|
||||
// [Learn
|
||||
// more](https://firebase.google.com/docs/dynamic-links/android#set-up-fi
|
||||
// rebase-and-the-dynamic-links-sdk)
|
||||
// more](https://firebase.google.com/docs/dynamic-links/android/receive)
|
||||
//
|
||||
// on how to set up Dynamic Link domain associated with your Firebase
|
||||
// project.
|
||||
//
|
||||
@ -275,8 +346,8 @@ type DynamicLinkInfo struct {
|
||||
|
||||
// IosInfo: iOS related information. See iOS related parameters in
|
||||
// the
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/ios
|
||||
// #create-a-dynamic-link-programmatically).
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/cre
|
||||
// ate-manually).
|
||||
IosInfo *IosInfo `json:"iosInfo,omitempty"`
|
||||
|
||||
// Link: The link your app will open, You can specify any URL your app
|
||||
@ -285,8 +356,8 @@ type DynamicLinkInfo struct {
|
||||
// use
|
||||
// the HTTP or HTTPS scheme. See 'link' parameters in
|
||||
// the
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/and
|
||||
// roid#create-a-dynamic-link-programmatically).
|
||||
// [documentation](https://firebase.google.com/docs/dynamic-links/cre
|
||||
// ate-manually).
|
||||
//
|
||||
// Required.
|
||||
Link string `json:"link,omitempty"`
|
||||
@ -322,6 +393,40 @@ func (s *DynamicLinkInfo) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DynamicLinkStats: Analytics stats of a Dynamic Link for a given
|
||||
// timeframe.
|
||||
type DynamicLinkStats struct {
|
||||
// LinkEventStats: Dynamic Link event stats.
|
||||
LinkEventStats []*DynamicLinkEventStat `json:"linkEventStats,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "LinkEventStats") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "LinkEventStats") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *DynamicLinkStats) MarshalJSON() ([]byte, error) {
|
||||
type noMethod DynamicLinkStats
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// DynamicLinkWarning: Dynamic Links warning messages.
|
||||
type DynamicLinkWarning struct {
|
||||
// WarningCode: The warning code.
|
||||
@ -798,3 +903,157 @@ func (c *ShortLinksCreateCall) Do(opts ...googleapi.CallOption) (*CreateShortDyn
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "firebasedynamiclinks.getLinkStats":
|
||||
|
||||
type V1GetLinkStatsCall struct {
|
||||
s *Service
|
||||
dynamicLink string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// GetLinkStats: Fetches analytics stats of a short Dynamic Link for a
|
||||
// given
|
||||
// duration. Metrics include number of clicks, redirects, installs,
|
||||
// app first opens, and app reopens.
|
||||
func (r *V1Service) GetLinkStats(dynamicLink string) *V1GetLinkStatsCall {
|
||||
c := &V1GetLinkStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.dynamicLink = dynamicLink
|
||||
return c
|
||||
}
|
||||
|
||||
// DurationDays sets the optional parameter "durationDays": The span of
|
||||
// time requested in days.
|
||||
func (c *V1GetLinkStatsCall) DurationDays(durationDays int64) *V1GetLinkStatsCall {
|
||||
c.urlParams_.Set("durationDays", fmt.Sprint(durationDays))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *V1GetLinkStatsCall) Fields(s ...googleapi.Field) *V1GetLinkStatsCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *V1GetLinkStatsCall) IfNoneMatch(entityTag string) *V1GetLinkStatsCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *V1GetLinkStatsCall) Context(ctx context.Context) *V1GetLinkStatsCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *V1GetLinkStatsCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *V1GetLinkStatsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{dynamicLink}/linkStats")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"dynamicLink": c.dynamicLink,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "firebasedynamiclinks.getLinkStats" call.
|
||||
// Exactly one of *DynamicLinkStats or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *DynamicLinkStats.ServerResponse.Header or (if a response was
|
||||
// returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *V1GetLinkStatsCall) Do(opts ...googleapi.CallOption) (*DynamicLinkStats, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &DynamicLinkStats{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Fetches analytics stats of a short Dynamic Link for a given\nduration. Metrics include number of clicks, redirects, installs,\napp first opens, and app reopens.",
|
||||
// "flatPath": "v1/{dynamicLink}/linkStats",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "firebasedynamiclinks.getLinkStats",
|
||||
// "parameterOrder": [
|
||||
// "dynamicLink"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "durationDays": {
|
||||
// "description": "The span of time requested in days.",
|
||||
// "format": "int64",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "dynamicLink": {
|
||||
// "description": "Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1/{dynamicLink}/linkStats",
|
||||
// "response": {
|
||||
// "$ref": "DynamicLinkStats"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/firebase"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user