cloudid

package
v0.3.10-0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	CLOUD_GROUP_STATUS_AVAILABLE            = "available"            // 可用
	CLOUD_GROUP_STATUS_DELETING             = "deleting"             // 删除中
	CLOUD_GROUP_STATUS_DELETE_FAILED        = "delete_failed"        // 删除失败
	CLOUD_GROUP_STATUS_SYNC_POLICIES        = "sync_policies"        // 同步权限中
	CLOUD_GROUP_STATUS_SYNC_POLICIES_FAILED = "sync_policies_failed" // 同步权限失败
	CLOUD_GROUP_STATUS_SYNC_USERS           = "sync_users"           // 同步用户中
	CLOUD_GROUP_STATUS_SYNC_USERS_FAILED    = "sync_users_failed"    // 同步用户失败
	CLOUD_GROUP_STATUS_SYNC_STATUS          = "sync_status"          // 同步状态
)
View Source
const (
	CLOUD_GROUP_CACHE_STATUS_AVAILABLE     = "available"     // 正常
	CLOUD_GROUP_CACHE_STATUS_CREATING      = "creating"      // 创建中
	CLOUD_GROUP_CACHE_STATUS_CREATE_FAILED = "create_failed" // 创建失败
	CLOUD_GROUP_CACHE_STATUS_DELETING      = "deleting"      // 删除中
	CLOUD_GROUP_CACHE_STATUS_DELETE_FAILED = "delete_failed" // 删除失败
	CLOUD_GROUP_CACHE_STATUS_SYNC_STATUS   = "sync_status"   // 同步状态中
	CLOUD_GROUP_CACHE_STATUS_UNKNOWN       = "unknown"       // 未知
)
View Source
const (
	SERVICE_TYPE    = apis.SERVICE_TYPE_CLOUDID
	SAML_IDP_PREFIX = "/api/saml/idp"
	SERVICE_VERSION = ""
)
View Source
const (
	CLOUD_POLICY_STATUS_AVAILABLE     = "available"
	CLOUD_POLICY_STATUS_SYNCING       = "syncing"
	CLOUD_POLICY_STATUS_SYNC_FAILE    = "sync_failed"
	CLOUD_POLICY_STATUS_DELETING      = "deleting"
	CLOUD_POLICY_STATUS_DELETE_FAILED = "delete_failed"

	CLOUD_POLICY_TYPE_SYSTEM = "system"
	CLOUD_POLICY_TYPE_CUSTOM = "custom"
)
View Source
const (
	CLOUD_POLICY_CACHE_STATUS_CACHING = "caching"
	CLOUD_POLICY_CACHE_STATUS_READY   = "ready"
)
View Source
const (
	CLOUD_ROLE_STATUS_CREATING      = "creating"      // 创建中
	CLOUD_ROLE_STATUS_AVAILABLE     = "available"     // 正常
	CLOUD_ROLE_STATUS_DELETING      = "deleting"      // 删除中
	CLOUD_ROLE_STATUS_DELETE_FAILED = "delete_failed" // 删除失败
)
View Source
const (
	CLOUD_USER_STATUS_CREATING              = "creating"              // 创建中
	CLOUD_USER_STATUS_CREATE_FAILED         = "create_failed"         //创建失败
	CLOUD_USER_STATUS_AVAILABLE             = "available"             // 可用
	CLOUD_USER_STATUS_UNKNOWN               = "unknown"               // 未知
	CLOUD_USER_STATUS_DELETING              = "deleting"              // 删除中
	CLOUD_USER_STATUS_DELETE_FAILED         = "delete_failed"         // 删除失败
	CLOUD_USER_STATUS_SYNC_STATUS           = "sync_status"           // 同步状态中
	CLOUD_USER_STATUS_SYNC                  = "sync"                  // 同步配置中
	CLOUD_USER_STATUS_SYNC_FAILED           = "sync_failed"           // 同步配置失败
	CLOUD_USER_STATUS_SYNC_POLICIES         = "sync_policies"         // 同步权限中
	CLOUD_USER_STATUS_SYNC_POLICIES_FAILED  = "sync_policies_failed"  // 同步权限失败
	CLOUD_USER_STATUS_SYNC_GROUPS           = "sync_groups"           // 同步权限组中
	CLOUD_USER_STATUS_SYNC_GROUPS_FAILED    = "sync_groups_failed"    // 同步权限组失败
	CLOUD_USER_STATUS_RESET_PASSWORD        = "reset_password"        // 重置密码中
	CLOUD_USER_STATUS_RESET_PASSWORD_FAILED = "reset_password_failed" // 重置密码失败
)
View Source
const (
	SAML_PROVIDER_STATUS_AVAILABLE              = "available"
	SAML_PROVIDER_STATUS_NOT_MATCH              = "not_match"
	SAML_PROVIDER_STATUS_DELETING               = "deleting"
	SAML_PROVIDER_STATUS_DELETE_FAILED          = "delete_failed"
	SAML_PROVIDER_STATUS_UNKNOWN                = "unknown"
	SAML_PROVIDER_STATUS_CREATING               = "creating"
	SAML_PROVIDER_STATUS_CREATE_FAILED          = "create_failed"
	SAML_PROVIDER_STATUS_UNVALIABLE             = "unavailable"
	SAML_PROVIDER_STATUS_UPDATE_METADATA        = "update_metadata"
	SAML_PROVIDER_STATUS_UPDATE_METADATA_FAILED = "update_metadata_failed"
	SAML_PROVIDER_STATUS_SYNC                   = "sync"
)
View Source
const (
	SAML_USER_STATUS_AVAILABLE = "available"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudaccountResourceDetails

type CloudaccountResourceDetails struct {
	// 云账号名称
	Cloudaccount string `json:"cloudaccount"`
	// 平台信息
	Provider string `json:"provider"`
	// 品牌信息
	Brand string `json:"brand"`

	// 公有云账号登录地址
	IamLoginUrl string `json:"iam_login_url"`
}

type CloudaccountResourceListInput

type CloudaccountResourceListInput struct {
	// 根据云账号名称过滤资源
	Cloudaccount string `json:"cloudaccount"`

	// 根据平台过滤
	Provider []string `json:"provider"`

	// swagger:ignore
	CloudaccountId string `json:"cloudaccount_id" yunion-deprecated-by:"cloudaccount"`
}

type CloudgroupAddUserInput

type CloudgroupAddUserInput struct {

	// 用户Id
	ClouduserId string `json:"clouduser_id"`
}

type CloudgroupAttachPolicyInput

type CloudgroupAttachPolicyInput struct {

	// 权限Id
	CloudpolicyId string `json:"cloudpolicy_id"`
}

type CloudgroupCreateInput

type CloudgroupCreateInput struct {
	apis.StatusInfrasResourceBaseCreateInput

	// 平台, 目前支持Qcloud,Google,Azure,Aliyun,Huawei,Aws
	Provider string `json:"provider"`

	// 权限Id列表, 权限provider必须和权限组provider一致
	CloudpolicyIds []string `json:"cloudpolicy_ids"`
}

type CloudgroupDetachPolicyInput

type CloudgroupDetachPolicyInput struct {

	// 权限Id
	CloudpolicyId string `json:"cloudpolicy_id"`
}

type CloudgroupDetails

type CloudgroupDetails struct {
	apis.StatusInfrasResourceBaseDetails
	SCloudgroup

	// 公有云子用户数量
	ClouduserCount int `json:"clouduser_count"`
	// 权限数量
	CloudpolicyCount int `json:"cloudpolicy_count"`
	// 公有云权限组缓存数量
	CloudgroupcacheCount int `json:"cloudgroupcache_count"`

	Cloudpolicies []SCloudIdBaseResource `json:"cloudpolicies"`
	Cloudusers    []SCloudIdBaseResource `json:"cloudusers"`
}

type CloudgroupJointBaseUpdateInput

type CloudgroupJointBaseUpdateInput struct {
	apis.JointResourceBaseUpdateInput
}

type CloudgroupJointResourceDetails

type CloudgroupJointResourceDetails struct {
	apis.JointResourceBaseDetails

	// 公有云用户组名称
	Cloudgroup string `json:"cloudgroup"`
}

type CloudgroupJointsListInput

type CloudgroupJointsListInput struct {
	apis.JointResourceBaseListInput

	// 根据公有云用户组过滤资源
	Cloudgroup string `json:"cloudgroup"`
	// swagger:ignore
	CloudgroupId string `json:"cloudgroup_id" yunion-deprecated-by:"cloudgroup"`
}

type CloudgroupListInput

type CloudgroupListInput struct {
	apis.StatusInfrasResourceBaseListInput

	// 根据平台过滤
	Provider []string `json:"provider"`

	// 过滤子账号所在的权限组
	ClouduserId string `json:"clouduser_id"`

	// 根据权限过滤权限组
	CloudpolicyId string `json:"cloudpolicy_id"`

	// 是否可用
	Usable *bool `json:"usable"`
}

type CloudgroupRemoveUserInput

type CloudgroupRemoveUserInput struct {

	// 用户Id
	ClouduserId string `json:"clouduser_id"`
}

type CloudgroupResourceDetails

type CloudgroupResourceDetails struct {
	// 公有云用户名称
	Cloudgroup string `json:"cloudgroup"`
}

type CloudgroupResourceListInput

type CloudgroupResourceListInput struct {
	// 根据权限组Id过滤资源
	CloudgroupId string `json:"cloudgroup_id"`
}

type CloudgroupSetPoliciesInput

type CloudgroupSetPoliciesInput struct {

	// 权限Ids
	CloudpolicyIds []string `json:"cloudpolicy_ids"`
}

type CloudgroupSetUsersInput

type CloudgroupSetUsersInput struct {

	// 公有云子账号Ids
	ClouduserIds []string `json:"clouduser_ids"`
}

type CloudgroupSyncInput

type CloudgroupSyncInput struct {
}

type CloudgroupSyncstatusInput

type CloudgroupSyncstatusInput struct {
}

type CloudgroupUpdateInput

type CloudgroupUpdateInput struct {
}

type CloudgroupcacheCreateInput

type CloudgroupcacheCreateInput struct {
}

type CloudgroupcacheListInput

type CloudgroupcacheListInput struct {
	apis.StatusStandaloneResourceListInput
	CloudaccountResourceListInput

	// 根据权限组过滤
	CloudgroupId string `json:"cloudgroup_id"`
}

type CloudgroupcacheSyncstatusInput

type CloudgroupcacheSyncstatusInput struct {
}

type CloudpolicyAssignGroupInput

type CloudpolicyAssignGroupInput struct {

	// 权限组Id
	CloudgroupId string `json:"cloudgroup_id"`
}

type CloudpolicyCreateInput

type CloudpolicyCreateInput struct {
	apis.StatusInfrasResourceBaseCreateInput

	// 平台
	Provider string `json:"provider"`

	// 策略详情
	Document *jsonutils.JSONDict `json:"document"`
}

type CloudpolicyDetails

type CloudpolicyDetails struct {
	apis.StatusInfrasResourceBaseDetails
	SCloudpolicy
}

type CloudpolicyListInput

type CloudpolicyListInput struct {
	apis.StatusInfrasResourceBaseListInput

	// 根据平台过滤
	Provider []string `json:"provider"`

	// 根据子账号过滤权限
	ClouduserId string `json:"clouduser_id"`

	// 根据权限组过滤权限
	CloudgroupId string `json:"cloudgroup_id"`

	// 根据订阅过滤权限
	CloudproviderId string `json:"cloudprovider_id"`

	// 权限类型
	//
	//
	// | 类型    |  说明                |
	// |---------| ------------            |
	// | system  |  过滤系统权限        |
	// | custom  |  过滤自定义权限      |
	PolicyType string `json:"policy_type"`

	// 是否显示Locked的权限
	Locked *bool `json:"locked"`
}

type CloudpolicyLockInput

type CloudpolicyLockInput struct {
}

type CloudpolicyResourceDetails

type CloudpolicyResourceDetails struct {
	// 公有云权限名称
	Cloudpolicy string `json:"cloudpolicy"`
}

type CloudpolicyResourceListInput

type CloudpolicyResourceListInput struct {
	// 根据公有云权限过滤资源
	Cloudpolicy string `json:"cloudpolicy"`

	// swagger:ignore
	CloudpolicyId string `json:"cloudpolicy_id" yunion-deprecated-by:"cloudpolicy"`
}

type CloudpolicyRevokeGroupInput

type CloudpolicyRevokeGroupInput struct {

	// 权限组Id
	CloudgroupId string `json:"cloudgroup_id"`
}

type CloudpolicyUnLockInput

type CloudpolicyUnLockInput struct {
}

type CloudpolicyUpdateInput

type CloudpolicyUpdateInput struct {
	apis.StatusInfrasResourceBaseUpdateInput

	Document *jsonutils.JSONDict `json:"document"`

	// swagger:ignore
	OriginDocument *jsonutils.JSONDict `json:"origin_document"`
}

type CloudpolicycacheListInput

type CloudpolicycacheListInput struct {
	apis.StatusStandaloneResourceListInput

	// 根据权限过滤
	CloudpolicyId string `json:"cloudpolicy_id"`

	// 根据云账号过滤
	CloudaccountId string `json:"cloudaccount_id"`
}

type CloudproviderResourceDetails

type CloudproviderResourceDetails struct {
	// 云订阅名称
	Cloudprovider string `json:"cloudprovider"`
}

type CloudproviderResourceListInput

type CloudproviderResourceListInput struct {
	// 根据云订阅过滤资源
	Cloudprovider string `json:"cloudprovider"`

	// swagger:ignore
	CloudproviderId string `json:"cloudprovider_id" yunion-deprecated-by:"cloudprovider"`
}

type CloudrolePurgeInput

type CloudrolePurgeInput struct {
}

type ClouduserAttachPolicyInput

type ClouduserAttachPolicyInput struct {
	// 订阅Id, 向云账号赋予某个订阅的权限, 目前仅Google,Azure平台此参数生效
	CloudproviderId string `json:"cloudprovider_id"`

	// 权限Id
	//
	//
	//
	// | 云平台   | 说明                                        |
	// |----------|---------------------------------------------|
	// | Google   | 支持                                        |
	// | Aliyun   | 支持                                        |
	// | Huawei   | 不支持                                      |
	// | Azure    | 支持                                        |
	// | 腾讯云   | 支持                                        |
	CloudpolicyId string `json:"cloudpolicy_id"`
}

type ClouduserChangeOwnerInput

type ClouduserChangeOwnerInput struct {

	// 本地用户Id
	UserId string `json:"user_id"`
}

type ClouduserCreateAccessKeyInput

type ClouduserCreateAccessKeyInput struct {
	Name string `json:"name"`
}

type ClouduserCreateInput

type ClouduserCreateInput struct {
	apis.StatusDomainLevelUserResourceCreateInput
	apis.StatusBaseResourceCreateInput

	// 云订阅ID, 若此参数为空, 则cloudpolicy_ids的权限会绑定到此账号的所有订阅, 若不为空则cloudpolicy_ids仅绑定的指定的订阅
	// 此参数仅对Google,Azure生效
	CloudproviderId string `json:"cloudprovider_id"`
	// 云账号ID
	// Azure云账号需要有User administrator权限,否则删操作会出现Insufficient privileges to complete the operation错误信息
	CloudaccountId string `json:"cloudaccount_id"`

	// 用户密码, 若is_console_login = true时, 此参数不传时会生成12位随机密码
	//
	//
	//
	// | 云平台   | 说明                                        |
	// |----------|---------------------------------------------|
	// | Google   | 不支持此参数                                |
	// | Aliyun   | 支持                                        |
	// | Huawei   | 支持                                        |
	// | Azure    | 支持                                        |
	// | 腾讯云   | 支持                                        |
	Password string `json:"password"`
	// 是否可控制台登录
	// default: false
	IsConsoleLogin *bool `json:"is_console_login"`

	// 邮箱地址
	// example: test@example.com
	Email string `json:"email"`
	// 手机号码
	// example: 86-1868888****
	MobilePhone string `json:"mobile_phone"`

	// 初始的权限Id列表, 权限必须属于指定的云账号
	//
	//
	//
	// | 云平台   | 说明                                        |
	// |----------|---------------------------------------------|
	// | Google   | 至少需要一个初始权限                        |
	// | Aliyun   | 支持                                        |
	// | Huawei   | 不支持                                      |
	// | Azure    | 支持                                        |
	// | 腾讯云   | 支持                                        |
	CloudpolicyIds []string `json:"cloudpolicy_ids"`

	// 初始化权限组Id列表, 权限组必须和云账号平台属性相同
	CloudgroupIds []string `json:"cloudgroup_ids"`

	// swagger:ignore
	ExternalId string `json:"external_id"`

	// 是否发送邮件通知(仅设置email不为空生效)
	// default: false
	Notify bool `json:"notify"`
}

type ClouduserDeleteAccessKeyInput

type ClouduserDeleteAccessKeyInput struct {
	AccessKey string `json:"access_key"`
}

type ClouduserDetachPolicyInput

type ClouduserDetachPolicyInput struct {
	// 订阅Id, 解绑云账号赋予某个订阅的权限, 目前仅Google,Azure平台此参数生效
	CloudproviderId string `json:"cloudprovider_id"`
	// 权限Id
	//
	//
	//
	// | 云平台   | 说明                                        |
	// |----------|---------------------------------------------|
	// | Google   | 支持,但最少需要保留一个权限                |
	// | Aliyun   | 支持                                        |
	// | Huawei   | 不支持                                      |
	// | Azure    | 不支持                                      |
	// | 腾讯云   | 支持                                        |
	CloudpolicyId string `json:"cloudpolicy_id"`
}

type ClouduserDetails

type ClouduserDetails struct {
	apis.StatusDomainLevelUserResourceDetails
	SClouduser

	CloudaccountResourceDetails
	CloudproviderResourceDetails

	// 权限数量
	CloudpolicyCount int `json:"cloudpolicy_count"`

	// 权限组数量
	CloudgroupCount int `json:"cloudgroup_count"`

	Cloudgroups   []SCloudIdBaseResource   `json:"cloudgroups"`
	Cloudpolicies []ClouduserpolicyDetails `json:"cloudpolicies"`
}

type ClouduserJoinGroupInput

type ClouduserJoinGroupInput struct {

	// 权限组Id
	CloudgroupId string `json:"cloudgroup_id"`
}

type ClouduserJointBaseUpdateInput

type ClouduserJointBaseUpdateInput struct {
	apis.JointResourceBaseUpdateInput
}

type ClouduserJointResourceDetails

type ClouduserJointResourceDetails struct {
	apis.JointResourceBaseDetails

	ClouduserResourceDetails
}

type ClouduserLeaveGroupInput

type ClouduserLeaveGroupInput struct {
	// 权限组Id
	CloudgroupId string `json:"cloudgroup_id"`
}

type ClouduserListAccessKeyInput

type ClouduserListAccessKeyInput struct {
}

type ClouduserListInput

type ClouduserListInput struct {
	apis.StatusDomainLevelUserResourceListInput

	CloudaccountResourceListInput

	// 过滤绑定权限的子账号
	CloudpolicyId string `json:"cloudpolicy_id"`

	// 过滤属于指定权限组的子账号
	CloudgroupId string `json:"cloudgroup_id"`
}

type ClouduserResetPasswordInput

type ClouduserResetPasswordInput struct {
	// 若此参数为空, 默认会生成随机12位密码
	//
	//
	//
	// | 云平台   | 说明                                        |
	// |----------|---------------------------------------------|
	// | Google   | 不支持                                      |
	// | Aliyun   | 支持                                        |
	// | Huawei   | 支持                                        |
	// | Azure    | 支持                                        |
	// | 腾讯云   | 支持                                        |
	Password string `json:"password"`
}

type ClouduserResourceDetails

type ClouduserResourceDetails struct {
	// 公有云用户名称
	Clouduser string `json:"clouduser"`

	// 云账号名称
	Cloudaccount string `json:"cloudaccount"`

	// 云订阅名称
	Cloudprovider string `json:"cloudprovider"`
}

type ClouduserResourceListInput

type ClouduserResourceListInput struct {
	// 根据公有云用户过滤资源
	Clouduser string `json:"clouduser"`

	// swagger:ignore
	ClouduserId string `json:"clouduser_id" yunion-deprecated-by:"clouduser"`
}

type ClouduserSetGroupsInput

type ClouduserSetGroupsInput struct {
	// 权限组Ids
	CloudgroupIds []string `json:"cloudgroup_ids"`
}

type ClouduserSetPoliciesInput

type ClouduserSetPoliciesInput struct {
	// 订阅Id, 设置云账号赋予某个订阅的权限, 目前仅Google,Azure平台此参数生效
	CloudproviderId string `json:"cloudprovider_id"`

	// 权限Ids
	CloudpolicyIds []string `json:"cloudpolicy_ids"`
}

type ClouduserSyncInput

type ClouduserSyncInput struct {
}

type ClouduserSyncstatusInput

type ClouduserSyncstatusInput struct {
}

type ClouduserUpdateInput

type ClouduserUpdateInput struct {
}

type ClouduserpolicyDetails

type ClouduserpolicyDetails struct {
	// 权限Id
	Id string `json:"id"`
	// 权限名称
	Name string `json:"name"`

	// 子订阅Id
	CloudproviderId string `json:"cloudprovider_id"`
	// 子订阅名称
	Manager string `json:"manager"`
}

type SAMLProviderCreateInput

type SAMLProviderCreateInput struct {
	apis.StatusInfrasResourceBaseCreateInput

	CloudaccountId string `json:"cloudaccount_id"`

	// swagger:ignore
	EntityId string `json:"entity_id"`

	// swagger:ignore
	MetadataDocument string `json:"metadata_document"`
}

type SAMLProviderResourceBase

type SAMLProviderResourceBase struct {
	SAMLProviderId string `json:"saml_provider_id"`
}

SAMLProviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SAMLProviderResourceBase.

type SCloudIdBaseResource

type SCloudIdBaseResource struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type 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"`
}

SCloudaccount is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudaccount.

type SCloudaccountResourceBase

type SCloudaccountResourceBase struct {
	// 云账号Id
	CloudaccountId string `json:"cloudaccount_id"`
}

SCloudaccountResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudaccountResourceBase.

type SCloudgroup

type SCloudgroup struct {
	apis.SStatusInfrasResourceBase
	Provider string `json:"provider"`
}

SCloudgroup is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroup.

type SCloudgroupJointsBase

type SCloudgroupJointsBase struct {
	apis.SJointResourceBase
	// 用户组Id
	CloudgroupId string `json:"cloudgroup_id"`
}

SCloudgroupJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupJointsBase.

type SCloudgroupPolicy

type SCloudgroupPolicy struct {
	SCloudgroupJointsBase
	SCloudpolicyResourceBase
}

SCloudgroupPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupPolicy.

type SCloudgroupResourceBase

type SCloudgroupResourceBase struct {
	CloudgroupId string `json:"cloudgroup_id"`
}

SCloudgroupResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupResourceBase.

type SCloudgroupUser

type SCloudgroupUser struct {
	SCloudgroupJointsBase
	SClouduserResourceBase
}

SCloudgroupUser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupUser.

type SCloudgroupcache

type SCloudgroupcache struct {
	apis.SStatusStandaloneResourceBase
	apis.SExternalizedResourceBase
	SCloudaccountResourceBase
	// 用户组Id
	CloudgroupId string `json:"cloudgroup_id"`
}

SCloudgroupcache is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudgroupcache.

type SCloudpolicy

type SCloudpolicy struct {
	apis.SStatusInfrasResourceBase
	apis.SExternalizedResourceBase
	// 权限类型
	// | 权限类型      |  说明                |
	// |---------------|----------------------|
	// | system        | 平台内置权限         |
	// | custom        | 用户自定义权限       |
	PolicyType string `json:"policy_type"`
	// 平台
	// | 云平台   | 说明                                        |
	// |----------|---------------------------------------------|
	// | Google   | 支持                                        |
	// | Aliyun   | 支持										|
	// | Huawei   | 支持                                        |
	// | Azure    | 支持                                        |
	// | 腾讯云   | 支持                                        |
	Provider string `json:"provider"`
	// 策略内容
	Document *jsonutils.JSONDict `json:"document"`
	// 是否锁定, 若锁定后, 此策略不允许被绑定到用户或权限组, 仅管理员可以设置是否锁定
	Locked   *bool  `json:"locked,omitempty"`
	CloudEnv string `json:"cloud_env"`
}

SCloudpolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicy.

type SCloudpolicyResourceBase

type SCloudpolicyResourceBase struct {
	// 权限Id
	CloudpolicyId string `json:"cloudpolicy_id"`
}

SCloudpolicyResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicyResourceBase.

type SCloudpolicycache

type SCloudpolicycache struct {
	apis.SStatusStandaloneResourceBase
	apis.SExternalizedResourceBase
	SCloudaccountResourceBase
	SCloudproviderResourceBase
	// 权限Id
	CloudpolicyId string `json:"cloudpolicy_id"`
}

SCloudpolicycache is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudpolicycache.

type SCloudprovider

type SCloudprovider struct {
	apis.SStandaloneResourceBase
	Provider       string `json:"provider"`
	CloudaccountId string `json:"cloudaccount_id"`
}

SCloudprovider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudprovider.

type SCloudproviderResourceBase

type SCloudproviderResourceBase struct {
	// 子订阅Id
	CloudproviderId string `json:"cloudprovider_id"`
}

SCloudproviderResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudproviderResourceBase.

type SCloudrole

SCloudrole is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SCloudrole.

type SClouduser

type SClouduser struct {
	apis.SStatusDomainLevelUserResourceBase
	apis.SExternalizedResourceBase
	SCloudaccountResourceBase
	Secret string `json:"secret"`
	// 是否可以控制台登录
	IsConsoleLogin *bool `json:"is_console_login,omitempty"`
	// 手机号码
	MobilePhone string `json:"mobile_phone"`
	// 邮箱地址
	Email string `json:"email"`
}

SClouduser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SClouduser.

type SClouduserJointsBase

type SClouduserJointsBase struct {
	apis.SJointResourceBase
	SClouduserResourceBase
}

SClouduserJointsBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SClouduserJointsBase.

type SClouduserPolicy

SClouduserPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SClouduserPolicy.

type SClouduserResourceBase

type SClouduserResourceBase struct {
	ClouduserId string `json:"clouduser_id"`
}

SClouduserResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SClouduserResourceBase.

type SSAMLProvider

type SSAMLProvider struct {
	apis.SStatusInfrasResourceBase
	apis.SExternalizedResourceBase
	SCloudaccountResourceBase
	EntityId         string `json:"entity_id"`
	MetadataDocument string `json:"metadata_document"`
	AuthUrl          string `json:"auth_url"`
}

SSAMLProvider is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SSAMLProvider.

type SSamluser

SSamluser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudid/models.SSamluser.

type SamluserCreateInput

type SamluserCreateInput struct {
	apis.StatusDomainLevelUserResourceCreateInput

	// 权限组和账号必须是同一平台
	CloudgroupId string `json:"cloudgroup_id"`

	// 权限组和账号必须是同一平台
	CloudaccountId string `json:"cloudaccount_id"`

	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL