Method: networks.shipments.path.commit
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตกลงเส้นทางการจัดส่ง ซึ่งแสดงว่าไม่สามารถเปลี่ยนแปลงได้ในอนาคต แม้แต่โดยผู้ใช้ ให้บันทึกตามสิ่งที่อยู่นอกเหนือการควบคุม/การดำเนินการของพระเจ้า ซึ่งระบุโดยพาหนะ.makeUnavailable, Hubs.makeUnavailable, Line.makeUnavailable เมธอดนี้ไม่ได้ใช้ในการติดแท็กการแก้ไขใดๆ ของเส้นทาง
คำขอ HTTP
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/shipments/*}/path:commit
URL ใช้ไวยากรณ์การแปลง 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
กำลังคอมมิตเส้นทางแบบเต็ม จากต้นทางถึงปลายทาง
การแสดง JSON |
{
"segments": [
{
object (PathSegment )
}
]
} |
ช่อง |
segments[] |
object (PathSegment )
ต้องระบุ กลุ่มต้องเรียงตามลำดับตั้งแต่ต้นทางถึงปลายทาง
|
IncompletePathToCommit
ส่วนหนึ่งของเส้นทางที่มีการคอมมิต กล่าวคือ บางส่วนระหว่างต้นทางและปลายทาง
การแสดง JSON |
{
"segments": [
{
object (PathSegment )
}
]
} |
ช่อง |
segments[] |
object (PathSegment )
ต้องระบุ ชุดย่อยของส่วนถนนจากต้นทางไปยังปลายทาง
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-09 UTC
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2024-09-09 UTC"],[[["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"]]