קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשה
CreateLeaseRequest
ערך המוחזר
CreateLeaseResponse
דרישות:
המערכת לקצה העורפי של השותף צריכה ליצור את lease_id ולהגדיר אותו ב-CreateLeaseResponse.
צריך להגדיר את lease_expiration_time ב-CreateLeaseResponse.
אם השדה resources צוין ב-CreateLeaseRequest, צריך להגדיר אותו ב-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"]]