Method: genericclass.insert
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menyisipkan class generik dengan ID dan properti yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass
URL menggunakan sintaksis gRPC Transcoding.
Isi permintaan
Isi permintaan memuat instance GenericClass
.
Isi respons
Jika berhasil, isi respons memuat instance GenericClass
yang baru dibuat.
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-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["Inserts a generic class with a given ID and properties using an HTTP POST request."],["The request body and successful response body both contain an instance of `GenericClass`."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["A `POST` request is made to `https://walletobjects.googleapis.com/walletobjects/v1/genericClass` to insert a generic class. The request body should include a `GenericClass` instance. A successful operation returns a newly created `GenericClass` instance in the response body. This action requires the OAuth scope: `https://www.googleapis.com/auth/wallet_object.issuer` for authorization. The URL uses gRPC Transcoding syntax.\n"]]