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
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-03-13 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]