İstek
CreateLeaseRequest
Döndürülen değer
CreateLeaseResponse
Koşullar:
- lease_id, iş ortağı arka uç tarafından oluşturulmalı ve CreateLeaseResponse'ta ayarlanmalıdır.
- CreateLeaseResponse'ta lease_expiration_time ayarlanmalıdır.
- resources alanı CreateLeaseRequest'te belirtilmişse CreateLeaseResponse'te ayarlanmalı ve CreateLeaseRequest ile eşleşmelidir.
- CreateLeaseResponse'teki diğer tüm alanlar ayarlanmalı ve CreateLeaseRequest ile eşleşmelidir.
Standart gRPC hata kodları
INVALID_ARGUMENT(geçersiz satıcı kimliği, hizmet kimliği, istemci referansı veya aralık zamanı spesifikasyonu)ALREADY_EXISTS(müşterinin yuvada zaten kira sözleşmesi varsa)RESOURCE_EXHAUSTED(slot kullanılamıyorsa)
// 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. message CreateLeaseRequest { // The lease to be created with information about the appointment slot Lease lease = 1; } // Response for the [ext.maps.booking.partner.v0.CreateLease] RPC with the // created [ext.maps.booking.partner.v0.Lease] message CreateLeaseResponse { // The created [ext.maps.booking.partner.v0.Lease] Lease lease = 1; }