ee.data.updateAsset
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी ऐसेट को अपडेट करता है.
पुष्टि किए गए उपयोगकर्ता के पास, एसेट का मालिक या लेखक होना ज़रूरी है.
इस्तेमाल | रिटर्न |
---|
ee.data.updateAsset(assetId, asset, updateFields, callback) | ऑब्जेक्ट |
आर्ग्यूमेंट | टाइप | विवरण |
---|
assetId | स्ट्रिंग | अपडेट की जाने वाली ऐसेट का आईडी. |
asset | api.EarthEngineAsset | एसेट का अपडेट किया गया वर्शन, जिसमें सिर्फ़ उन फ़ील्ड की नई वैल्यू शामिल होती हैं जिन्हें अपडेट करना है. सिर्फ़ "start_time", "end_time", और "properties" फ़ील्ड अपडेट किए जा सकते हैं. अगर किसी वैल्यू का नाम "updateMask" में है, लेकिन "asset" में उसे सेट नहीं किया गया है, तो उस वैल्यू को एसेट से मिटा दिया जाएगा. |
updateFields | List<String> | अपडेट किए जाने वाले फ़ील्ड के नामों की सूची. इसमें ये शामिल हो सकते हैं:
टाइमस्टैंप को अपडेट करने के लिए "start_time" या "end_time",
किसी प्रॉपर्टी को अपडेट करने के लिए "properties.PROPERTY_NAME" या
सभी प्रॉपर्टी को अपडेट करने के लिए "properties". अगर सूची खाली है, तो सभी प्रॉपर्टी और दोनों टाइमस्टैंप अपडेट हो जाएंगे. |
callback | फ़ंक्शन, ज़रूरी नहीं | कॉलबैक की वैकल्पिक वैल्यू. अगर यह पैरामीटर नहीं दिया जाता है, तो कॉल सिंक्रोनस तरीके से किया जाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eUpdates specified fields or all properties and timestamps of an Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eRequires writer or owner authentication for the asset being updated.\u003c/p\u003e\n"],["\u003cp\u003eAllows updating start/end times and properties, with the option to delete values by specifying them in \u003ccode\u003eupdateFields\u003c/code\u003e but omitting them in \u003ccode\u003easset\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.updateAsset\u003c/code\u003e function with asset ID, updated asset details, and optional fields to update and callback.\u003c/p\u003e\n"]]],["This function updates an existing asset, requiring the user to be a writer or owner. It accepts the `assetId`, an `asset` object containing new field values, and a list of `updateFields`. Updatable fields include \"start_time\", \"end_time\", and \"properties\". Specifying a field in `updateFields` but not in `asset` deletes it. An empty `updateFields` list updates all properties and timestamps. The function returns an object, with an optional callback for asynchronous operation.\n"],null,["# ee.data.updateAsset\n\n\u003cbr /\u003e\n\nUpdates an asset.\n\n\u003cbr /\u003e\n\nThe authenticated user must be a writer or owner of the asset.\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| `ee.data.updateAsset(assetId, asset, updateFields, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|----------------|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assetId` | String | The ID of the asset to update. |\n| `asset` | api.EarthEngineAsset | The updated version of the asset, containing only the new values of the fields to be updated. Only the \"start_time\", \"end_time\", and \"properties\" fields can be updated. If a value is named in \"updateMask\", but is unset in \"asset\", then that value will be deleted from the asset. |\n| `updateFields` | List\\\u003cString\\\u003e | A list of the field names to update. This may contain: \"start_time\" or \"end_time\" to update the corresponding timestamp, \"properties.PROPERTY_NAME\" to update a given property, or \"properties\" to update all properties. If the list is empty, all properties and both timestamps will be updated. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]