Method: projects.versions.read
Membaca seluruh konten versi project.
Permintaan HTTP
POST https://actions.googleapis.com/v2/{name=projects/*/versions/*}:read
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama resource versi dalam format projects/{project}/versions/{version} . {project} adalah ID project cloud yang terkait dengan project, {version} adalah ID versi yang sedang dibaca.
|
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"clientSecretEncryptionKeyVersion": string
} |
Kolom |
clientSecretEncryptionKeyVersion |
string
Opsional. Versi kunci kripto yang digunakan untuk mengenkripsi rahasia klien OAuth penautan akun. Jika tidak ditentukan, versi kunci utama akan digunakan untuk enkripsi. Hanya relevan untuk project dengan penautan akun dengan rahasia klien.
|
Isi respons
Jika berhasil, isi respons memuat data dengan struktur berikut:
Streaming respons RPC untuk versi.read.
Representasi JSON |
{
"files": {
object (Files )
}
} |
Kolom |
files |
object (Files )
Daftar file yang dikirim dari server pada satu waktu.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-22 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-22 UTC."],[[["Reads the complete content of a specified project version using a POST request."],["Requires the project and version identifiers as path parameters in the request URL."],["Optionally accepts an encryption key version for account linking client secrets in the request body."],["Responds with a stream of files contained within the requested project version."]]],["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"]]