Method: networks.shipments.path.commit
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تلتزم بمسار الشحنة، مع الإشارة إلى أنّه لا يمكن تغييره في المستقبل، حتى من قِبل المستخدم، باستثناء القوة القاهرة أو الفعل الذي تشير إليه المركبات.makeUnavailable، Hubs.makeUnavailable، خطوط.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 )
مطلوب. مجموعة فرعية من شرائح المسار من مصدر إلى وجهة.
|
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 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"]],["تاريخ التعديل الأخير: 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"]]