Method: providers.deliveryVehicles.patch
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
更新された DeliveryVehicle
データを Fleet Engine に書き込み、Tasks
を DeliveryVehicle
に割り当てます。DeliveryVehicle
の名前は更新できません。remainingVehicleJourneySegments
は更新できますが、DeliveryVehicle
で保持するすべての VehicleJourneySegment
が含まれている必要があります。taskId
は remainingVehicleJourneySegments
から取得されます。対応する Tasks
がまだ割り当てられていない場合は、DeliveryVehicle
に割り当てられます。
HTTP リクエスト
PATCH https://fleetengine.googleapis.com/v1/{deliveryVehicle.name=providers/*/deliveryVehicles/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
deliveryVehicle.name |
string
この配達車両の一意の名前。形式は providers/{provider}/deliveryVehicles/{vehicle} です。
|
クエリ パラメータ
パラメータ |
header |
object (DeliveryRequestHeader )
省略可。標準の Delivery API リクエスト ヘッダー。
|
updateMask |
string (FieldMask format)
必須。更新する DeliveryVehicle フィールドを示すフィールド マスク。updateMask には少なくとも 1 つのフィールドを含める必要があります。 完全修飾フィールド名のカンマ区切りリスト。例: "remainingVehicleJourneySegments" 。
|
リクエストの本文
リクエストの本文には DeliveryVehicle
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には DeliveryVehicle
のインスタンスが含まれます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 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"]],["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eUpdates \u003ccode\u003eDeliveryVehicle\u003c/code\u003e data and assigns \u003ccode\u003eTasks\u003c/code\u003e in Fleet Engine, requiring all \u003ccode\u003eVehicleJourneySegment\u003c/code\u003es for persistence.\u003c/p\u003e\n"],["\u003cp\u003eSupports updating \u003ccode\u003eremainingVehicleJourneySegments\u003c/code\u003e and assigns corresponding \u003ccode\u003eTasks\u003c/code\u003e retrieved from it.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ePATCH\u003c/code\u003e method with a URL containing the \u003ccode\u003eDeliveryVehicle\u003c/code\u003e name for identification.\u003c/p\u003e\n"],["\u003cp\u003eRequires a \u003ccode\u003eheader\u003c/code\u003e for Delivery API requests and \u003ccode\u003eupdateMask\u003c/code\u003e specifying fields to update.\u003c/p\u003e\n"],["\u003cp\u003eProvides a response containing the updated \u003ccode\u003eDeliveryVehicle\u003c/code\u003e instance upon successful completion.\u003c/p\u003e\n"]]],["This describes updating `DeliveryVehicle` data within Fleet Engine using a PATCH request. The request targets a specific vehicle via its unique name in the URL. It updates fields defined by the `updateMask`, which is required. The `remainingVehicleJourneySegments` can be updated, including all segments. Corresponding `Tasks` are assigned to the vehicle if not already assigned. The request body contains updated `DeliveryVehicle` data, and the response body returns the updated `DeliveryVehicle` if the update is successful. The vehicle name cannot be updated.\n"],null,[]]