|
1145 | 1145 | "https://www.googleapis.com/auth/drive.file" |
1146 | 1146 | ] |
1147 | 1147 | }, |
| 1148 | + "download": { |
| 1149 | + "description": "Downloads content of a file. Operations are valid for 24 hours from the time of creation.", |
| 1150 | + "flatPath": "files/{fileId}/download", |
| 1151 | + "httpMethod": "POST", |
| 1152 | + "id": "drive.files.download", |
| 1153 | + "parameterOrder": [ |
| 1154 | + "fileId" |
| 1155 | + ], |
| 1156 | + "parameters": { |
| 1157 | + "fileId": { |
| 1158 | + "description": "Required. The ID of the file to download.", |
| 1159 | + "location": "path", |
| 1160 | + "required": true, |
| 1161 | + "type": "string" |
| 1162 | + }, |
| 1163 | + "mimeType": { |
| 1164 | + "description": "Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. See [Export MIME types for Google Workspace documents](/drive/api/guides/ref-export-formats) for the list of supported MIME types. If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.", |
| 1165 | + "location": "query", |
| 1166 | + "type": "string" |
| 1167 | + }, |
| 1168 | + "revisionId": { |
| 1169 | + "description": "Optional. The revision ID of the file to download. This field can only be set when downloading blob files, Google Docs, and Google Sheets. Returns `INVALID_ARGUMENT` if downloading a specific revision on the file is unsupported.", |
| 1170 | + "location": "query", |
| 1171 | + "type": "string" |
| 1172 | + } |
| 1173 | + }, |
| 1174 | + "path": "files/{fileId}/download", |
| 1175 | + "response": { |
| 1176 | + "$ref": "Operation" |
| 1177 | + }, |
| 1178 | + "scopes": [ |
| 1179 | + "https://www.googleapis.com/auth/drive", |
| 1180 | + "https://www.googleapis.com/auth/drive.file", |
| 1181 | + "https://www.googleapis.com/auth/drive.readonly" |
| 1182 | + ] |
| 1183 | + }, |
1148 | 1184 | "emptyTrash": { |
1149 | 1185 | "description": "Permanently deletes all of the user's trashed files.", |
1150 | 1186 | "flatPath": "files/trash", |
|
1668 | 1704 | } |
1669 | 1705 | } |
1670 | 1706 | }, |
| 1707 | + "operation": { |
| 1708 | + "methods": { |
| 1709 | + "cancel": { |
| 1710 | + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", |
| 1711 | + "flatPath": "operation/{name}:cancel", |
| 1712 | + "httpMethod": "POST", |
| 1713 | + "id": "drive.operation.cancel", |
| 1714 | + "parameterOrder": [ |
| 1715 | + "name" |
| 1716 | + ], |
| 1717 | + "parameters": { |
| 1718 | + "name": { |
| 1719 | + "description": "The name of the operation resource to be cancelled.", |
| 1720 | + "location": "path", |
| 1721 | + "required": true, |
| 1722 | + "type": "string" |
| 1723 | + } |
| 1724 | + }, |
| 1725 | + "path": "operation/{name}:cancel" |
| 1726 | + }, |
| 1727 | + "delete": { |
| 1728 | + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", |
| 1729 | + "flatPath": "operation/{name}", |
| 1730 | + "httpMethod": "DELETE", |
| 1731 | + "id": "drive.operation.delete", |
| 1732 | + "parameterOrder": [ |
| 1733 | + "name" |
| 1734 | + ], |
| 1735 | + "parameters": { |
| 1736 | + "name": { |
| 1737 | + "description": "The name of the operation resource to be deleted.", |
| 1738 | + "location": "path", |
| 1739 | + "required": true, |
| 1740 | + "type": "string" |
| 1741 | + } |
| 1742 | + }, |
| 1743 | + "path": "operation/{name}" |
| 1744 | + } |
| 1745 | + } |
| 1746 | + }, |
| 1747 | + "operations": { |
| 1748 | + "methods": { |
| 1749 | + "get": { |
| 1750 | + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", |
| 1751 | + "flatPath": "operations/{name}", |
| 1752 | + "httpMethod": "GET", |
| 1753 | + "id": "drive.operations.get", |
| 1754 | + "parameterOrder": [ |
| 1755 | + "name" |
| 1756 | + ], |
| 1757 | + "parameters": { |
| 1758 | + "name": { |
| 1759 | + "description": "The name of the operation resource.", |
| 1760 | + "location": "path", |
| 1761 | + "required": true, |
| 1762 | + "type": "string" |
| 1763 | + } |
| 1764 | + }, |
| 1765 | + "path": "operations/{name}", |
| 1766 | + "response": { |
| 1767 | + "$ref": "Operation" |
| 1768 | + }, |
| 1769 | + "scopes": [ |
| 1770 | + "https://www.googleapis.com/auth/drive", |
| 1771 | + "https://www.googleapis.com/auth/drive.file", |
| 1772 | + "https://www.googleapis.com/auth/drive.meet.readonly", |
| 1773 | + "https://www.googleapis.com/auth/drive.readonly" |
| 1774 | + ] |
| 1775 | + }, |
| 1776 | + "list": { |
| 1777 | + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", |
| 1778 | + "flatPath": "operations", |
| 1779 | + "httpMethod": "GET", |
| 1780 | + "id": "drive.operations.list", |
| 1781 | + "parameterOrder": [], |
| 1782 | + "parameters": { |
| 1783 | + "filter": { |
| 1784 | + "description": "The standard list filter.", |
| 1785 | + "location": "query", |
| 1786 | + "type": "string" |
| 1787 | + }, |
| 1788 | + "name": { |
| 1789 | + "description": "The name of the operation's parent resource.", |
| 1790 | + "location": "query", |
| 1791 | + "type": "string" |
| 1792 | + }, |
| 1793 | + "pageSize": { |
| 1794 | + "description": "The standard list page size.", |
| 1795 | + "format": "int32", |
| 1796 | + "location": "query", |
| 1797 | + "type": "integer" |
| 1798 | + }, |
| 1799 | + "pageToken": { |
| 1800 | + "description": "The standard list page token.", |
| 1801 | + "location": "query", |
| 1802 | + "type": "string" |
| 1803 | + } |
| 1804 | + }, |
| 1805 | + "path": "operations", |
| 1806 | + "response": { |
| 1807 | + "$ref": "ListOperationsResponse" |
| 1808 | + } |
| 1809 | + } |
| 1810 | + } |
| 1811 | + }, |
1671 | 1812 | "permissions": { |
1672 | 1813 | "methods": { |
1673 | 1814 | "create": { |
|
2523 | 2664 | } |
2524 | 2665 | } |
2525 | 2666 | }, |
2526 | | - "revision": "20240809", |
| 2667 | + "revision": "20240903", |
2527 | 2668 | "rootUrl": "https://www.googleapis.com/", |
2528 | 2669 | "schemas": { |
2529 | 2670 | "About": { |
|
4207 | 4348 | }, |
4208 | 4349 | "type": "object" |
4209 | 4350 | }, |
| 4351 | + "ListOperationsResponse": { |
| 4352 | + "description": "The response message for Operations.ListOperations.", |
| 4353 | + "id": "ListOperationsResponse", |
| 4354 | + "properties": { |
| 4355 | + "nextPageToken": { |
| 4356 | + "description": "The standard List next-page token.", |
| 4357 | + "type": "string" |
| 4358 | + }, |
| 4359 | + "operations": { |
| 4360 | + "description": "A list of operations that matches the specified filter in the request.", |
| 4361 | + "items": { |
| 4362 | + "$ref": "Operation" |
| 4363 | + }, |
| 4364 | + "type": "array" |
| 4365 | + } |
| 4366 | + }, |
| 4367 | + "type": "object" |
| 4368 | + }, |
4210 | 4369 | "ModifyLabelsRequest": { |
4211 | 4370 | "description": "A request to modify the set of labels on a file. This request may contain many modifications that will either all succeed or all fail atomically.", |
4212 | 4371 | "id": "ModifyLabelsRequest", |
|
4243 | 4402 | }, |
4244 | 4403 | "type": "object" |
4245 | 4404 | }, |
| 4405 | + "Operation": { |
| 4406 | + "description": "This resource represents a long-running operation that is the result of a network API call.", |
| 4407 | + "id": "Operation", |
| 4408 | + "properties": { |
| 4409 | + "done": { |
| 4410 | + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", |
| 4411 | + "type": "boolean" |
| 4412 | + }, |
| 4413 | + "error": { |
| 4414 | + "$ref": "Status", |
| 4415 | + "description": "The error result of the operation in case of failure or cancellation." |
| 4416 | + }, |
| 4417 | + "metadata": { |
| 4418 | + "additionalProperties": { |
| 4419 | + "description": "Properties of the object. Contains field @type with type URL.", |
| 4420 | + "type": "any" |
| 4421 | + }, |
| 4422 | + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", |
| 4423 | + "type": "object" |
| 4424 | + }, |
| 4425 | + "name": { |
| 4426 | + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", |
| 4427 | + "type": "string" |
| 4428 | + }, |
| 4429 | + "response": { |
| 4430 | + "additionalProperties": { |
| 4431 | + "description": "Properties of the object. Contains field @type with type URL.", |
| 4432 | + "type": "any" |
| 4433 | + }, |
| 4434 | + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", |
| 4435 | + "type": "object" |
| 4436 | + } |
| 4437 | + }, |
| 4438 | + "type": "object" |
| 4439 | + }, |
4246 | 4440 | "Permission": { |
4247 | 4441 | "description": "A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.", |
4248 | 4442 | "id": "Permission", |
|
4575 | 4769 | }, |
4576 | 4770 | "type": "object" |
4577 | 4771 | }, |
| 4772 | + "Status": { |
| 4773 | + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", |
| 4774 | + "id": "Status", |
| 4775 | + "properties": { |
| 4776 | + "code": { |
| 4777 | + "description": "The status code, which should be an enum value of google.rpc.Code.", |
| 4778 | + "format": "int32", |
| 4779 | + "type": "integer" |
| 4780 | + }, |
| 4781 | + "details": { |
| 4782 | + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", |
| 4783 | + "items": { |
| 4784 | + "additionalProperties": { |
| 4785 | + "description": "Properties of the object. Contains field @type with type URL.", |
| 4786 | + "type": "any" |
| 4787 | + }, |
| 4788 | + "type": "object" |
| 4789 | + }, |
| 4790 | + "type": "array" |
| 4791 | + }, |
| 4792 | + "message": { |
| 4793 | + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", |
| 4794 | + "type": "string" |
| 4795 | + } |
| 4796 | + }, |
| 4797 | + "type": "object" |
| 4798 | + }, |
4578 | 4799 | "TeamDrive": { |
4579 | 4800 | "description": "Deprecated: use the drive collection instead.", |
4580 | 4801 | "id": "TeamDrive", |
|
0 commit comments