Method: genericclass.update
Belirtilen sınıf kimliği tarafından referans verilen Genel sınıfı günceller.
HTTP isteği
PUT https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Sınıfın benzersiz tanımlayıcısı. Bu kimlik, bir verenin tüm sınıflarında benzersiz olmalıdır. Bu değerin, issuerID 'ın Google tarafından verildiği ve identifier 'nin sizin tarafınızdan seçildiği issuerID.identifier biçimini izlemesi gerekir. Benzersiz tanımlayıcı yalnızca alfanümerik karakterler, . , _ veya - içerebilir.
|
İstek içeriği
İstek metni, GenericClass
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, GenericClass
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/wallet_object.issuer
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-04 UTC.
[null,null,["Son güncelleme tarihi: 2024-11-04 UTC."],[[["Updates an existing Generic class with a unique identifier using the provided request body data."],["The request must contain the class ID in the URL path and a GenericClass object in the body."],["A successful update returns the updated GenericClass object in the response."],["Authorization is required with the `wallet_object.issuer` scope for this operation."]]],["The core action is updating a Generic class using its unique ID (`resourceId`) via a PUT request to a specified URL. The `resourceId` (string) follows the format `issuerID.identifier`. The request body must contain a `GenericClass` instance, and a successful response will also return a `GenericClass` instance. The operation necessitates the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]