Method: genericclass.update
อัปเดตชั้นเรียนทั่วไปที่อ้างอิงตามรหัสชั้นเรียนที่ระบุ
คำขอ HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกคลาสจากผู้ออกบัตร ค่านี้ต้องเป็นไปตามรูปแบบ issuerID.identifier ซึ่ง Google ออกค่า issuerID และคุณเป็นผู้เลือก identifier ตัวระบุที่ไม่ซ้ำกันต้องมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน . , _ หรือ -
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ GenericClass
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ GenericClass
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-13 UTC
[null,null,["อัปเดตล่าสุด 2025-03-13 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"]]