CloudStorageDestination
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پیکربندی برای یک مقصد در Google Cloud Storage.
نمایندگی JSON |
---|
{
"bucket": string,
"filenamePrefix": string,
"permissions": enum (TilePermissions ),
"bucketCorsUris": [
string
]
} |
فیلدها |
---|
bucket | string سطل مقصد Google Cloud Storage. |
filenamePrefix | string رشته ای که به عنوان پیشوند برای هر فایل خروجی استفاده می شود. یک "/" انتهایی یک مسیر را نشان می دهد. نام فایل های فایل های صادر شده از این پیشوند، مختصات هر فایل به صورت موزاییک (در صورت وجود)، و پسوند فایل مربوط به فرمت فایل ساخته می شود. |
permissions | enum ( TilePermissions ) مجوزهای تنظیم روی کاشی های صادر شده را مشخص می کند. اگر مشخص نشده باشد، پیشفرض روی DEFAULT_OBJECT_ACL است. |
bucketCorsUris[] | string لیست اختیاری از URIها در لیست سفید برای تنظیمات CORS در سطل. برای فعال کردن وب سایت ها برای دسترسی به فایل های صادر شده از طریق جاوا اسکریپت استفاده می شود. |
TilePermissions
مجوزهای تنظیم روی کاشی های نقشه صادراتی.
Enums |
---|
TILE_PERMISSIONS_UNSPECIFIED | نامشخص |
PUBLIC | کاشی های عمومی بنویسید. به تماس گیرنده نیاز دارد که مالک سطل باشد. |
DEFAULT_OBJECT_ACL | کاشی ها را با استفاده از شی پیش فرض سطل ACL بنویسید. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eExports data to Google Cloud Storage, defining the destination bucket, file prefix, and permissions.\u003c/p\u003e\n"],["\u003cp\u003eAllows customizing file naming with a prefix and automatically incorporates mosaic coordinates and file extensions.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over tile permissions, including public access and using bucket defaults.\u003c/p\u003e\n"],["\u003cp\u003eOptionally enables cross-origin resource sharing (CORS) by whitelisting specific URIs for web access to exported files.\u003c/p\u003e\n"]]],[],null,["# CloudStorageDestination\n\nConfiguration for a destination in Google Cloud Storage.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"bucket\": string, \"filenamePrefix\": string, \"permissions\": enum (/earth-engine/reference/rest/v1/CloudStorageDestination#TilePermissions), \"bucketCorsUris\": [ string ] } ``` |\n\n| Fields ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `bucket` | `string` The Google Cloud Storage destination bucket. |\n| `filenamePrefix` | `string` The string used as the prefix for each output file. A trailing \"/\" indicates a path. The filenames of the exported files will be constructed from this prefix, the coordinates of each file in a mosaic (if any), and a file extension corresponding to the file format. |\n| `permissions` | `enum (`[TilePermissions](/earth-engine/reference/rest/v1/CloudStorageDestination#TilePermissions)`)` Specifies the permissions to set on the exported tiles. If unspecified, defaults to DEFAULT_OBJECT_ACL. |\n| `bucketCorsUris[]` | `string` Optional list of URIs to whitelist for the CORS settings on the bucket. Used to enable websites to access exported files via JavaScript. |\n\nTilePermissions\n---------------\n\nPermissions to set on exported map tiles.\n\n| Enums ||\n|--------------------------------|-----------------------------------------------------------------------|\n| `TILE_PERMISSIONS_UNSPECIFIED` | Unspecified. |\n| `PUBLIC` | Write public tiles. Requires the caller to be an OWNER of the bucket. |\n| `DEFAULT_OBJECT_ACL` | Write tiles using the bucket's default object ACL. |"]]