setVnetParam overwrites the URL's query parameters with a query param to scope the HostnameRoute action to a certain virtual network (if one is provided).
(endpoint *url.URL, vnetID *uuid.UUID)
| 227 | // setVnetParam overwrites the URL's query parameters with a query param to scope the HostnameRoute action to a certain |
| 228 | // virtual network (if one is provided). |
| 229 | func setVnetParam(endpoint *url.URL, vnetID *uuid.UUID) { |
| 230 | queryParams := url.Values{} |
| 231 | if vnetID != nil { |
| 232 | queryParams.Set("virtual_network_id", vnetID.String()) |
| 233 | } |
| 234 | endpoint.RawQuery = queryParams.Encode() |
| 235 | } |