Method: providers.deliveryVehicles.patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将更新后的 DeliveryVehicle
数据写入 Fleet Engine,并将 Tasks
分配给 DeliveryVehicle
。您无法更新 DeliveryVehicle
的名称。您可以更新 remainingVehicleJourneySegments
,但它必须包含要在 DeliveryVehicle
上保留的所有 VehicleJourneySegment
。系统会从 remainingVehicleJourneySegments
中检索 taskId
,并将其对应的 Tasks
分配给 DeliveryVehicle
(如果尚未分配)。
HTTP 请求
PATCH https://fleetengine.googleapis.com/v1/{deliveryVehicle.name=providers/*/deliveryVehicles/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
deliveryVehicle.name |
string
此配送车辆的唯一名称。格式为 providers/{provider}/deliveryVehicles/{vehicle} 。
|
查询参数
参数 |
header |
object (DeliveryRequestHeader )
可选。标准 Delivery API 请求标头。
|
updateMask |
string (FieldMask format)
必需。用于指明要更新的 DeliveryVehicle 字段的字段掩码。请注意,updateMask 必须至少包含一个字段。 这是完全限定字段名称的逗号分隔列表。示例:"remainingVehicleJourneySegments" 。
|
请求正文
请求正文包含一个 DeliveryVehicle
实例。
响应正文
如果成功,则响应正文包含一个 DeliveryVehicle
实例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-08。"],[[["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"]]