Method: networks.shipments.path.commit
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
배송 경로를 커밋하여 향후에도 사용자가 변경할 수 없음을 나타냅니다. 차량.makeUnavailable, Hubs.makeUnavailable, rows.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
필드 |
segments[] |
object (PathSegment )
필수 항목입니다. 세그먼트는 소스에서 대상까지 순서대로 정렬되어야 합니다.
|
IncompletePathToCommit
커밋되는 경로의 일부(즉, 소스와 대상 사이의 일부 세그먼트)
필드 |
segments[] |
object (PathSegment )
필수 항목입니다. 소스에서 대상으로 이어지는 경로의 구간 하위 집합입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-23(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-08-23(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"]]