संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अनुरोध
CreateLeaseRequest
रिटर्न वैल्यू
CreateLeaseResponse
ज़रूरतें:
lease_id को पार्टनर बैकएंड से बनाया जाना चाहिए और CreateLeaseResponse में सेट किया जाना चाहिए.
CreateLeaseResponse में lease_expiration_time सेट होना चाहिए.
अगर CreateLeaseRequest में resources फ़ील्ड दिया गया है, तो उसे CreateLeaseResponse में सेट किया जाना चाहिए और CreateLeaseRequest से मेल खाना चाहिए.
CreateLeaseResponse में मौजूद सभी अन्य फ़ील्ड सेट होने चाहिए और CreateLeaseRequest से मैच करने चाहिए.
कैननिकल gRPC गड़बड़ी कोड
INVALID_ARGUMENT (अमान्य मर्चेंट आईडी, सेवा आईडी, क्लाइंट रेफ़रंस या स्लॉट टाइम की जानकारी)
ALREADY_EXISTS (अगर क्लाइंट के पास स्लॉट की लीज़ पहले से है)
RESOURCE_EXHAUSTED (अगर स्लॉट उपलब्ध नहीं है)
// Request to create a [ext.maps.booking.partner.v0.Lease] for a slot in the// inventory. The expiration time in the returned Lease may be modified by the// backend, e.g. if the requested lease period is too long.messageCreateLeaseRequest{// The lease to be created with information about the appointment slotLeaselease=1;}// Response for the [ext.maps.booking.partner.v0.CreateLease] RPC with the// created [ext.maps.booking.partner.v0.Lease]messageCreateLeaseResponse{// The created [ext.maps.booking.partner.v0.Lease]Leaselease=1;}
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],["The `CreateLeaseRequest` initiates a lease creation, and `CreateLeaseResponse` returns the created lease. The partner backend must generate the `lease_id` and `lease_expiration_time` in the response. If `resources` is in the request, it must be mirrored in the response. All other response fields should mirror the request. Potential gRPC errors include `INVALID_ARGUMENT`, `ALREADY_EXISTS` if a lease exists, or `RESOURCE_EXHAUSTED` if the slot is unavailable. The response might adjust the expiration time.\n"]]