Method: nodes.devices.patch
HTTP isteği
PATCH https://sasportal.googleapis.com/v1alpha1/{device.name=nodes/*/devices/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
device.name |
string
Yalnızca çıkış. Kaynak yolu adı.
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
Güncellenecek alanlar. Bu, tam nitelikli alan adlarının virgülle ayrılmış bir listesidir. Örnek: "user.displayName,photo" .
|
İstek metni
İstek metni, Device
öğesinin bir örneğini içerir.
Yanıt metni
Başarılıysa yanıt metni, Device
öğesinin bir örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/sasportal
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2022-11-02 UTC.
[null,null,["Son güncelleme tarihi: 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"]]