Method: genericclass.insert
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wstawia klasę ogólną o podanym identyfikatorze i właściwościach.
Żądanie HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass
Adres URL używa składni transkodowania gRPC.
Treść żądania
Treść żądania zawiera wystąpienie elementu GenericClass
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję GenericClass
.
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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]