Method: genericclass.patch
दिए गए क्लास आईडी से रेफ़र की गई सामान्य क्लास को अपडेट करता है. यह तरीका, पैच सेमेंटेक्स के साथ काम करता है.
एचटीटीपी अनुरोध
PATCH https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
क्लास के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू, issuerID.identifier फ़ॉर्मैट में होनी चाहिए. इसमें issuerID को Google जारी करता है और identifier को आप चुनते हैं. यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर, अंक, . , _ या - शामिल किए जा सकते हैं.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में GenericClass
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में GenericClass
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-04 (UTC) को अपडेट किया गया."],[[["This method updates a generic class with a given class ID, supporting patch semantics, using a `PATCH` request."],["The class ID must be unique and follow a specific format, including issuer ID and identifier."],["The request body and successful response body both contain an instance of `GenericClass`."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],[]]