federation_protocol.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 models
  15. import "yunion.io/x/onecloud/pkg/cloudcommon/db"
  16. // +onecloud:swagger-gen-ignore
  17. type SFederationProtocolManager struct {
  18. db.SModelBaseManager
  19. }
  20. var (
  21. FederationProtocolManager *SFederationProtocolManager
  22. )
  23. func init() {
  24. FederationProtocolManager = &SFederationProtocolManager{
  25. SModelBaseManager: db.NewModelBaseManager(
  26. SFederationProtocol{},
  27. "federation_protocol",
  28. "federation_protocol",
  29. "federation_protocols",
  30. ),
  31. }
  32. FederationProtocolManager.SetVirtualObject(FederationProtocolManager)
  33. }
  34. /*
  35. desc federation_protocol;
  36. +------------+-------------+------+-----+---------+-------+
  37. | Field | Type | Null | Key | Default | Extra |
  38. +------------+-------------+------+-----+---------+-------+
  39. | id | varchar(64) | NO | PRI | NULL | |
  40. | idp_id | varchar(64) | NO | PRI | NULL | |
  41. | mapping_id | varchar(64) | NO | | NULL | |
  42. +------------+-------------+------+-----+---------+-------+
  43. */
  44. type SFederationProtocol struct {
  45. db.SModelBase
  46. Id string `width:"64" charset:"ascii" nullable:"false" primary:"true"`
  47. IdpId string `width:"64" charset:"ascii" nullable:"false" primary:"true"`
  48. MappingId string `width:"64" charset:"ascii" nullable:"false"`
  49. }