Update to latest versions of API declarations

This commit is contained in:
Sebastian Thiel
2018-10-13 13:49:14 +02:00
parent 5a67475b54
commit 255c7f5ad5
1508 changed files with 819225 additions and 838421 deletions

View File

@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/QsthGWG9JYScjn9llsqMMChWCIQ\"",
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/q67WG4LI5qSVIZ_mDoAAOoVVFQ8\"",
"discoveryVersion": "v1",
"id": "youtube:v3",
"name": "youtube",
"canonicalName": "YouTube",
"version": "v3",
"revision": "20171129",
"revision": "20180511",
"title": "YouTube Data API",
"description": "Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.",
"ownerDomain": "google.com",
@@ -58,12 +58,12 @@
},
"quotaUser": {
"type": "string",
"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. Overrides userIp if both are provided.",
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query"
},
"userIp": {
"type": "string",
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"description": "Deprecated. Please use quotaUser instead.",
"location": "query"
}
},
@@ -1370,7 +1370,7 @@
"ChannelSnippet": {
"id": "ChannelSnippet",
"type": "object",
"description": "Basic details about a channel, including title, description and thumbnails. Next available id: 15.",
"description": "Basic details about a channel, including title, description and thumbnails.",
"properties": {
"country": {
"type": "string",
@@ -1469,9 +1469,11 @@
"enum": [
"private",
"public",
"unlisted"
"unlisted",
"unlisted_new"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -2556,6 +2558,7 @@
"description": "The video's rating in Israel.",
"enum": [
"ilfilm12",
"ilfilm14",
"ilfilm16",
"ilfilm18",
"ilfilmAa",
@@ -2566,6 +2569,7 @@
"",
"",
"",
"",
""
]
},
@@ -3301,106 +3305,6 @@
}
}
},
"FanFundingEvent": {
"id": "FanFundingEvent",
"type": "object",
"description": "A fanFundingEvent resource represents a fan funding event on a YouTube channel. Fan funding events occur when a user gives one-time monetary support to the channel owner.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube assigns to uniquely identify the fan funding event."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#fanFundingEvent\".",
"default": "youtube#fanFundingEvent"
},
"snippet": {
"$ref": "FanFundingEventSnippet",
"description": "The snippet object contains basic details about the fan funding event."
}
}
},
"FanFundingEventListResponse": {
"id": "FanFundingEventListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of fan funding events that match the request criteria.",
"items": {
"$ref": "FanFundingEvent"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#fanFundingEventListResponse\".",
"default": "youtube#fanFundingEventListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"FanFundingEventSnippet": {
"id": "FanFundingEventSnippet",
"type": "object",
"properties": {
"amountMicros": {
"type": "string",
"description": "The amount of funding in micros of fund_currency. e.g., 1 is represented",
"format": "uint64"
},
"channelId": {
"type": "string",
"description": "Channel id where the funding event occurred."
},
"commentText": {
"type": "string",
"description": "The text contents of the comment left by the user."
},
"createdAt": {
"type": "string",
"description": "The date and time when the funding occurred. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"currency": {
"type": "string",
"description": "The currency in which the fund was made. ISO 4217."
},
"displayString": {
"type": "string",
"description": "A rendered string that displays the fund amount and currency (e.g., \"$1.00\"). The string is rendered for the given language."
},
"supporterDetails": {
"$ref": "ChannelProfileDetails",
"description": "Details about the supporter. Only filled if the event was made public by the user."
}
}
},
"GeoPoint": {
"id": "GeoPoint",
"type": "object",
@@ -4037,6 +3941,19 @@
"youtube.liveBroadcasts.update"
]
}
},
"stereoLayout": {
"type": "string",
"enum": [
"left_right",
"mono",
"top_bottom"
],
"enumDescriptions": [
"",
"",
""
]
}
}
},
@@ -4221,9 +4138,11 @@
"enum": [
"private",
"public",
"unlisted"
"unlisted",
"unlisted_new"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -5140,6 +5059,30 @@
}
}
},
"Nonprofit": {
"id": "Nonprofit",
"type": "object",
"description": "Nonprofit information.",
"properties": {
"nonprofitId": {
"$ref": "NonprofitId",
"description": "Id of the nonprofit."
},
"nonprofitLegalName": {
"type": "string",
"description": "Legal name of the nonprofit."
}
}
},
"NonprofitId": {
"id": "NonprofitId",
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
},
"PageInfo": {
"id": "PageInfo",
"type": "object",
@@ -5383,9 +5326,11 @@
"enum": [
"private",
"public",
"unlisted"
"unlisted",
"unlisted_new"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -5525,9 +5470,11 @@
"enum": [
"private",
"public",
"unlisted"
"unlisted",
"unlisted_new"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -5755,10 +5702,6 @@
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube assigns to uniquely identify the sponsor."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#sponsor\".",
@@ -5818,6 +5761,11 @@
"type": "string",
"description": "The id of the channel being sponsored."
},
"cumulativeDurationMonths": {
"type": "integer",
"description": "The cumulative time a user has been a sponsor in months.",
"format": "int32"
},
"sponsorDetails": {
"$ref": "ChannelProfileDetails",
"description": "Details about the sponsor."
@@ -6092,11 +6040,19 @@
"type": "string",
"description": "A rendered string that displays the purchase amount and currency (e.g., \"$1.00\"). The string is rendered for the given language."
},
"isSuperChatForGood": {
"type": "boolean",
"description": "True if this event is a Super Chat for Good purchase."
},
"messageType": {
"type": "integer",
"description": "The tier for the paid message, which is based on the amount of money spent to purchase the message.",
"format": "uint32"
},
"nonprofit": {
"$ref": "Nonprofit",
"description": "If this event is a Super Chat for Good purchase, this field will contain information about the charity the purchase is donated to."
},
"supporterDetails": {
"$ref": "ChannelProfileDetails",
"description": "Details about the supporter."
@@ -6191,19 +6147,6 @@
"type": "object",
"description": "A video resource represents a YouTube video.",
"properties": {
"accessToken": {
"type": "string",
"description": "The access token to uniquely identify a revocable unlisted video.",
"annotations": {
"required": [
"youtube.videos.getRating",
"youtube.videos.list",
"youtube.videos.rate",
"youtube.videos.reportAbuse",
"youtube.videos.update"
]
}
},
"ageGating": {
"$ref": "VideoAgeGating",
"description": "Age restriction details related to a video. This data can only be retrieved by the video owner."
@@ -6256,7 +6199,7 @@
},
"processingDetails": {
"$ref": "VideoProcessingDetails",
"description": "The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.\n\nThe processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner."
"description": "The processingDetails object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.\n\nThe processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner."
},
"projectDetails": {
"$ref": "VideoProjectDetails",
@@ -7209,9 +7152,11 @@
"enum": [
"private",
"public",
"unlisted"
"unlisted",
"unlisted_new"
],
"enumDescriptions": [
"",
"",
"",
""
@@ -8503,54 +8448,6 @@
}
}
},
"fanFundingEvents": {
"methods": {
"list": {
"id": "youtube.fanFundingEvents.list",
"path": "fanFundingEvents",
"httpMethod": "GET",
"description": "Lists fan funding events for a channel.",
"parameters": {
"hl": {
"type": "string",
"description": "The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by the i18nLanguages.list method.\n\nIf localized resource details are available in that language, the resource's snippet.localized object will contain the localized values. However, if localized details are not available, the snippet.localized object will contain resource details in the resource's default language.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies the fanFundingEvent resource parts that the API response will include. Supported values are id and snippet.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "FanFundingEventListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtube.readonly"
]
}
}
},
"guideCategories": {
"methods": {
"list": {