Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Solicitação
CreateLeaseRequest
Valor de retorno
CreateLeaseResponse
Requisitos:
O lease_id precisa ser criado pelo back-end do parceiro e definido no CreateLeaseResponse.
O lease_expiration_time precisa ser definido no CreateLeaseResponse.
Se o campo de recursos for especificado no CreateLeaseRequest, ele terá que ser definido no CreateLeaseResponse e ser igual ao CreateLeaseRequest.
Todos os outros campos no CreateLeaseResponse precisam ser definidos e estar iguais ao CreateLeaseRequest.
Códigos de erro canônicos de gRPC
INVALID_ARGUMENT (o ID do comerciante, a referência do cliente, a especificação de espaço ou o código do serviço é inválido)
ALREADY_EXISTS (se o cliente já tiver uma locação no espaço)
RESOURCE_EXHAUSTED (se o espaço não estiver disponível)
// 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 entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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"]]