Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Solicitud
CreateLeaseRequest
Valor que se muestra
CreateLeaseResponse
Requisitos:
El backend del socio debe crear el lease_id y configurarlo en
CreateLeaseResponse.
Se debe establecer el valor de lease_expiration_time en CreateLeaseResponse.
Si el campo de recursos se especifica en CreateLeaseRequest, también debe
establecerse en CreateLeaseResponse y coincidir con CreateLeaseRequest.
Todos los demás campos de CreateLeaseResponse deben
configurarse y coincidir con CreateLeaseRequest.
Códigos de error de gRPC canónicos
INVALID_ARGUMENT (ID de comercio, ID de servicio, referencia de cliente o especificación de espacio de tiempo no válidos)
ALREADY_EXISTS (si el cliente ya tiene una retención para ese espacio)
RESOURCE_EXHAUSTED (si el espacio no está disponible)
// 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;}
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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"]]