Method: flightclass.patch
Aktualizuje klasę lotu, do której odwołuje się podany identyfikator klasy. Ta metoda obsługuje semantykę poprawki.
Żądanie HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator klasy. Ten identyfikator musi być unikalny wśród wszystkich klas wydawcy. Ta wartość powinna mieć format issuer ID.identifier, gdzie pierwszy identyfikator jest wystawiany przez Google, a drugi jest wybierany przez Ciebie. Unikalny identyfikator powinien zawierać tylko znaki alfanumeryczne oraz znaki „.”, „_” lub „-”.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu FlightClass
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu FlightClass
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
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: 2024-11-04 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-04 UTC."],[[["Updates an existing flight class with partial updates using patch semantics."],["The request should target the specific flight class resource using its unique identifier in the URL."],["The request body must contain a `FlightClass` object representing the desired changes."],["A successful update will return the updated `FlightClass` object in the response."],["This operation requires the `wallet_object.issuer` OAuth scope for authorization."]]],["The core action is updating a flight class using its unique `resourceId` via a PATCH HTTP request to a specific URL. The `resourceId` is a string formatted as `issuer ID.identifier`. The request body includes an instance of `FlightClass`, and a successful response also returns a `FlightClass` instance. This action requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope. The parameters are defined as PATH parameter.\n"]]