Method: networks.shipments.path.commit
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
貨物の経路を確定し、将来的にはユーザーが変更できないことを示します。vehics.makeUnavailable、hubs.makeUnavailable、lines.makeUnavailable メソッドで示される不可抗力/不可抗力を除きます。このメソッドは、パスの特定のリビジョンにタグを付けるためには使用されません。
HTTP リクエスト
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/shipments/*}/path:commit
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。パスを commit する必要がある配送の名前。形式: 「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 。commit するパスまたはパスの部分。path_to_commit は次のいずれかになります。 |
completeShipmentPath |
object (PathToCommit )
送信元から宛先へのパスのセグメント。
|
segments |
object (IncompletePathToCommit )
送信元から宛先へのパスのセグメントのサブセット。
|
レスポンスの本文
成功した場合、レスポンスの本文には Path
のインスタンスが含まれます。
PathToCommit
commit されるソースから宛先までのフルパス。
フィールド |
segments[] |
object (PathSegment )
必須。セグメントは、ソースから宛先まで順番に存在している必要があります。
|
IncompletePathToCommit
commit されているパスの一部(つまり、送信元と宛先の間の一部のセグメント)。
フィールド |
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"]]