Mengimpor aset (gambar plus anotasi) dari file meta di cloud storage. Setiap baris dalam file meta sesuai dengan gambar (ditentukan oleh uri cloud storage) dan anotasi gambar tersebut.
Permintaan HTTP
POST https://visionai.googleapis.com/v1/{parent=projects/*/locations/*/corpora/*}/assets:import
Wajib. Resource korpus induk tempat aset akan diimpor. Format: projects/{project_number}/locations/{locationId}/corpora/{corpus_id}
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON
{// Union field source can be only one of the following:"assetsGcsUri": string// End of list of possible types for union field source.}
Kolom
Kolom union source. Sumber. source hanya ada berupa salah satu diantara berikut:
assetsGcsUri
string
File ini berisi semua informasi aset yang akan diimpor. * File dalam format JSONL. * Setiap baris sesuai dengan satu aset. * Setiap baris akan dikonversi menjadi proto InputImageAsset.
Isi respons
Jika berhasil, isi respons akan berisi instance Operation.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-04 UTC."],[],[],null,["# Method: projects.locations.corpora.assets.import\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- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nImports assets (images plus annotations) from a meta file on cloud storage. Each row in the meta file is corresponding to an image (specified by a cloud storage uri) and its annotations.\n\n### HTTP request\n\n`POST https://visionai.googleapis.com/v1/{parent=projects/*/locations/*/corpora/*}/assets:import`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/vision-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `visionai.corpora.import`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]