update.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package cloudnet
  15. import "yunion.io/x/onecloud/pkg/apis"
  16. type RouterUpdateInput struct {
  17. apis.StandaloneResourceBaseUpdateInput
  18. User string `json:"user"`
  19. Host string `json:"host"`
  20. Port *int `json:"port"`
  21. PrivateKey string `json:"private_key"`
  22. RealizeWgIfaces *bool `json:"realize_wg_ifaces"`
  23. RealizeRoutes *bool `json:"realize_routes"`
  24. RealizeRules *bool `json:"realize_rules"`
  25. OldEndpoint string `json:"_old_endpoint"`
  26. }
  27. type RouteUpdateInput struct {
  28. apis.StandaloneResourceBaseUpdateInput
  29. Network string `json:"network"`
  30. Gateway string `json:"gateway"`
  31. }
  32. type RuleUpdateInput struct {
  33. apis.StandaloneResourceBaseUpdateInput
  34. Prio int `json:"prio"`
  35. MatchSrcNet string `json:"match_src_net"`
  36. MatchDestNet string `json:"match_dest_net"`
  37. MatchProto string `json:"match_proto"`
  38. MatchSrcPort int `json:"match_src_port"`
  39. MatchDestPort int `json:"match_dest_port"`
  40. MatchInIfname string `json:"match_in_ifname"`
  41. MatchOutIfname string `json:"match_out_ifname"`
  42. Action string `json:"action"`
  43. ActionOptions string `json:"action_options"`
  44. }