restic/vendor/google.golang.org/api/youtubereporting/v1/youtubereporting-api.json

598 lines
22 KiB
JSON
Raw Normal View History

2017-08-05 20:17:15 +02:00
{
2017-10-22 10:07:36 +02:00
"batchPath": "batch",
"revision": "20171018",
"documentationLink": "https://developers.google.com/youtube/reporting/v1/reports/",
"id": "youtubereporting:v1",
"title": "YouTube Reporting API",
2017-08-05 20:17:15 +02:00
"discoveryVersion": "v1",
"ownerName": "Google",
2017-08-05 20:17:15 +02:00
"resources": {
"media": {
"methods": {
"download": {
2017-10-22 10:07:36 +02:00
"description": "Method for media download. Download is supported\non the URI `/v1/media/{+name}?alt=media`.",
2017-08-05 20:17:15 +02:00
"supportsMediaDownload": true,
2017-09-13 14:09:48 +02:00
"response": {
"$ref": "Media"
},
2017-09-21 17:48:45 +02:00
"parameterOrder": [
"resourceName"
],
"httpMethod": "GET",
2017-10-22 10:07:36 +02:00
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
],
2017-08-05 20:17:15 +02:00
"parameters": {
"resourceName": {
2017-10-22 10:07:36 +02:00
"type": "string",
"required": true,
"pattern": "^.+$",
2017-08-05 20:17:15 +02:00
"location": "path",
2017-10-22 10:07:36 +02:00
"description": "Name of the media that is being downloaded. See\nReadRequest.resource_name."
2017-08-05 20:17:15 +02:00
}
},
"flatPath": "v1/media/{mediaId}",
2017-09-21 17:48:45 +02:00
"id": "youtubereporting.media.download",
2017-10-22 10:07:36 +02:00
"path": "v1/media/{+resourceName}"
2017-08-05 20:17:15 +02:00
}
}
},
"jobs": {
"methods": {
2017-09-21 17:48:45 +02:00
"delete": {
2017-10-22 10:07:36 +02:00
"description": "Deletes a job.",
"httpMethod": "DELETE",
"parameterOrder": [
"jobId"
],
2017-10-22 10:07:36 +02:00
"response": {
"$ref": "Empty"
},
2017-09-21 17:48:45 +02:00
"parameters": {
"jobId": {
"type": "string",
"required": true,
2017-10-22 10:07:36 +02:00
"location": "path",
"description": "The ID of the job to delete."
},
"onBehalfOfContentOwner": {
2017-10-22 10:07:36 +02:00
"location": "query",
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
2017-10-22 10:07:36 +02:00
"type": "string"
2017-09-21 17:48:45 +02:00
}
},
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
],
"flatPath": "v1/jobs/{jobId}",
"path": "v1/jobs/{jobId}",
2017-10-22 10:07:36 +02:00
"id": "youtubereporting.jobs.delete"
2017-09-21 17:48:45 +02:00
},
"get": {
2017-10-22 10:07:36 +02:00
"flatPath": "v1/jobs/{jobId}",
"path": "v1/jobs/{jobId}",
"id": "youtubereporting.jobs.get",
"description": "Gets a job.",
"httpMethod": "GET",
"parameterOrder": [
"jobId"
],
2017-10-22 10:07:36 +02:00
"response": {
"$ref": "Job"
},
2017-08-05 20:17:15 +02:00
"parameters": {
"jobId": {
"type": "string",
2017-10-22 10:07:36 +02:00
"required": true,
"location": "path",
"description": "The ID of the job to retrieve."
2017-08-05 20:17:15 +02:00
},
"onBehalfOfContentOwner": {
2017-09-13 14:09:48 +02:00
"location": "query",
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
"type": "string"
2017-08-05 20:17:15 +02:00
}
2017-09-21 17:48:45 +02:00
},
2017-10-22 10:07:36 +02:00
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
]
2017-08-05 20:17:15 +02:00
},
"list": {
"response": {
"$ref": "ListJobsResponse"
},
"parameterOrder": [],
2017-10-22 10:07:36 +02:00
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
],
2017-08-05 20:17:15 +02:00
"parameters": {
2017-09-13 14:09:48 +02:00
"includeSystemManaged": {
"location": "query",
"description": "If set to true, also system-managed jobs will be returned; otherwise only\nuser-created jobs will be returned. System-managed jobs can neither be\nmodified nor deleted.",
"type": "boolean"
},
"pageToken": {
"type": "string",
2017-10-22 10:07:36 +02:00
"location": "query",
"description": "A token identifying a page of results the server should return. Typically,\nthis is the value of\nListReportTypesResponse.next_page_token\nreturned in response to the previous call to the `ListJobs` method."
2017-09-13 14:09:48 +02:00
},
2017-08-05 20:17:15 +02:00
"pageSize": {
2017-09-21 17:48:45 +02:00
"type": "integer",
2017-10-22 10:07:36 +02:00
"location": "query",
"format": "int32",
"description": "Requested page size. Server may return fewer jobs than requested.\nIf unspecified, server will pick an appropriate default."
},
"onBehalfOfContentOwner": {
2017-10-22 10:07:36 +02:00
"type": "string",
2017-08-05 20:17:15 +02:00
"location": "query",
2017-10-22 10:07:36 +02:00
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel)."
2017-08-05 20:17:15 +02:00
}
2017-10-22 10:07:36 +02:00
},
"flatPath": "v1/jobs",
"id": "youtubereporting.jobs.list",
"path": "v1/jobs",
"description": "Lists jobs."
2017-08-05 20:17:15 +02:00
},
"create": {
2017-10-22 10:07:36 +02:00
"flatPath": "v1/jobs",
"id": "youtubereporting.jobs.create",
"path": "v1/jobs",
"request": {
"$ref": "Job"
},
"description": "Creates a job and returns it.",
2017-08-05 20:17:15 +02:00
"response": {
"$ref": "Job"
},
2017-09-13 14:09:48 +02:00
"parameterOrder": [],
"httpMethod": "POST",
2017-08-05 20:17:15 +02:00
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
],
2017-10-22 10:07:36 +02:00
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"location": "query",
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel)."
}
}
2017-08-05 20:17:15 +02:00
}
},
"resources": {
"reports": {
"methods": {
"get": {
2017-10-22 10:07:36 +02:00
"response": {
"$ref": "Report"
},
2017-08-05 20:17:15 +02:00
"parameterOrder": [
"jobId",
"reportId"
],
2017-10-22 10:07:36 +02:00
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
],
2017-08-05 20:17:15 +02:00
"parameters": {
"jobId": {
"type": "string",
"required": true,
"location": "path",
"description": "The ID of the job."
},
2017-08-05 20:17:15 +02:00
"onBehalfOfContentOwner": {
2017-10-22 10:07:36 +02:00
"location": "query",
2017-08-05 20:17:15 +02:00
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
2017-10-22 10:07:36 +02:00
"type": "string"
2017-09-13 14:09:48 +02:00
},
"reportId": {
"type": "string",
2017-10-22 10:07:36 +02:00
"required": true,
"location": "path",
"description": "The ID of the report to retrieve."
2017-08-05 20:17:15 +02:00
}
},
"flatPath": "v1/jobs/{jobId}/reports/{reportId}",
2017-10-22 10:07:36 +02:00
"id": "youtubereporting.jobs.reports.get",
"path": "v1/jobs/{jobId}/reports/{reportId}",
2017-10-22 10:07:36 +02:00
"description": "Gets the metadata of a specific report."
2017-08-05 20:17:15 +02:00
},
"list": {
2017-10-22 10:07:36 +02:00
"flatPath": "v1/jobs/{jobId}/reports",
"id": "youtubereporting.jobs.reports.list",
2017-10-22 10:07:36 +02:00
"path": "v1/jobs/{jobId}/reports",
2017-08-05 20:17:15 +02:00
"description": "Lists reports created by a specific job.\nReturns NOT_FOUND if the job does not exist.",
"response": {
"$ref": "ListReportsResponse"
},
2017-10-22 10:07:36 +02:00
"parameterOrder": [
"jobId"
],
"httpMethod": "GET",
2017-08-05 20:17:15 +02:00
"parameters": {
2017-10-22 10:07:36 +02:00
"startTimeBefore": {
"type": "string",
"location": "query",
"format": "google-datetime",
"description": "If set, only reports whose start time is smaller than the specified\ndate/time are returned."
},
2017-09-13 14:09:48 +02:00
"jobId": {
"location": "path",
2017-09-13 14:09:48 +02:00
"description": "The ID of the job.",
2017-08-05 20:17:15 +02:00
"type": "string",
"required": true
2017-08-05 20:17:15 +02:00
},
2017-09-13 14:09:48 +02:00
"createdAfter": {
2017-10-22 10:07:36 +02:00
"location": "query",
2017-09-13 14:09:48 +02:00
"format": "google-datetime",
"description": "If set, only reports created after the specified date/time are returned.",
2017-10-22 10:07:36 +02:00
"type": "string"
2017-08-05 20:17:15 +02:00
},
"startTimeAtOrAfter": {
"type": "string",
2017-10-22 10:07:36 +02:00
"location": "query",
"format": "google-datetime",
"description": "If set, only reports whose start time is greater than or equal the\nspecified date/time are returned."
},
"pageToken": {
"location": "query",
"description": "A token identifying a page of results the server should return. Typically,\nthis is the value of\nListReportsResponse.next_page_token\nreturned in response to the previous call to the `ListReports` method.",
2017-09-13 14:09:48 +02:00
"type": "string"
},
2017-08-05 20:17:15 +02:00
"pageSize": {
"location": "query",
2017-08-05 20:17:15 +02:00
"format": "int32",
"description": "Requested page size. Server may return fewer report types than requested.\nIf unspecified, server will pick an appropriate default.",
"type": "integer"
2017-08-05 20:17:15 +02:00
},
"onBehalfOfContentOwner": {
"type": "string",
2017-09-21 17:48:45 +02:00
"location": "query",
2017-10-22 10:07:36 +02:00
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel)."
2017-08-05 20:17:15 +02:00
}
},
2017-09-21 17:48:45 +02:00
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
2017-10-22 10:07:36 +02:00
]
2017-09-21 17:48:45 +02:00
}
}
}
}
},
"reportTypes": {
"methods": {
"list": {
"response": {
"$ref": "ListReportTypesResponse"
},
"parameterOrder": [],
"httpMethod": "GET",
"parameters": {
2017-10-22 10:07:36 +02:00
"onBehalfOfContentOwner": {
"location": "query",
"description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
"type": "string"
},
2017-09-21 17:48:45 +02:00
"includeSystemManaged": {
"location": "query",
"description": "If set to true, also system-managed report types will be returned;\notherwise only the report types that can be used to create new reporting\njobs will be returned.",
"type": "boolean"
},
"pageToken": {
2017-10-22 10:07:36 +02:00
"type": "string",
"location": "query",
2017-10-22 10:07:36 +02:00
"description": "A token identifying a page of results the server should return. Typically,\nthis is the value of\nListReportTypesResponse.next_page_token\nreturned in response to the previous call to the `ListReportTypes` method."
2017-09-21 17:48:45 +02:00
},
"pageSize": {
"type": "integer",
"location": "query",
"format": "int32",
"description": "Requested page size. Server may return fewer report types than requested.\nIf unspecified, server will pick an appropriate default."
2017-08-05 20:17:15 +02:00
}
2017-09-21 17:48:45 +02:00
},
2017-10-22 10:07:36 +02:00
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
],
"flatPath": "v1/reportTypes",
"id": "youtubereporting.reportTypes.list",
"path": "v1/reportTypes",
"description": "Lists report types."
2017-08-05 20:17:15 +02:00
}
}
}
},
"parameters": {
2017-10-22 10:07:36 +02:00
"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.",
"default": "true",
"type": "boolean"
},
2017-10-22 10:07:36 +02:00
"uploadType": {
"type": "string",
"location": "query",
2017-10-22 10:07:36 +02:00
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
},
2017-10-22 10:07:36 +02:00
"fields": {
"location": "query",
2017-10-22 10:07:36 +02:00
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
2017-08-05 20:17:15 +02:00
"$.xgafv": {
2017-10-22 10:07:36 +02:00
"location": "query",
"enum": [
"1",
"2"
],
2017-08-05 20:17:15 +02:00
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
]
},
2017-10-22 10:07:36 +02:00
"callback": {
"type": "string",
2017-10-22 10:07:36 +02:00
"location": "query",
"description": "JSONP"
},
"alt": {
2017-08-05 20:17:15 +02:00
"location": "query",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
2017-10-22 10:07:36 +02:00
],
"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"
2017-09-21 17:48:45 +02:00
]
2017-08-05 20:17:15 +02:00
},
2017-10-22 10:07:36 +02:00
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
2017-08-05 20:17:15 +02:00
"key": {
2017-09-13 14:09:48 +02:00
"type": "string",
"location": "query",
"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."
2017-08-05 20:17:15 +02:00
},
"quotaUser": {
"type": "string",
2017-10-22 10:07:36 +02:00
"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."
2017-08-05 20:17:15 +02:00
},
"pp": {
2017-09-21 17:48:45 +02:00
"location": "query",
2017-08-05 20:17:15 +02:00
"description": "Pretty-print response.",
"default": "true",
2017-09-21 17:48:45 +02:00
"type": "boolean"
2017-09-13 14:09:48 +02:00
},
"bearer_token": {
2017-09-21 17:48:45 +02:00
"location": "query",
2017-10-22 10:07:36 +02:00
"description": "OAuth bearer token.",
"type": "string"
2017-09-13 14:09:48 +02:00
},
2017-10-22 10:07:36 +02:00
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
2017-08-05 20:17:15 +02:00
}
},
"schemas": {
2017-10-22 10:07:36 +02:00
"Job": {
"type": "object",
"properties": {
"createTime": {
"format": "google-datetime",
"description": "The creation date/time of the job.",
"type": "string"
},
"reportTypeId": {
"type": "string",
"description": "The type of reports this job creates. Corresponds to the ID of a\nReportType."
},
"expireTime": {
"type": "string",
"format": "google-datetime",
"description": "The date/time when this job will expire/expired. After a job expired, no\nnew reports are generated."
},
"name": {
"description": "The name of the job (max. 100 characters).",
"type": "string"
},
"id": {
"type": "string",
"description": "The server-generated ID of the job (max. 40 characters)."
},
"systemManaged": {
"type": "boolean",
"description": "True if this a system-managed job that cannot be modified by the user;\notherwise false."
}
},
"id": "Job",
"description": "A job creating reports of a specific type."
},
"ListReportsResponse": {
"type": "object",
"properties": {
"nextPageToken": {
"description": "A token to retrieve next page of results.\nPass this value in the\nListReportsRequest.page_token\nfield in the subsequent call to `ListReports` method to retrieve the next\npage of results.",
"type": "string"
},
"reports": {
"description": "The list of report types.",
"items": {
"$ref": "Report"
},
"type": "array"
}
},
"id": "ListReportsResponse",
"description": "Response message for ReportingService.ListReports."
},
"Media": {
"description": "Media resource.",
2017-08-05 20:17:15 +02:00
"type": "object",
"properties": {
"resourceName": {
"description": "Name of the media resource.",
"type": "string"
2017-09-21 17:48:45 +02:00
}
},
"id": "Media"
2017-09-21 17:48:45 +02:00
},
"ReportType": {
2017-09-21 17:48:45 +02:00
"type": "object",
"properties": {
2017-08-05 20:17:15 +02:00
"systemManaged": {
2017-10-22 10:07:36 +02:00
"type": "boolean",
"description": "True if this a system-managed report type; otherwise false. Reporting jobs\nfor system-managed report types are created automatically and can thus not\nbe used in the `CreateJob` method."
2017-09-13 14:09:48 +02:00
},
"id": {
"description": "The ID of the report type (max. 100 characters).",
2017-09-21 17:48:45 +02:00
"type": "string"
},
"deprecateTime": {
2017-09-21 17:48:45 +02:00
"format": "google-datetime",
"description": "The date/time when this report type was/will be deprecated.",
"type": "string"
},
"name": {
2017-10-22 10:07:36 +02:00
"type": "string",
"description": "The name of the report type (max. 100 characters)."
2017-08-05 20:17:15 +02:00
}
},
2017-10-22 10:07:36 +02:00
"id": "ReportType",
"description": "A report type."
2017-08-05 20:17:15 +02:00
},
"ListReportTypesResponse": {
"description": "Response message for ReportingService.ListReportTypes.",
2017-08-05 20:17:15 +02:00
"type": "object",
"properties": {
2017-10-22 10:07:36 +02:00
"nextPageToken": {
"type": "string",
"description": "A token to retrieve next page of results.\nPass this value in the\nListReportTypesRequest.page_token\nfield in the subsequent call to `ListReportTypes` method to retrieve the next\npage of results."
},
"reportTypes": {
2017-08-05 20:17:15 +02:00
"description": "The list of report types.",
"items": {
"$ref": "ReportType"
2017-08-05 20:17:15 +02:00
},
"type": "array"
2017-09-21 17:48:45 +02:00
}
},
"id": "ListReportTypesResponse"
2017-09-21 17:48:45 +02:00
},
"Report": {
"description": "A report's metadata including the URL from which the report itself can be\ndownloaded.",
2017-09-21 17:48:45 +02:00
"type": "object",
"properties": {
"createTime": {
"format": "google-datetime",
"description": "The date/time when this report was created.",
2017-08-05 20:17:15 +02:00
"type": "string"
},
"jobId": {
"description": "The ID of the job that created this report.",
"type": "string"
2017-08-05 20:17:15 +02:00
},
2017-09-21 17:48:45 +02:00
"id": {
"description": "The server-generated ID of the report.",
2017-08-05 20:17:15 +02:00
"type": "string"
},
"jobExpireTime": {
2017-10-22 10:07:36 +02:00
"type": "string",
"format": "google-datetime",
2017-10-22 10:07:36 +02:00
"description": "The date/time when the job this report belongs to will expire/expired."
},
"endTime": {
2017-10-22 10:07:36 +02:00
"type": "string",
"format": "google-datetime",
2017-10-22 10:07:36 +02:00
"description": "The end of the time period that the report instance covers. The value is\nexclusive."
},
"downloadUrl": {
2017-10-22 10:07:36 +02:00
"description": "The URL from which the report can be downloaded (max. 1000 characters).",
"type": "string"
},
"startTime": {
2017-08-05 20:17:15 +02:00
"format": "google-datetime",
"description": "The start of the time period that the report instance covers. The value is\ninclusive.",
"type": "string"
2017-08-05 20:17:15 +02:00
}
},
"id": "Report"
2017-08-05 20:17:15 +02:00
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
2017-08-05 20:17:15 +02:00
"type": "object",
"properties": {},
"id": "Empty"
},
"ListJobsResponse": {
"description": "Response message for ReportingService.ListJobs.",
2017-08-05 20:17:15 +02:00
"type": "object",
"properties": {
2017-10-22 10:07:36 +02:00
"jobs": {
"items": {
2017-10-22 10:07:36 +02:00
"$ref": "Job"
},
2017-10-22 10:07:36 +02:00
"type": "array",
"description": "The list of jobs."
2017-08-05 20:17:15 +02:00
},
"nextPageToken": {
2017-10-22 10:07:36 +02:00
"description": "A token to retrieve next page of results.\nPass this value in the\nListJobsRequest.page_token\nfield in the subsequent call to `ListJobs` method to retrieve the next\npage of results.",
"type": "string"
2017-09-13 14:09:48 +02:00
}
},
2017-10-22 10:07:36 +02:00
"id": "ListJobsResponse"
2017-08-05 20:17:15 +02:00
}
},
2017-10-22 10:07:36 +02:00
"protocol": "rest",
2017-08-05 20:17:15 +02:00
"icons": {
2017-10-22 10:07:36 +02:00
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
2017-08-05 20:17:15 +02:00
},
"version": "v1",
"baseUrl": "https://youtubereporting.googleapis.com/",
"canonicalName": "YouTube Reporting",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly": {
"description": "View monetary and non-monetary YouTube Analytics reports for your YouTube content"
2017-10-22 10:07:36 +02:00
},
"https://www.googleapis.com/auth/yt-analytics.readonly": {
"description": "View YouTube Analytics reports for your YouTube content"
2017-08-05 20:17:15 +02:00
}
}
}
},
"kind": "discovery#restDescription",
2017-10-22 10:07:36 +02:00
"description": "Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.",
"servicePath": "",
2017-09-21 17:48:45 +02:00
"rootUrl": "https://youtubereporting.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
2017-10-22 10:07:36 +02:00
"name": "youtubereporting"
2017-08-05 20:17:15 +02:00
}