pending_actions运输和物流文档即将弃用。您可在
移动服务网站上找到更新后的文档。
Method: providers.vehicles.create
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
实例化与按需拼车或送餐服务提供商关联的新车辆。每个Vehicle
都必须有唯一的车辆 ID。
创建 Vehicle
时,以下 Vehicle
字段是必填字段:
vehicleState
supportedTripTypes
maximumCapacity
vehicleType
创建 Vehicle
时,系统会忽略以下 Vehicle
字段:
name
currentTrips
availableCapacity
currentRouteSegment
currentRouteSegmentEndPoint
currentRouteSegmentVersion
currentRouteSegmentTraffic
route
waypoints
waypointsVersion
remainingDistanceMeters
remainingTimeSeconds
eta_to_next_waypoint
navigationStatus
所有其他字段均为选填字段,如有提供,则使用该字段。
HTTP 请求
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/vehicles
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。必须采用 providers/{provider} 格式。提供方必须是进行此调用的服务帐号所属的 Google Cloud 项目的 ID(例如 sample-cloud-project )。
|
查询参数
参数 |
header |
object (RequestHeader )
标准 Fleet Engine 请求标头。
|
vehicleId |
string
必需。唯一车辆 ID。并受到以下限制:
- 必须是有效的 Unicode 字符串。
- 长度上限为 64 个字符。
- 根据 Unicode 标准化形式 C 进行了标准化处理。
- 不得包含以下任何 ASCII 字符:“/”“:”“?”“,”或“#”。
|
请求正文
请求正文包含一个 Vehicle
实例。
响应正文
如果成功,响应正文将包含一个新创建的 Vehicle
实例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-26。
[{
"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-04-26。",
"state": ""
}