loadbalancercertificate.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 compute
  15. import (
  16. "time"
  17. "yunion.io/x/onecloud/pkg/apis"
  18. )
  19. type LoadbalancerCertificateDetails struct {
  20. apis.SharableVirtualResourceDetails
  21. SLoadbalancerCertificate
  22. ManagedResourceInfo
  23. CloudregionResourceInfo
  24. LoadbalancerCertificateUsage
  25. }
  26. type LoadbalancerCertificateUsage struct {
  27. ListenerCount int `json:"lb_listener_count"`
  28. }
  29. type LoadbalancerCertificateResourceInfo struct {
  30. // 负载均衡证书名称
  31. Certificate string `json:"certificate"`
  32. }
  33. type LoadbalancerCertificateResourceInput struct {
  34. // 证书名称或ID
  35. Certificate string `json:"certificate"`
  36. // swagger:ignore
  37. // Deprecated
  38. CertificateId string `json:"certificate_id" yunion-deprecated-by:"certificate"`
  39. }
  40. type LoadbalancerCertificateFilterListInput struct {
  41. LoadbalancerCertificateResourceInput
  42. // 以证书名称排序
  43. OrderByCertificate string `json:"order_by_certificate"`
  44. }
  45. type LoadbalancerCertificateUpdateInput struct {
  46. apis.SharableVirtualResourceBaseUpdateInput
  47. }
  48. type LoadbalancerCertificateListInput struct {
  49. apis.SharableVirtualResourceListInput
  50. apis.ExternalizedResourceBaseListInput
  51. UsableResourceListInput
  52. RegionalFilterListInput
  53. ManagedResourceListInput
  54. CommonName []string `json:"common_name"`
  55. SubjectAlternativeNames []string `json:"subject_alternative_names"`
  56. }
  57. type LoadbalancerCertificateCreateInput struct {
  58. apis.SharableVirtualResourceCreateInput
  59. CloudregionResourceInput
  60. CloudproviderResourceInput
  61. Certificate string `json:"certificate"`
  62. PrivateKey string `json:"private_key"`
  63. // swagger:ignore
  64. Fingerprint string `json:"fingerprint"`
  65. // swagger:ignore
  66. PublicKeyAlgorithm string `json:"public_key_algorithm"`
  67. // swagger:ignore
  68. PublicKeyBitLen int `json:"public_key_bit_len"`
  69. // swagger:ignore
  70. SignatureAlgorithm string `json:"signature_algorithm"`
  71. // swagger:ignore
  72. NotBefore time.Time `json:"not_before"`
  73. // swagger:ignore
  74. NotAfter time.Time `json:"not_after"`
  75. // swagger:ignore
  76. CommonName string `json:"common_name"`
  77. // swagger:ignore
  78. SubjectAlternativeNames string `json:"subject_alternative_names"`
  79. }