Method: networks.hubs.makeAvailable
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/hubs/*}:makeAvailable
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The name of the hub to make available. Format: "networks/{network}/hubs/{hub}"
|
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 hubs.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 hub whose unavailability was updated. Format: "networks/{network}/hubs/{hub}"
|
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."],[[["\u003cp\u003eMakes a hub available through an HTTP POST request to a specific endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the hub's name in the URL and optionally, future availability start periods in the request body.\u003c/p\u003e\n"],["\u003cp\u003eIf successful, the response includes the hub's name and the updated paths.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes gRPC Transcoding syntax for the URL structure.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can define periods of availability in the future.\u003c/p\u003e\n"]]],["A `POST` request to `https://middlemileoptimization.googleapis.com/v1/{name=networks/*/hubs/*}:makeAvailable` makes a hub available. The `name` parameter specifies the hub (format: \"networks/{network}/hubs/{hub}\"). The request body, using JSON, includes an array, `availabilityStarts`, specifying future start times for availability as DateTime objects; if the `availabilityStarts` field is not included, then the hub is made available immediately. A successful response contains the hub's `name` and the updated `path` objects.\n"],null,["# Method: networks.hubs.makeAvailable\n\nMakes a hub available.\n\n### HTTP request\n\n`POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/hubs/*}:makeAvailable`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the hub to make available. Format: \"networks/{network}/hubs/{hub}\" |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------|\n| ``` { \"availabilityStarts\": [ { object (/optimization/middlemileoptimization/reference/rest/v1/DateTime) } ] } ``` |\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `availability``Starts[]` | `object (`[DateTime](/optimization/middlemileoptimization/reference/rest/v1/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. |\n\n### Response body\n\nThe response message for `hubs.makeAvailable` method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"path\": [ { object (/optimization/middlemileoptimization/reference/rest/v1/Path) } ] } ``` |\n\n| Fields ||\n|----------|---------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The name of the hub whose unavailability was updated. Format: \"networks/{network}/hubs/{hub}\" |\n| `path[]` | `object (`[Path](/optimization/middlemileoptimization/reference/rest/v1/Path)`)` The paths that were updated. |"]]