Method: networks.shipments.path.commit
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
提交运单路径,表明以后(即使用户)也无法更改运单,除非 ves.makeUnavailable、hubs.makeUnavailable、lines.makeUnavailable 方法,否则不可抗力/不可抗力。此方法不用于标记路径的特定修订版本。
HTTP 请求
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/shipments/*}/path:commit
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。必须提交其路径的运单的名称。格式:“networks/{network}/shipments/{shipment}”
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
// Union field path_to_commit can be only one of the following:
"completeShipmentPath": {
object (PathToCommit )
},
"segments": {
object (IncompletePathToCommit )
}
// End of list of possible types for union field path_to_commit .
} |
字段 |
联合字段 path_to_commit 。应提交的一个或多个路径部分。path_to_commit 只能是下列其中一项: |
completeShipmentPath |
object (PathToCommit )
从来源到目的地的路径段。
|
segments |
object (IncompletePathToCommit )
从来源到目的地的路径段的子集。
|
响应正文
如果成功,则响应正文包含一个 Path
实例。
PathToCommit
字段 |
segments[] |
object (PathSegment )
必需。细分必须按从来源到目标的顺序进行排序。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-09。
[[["易于理解","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-09-09。"],[[["Commits the shipment path, making it unchangeable except in cases of force majeure, using `vehicles.makeUnavailable`, `hubs.makeUnavailable`, or `lines.makeUnavailable` methods."],["This action is final and cannot be used to tag a specific path revision."],["The request requires specifying the shipment name and providing the complete or partial path to be committed."],["Successful commitment results in a response containing the committed path details."],["The path can be specified either as a complete path from source to destination using `PathToCommit` or as a subset of segments using `IncompletePathToCommit`."]]],["This describes committing a shipment's path via a `POST` request to `networks/*/shipments/*/path:commit`. Committing a path finalizes it, preventing future changes except for force majeure events. The request body defines the `path_to_commit`, which can be a `completeShipmentPath` (full path) or `segments` (partial path). Both options consist of ordered `segments` from source to destination. A successful request returns a `Path` object, and the path can no longer be modified.\n"]]