Method: providers.vehicles.updateAttributes
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
部分更新车辆的属性。只有请求中提到的属性才会更新,其他属性不会有任何改变。注意:这与 vehicles.update
不同,其中整个 attributes
字段将替换为 UpdateVehicleRequest
中的字段,而请求中没有的属性将被移除。
HTTP 请求
POST https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateAttributes
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。必须采用 providers/{provider}/vehicles/{vehicle} 格式。提供方必须是 Google Cloud 项目的 ID(例如 sample-cloud-project ),进行此调用的服务账号所属的 Google Cloud 项目所属的项目。
|
请求正文
请求正文中包含结构如下的数据:
字段 |
header |
object (RequestHeader )
标准 Fleet Engine 请求标头。
|
attributes[] |
object (VehicleAttribute )
必需。要更新的车辆属性。系统不会更改或移除未提及的属性。
|
响应正文
vehicles.updateAttributes
响应消息。
如果成功,响应正文将包含结构如下的数据:
字段 |
attributes[] |
object (VehicleAttribute )
必需。更新后的车辆属性完整列表,包括全新、改动和未改动的属性。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[[["易于理解","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-08-29。"],[[["Partially updates a vehicle's attributes, only changing the attributes specified in the request."],["Uses the `POST` method and the `https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateAttributes` endpoint."],["Requires a request body containing a `RequestHeader` and an array of `VehicleAttributes` to update."],["The response body provides the complete, updated list of vehicle attributes."],["Differs from `vehicles.update` by only modifying provided attributes, instead of replacing the entire `attributes` field."]]],[]]