zz_generated.model.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Licensed under the Apache License, Version 2.0 (the "License");
  2. // you may not use this file except in compliance with the License.
  3. // You may obtain a copy of the License at
  4. //
  5. // http://www.apache.org/licenses/LICENSE-2.0
  6. //
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. // Code generated by model-api-gen. DO NOT EDIT.
  13. package yunionconf
  14. import (
  15. jsonutils "yunion.io/x/jsonutils"
  16. "yunion.io/x/onecloud/pkg/apis"
  17. )
  18. // SParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.SParameter.
  19. type SParameter struct {
  20. apis.SResourceBase
  21. Id int64 `json:"id"`
  22. // = Column(BigInteger, primary_key=True)
  23. CreatedBy string `json:"created_by"`
  24. // Column(VARCHAR(length=128, charset='ascii'), nullable=False)
  25. UpdatedBy string `json:"updated_by"`
  26. // Column(VARCHAR(length=128, charset='ascii'), nullable=False) "user"/ serviceName/ "admin"
  27. Namespace string `json:"namespace"`
  28. // Column(VARCHAR(length=128, charset='ascii'), nullable=False) user_id / serviceid
  29. NamespaceId string `json:"namespace_id"`
  30. // Column(VARCHAR(length=128, charset='ascii'), nullable=False)
  31. Name string `json:"name"`
  32. // Column(VARCHAR(length=128, charset='ascii'), nullable=false)
  33. Value jsonutils.JSONObject `json:"value"`
  34. }
  35. // SScopedPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.SScopedPolicy.
  36. type SScopedPolicy struct {
  37. apis.SInfrasResourceBase
  38. // 策略类别
  39. Category string `json:"category"`
  40. // 策略内容
  41. Policies jsonutils.JSONObject `json:"policies"`
  42. }
  43. // SScopedPolicyBinding is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.SScopedPolicyBinding.
  44. type SScopedPolicyBinding struct {
  45. apis.SResourceBase
  46. Category string `json:"category"`
  47. DomainId string `json:"domain_id"`
  48. ProjectId string `json:"project_id"`
  49. PolicyId string `json:"policy_id"`
  50. Priority int `json:"priority"`
  51. }
  52. // STag is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.STag.
  53. type STag struct {
  54. apis.SInfrasResourceBase
  55. Values []string `json:"values"`
  56. }