yunionconf

package
v0.3.9-2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ANY_DOMAIN_ID  = "[any_domain_id]"
	ANY_PROJECT_ID = "[any_project_id]"
)
View Source
const (
	SERVICE_TYPE = apis.SERVICE_TYPE_YUNIONCONF
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ParameterListInput

type ParameterListInput struct {
	apis.ResourceBaseListInput

	NamespaceId string `json:"namespace_id"`

	// 服务名称或ID
	ServiceId string `json:"service_id"`

	// Deprecated
	// swagger:ignore
	Service string `json:"service" yunion-deprecated-by:"service_id"`

	// 用户名称或ID
	UserId string `json:"user_id"`

	// Deprecated
	// swagger:ignore
	User string `json:"user" yunion-deprecated-by:"user_id"`

	// filter by name
	Name []string `json:"name"`
}

type SParameter

type SParameter struct {
	apis.SResourceBase
	Id int64 `json:"id"`
	// = Column(BigInteger, primary_key=True)
	CreatedBy string `json:"created_by"`
	// Column(VARCHAR(length=128, charset='ascii'), nullable=False)
	UpdatedBy string `json:"updated_by"`
	// Column(VARCHAR(length=128, charset='ascii'), nullable=False)  "user"/ serviceName/ "admin"
	Namespace string `json:"namespace"`
	// Column(VARCHAR(length=128, charset='ascii'), nullable=False)  user_id / serviceid
	NamespaceId string `json:"namespace_id"`
	// Column(VARCHAR(length=128, charset='ascii'), nullable=False)
	Name string `json:"name"`
	// Column(VARCHAR(length=128, charset='ascii'), nullable=false)
	Value jsonutils.JSONObject `json:"value"`
}

SParameter is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.SParameter.

type SScopedPolicy

type SScopedPolicy struct {
	apis.SInfrasResourceBase
	// 策略类别
	Category string `json:"category"`
	// 策略内容
	Policies jsonutils.JSONObject `json:"policies"`
}

SScopedPolicy is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.SScopedPolicy.

type SScopedPolicyBinding

type SScopedPolicyBinding struct {
	apis.SResourceBase
	Category  string `json:"category"`
	DomainId  string `json:"domain_id"`
	ProjectId string `json:"project_id"`
	PolicyId  string `json:"policy_id"`
	Priority  int    `json:"priority"`
}

SScopedPolicyBinding is an autogenerated struct via yunion.io/x/onecloud/pkg/yunionconf/models.SScopedPolicyBinding.

type ScopedPolicyBindInput

type ScopedPolicyBindInput struct {
	// 绑定范围
	Scope rbacutils.TRbacScope `json:"scope"`
	// 绑定的目标ID(域或者项目ID)
	TargetIds []string `json:"target_ids"`
}

type ScopedPolicyBindingDetails

type ScopedPolicyBindingDetails struct {
	apis.ResourceBaseDetails

	Id string `json:"id"`

	PolicyName string `json:"policy_name"`

	Category string `json:"category"`

	Policies jsonutils.JSONObject `json:"policy"`

	ProjectDomain string `json:"project_domain"`

	Project string `json:"project"`

	SScopedPolicyBinding
}

type ScopedPolicyBindingListInput

type ScopedPolicyBindingListInput struct {
	apis.ResourceBaseListInput

	Name []string `json:"name"`

	PolicyId  string `json:"policy_id"`
	DomainId  string `json:"domain_id"`
	ProjectId string `json:"project_id"`

	Category []string `json:"category"`

	Effective *bool `json:"effective"`

	Scope rbacutils.TRbacScope `json:"scope"`

	OrderByScopedpolicy string `json:"order_by_scopedpolicy"`
}

type ScopedPolicyCreateInput

type ScopedPolicyCreateInput struct {
	apis.InfrasResourceBaseCreateInput

	// 策略类别
	Category string `json:"category"`

	// 策略定义内容
	Policies jsonutils.JSONObject `json:"policies"`
}

type ScopedPolicyDetails

type ScopedPolicyDetails struct {
	apis.InfrasResourceBaseDetails

	RefCount int `json:"ref_count"`

	SScopedPolicy
}

type ScopedPolicyListInput

type ScopedPolicyListInput struct {
	apis.InfrasResourceBaseListInput

	// 策略类别
	Category []string `json:"category"`
}

type ScopedPolicyUpdateInput

type ScopedPolicyUpdateInput struct {
	apis.InfrasResourceBaseUpdateInput

	// 策略定义内容
	Policies jsonutils.JSONObject `json:"policies"`
}

Jump to

Keyboard shortcuts

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