Method: providers.vehicles.updateAttributes
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वाहन के एट्रिब्यूट की कुछ जानकारी अपडेट करता है. सिर्फ़ अनुरोध में बताए गए एट्रिब्यूट अपडेट किए जाएंगे. अन्य एट्रिब्यूट में कोई बदलाव नहीं किया जाएगा. ध्यान दें: यह vehicles.update
में अलग है. यहां पूरा attributes
फ़ील्ड, UpdateVehicleRequest
में मौजूद फ़ील्ड से बदल दिया जाएगा. ऐसे एट्रिब्यूट जो अनुरोध में शामिल नहीं हैं उन्हें हटा दिया जाएगा.
एचटीटीपी अनुरोध
POST https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateAttributes
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. providers/{provider}/vehicles/{vehicle} फ़ॉर्मैट में होना चाहिए. सेवा देने वाली कंपनी, उस Google Cloud प्रोजेक्ट का प्रोजेक्ट आईडी (उदाहरण के लिए, sample-cloud-project ) होनी चाहिए जिसका सदस्य यह कॉल कर रहा है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
फ़ील्ड |
header |
object (RequestHeader )
स्टैंडर्ड फ़्लीट इंजन अनुरोध का हेडर.
|
attributes[] |
object (VehicleAttribute )
ज़रूरी है. वाहन के वे एट्रिब्यूट जिन्हें अपडेट करना है. जिन एट्रिब्यूट के नाम टैग नहीं किए जाते हैं उन्हें बदला या हटाया नहीं जाता.
|
जवाब का मुख्य भाग
vehicles.updateAttributes
जवाब.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
फ़ील्ड |
attributes[] |
object (VehicleAttribute )
ज़रूरी है. वाहन के एट्रिब्यूट की अपडेट की गई पूरी सूची. इसमें नए, बदले गए, और अनछुए एट्रिब्यूट शामिल हैं.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[[["\u003cp\u003ePartially updates a vehicle's attributes, only changing the attributes specified in the request.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ePOST\u003c/code\u003e method and the \u003ccode\u003ehttps://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateAttributes\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequires a request body containing a \u003ccode\u003eRequestHeader\u003c/code\u003e and an array of \u003ccode\u003eVehicleAttributes\u003c/code\u003e to update.\u003c/p\u003e\n"],["\u003cp\u003eThe response body provides the complete, updated list of vehicle attributes.\u003c/p\u003e\n"],["\u003cp\u003eDiffers from \u003ccode\u003evehicles.update\u003c/code\u003e by only modifying provided attributes, instead of replacing the entire \u003ccode\u003eattributes\u003c/code\u003e field.\u003c/p\u003e\n"]]],[],null,["- [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.UpdateVehicleAttributesResponse.SCHEMA_REPRESENTATION)\n\nPartially updates a vehicle's attributes. Only the attributes mentioned in the request will be updated, other attributes will NOT be altered. Note: this is different in `vehicles.update`, where the whole `attributes` field will be replaced by the one in `UpdateVehicleRequest`, attributes not in the request would be removed.\n\nHTTP request\n\n`POST https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateAttributes`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Must be in the format `providers/{provider}/vehicles/{vehicle}`. The provider must be the Project ID (for example, `sample-cloud-project`) of the Google Cloud Project of which the service account making this call is a member. |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"header\": { object (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader) }, \"attributes\": [ { object (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles#VehicleAttribute) } ] } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `header` | `object (`[RequestHeader](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader)`)` The standard Fleet Engine request header. |\n| `attributes[]` | `object (`[VehicleAttribute](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles#VehicleAttribute)`)` Required. The vehicle attributes to update. Unmentioned attributes are not altered or removed. |\n\nResponse body `vehicles.updateAttributes` response message.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"attributes\": [ { object (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles#VehicleAttribute) } ] } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `attributes[]` | `object (`[VehicleAttribute](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.vehicles#VehicleAttribute)`)` Required. The updated full list of vehicle attributes, including new, altered, and untouched attributes. |"]]