Method: nodes.devices.patch
Żądanie HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{device.name=nodes/*/devices/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
device.name |
string
Tylko dane wyjściowe. Nazwa ścieżki zasobu.
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Pola do zaktualizowania. Jest to lista rozdzielonych przecinkami w pełni pełnych nazw pól. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Device
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Device
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/sasportal
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2022-11-02 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]