Method: transitclass.update
تعمل هذه السياسة على تعديل فئة النقل العام المُشار إليها من خلال رقم تعريف الفئة المعنيّ.
طلب HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
يستخدم عنوان URL بنية تحويل الترميز gRPC.
معلمات المسار
المَعلمات |
resourceId |
string
المعرّف الفريد لفئة معيّنة. ويجب أن يكون رقم التعريف هذا فريدًا في كل الفئات التي تسجّلها جهة الإصدار. يجب أن تتبع هذه القيمة التنسيق issuer ID.identifier حيث تُصدر Google القيمة الأولى وتختار أنت الرقم الثاني. يجب أن يتضمن المعرّف الفريد أحرفًا أبجدية رقمية أو "." أو "_" أو "-".
|
نص الطلب
يحتوي نص الطلب على مثال TransitClass
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال TransitClass
.
نطاقات التفويض
يجب توفير نطاق 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 transit class identified by its unique ID."],["The request must include the transit class data in the body and proper authorization."],["The unique identifier for a class follows the format: issuer ID.identifier, where the issuer ID is issued by Google and the identifier is chosen by you.."],["Successful requests will return the updated transit class data in the response body."]]],["The core action is updating a transit class using its unique ID. This is done via a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}`. The `resourceId` is a path parameter with a defined format, comprised of an issuer ID and a user-chosen identifier. The request body must be a `TransitClass` instance, and a successful response will also return a `TransitClass` instance. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]