pending_actions运输和物流文档即将弃用。您可在
移动服务网站上找到更新后的文档。
Method: providers.vehicles.update
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将更新后的车辆数据写入 Fleet Engine。
更新 Vehicle
时,无法更新以下字段,因为它们由服务器管理:
currentTrips
availableCapacity
currentRouteSegmentVersion
waypointsVersion
车辆的name
也无法更新。
如果 attributes
字段已更新,则所有车辆属性都会替换为请求中提供的属性。如果您只想更新部分属性,请参阅 vehicles.updateAttributes
方法。同样,waypoints
字段也可以更新,但必须包含车辆当前的所有航点,且不得包含其他航点。
HTTP 请求
PUT https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。必须采用 providers/{provider}/vehicles/{vehicle} 格式。{provider} 必须是进行此调用的服务帐号所属的 Google Cloud 项目的 ID(例如 sample-cloud-project )。
|
查询参数
参数 |
header |
object (RequestHeader )
标准 Fleet Engine 请求标头。
|
updateMask |
string (FieldMask format)
必需。指示要更新的 Vehicle 的哪些字段的字段掩码。必须提供至少一个字段名称。 这是以逗号分隔的完全限定字段名称列表。示例:"user.displayName,photo" 。
|
请求正文
请求正文包含一个 Vehicle
实例。
响应正文
如果成功,则响应正文包含一个 Vehicle
实例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-09。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{
"last_modified": "最后更新时间 (UTC):2024-07-09。",
"state": ""
}