Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1224)

Unified Diff: discovery/googleapis/youtubereporting__v1.json

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/youtube__v3.json ('k') | discovery/googleapis_beta/adexchangebuyer2__v2beta1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/youtubereporting__v1.json
diff --git a/discovery/googleapis/youtubereporting__v1.json b/discovery/googleapis/youtubereporting__v1.json
index 4729d0a983b14d8364f3f815f96552e977632084..7e6c102c90f0803485d96bb68ff2519cb46c61da 100644
--- a/discovery/googleapis/youtubereporting__v1.json
+++ b/discovery/googleapis/youtubereporting__v1.json
@@ -28,6 +28,45 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
+ "upload_protocol": {
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ },
+ "prettyPrint": {
+ "default": "true",
+ "description": "Returns response with indentations and line breaks.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ },
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
+ "location": "query",
+ "type": "string"
+ },
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
+ },
+ "$.xgafv": {
+ "description": "V1 error format.",
+ "enum": [
+ "1",
+ "2"
+ ],
+ "enumDescriptions": [
+ "v1 error format",
+ "v2 error format"
+ ],
+ "location": "query",
+ "type": "string"
+ },
"alt": {
"default": "json",
"description": "Data format for response.",
@@ -44,13 +83,13 @@
"location": "query",
"type": "string"
},
- "access_token": {
- "description": "OAuth access token.",
+ "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.",
"location": "query",
"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.",
+ "access_token": {
+ "description": "OAuth access token.",
"location": "query",
"type": "string"
},
@@ -74,104 +113,42 @@
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
- },
- "upload_protocol": {
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "location": "query",
- "type": "string"
- },
- "prettyPrint": {
- "default": "true",
- "description": "Returns response with indentations and line breaks.",
- "location": "query",
- "type": "boolean"
- },
- "uploadType": {
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
- "location": "query",
- "type": "string"
- },
- "fields": {
- "description": "Selector specifying which fields to include in a partial response.",
- "location": "query",
- "type": "string"
- },
- "callback": {
- "description": "JSONP",
- "location": "query",
- "type": "string"
- },
- "$.xgafv": {
- "description": "V1 error format.",
- "enum": [
- "1",
- "2"
- ],
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ],
- "location": "query",
- "type": "string"
}
},
"protocol": "rest",
"resources": {
- "jobs": {
+ "media": {
"methods": {
- "create": {
- "description": "Creates a job and returns it.",
- "httpMethod": "POST",
- "id": "youtubereporting.jobs.create",
- "parameterOrder": [],
- "parameters": {
- "onBehalfOfContentOwner": {
- "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).",
- "location": "query",
- "type": "string"
- }
- },
- "path": "v1/jobs",
- "request": {
- "$ref": "Job"
- },
- "response": {
- "$ref": "Job"
- },
- "scopes": [
- "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
- "https://www.googleapis.com/auth/yt-analytics.readonly"
- ]
- },
- "delete": {
- "description": "Deletes a job.",
- "httpMethod": "DELETE",
- "id": "youtubereporting.jobs.delete",
+ "download": {
+ "description": "Method for media download. Download is supported\non the URI `/v1/media/{+name}?alt=media`.",
+ "httpMethod": "GET",
+ "id": "youtubereporting.media.download",
"parameterOrder": [
- "jobId"
+ "resourceName"
],
"parameters": {
- "onBehalfOfContentOwner": {
- "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).",
- "location": "query",
- "type": "string"
- },
- "jobId": {
- "description": "The ID of the job to delete.",
+ "resourceName": {
+ "description": "Name of the media that is being downloaded. See\nReadRequest.resource_name.",
"location": "path",
+ "pattern": "^.+$",
"required": true,
"type": "string"
}
},
- "path": "v1/jobs/{jobId}",
+ "path": "v1/media/{+resourceName}",
"response": {
- "$ref": "Empty"
+ "$ref": "Media"
},
"scopes": [
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
- ]
- },
+ ],
+ "supportsMediaDownload": true
+ }
+ }
+ },
+ "jobs": {
+ "methods": {
"get": {
"description": "Gets a job.",
"httpMethod": "GET",
@@ -180,16 +157,16 @@
"jobId"
],
"parameters": {
- "onBehalfOfContentOwner": {
- "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).",
- "location": "query",
- "type": "string"
- },
"jobId": {
"description": "The ID of the job to retrieve.",
"location": "path",
"required": true,
"type": "string"
+ },
+ "onBehalfOfContentOwner": {
+ "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).",
+ "location": "query",
+ "type": "string"
}
},
"path": "v1/jobs/{jobId}",
@@ -237,6 +214,59 @@
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"
]
+ },
+ "create": {
+ "description": "Creates a job and returns it.",
+ "httpMethod": "POST",
+ "id": "youtubereporting.jobs.create",
+ "parameterOrder": [],
+ "parameters": {
+ "onBehalfOfContentOwner": {
+ "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).",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/jobs",
+ "request": {
+ "$ref": "Job"
+ },
+ "response": {
+ "$ref": "Job"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
+ "https://www.googleapis.com/auth/yt-analytics.readonly"
+ ]
+ },
+ "delete": {
+ "description": "Deletes a job.",
+ "httpMethod": "DELETE",
+ "id": "youtubereporting.jobs.delete",
+ "parameterOrder": [
+ "jobId"
+ ],
+ "parameters": {
+ "jobId": {
+ "description": "The ID of the job to delete.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "onBehalfOfContentOwner": {
+ "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).",
+ "location": "query",
+ "type": "string"
+ }
+ },
+ "path": "v1/jobs/{jobId}",
+ "response": {
+ "$ref": "Empty"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
+ "https://www.googleapis.com/auth/yt-analytics.readonly"
+ ]
}
},
"resources": {
@@ -251,6 +281,12 @@
"reportId"
],
"parameters": {
+ "reportId": {
+ "description": "The ID of the report to retrieve.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
"jobId": {
"description": "The ID of the job.",
"location": "path",
@@ -261,12 +297,6 @@
"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).",
"location": "query",
"type": "string"
- },
- "reportId": {
- "description": "The ID of the report to retrieve.",
- "location": "path",
- "required": true,
- "type": "string"
}
},
"path": "v1/jobs/{jobId}/reports/{reportId}",
@@ -286,14 +316,26 @@
"jobId"
],
"parameters": {
- "createdAfter": {
- "description": "If set, only reports created after the specified date/time are returned.",
+ "onBehalfOfContentOwner": {
+ "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).",
+ "location": "query",
+ "type": "string"
+ },
+ "startTimeBefore": {
+ "description": "If set, only reports whose start time is smaller than the specified\ndate/time are returned.",
"format": "google-datetime",
"location": "query",
"type": "string"
},
- "pageToken": {
- "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.",
+ "jobId": {
+ "description": "The ID of the job.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "createdAfter": {
+ "description": "If set, only reports created after the specified date/time are returned.",
+ "format": "google-datetime",
"location": "query",
"type": "string"
},
@@ -303,28 +345,16 @@
"location": "query",
"type": "string"
},
+ "pageToken": {
+ "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.",
+ "location": "query",
+ "type": "string"
+ },
"pageSize": {
"description": "Requested page size. Server may return fewer report types than requested.\nIf unspecified, server will pick an appropriate default.",
"format": "int32",
"location": "query",
"type": "integer"
- },
- "onBehalfOfContentOwner": {
- "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).",
- "location": "query",
- "type": "string"
- },
- "startTimeBefore": {
- "description": "If set, only reports whose start time is smaller than the specified\ndate/time are returned.",
- "format": "google-datetime",
- "location": "query",
- "type": "string"
- },
- "jobId": {
- "description": "The ID of the job.",
- "location": "path",
- "required": true,
- "type": "string"
}
},
"path": "v1/jobs/{jobId}/reports",
@@ -380,75 +410,15 @@
]
}
}
- },
- "media": {
- "methods": {
- "download": {
- "description": "Method for media download. Download is supported\non the URI `/v1/media/{+name}?alt=media`.",
- "httpMethod": "GET",
- "id": "youtubereporting.media.download",
- "parameterOrder": [
- "resourceName"
- ],
- "parameters": {
- "resourceName": {
- "description": "Name of the media that is being downloaded. See\nReadRequest.resource_name.",
- "location": "path",
- "pattern": "^.+$",
- "required": true,
- "type": "string"
- }
- },
- "path": "v1/media/{+resourceName}",
- "response": {
- "$ref": "Media"
- },
- "scopes": [
- "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
- "https://www.googleapis.com/auth/yt-analytics.readonly"
- ],
- "supportsMediaDownload": true
- }
- }
}
},
- "revision": "20170816",
+ "revision": "20170905",
"rootUrl": "https://youtubereporting.googleapis.com/",
"schemas": {
- "ListJobsResponse": {
- "description": "Response message for ReportingService.ListJobs.",
- "id": "ListJobsResponse",
- "properties": {
- "nextPageToken": {
- "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"
- },
- "jobs": {
- "description": "The list of jobs.",
- "items": {
- "$ref": "Job"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
"Job": {
"description": "A job creating reports of a specific type.",
"id": "Job",
"properties": {
- "name": {
- "description": "The name of the job (max. 100 characters).",
- "type": "string"
- },
- "id": {
- "description": "The server-generated ID of the job (max. 40 characters).",
- "type": "string"
- },
- "systemManaged": {
- "description": "True if this a system-managed job that cannot be modified by the user;\notherwise false.",
- "type": "boolean"
- },
"createTime": {
"description": "The creation date/time of the job.",
"format": "google-datetime",
@@ -462,6 +432,18 @@
"description": "The date/time when this job will expire/expired. After a job expired, no\nnew reports are generated.",
"format": "google-datetime",
"type": "string"
+ },
+ "name": {
+ "description": "The name of the job (max. 100 characters).",
+ "type": "string"
+ },
+ "systemManaged": {
+ "description": "True if this a system-managed job that cannot be modified by the user;\notherwise false.",
+ "type": "boolean"
+ },
+ "id": {
+ "description": "The server-generated ID of the job (max. 40 characters).",
+ "type": "string"
}
},
"type": "object"
@@ -495,88 +477,106 @@
},
"type": "object"
},
- "ReportType": {
- "description": "A report type.",
- "id": "ReportType",
+ "Report": {
+ "description": "A report's metadata including the URL from which the report itself can be\ndownloaded.",
+ "id": "Report",
"properties": {
- "systemManaged": {
- "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.",
- "type": "boolean"
+ "jobId": {
+ "description": "The ID of the job that created this report.",
+ "type": "string"
},
"id": {
- "description": "The ID of the report type (max. 100 characters).",
+ "description": "The server-generated ID of the report.",
"type": "string"
},
- "deprecateTime": {
- "description": "The date/time when this report type was/will be deprecated.",
+ "jobExpireTime": {
+ "description": "The date/time when the job this report belongs to will expire/expired.",
"format": "google-datetime",
"type": "string"
},
- "name": {
- "description": "The name of the report type (max. 100 characters).",
+ "endTime": {
+ "description": "The end of the time period that the report instance covers. The value is\nexclusive.",
+ "format": "google-datetime",
+ "type": "string"
+ },
+ "downloadUrl": {
+ "description": "The URL from which the report can be downloaded (max. 1000 characters).",
+ "type": "string"
+ },
+ "startTime": {
+ "description": "The start of the time period that the report instance covers. The value is\ninclusive.",
+ "format": "google-datetime",
+ "type": "string"
+ },
+ "createTime": {
+ "description": "The date/time when this report was created.",
+ "format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
+ "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 `{}`.",
+ "id": "Empty",
+ "properties": {},
+ "type": "object"
+ },
"ListReportTypesResponse": {
"description": "Response message for ReportingService.ListReportTypes.",
"id": "ListReportTypesResponse",
"properties": {
+ "nextPageToken": {
+ "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.",
+ "type": "string"
+ },
"reportTypes": {
"description": "The list of report types.",
"items": {
"$ref": "ReportType"
},
"type": "array"
- },
- "nextPageToken": {
- "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.",
- "type": "string"
}
},
"type": "object"
},
- "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 `{}`.",
- "id": "Empty",
- "properties": {},
- "type": "object"
- },
- "Report": {
- "description": "A report's metadata including the URL from which the report itself can be\ndownloaded.",
- "id": "Report",
+ "ReportType": {
+ "description": "A report type.",
+ "id": "ReportType",
"properties": {
- "id": {
- "description": "The server-generated ID of the report.",
- "type": "string"
- },
- "endTime": {
- "description": "The end of the time period that the report instance covers. The value is\nexclusive.",
- "format": "google-datetime",
- "type": "string"
- },
- "jobExpireTime": {
- "description": "The date/time when the job this report belongs to will expire/expired.",
+ "deprecateTime": {
+ "description": "The date/time when this report type was/will be deprecated.",
"format": "google-datetime",
"type": "string"
},
- "downloadUrl": {
- "description": "The URL from which the report can be downloaded (max. 1000 characters).",
+ "name": {
+ "description": "The name of the report type (max. 100 characters).",
"type": "string"
},
- "startTime": {
- "description": "The start of the time period that the report instance covers. The value is\ninclusive.",
- "format": "google-datetime",
- "type": "string"
+ "systemManaged": {
+ "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.",
+ "type": "boolean"
},
- "createTime": {
- "description": "The date/time when this report was created.",
- "format": "google-datetime",
+ "id": {
+ "description": "The ID of the report type (max. 100 characters).",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ListJobsResponse": {
+ "description": "Response message for ReportingService.ListJobs.",
+ "id": "ListJobsResponse",
+ "properties": {
+ "jobs": {
+ "description": "The list of jobs.",
+ "items": {
+ "$ref": "Job"
+ },
+ "type": "array"
},
- "jobId": {
- "description": "The ID of the job that created this report.",
+ "nextPageToken": {
+ "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"
}
},
« no previous file with comments | « discovery/googleapis/youtube__v3.json ('k') | discovery/googleapis_beta/adexchangebuyer2__v2beta1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698