Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Permintaan
CreateLeaseRequest
Nilai yang ditampilkan
CreateLeaseResponse
Persyaratan:
lease_id harus dibuat oleh backend partner dan ditetapkan di CreateLeaseResponse.
lease_expiration_time harus ditetapkan di CreateLeaseResponse.
Jika kolom resource ditentukan dalam CreateLeaseRequest, maka kolom tersebut harus ditetapkan di CreateLeaseResponse, dan cocok dengan CreateLeaseRequest.
Semua kolom lainnya di CreateLeaseResponse harus ditetapkan dan cocok dengan CreateLeaseRequest.
Kode error gRPC kanonis
INVALID_ARGUMENT (ID penjual, ID layanan, referensi klien, atau spesifikasi waktu slot tidak valid)
ALREADY_EXISTS (jika klien sudah memiliki lease pada slot)
RESOURCE_EXHAUSTED (jika slot tidak tersedia)
// 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;}
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]