Method: genericclass.patch
Mengupdate class generik yang dirujuk oleh ID class yang diberikan. Metode ini mendukung semantik patch.
Permintaan HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk class. ID ini harus unik di semua class dari penerbit. Nilai ini harus mengikuti format issuerID.identifier dengan issuerID diterbitkan oleh Google dan identifier dipilih oleh Anda. ID unik hanya dapat berisi karakter alfanumerik, . , _ , atau - .
|
Isi permintaan
Isi permintaan memuat instance GenericClass
.
Isi respons
Jika berhasil, isi respons akan berisi instance GenericClass
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
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 2025-03-13 UTC.
[null,null,["Terakhir diperbarui pada 2025-03-13 UTC."],[[["This method updates a generic class with a given class ID, supporting patch semantics, using a `PATCH` request."],["The class ID must be unique and follow a specific format, including issuer ID and identifier."],["The request body and successful response body both contain an instance of `GenericClass`."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This document details updating a generic class using a PATCH request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}`. The `resourceId` parameter in the URL path identifies the class to be updated. The request body utilizes a `GenericClass` instance, and the successful response also returns a `GenericClass` instance. The operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]