Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Yêu cầu
CreateLeaseRequest
Giá trị trả về
CreateLeaseResponse
Yêu cầu:
lease_id phải do phần phụ trợ của đối tác tạo và đặt trong CreateLeaseResponse.
Bạn phải đặt lease_expiration_time trong CreateLeaseResponse.
Nếu trường tài nguyên được chỉ định trong CreateLeaseRequest, thì bạn phải đặt trường này trong CreateLeaseResponse và khớp với CreateLeaseRequest.
Bạn phải đặt và so khớp tất cả các trường khác trong CreateLeaseResponse với
CreateLeaseRequest.
Mã lỗi gRPC chuẩn
INVALID_ARGUMENT (mã người bán, mã dịch vụ, thông tin tham chiếu của ứng dụng hoặc thông số kỹ thuật về thời gian của khung giờ không hợp lệ)
ALREADY_EXISTS (nếu ứng dụng đã có hợp đồng thuê cho vị trí đó)
RESOURCE_EXHAUSTED (nếu không có khung giờ đó)
// 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;}
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-05-24 UTC."],[[["Partners must create and set `lease_id` and `lease_expiration_time` in the `CreateLeaseResponse`."],["`CreateLeaseResponse` must mirror the `CreateLeaseRequest`, including the `resources` field if provided, and all other fields."],["Potential errors include `INVALID_ARGUMENT`, `ALREADY_EXISTS`, and `RESOURCE_EXHAUSTED` for various invalid input or booking conflicts."],["The `CreateLeaseRequest` initiates a lease creation for a specific appointment slot, while the `CreateLeaseResponse` returns the created lease details."],["The backend may adjust the lease expiration time in the response."]]],["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"]]