Method: networks.shipments.path.commit
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir gönderiyi sağlayan ve gelecekte kullanıcı tarafından bile değiştirilemeyeceğini belirten bir taahhütte bulunur. Bu taahhüt, araçların. Bu yöntem, bir yolun belirli bir düzeltmesini etiketlemek için kullanılmaz.
HTTP isteği
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/shipments/*}/path:commit
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Yolun belirtilmesi gereken gönderinin adı. Biçim: "networks/{network}/shipments/{shipment}"
|
İstek içeriği
İstek gövdesi, aşağıdaki yapıya sahip verileri içerir:
JSON gösterimi |
{
// 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 .
} |
Alanlar |
Birleştirme alanı path_to_commit . Yapılması gereken yol veya yol bölümleri. path_to_commit şunlardan yalnızca biri olabilir: |
completeShipmentPath |
object (PathToCommit )
Kaynaktan hedefe giden yolun segmentleri.
|
segments |
object (IncompletePathToCommit )
Kaynaktan hedefe giden yolun segmentlerinin bir alt kümesi.
|
Yanıt gövdesi
Başarılıysa yanıt metni, Path
öğesinin bir örneğini içerir.
PathToCommit
Kaynaktan hedefe giden tam yol.
JSON gösterimi |
{
"segments": [
{
object (PathSegment )
}
]
} |
Alanlar |
segments[] |
object (PathSegment )
Zorunlu. Segmentler, kaynaktan hedefe doğru sıralı olmalıdır.
|
IncompletePathToCommit
Kaydedilen yolun bir parçasıdır, yani kaynak ile hedef arasındaki bazı segmentlerdir.
JSON gösterimi |
{
"segments": [
{
object (PathSegment )
}
]
} |
Alanlar |
segments[] |
object (PathSegment )
Zorunlu. Kaynaktan hedefe giden yolun segmentlerinin bir alt kümesi.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-09 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]