Method: providers.deliveryVehicles.patch
Записывает обновленные данные DeliveryVehicle
в Fleet Engine и назначает Tasks
DeliveryVehicle
. Вы не можете обновить имя DeliveryVehicle
. Вы можете обновить remainingVehicleJourneySegments
, но он должен содержать все VehicleJourneySegment
, которые будут сохранены в DeliveryVehicle
. taskId
извлекаются из remainingVehicleJourneySegments
, а соответствующие им Tasks
назначаются DeliveryVehicle
если они еще не были назначены.
HTTP-запрос
PATCH https://fleetengine.googleapis.com/v1/{deliveryVehicle.name=providers/*/deliveryVehicles/*}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
delivery Vehicle. name | string Уникальное имя этого средства доставки. Формат: providers/{provider}/deliveryVehicles/{vehicle} . |
Параметры запроса
Параметры |
---|
header | object ( DeliveryRequestHeader ) Необязательный. Стандартный заголовок запроса API доставки. |
update Mask | string ( FieldMask format) Необходимый. Маска поля, указывающая, какие поля DeliveryVehicle обновлять. Обратите внимание, что updateMask должен содержать хотя бы одно поле. Это разделенный запятыми список полных имен полей. Пример: "remainingVehicleJourneySegments" . |
Тело запроса
Тело запроса содержит экземпляр DeliveryVehicle
.
Тело ответа
В случае успеха тело ответа содержит экземпляр DeliveryVehicle
.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-06 UTC.
[null,null,["Последнее обновление: 2024-11-06 UTC."],[[["Updates `DeliveryVehicle` data and assigns `Tasks` in Fleet Engine, requiring all `VehicleJourneySegment`s for persistence."],["Supports updating `remainingVehicleJourneySegments` and assigns corresponding `Tasks` retrieved from it."],["Uses the `PATCH` method with a URL containing the `DeliveryVehicle` name for identification."],["Requires a `header` for Delivery API requests and `updateMask` specifying fields to update."],["Provides a response containing the updated `DeliveryVehicle` instance upon successful completion."]]],["This describes updating `DeliveryVehicle` data within Fleet Engine using a PATCH request. The request targets a specific vehicle via its unique name in the URL. It updates fields defined by the `updateMask`, which is required. The `remainingVehicleJourneySegments` can be updated, including all segments. Corresponding `Tasks` are assigned to the vehicle if not already assigned. The request body contains updated `DeliveryVehicle` data, and the response body returns the updated `DeliveryVehicle` if the update is successful. The vehicle name cannot be updated.\n"]]