| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- // Code generated by model-api-gen. DO NOT EDIT.
- package cloudid
- import (
- jsonutils "yunion.io/x/jsonutils"
- "yunion.io/x/onecloud/pkg/apis"
- )
- // SAMLProviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SAMLProviderResourceBase.
- type SAMLProviderResourceBase struct {
- SAMLProviderId string `json:"saml_provider_id"`
- }
- // SCloudaccount is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudaccount.
- type SCloudaccount struct {
- apis.SStandaloneResourceBase
- apis.SDomainizedResourceBase
- AccountId string `json:"account_id"`
- Provider string `json:"provider"`
- Brand string `json:"brand"`
- IamLoginUrl string `json:"iam_login_url"`
- SAMLAuth *bool `json:"saml_auth,omitempty"`
- AccessUrl string `json:"access_url"`
- ReadOnly bool `json:"read_only"`
- }
- // SCloudaccountResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudaccountResourceBase.
- type SCloudaccountResourceBase struct {
- // 云账号Id
- CloudaccountId string `json:"cloudaccount_id"`
- }
- // SCloudgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroup.
- type SCloudgroup struct {
- apis.SStatusInfrasResourceBase
- apis.SExternalizedResourceBase
- SCloudaccountResourceBase
- SCloudproviderResourceBase
- }
- // SCloudgroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupResourceBase.
- type SCloudgroupResourceBase struct {
- CloudgroupId string `json:"cloudgroup_id"`
- }
- // SCloudpolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicy.
- type SCloudpolicy struct {
- apis.SStatusInfrasResourceBase
- apis.SExternalizedResourceBase
- SCloudaccountResourceBase
- SCloudproviderResourceBase
- // 权限类型
- // | 权限类型 | 说明 |
- // |---------------|----------------------|
- // | system | 平台内置权限 |
- // | custom | 用户自定义权限 |
- PolicyType string `json:"policy_type"`
- // 策略内容
- Document *jsonutils.JSONDict `json:"document"`
- }
- // SCloudpolicyResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicyResourceBase.
- type SCloudpolicyResourceBase struct {
- // 权限Id
- CloudpolicyId string `json:"cloudpolicy_id"`
- }
- // SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudprovider.
- type SCloudprovider struct {
- apis.SStandaloneResourceBase
- Provider string `json:"provider"`
- CloudaccountId string `json:"cloudaccount_id"`
- }
- // SCloudproviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudproviderResourceBase.
- type SCloudproviderResourceBase struct {
- // 子订阅Id
- ManagerId string `json:"manager_id"`
- }
- // SCloudrole is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudrole.
- type SCloudrole struct {
- apis.SEnabledStatusInfrasResourceBase
- apis.SExternalizedResourceBase
- SCloudaccountResourceBase
- SCloudproviderResourceBase
- SAMLProviderResourceBase
- SCloudgroupResourceBase
- Document *jsonutils.JSONDict `json:"document"`
- }
- // SClouduser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SClouduser.
- type SClouduser struct {
- apis.SStatusDomainLevelUserResourceBase
- apis.SExternalizedResourceBase
- SCloudaccountResourceBase
- SCloudproviderResourceBase
- Secret string `json:"secret"`
- // 是否可以控制台登录
- IsConsoleLogin *bool `json:"is_console_login,omitempty"`
- // 手机号码
- MobilePhone string `json:"mobile_phone"`
- // 邮箱地址
- Email string `json:"email"`
- }
- // SSAMLProvider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SSAMLProvider.
- type SSAMLProvider struct {
- apis.SStatusInfrasResourceBase
- apis.SExternalizedResourceBase
- SCloudaccountResourceBase
- SCloudproviderResourceBase
- EntityId string `json:"entity_id"`
- MetadataDocument string `json:"metadata_document"`
- AuthUrl string `json:"auth_url"`
- }
- // SSamluser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SSamluser.
- type SSamluser struct {
- apis.SStatusDomainLevelUserResourceBase
- SCloudgroupResourceBase
- // 邮箱地址
- Email string `json:"email"`
- CloudroleId string `json:"cloudrole_id"`
- }
|