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 および関連会社の登録商標です。
最終更新日 2024-11-08 UTC。
[null,null,["最終更新日 2024-11-08 UTC。"],[[["Updates `DeliveryVehicle` data and assigns `Tasks` in Fleet Engine, requiring all `VehicleJourneySegment`s for persistence."],["Supports updating `remainingVehicleJourneySegments` and assigns corresponding `Tasks` retrieved from it."],["Uses the `PATCH` method with a URL containing the `DeliveryVehicle` name for identification."],["Requires a `header` for Delivery API requests and `updateMask` specifying fields to update."],["Provides a response containing the updated `DeliveryVehicle` instance upon successful completion."]]],["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"]]