Method: nodes.devices.patch
एचटीटीपी अनुरोध
PATCH https://sasportal.googleapis.com/v1alpha1/{device.name=nodes/*/devices/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल होता है.
पाथ पैरामीटर
पैरामीटर |
device.name |
string
सिर्फ़ आउटपुट. संसाधन पाथ का नाम.
|
क्वेरी पैरामीटर
पैरामीटर |
updateMask |
string (FieldMask format)
अपडेट किए जाने वाले फ़ील्ड. यह पूरी तरह क्वालिफ़ाइड फ़ील्ड के नामों की ऐसी सूची है जिसे कॉमा लगाकर अलग किया गया है. उदाहरण: "user.displayName,photo" .
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Device
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Device
का एक इंस्टेंस शामिल किया जाता है.
अनुमति पाने के लिंक
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/sasportal
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2022-11-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-11-02 (UTC) को अपडेट किया गया."],[[["This operation updates a device's information using an HTTP PATCH request to a specific URL."],["The request should include path and query parameters, and the body should contain the updated device data in JSON format, as per the Device object specification."],["A successful response will return the updated Device object, indicating the changes have been applied."],["Authorization is required using the `https://www.googleapis.com/auth/sasportal` OAuth scope for this operation to be permitted."]]],["This document details updating a device via a PATCH request to a specified URL using gRPC Transcoding. The request targets a device resource identified by its path (`device.name`). Modifications are made using the `updateMask` query parameter, which dictates the fields to be updated. The request body holds the updated `Device` instance, and upon successful execution, the response body returns the modified `Device` data. Authorization requires the `sasportal` OAuth scope.\n"]]