Method: networks.vehicles.makeAvailable
Stay organized with collections
Save and categorize content based on your preferences.
Makes a vehicle available.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/vehicles/*}:makeAvailable
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the vehicle to make available. Format: "networks/{network}/vehicle/{vehicle}"
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"availabilityStarts": [
{
object (DateTime )
}
]
} |
Fields |
availabilityStarts[] |
object (DateTime )
Required. The periods where availability will start. They must be points in time in the future. If this field is absent, availability starts when the message is received.
|
Response body
The response message for vehicles.makeAvailable
method.
If successful, the response body contains data with the following structure:
JSON representation |
{
"name": string,
"path": [
{
object (Path )
}
]
} |
Fields |
name |
string
The name of the vehicle whose availability was updated. Format: "networks/{network}/vehicles/{vehicle}"
|
path[] |
object (Path )
The paths that were updated.
|
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."],[[["Makes a vehicle available for use, potentially specifying future availability start times."],["Uses a POST request to the specified URL with parameters for network and vehicle identification."],["Requires a request body which can optionally include future availability start periods."],["If successful, the response provides the vehicle's name and updated paths."],["Leverages gRPC Transcoding for communication."]]],["A `POST` request to `https://middlemileoptimization.googleapis.com/v1/{name=networks/*/vehicles/*}:makeAvailable` makes a vehicle available. The `name` parameter specifies the vehicle. The request body, `availabilityStarts`, defines future start times for availability; absence defaults to immediate availability. The response includes the vehicle's `name` and the updated `path`.\n"]]