zz_generated.model.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 cloudid
  14. import (
  15. jsonutils "yunion.io/x/jsonutils"
  16. "yunion.io/x/onecloud/pkg/apis"
  17. )
  18. // SAMLProviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SAMLProviderResourceBase.
  19. type SAMLProviderResourceBase struct {
  20. SAMLProviderId string `json:"saml_provider_id"`
  21. }
  22. // SCloudaccount is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudaccount.
  23. type SCloudaccount struct {
  24. apis.SStandaloneResourceBase
  25. apis.SDomainizedResourceBase
  26. AccountId string `json:"account_id"`
  27. Provider string `json:"provider"`
  28. Brand string `json:"brand"`
  29. IamLoginUrl string `json:"iam_login_url"`
  30. SAMLAuth *bool `json:"saml_auth,omitempty"`
  31. AccessUrl string `json:"access_url"`
  32. ReadOnly bool `json:"read_only"`
  33. }
  34. // SCloudaccountResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudaccountResourceBase.
  35. type SCloudaccountResourceBase struct {
  36. // 云账号Id
  37. CloudaccountId string `json:"cloudaccount_id"`
  38. }
  39. // SCloudgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroup.
  40. type SCloudgroup struct {
  41. apis.SStatusInfrasResourceBase
  42. apis.SExternalizedResourceBase
  43. SCloudaccountResourceBase
  44. SCloudproviderResourceBase
  45. }
  46. // SCloudgroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupResourceBase.
  47. type SCloudgroupResourceBase struct {
  48. CloudgroupId string `json:"cloudgroup_id"`
  49. }
  50. // SCloudpolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicy.
  51. type SCloudpolicy struct {
  52. apis.SStatusInfrasResourceBase
  53. apis.SExternalizedResourceBase
  54. SCloudaccountResourceBase
  55. SCloudproviderResourceBase
  56. // 权限类型
  57. // | 权限类型 | 说明 |
  58. // |---------------|----------------------|
  59. // | system | 平台内置权限 |
  60. // | custom | 用户自定义权限 |
  61. PolicyType string `json:"policy_type"`
  62. // 策略内容
  63. Document *jsonutils.JSONDict `json:"document"`
  64. }
  65. // SCloudpolicyResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicyResourceBase.
  66. type SCloudpolicyResourceBase struct {
  67. // 权限Id
  68. CloudpolicyId string `json:"cloudpolicy_id"`
  69. }
  70. // SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudprovider.
  71. type SCloudprovider struct {
  72. apis.SStandaloneResourceBase
  73. Provider string `json:"provider"`
  74. CloudaccountId string `json:"cloudaccount_id"`
  75. }
  76. // SCloudproviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudproviderResourceBase.
  77. type SCloudproviderResourceBase struct {
  78. // 子订阅Id
  79. ManagerId string `json:"manager_id"`
  80. }
  81. // SCloudrole is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudrole.
  82. type SCloudrole struct {
  83. apis.SEnabledStatusInfrasResourceBase
  84. apis.SExternalizedResourceBase
  85. SCloudaccountResourceBase
  86. SCloudproviderResourceBase
  87. SAMLProviderResourceBase
  88. SCloudgroupResourceBase
  89. Document *jsonutils.JSONDict `json:"document"`
  90. }
  91. // SClouduser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SClouduser.
  92. type SClouduser struct {
  93. apis.SStatusDomainLevelUserResourceBase
  94. apis.SExternalizedResourceBase
  95. SCloudaccountResourceBase
  96. SCloudproviderResourceBase
  97. Secret string `json:"secret"`
  98. // 是否可以控制台登录
  99. IsConsoleLogin *bool `json:"is_console_login,omitempty"`
  100. // 手机号码
  101. MobilePhone string `json:"mobile_phone"`
  102. // 邮箱地址
  103. Email string `json:"email"`
  104. }
  105. // SSAMLProvider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SSAMLProvider.
  106. type SSAMLProvider struct {
  107. apis.SStatusInfrasResourceBase
  108. apis.SExternalizedResourceBase
  109. SCloudaccountResourceBase
  110. SCloudproviderResourceBase
  111. EntityId string `json:"entity_id"`
  112. MetadataDocument string `json:"metadata_document"`
  113. AuthUrl string `json:"auth_url"`
  114. }
  115. // SSamluser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SSamluser.
  116. type SSamluser struct {
  117. apis.SStatusDomainLevelUserResourceBase
  118. SCloudgroupResourceBase
  119. // 邮箱地址
  120. Email string `json:"email"`
  121. CloudroleId string `json:"cloudrole_id"`
  122. }