Method: flightclass.update
Memperbarui class penerbangan yang dirujuk oleh ID class yang diberikan.
Permintaan HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk kelas. ID ini harus unik di semua class dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier dengan yang pertama diterbitkan oleh Google dan yang kedua dipilih oleh Anda. ID unik Anda hanya boleh berisi karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan memuat instance FlightClass
.
Isi respons
Jika berhasil, isi respons memuat instance FlightClass
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/wallet_object.issuer
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-04 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-04 UTC."],[[["Updates an existing flight class identified by its unique resource ID."],["The request must be a PUT request sent to the specified URL with the class ID in the path."],["The request body should contain the updated flight class details, and the response will contain the updated class if successful."],["Requires authorization with the `wallet_object.issuer` scope."]]],["The core action is updating a flight class using its unique class ID. This is done via a `PUT` HTTP request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}`. The `resourceId` parameter, formatted as `\u003cissuer ID\u003e.\u003cidentifier\u003e`, identifies the flight class. The request body contains the new `FlightClass` data, and a successful response returns the updated `FlightClass`. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]