Method: projects.versions.read
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Odczytuje całą zawartość wersji projektu.
Żądanie HTTP
POST https://actions.googleapis.com/v2/{name=projects/*/versions/*}:read
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Wymagane. Nazwa zasobu wersji w formacie projects/{project}/versions/{version} . {project} to identyfikator projektu w chmurze powiązany z projektem, a {version} to identyfikator odczytywanej wersji.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"clientSecretEncryptionKeyVersion": string
} |
Pola |
clientSecretEncryptionKeyVersion |
string
Opcjonalnie: Wersja klucza kryptograficznego używanego do szyfrowania tajnego klucza klienta OAuth łączącego konto. Jeśli nie określono tego ustawienia, do szyfrowania będzie używana podstawowa wersja klucza. Dotyczy tylko projektów z połączeniem konta z tajnym kluczem klienta.
|
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Strumieniowanie odpowiedzi RPC dla pliku versions.read.
Zapis JSON |
{
"files": {
object (Files )
}
} |
Pola |
files |
object (Files )
Lista plików wysyłanych jednocześnie z serwera.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eReads the complete content of a specified project version using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires the project and version identifiers as path parameters in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eOptionally accepts an encryption key version for account linking client secrets in the request body.\u003c/p\u003e\n"],["\u003cp\u003eResponds with a stream of files contained within the requested project version.\u003c/p\u003e\n"]]],["This documentation details reading the content of a project version via an HTTP POST request to a specific URL, using gRPC Transcoding syntax. The request requires a `name` path parameter indicating the project and version. The request body optionally includes a `clientSecretEncryptionKeyVersion` for projects with account linking. A successful response contains a `files` field with a list of files from the server in JSON format. The request retrieves data associated with a specified project version.\n"],null,["# Method: projects.versions.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.ReadVersionResponse.SCHEMA_REPRESENTATION)\n\nReads the entire content of a project version.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2/{name=projects/*/versions/*}: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 version resource in the format `projects/{project}/versions/{version}`. `{project}` is the cloud project ID associated with the project, `{version}` is the identifier of the version being read. |\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 versions.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. |"]]