REST Resource: networks.shipments
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Shipment
JSON representation |
{
"name": string,
"sourceHub": string,
"destinationHub": string,
"departureTime": {
object (DateTime )
},
"arrivalTime": {
object (DateTimeRange )
},
"arrivalEarlinessTardinessCost": {
object (EarlinessTardiness )
},
"size": [
{
object (ValueDimension )
}
],
"revenue": number
} |
Fields |
name |
string
Identifier. Cannot be updated.
|
sourceHub |
string
Required. Hub at which the shipment is made available.
|
destinationHub |
string
Required. Hub to which the shipment must be delivered.
|
departureTime |
object (DateTime )
Required. Departure time.
|
arrivalTime |
object (DateTimeRange )
Required. Expected arrival time (i.e. soft constraint).
|
arrivalEarlinessTardinessCost |
object (EarlinessTardiness )
Optional. SLAs indicate that this time may be exceeded with some penalty. (If later than the maximum, the package is no more useful.) The penalty is given by a function of the delay (in minutes).
|
size[] |
object (ValueDimension )
Optional. Used with vehicle and hub capacities.
|
revenue |
number
Optional. Revenue from this package (only used to compute the reward), i.e. price paid by the paying party. If unset, revenue is computed by the system (depending on whether a new line is generated for this shipment or not).
|
Methods |
|
Deletes a Shipment. |
|
Gets the details of a Shipment. |
|
Lists the Shipments. |
|
Route a new shipment. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["Shipments represent the movement of goods between source and destination hubs with specific departure and arrival times."],["Each shipment includes details like identifier, source and destination hubs, departure and arrival times, potential arrival penalties, size, and revenue."],["You can manage shipments by deleting, retrieving details, listing them, or routing new ones using the available methods."],["Shipment arrival times are soft constraints, allowing for potential delays with associated penalties defined by SLAs."],["Size and revenue attributes contribute to optimizing vehicle and hub capacities and calculating overall transportation rewards."]]],["This document details the structure and management of a \"Shipment\" resource. Key information includes: the shipment's unique `name`, required `sourceHub` and `destinationHub`, `departureTime`, and `arrivalTime`. Optional data includes `arrivalEarlinessTardinessCost`, `size`, and `revenue`. Shipments can be created, deleted, retrieved, listed, and routed using specified methods. The shipment represents a package which needs to be deliver between hubs with a time constraint.\n"]]