Method: projects.draft.read
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Legge l'intero contenuto della bozza del progetto.
Richiesta HTTP
POST https://actions.googleapis.com/v2/{name=projects/*/draft}:read
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
name |
string
Obbligatorio. Il nome della risorsa nel formato projects/{project}/draft . {project} è l'ID progetto cloud associato al progetto.
|
Corpo della richiesta
Il corpo della richiesta contiene dati con la seguente struttura:
Rappresentazione JSON |
{
"clientSecretEncryptionKeyVersion": string
} |
Campi |
clientSecretEncryptionKeyVersion |
string
(Facoltativo) La versione della chiave di crittografia utilizzata per criptare l'account che collega il client secret OAuth. Se non specificata, per la crittografia viene utilizzata la versione della chiave primaria. Pertinente solo per i progetti con account collegato con client secret.
|
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene dati con la seguente struttura:
Risposta RPC in modalità flusso per bozza.read.
Rappresentazione JSON |
{
"files": {
object (Files )
}
} |
Campi |
files |
object (Files )
Elenco di file inviati dal server alla volta.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eThis documentation outlines how to read the entire content of a project draft using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the project name as a path parameter and optionally providing an encryption key version for account linking client secrets.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides a stream of files contained within the project draft.\u003c/p\u003e\n"],["\u003cp\u003eThe content is structured using JSON for both request and response bodies, with detailed descriptions of their respective fields.\u003c/p\u003e\n"]]],[],null,["# Method: projects.draft.read\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ReadDraftResponse.SCHEMA_REPRESENTATION)\n\nReads the entire content of the project draft.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2/{name=projects/*/draft}:read`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the resource in the format `projects/{project}/draft`. The `{project}` is the cloud project ID associated with the project. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|--------------------------------------------------------|---|\n| ``` { \"clientSecretEncryptionKeyVersion\": string } ``` |\n\n| Fields ||\n|------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `clientSecretEncryptionKeyVersion` | `string` Optional. The version of the crypto key used to encrypt the account linking OAuth client secret. If not specified, the primary key version is used for encryption. Only relevant for projects with account linking with client secret. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nStreaming RPC response for draft.read.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------|---|\n| ``` { \"files\": { object (/assistant/actions/api/reference/rest/v2/Files) } } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------|\n| `files` | `object (`[Files](/assistant/actions/api/reference/rest/v2/Files)`)` List of files sent from the server at a time. |"]]