apis

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 91

Documentation

Index

Constants

View Source
const (
	SERVICE_TYPE_IMAGE             = "image"
	SERVICE_TYPE_OFFLINE_CLOUDMETA = "offlinecloudmeta"
	SERVICE_TYPE_CLOUDID           = "cloudid"
	SERVICE_TYPE_CLOUDEVENT        = "cloudevent"
	SERVICE_TYPE_DEVTOOL           = "devtool"
	SERVICE_TYPE_ANSIBLE           = "ansible"
	SERVICE_TYPE_CLOUDMETA         = "cloudmeta"
	SERVICE_TYPE_YUNIONCONF        = "yunionconf"
	SERVICE_TYPE_METER             = "meter"
	SERVICE_TYPE_SCHEDULER         = "scheduler"
	SERVICE_TYPE_VNCPROXY          = "vncproxy"
	SERVICE_TYPE_KEYSTONE          = "identity"
	SERVICE_TYPE_NOTIFY            = "notify"
	SERVICE_TYPE_MONITOR           = "monitor"
	SERVICE_TYPE_LOG               = "log"
	SERVICE_TYPE_REGION            = "compute"
	SERVICE_TYPE_CLOUDMON          = "cloudmon"
	SERVICE_TYPE_VPCAGENT          = "vpcagent"

	SERVICE_TYPE_ETCD             = "etcd"
	SERVICE_TYPE_INFLUXDB         = "influxdb"
	SERVICE_TYPE_NTP              = "ntp"
	SERVICE_TYPE_VICTORIA_METRICS = "victoria-metrics"

	SERVICE_TYPE_SCHEDULEDTASK = "scheduledtask"

	SERVICE_TYPE_APIMAP = "apimap"

	STATUS_UPDATE_TAGS        = "update_tags"
	STATUS_UPDATE_TAGS_FAILED = "update_tags_fail"

	STATUS_SYNC_STATUS   = "sync_status"
	STATUS_DELETING      = "deleting"
	STATUS_DELETE_FAILED = "delete_failed"
	STATUS_UNKNOWN       = "unknown"
	STATUS_CREATING      = "creating"
	STATUS_AVAILABLE     = "available"
	STATUS_CREATE_FAILED = "create_failed"

	CLOUD_TAG_PREFIX     = "ext:"
	USER_TAG_PREFIX      = "user:"
	SYS_CLOUD_TAG_PREFIX = "sys:"
	// Such tags have inherited and isolated properties
	CLASS_TAG_PREFIX = "cls:"

	ORGANIZATION_TAG_PREFIX = "org:"

	SKU_STATUS_AVAILABLE = "available"
	SKU_STATUS_SOLDOUT   = "soldout"

	MetaServiceMonitorAgentUrl = "http://169.254.169.254/monitor"
)
View Source
const (
	COMPRESS_FORMAT_GZIP   = "gzip"
	COMPRESS_FORMAT_TAR_GZ = "tar.gz"
)
View Source
const (
	OS_ARCH_X86 = "x86"
	OS_ARCH_ARM = "arm"

	OS_ARCH_I386    = "i386"
	OS_ARCH_X86_32  = "x86_32"
	OS_ARCH_X86_64  = "x86_64"
	OS_ARCH_AARCH32 = "aarch32"
	OS_ARCH_AARCH64 = "aarch64"
)
View Source
const (
	ImagePullPolicyAlways       = "Always"
	ImagePullPolicyIfNotPresent = "IfNotPresent"
)
View Source
const (
	EXTERNAL_RESOURCE_SOURCE_LOCAL = "local"
	EXTERNAL_RESOURCE_SOURCE_CLOUD = "cloud"
)
View Source
const (
	OWNER_SOURCE_LOCAL = TOwnerSource("local")
	OWNER_SOURCE_CLOUD = TOwnerSource("cloud")
)
View Source
const (
	CLOUD_ACCOUNT_SHARE_MODE_ACCOUNT_DOMAIN  = "account_domain"
	CLOUD_ACCOUNT_SHARE_MODE_SYSTEM          = "system"
	CLOUD_ACCOUNT_SHARE_MODE_PROVIDER_DOMAIN = "provider_domain"
)
View Source
const (
	IS_SYSTEM = apis.IS_SYSTEM
)
View Source
const (
	MAX_SPLITABLE_EXPORT_LIMIT = 10000
)

Variables

View Source
var (
	NO_RESOURCE_SERVICES = []string{
		SERVICE_TYPE_OFFLINE_CLOUDMETA,
		SERVICE_TYPE_CLOUDMETA,
		SERVICE_TYPE_SCHEDULER,
		SERVICE_TYPE_VNCPROXY,
		SERVICE_TYPE_KEYSTONE,
		SERVICE_TYPE_ETCD,
		SERVICE_TYPE_INFLUXDB,
		SERVICE_TYPE_CLOUDMON,
		SERVICE_TYPE_METER,
		SERVICE_TYPE_CLOUDEVENT,
		SERVICE_TYPE_ANSIBLE,
		SERVICE_TYPE_INFLUXDB,
		SERVICE_TYPE_APIMAP,
		SERVICE_TYPE_LOG,
		"autoupdate",
		"yunionagent",
		"webconsole",
		"esxiagent",
		"s3gateway",
		"common",
		"websocket",
		"echarts-ssr",
		"lbagent",
		"vpcagent",
		"cloudwatcher",
		"cloudnet",
		"repo",
		"cloudproxy",
		"apigateway",
		"yunionapi",
		"billing",
		SERVICE_TYPE_ETCD,
		"itsm",
		SERVICE_TYPE_NTP,
	}
)

Functions

func IsARM

func IsARM(osArch string) bool

func IsIllegalSearchDomain

func IsIllegalSearchDomain(domain string) bool

Types

type AdminSharableVirtualResourceBaseCreateInput

type AdminSharableVirtualResourceBaseCreateInput struct {
	SharableVirtualResourceCreateInput

	// 记录
	Records string `json:"records"`
}

type AdminSharableVirtualResourceBaseUpdateInput

type AdminSharableVirtualResourceBaseUpdateInput struct {
	SharableVirtualResourceBaseUpdateInput

	// 管理记录
	Records string `json:"records"`
}

type AdminSharableVirtualResourceDetails

type AdminSharableVirtualResourceDetails struct {
	SharableVirtualResourceDetails
}

type AdminSharableVirtualResourceListInput

type AdminSharableVirtualResourceListInput struct {
	SharableVirtualResourceListInput
}

type AutoDeleteResourceBaseListInput

type AutoDeleteResourceBaseListInput struct {
	AutoDelete *bool
}

type AutoRenewInput

type AutoRenewInput struct {
	// 是否自动续费
	AutoRenew bool `json:"auto_renew"`
}

type ChangeOwnerCandidateDomainsOutput

type ChangeOwnerCandidateDomainsOutput struct {
	Candidates []SharedDomain `json:"candidates"`
}

type ContainerCapability

type ContainerCapability struct {
	Add  []string `json:"add"`
	Drop []string `json:"drop"`
}

type ContainerDeviceType

type ContainerDeviceType string
const (
	CONTAINER_DEVICE_TYPE_ISOLATED_DEVICE ContainerDeviceType = "isolated_device"
	CONTAINER_DEVICE_TYPE_HOST            ContainerDeviceType = "host"
)

type ContainerDiskOverlayType

type ContainerDiskOverlayType string
const (
	CONTAINER_DISK_OVERLAY_TYPE_DIRECTORY  ContainerDiskOverlayType = "directory"
	CONTAINER_DISK_OVERLAY_TYPE_DISK_IMAGE ContainerDiskOverlayType = "disk_image"
	CONTAINER_DISK_OVERLAY_TYPE_UNKNOWN    ContainerDiskOverlayType = "unknown"
)

type ContainerKeyValue

type ContainerKeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ContainerLifecyle

type ContainerLifecyle struct {
	PostStart *ContainerLifecyleHandler `json:"post_start"`
}

type ContainerLifecyleHandler

type ContainerLifecyleHandler struct {
	Type ContainerLifecyleHandlerType        `json:"type"`
	Exec *ContainerLifecyleHandlerExecAction `json:"exec"`
}

type ContainerLifecyleHandlerExecAction

type ContainerLifecyleHandlerExecAction struct {
	Command []string `json:"command"`
}

type ContainerLifecyleHandlerType

type ContainerLifecyleHandlerType string
const (
	ContainerLifecyleHandlerTypeExec ContainerLifecyleHandlerType = "exec"
)

type ContainerMountPropagation

type ContainerMountPropagation string
const (
	// No mount propagation ("private" in Linux terminology).
	MOUNTPROPAGATION_PROPAGATION_PRIVATE ContainerMountPropagation = "private"
	// Mounts get propagated from the host to the container ("rslave" in Linux).
	MOUNTPROPAGATION_PROPAGATION_HOST_TO_CONTAINER ContainerMountPropagation = "rslave"
	// Mounts get propagated from the host to the container and from the
	// container to the host ("rshared" in Linux).
	MOUNTPROPAGATION_PROPAGATION_BIDIRECTIONAL ContainerMountPropagation = "rshared"
)

type ContainerOverlayDiskImage

type ContainerOverlayDiskImage struct {
	DiskId  string `json:"disk_id"`
	ImageId string `json:"image_id"`
}

type ContainerProbe

type ContainerProbe struct {
	// The action taken to determine the health of a container
	ContainerProbeHandler `json:",inline"`
	// Number of seconds after the container has started before liveness probes are initiated.
	// InitialDelaySeconds int32 `json:"initial_delay_seconds,omitempty"`
	// Number of seconds after which the probe times out.
	TimeoutSeconds int32 `json:"timeout_seconds,omitempty"`
	// How often (in seconds) to perform the probe.
	// Default to 10 seconds. Minimum value is 1.
	PeriodSeconds int32 `json:"period_seconds,omitempty"`
	// Minimum consecutive successes for the probe to be considered successful after having failed.
	// Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
	SuccessThreshold int32 `json:"success_threshold,omitempty"`
	// Minimum consecutive failures for the probe to be considered failed after having succeeded.
	// Defaults to 3. Minimum value is 1.
	FailureThreshold int32 `json:"failure_threshold,omitempty"`
}

ContainerProbe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

type ContainerProbeHTTPGetAction

type ContainerProbeHTTPGetAction struct {
	// Path to access on the HTTP server.
	// +optional
	Path string `json:"path,omitempty"`
	// Name or number of the port to access on the container.
	// Number must be in the range 1 to 65535.
	// Name must be an IANA_SVC_NAME.
	Port int `json:"port"`
	// Host name to connect to, defaults to the pod IP. You probably want to set
	// "Host" in httpHeaders instead.
	// +optional
	Host string `json:"host,omitempty"`
	// Scheme to use for connecting to the host.
	// Defaults to HTTP.
	// +optional
	Scheme URIScheme `json:"scheme,omitempty"`
	// Custom headers to set in the request. HTTP allows repeated headers.
	// +optional
	HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"`
}

ContainerProbeHTTPGetAction describes an action based on HTTP Get requests.

type ContainerProbeHandler

type ContainerProbeHandler struct {
	// One and only one of the following should be specified.
	// Exec specifies the action to take.
	Exec *ContainerProbeHandlerExecAction `json:"exec,omitempty"`
	// HTTPGet specifies the http request to perform.
	HTTPGet *ContainerProbeHTTPGetAction `json:"http_get,omitempty"`
	// TCPSocket specifies an action involving a TCP port.
	TCPSocket *ContainerProbeTCPSocketAction `json:"tcp_socket,omitempty"`
}

ContainerProbeHandler defines a specific action that should be taken

type ContainerProbeHandlerExecAction

type ContainerProbeHandlerExecAction struct {
	// Command is the command line to execute inside the container, the working directory for the
	// command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
	// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
	// a shell, you need to explicitly call out to that shell.
	// Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
	// +optional
	Command []string `json:"command,omitempty"`
}

ContainerProbeHandlerExecAction describes a "run in container" action.

type ContainerProbeTCPSocketAction

type ContainerProbeTCPSocketAction struct {
	// Number or name of the port to access on the container.
	// Number must be in the range 1 to 65535.
	// Name must be an IANA_SVC_NAME.
	Port int `json:"port"`
	// Optional: Host name to connect to, defaults to the pod IP.
	// +optional
	Host string `json:"host,omitempty"`
}

ContainerProbeTCPSocketAction describes an action based on opening a socket

type ContainerProbeType

type ContainerProbeType string
const (
	ContainerProbeTypeLiveness  ContainerProbeType = "Liveness"
	ContainerProbeTypeReadiness ContainerProbeType = "Readiness"
	ContainerProbeTypeStartup   ContainerProbeType = "Startup"
)

type ContainerProcMountType

type ContainerProcMountType string
const (
	// DefaultProcMount uses the container runtime defaults for readonly and masked
	// paths for /proc.  Most container runtimes mask certain paths in /proc to avoid
	// accidental security exposure of special devices or information.
	ContainerDefaultProcMount ContainerProcMountType = "Default"

	// UnmaskedProcMount bypasses the default masking behavior of the container
	// runtime and ensures the newly created /proc the container stays in tact with
	// no modifications.
	ContainerUnmaskedProcMount ContainerProcMountType = "Unmasked"
)

type ContainerPullImageAuthConfig

type ContainerPullImageAuthConfig struct {
	Username      string `json:"username,omitempty"`
	Password      string `json:"password,omitempty"`
	Auth          string `json:"auth,omitempty"`
	ServerAddress string `json:"server_address,omitempty"`
	// IdentityToken is used to authenticate the user and get
	// an access token for the registry.
	IdentityToken string `json:"identity_token,omitempty"`
	// RegistryToken is a bearer token to be sent to a registry
	RegistryToken string `json:"registry_token,omitempty"`
}

type ContainerResources

type ContainerResources struct {
	// CpuCfsQuota can be set to 0.5 that mapping to 0.5*100000 for cpu.cpu_cfs_quota_us
	CpuCfsQuota *float64 `json:"cpu_cfs_quota,omitempty"`
	// MemoryLimitMB will be transferred to memory.limit_in_bytes
	// MemoryLimitMB *int64 `json:"memory_limit_mb,omitempty"`
	// PidsMax will be set to pids.max
	PidsMax *int `json:"pids_max"`
	// DevicesAllow will be set to devices.allow
	DevicesAllow []string `json:"devices_allow"`
	// This flag only affects the cpuset controller. If the clone_children
	// flag is enabled in a cgroup, a new cpuset cgroup will copy its
	// configuration fromthe parent during initialization.
	CpusetCloneChildren bool `json:"cpuset_clone_children"`
}

type ContainerSecurityContext

type ContainerSecurityContext struct {
	RunAsUser  *int64 `json:"run_as_user,omitempty"`
	RunAsGroup *int64 `json:"run_as_group,omitempty"`
	// procMount denotes the type of proc mount to use for the containers.
	// The default is DefaultProcMount which uses the container runtime defaults for
	ProcMount ContainerProcMountType `json:"proc_mount"`
}

type ContainerSpec

type ContainerSpec struct {
	// Image to use.
	Image string `json:"image"`
	// Image pull policy
	ImagePullPolicy ImagePullPolicy `json:"image_pull_policy"`
	// Image credential id
	ImageCredentialId string `json:"image_credential_id"`
	// Command to execute (i.e., entrypoint for docker)
	Command []string `json:"command"`
	// Args for the Command (i.e. command for docker)
	Args []string `json:"args"`
	// Current working directory of the command.
	WorkingDir string `json:"working_dir"`
	// List of environment variable to set in the container.
	Envs []*ContainerKeyValue `json:"envs"`
	// Enable lxcfs
	EnableLxcfs        bool                      `json:"enable_lxcfs"`
	Capabilities       *ContainerCapability      `json:"capabilities"`
	Privileged         bool                      `json:"privileged"`
	DisableNoNewPrivs  bool                      `json:"disable_no_new_privs"`
	Lifecyle           *ContainerLifecyle        `json:"lifecyle"`
	CgroupDevicesAllow []string                  `json:"cgroup_devices_allow"`
	CgroupPidsMax      int                       `json:"cgroup_pids_max"`
	ResourcesLimit     *ContainerResources       `json:"resources_limit"`
	SimulateCpu        bool                      `json:"simulate_cpu"`
	ShmSizeMB          int                       `json:"shm_size_mb"`
	SecurityContext    *ContainerSecurityContext `json:"security_context,omitempty"`
	// Periodic probe of container liveness.
	// Container will be restarted if the probe fails.
	// Cannot be updated.
	//LivenessProbe *ContainerProbe `json:"liveness_probe,omitempty"`
	// StartupProbe indicates that the Pod has successfully initialized.
	// If specified, no other probes are executed until this completes successfully.
	StartupProbe *ContainerProbe `json:"startup_probe,omitempty"`
}

func (*ContainerSpec) NeedProbe

func (c *ContainerSpec) NeedProbe() bool

type ContainerVolumeMount

type ContainerVolumeMount struct {
	// 用于标识当前 pod volume mount 的唯一性
	UniqueName string                        `json:"unique_name"`
	Type       ContainerVolumeMountType      `json:"type"`
	Disk       *ContainerVolumeMountDisk     `json:"disk"`
	HostPath   *ContainerVolumeMountHostPath `json:"host_path"`
	Text       *ContainerVolumeMountText     `json:"text"`
	CephFS     *ContainerVolumeMountCephFS   `json:"ceph_fs"`
	// Mounted read-only if true, read-write otherwise (false or unspecified).
	ReadOnly bool `json:"read_only"`
	// Path within the container at which the volume should be mounted.  Must
	// not contain ':'.
	MountPath string `json:"mount_path"`
	// If set, the mount needs SELinux relabeling.
	SelinuxRelabel bool `json:"selinux_relabel,omitempty"`
	// Requested propagation mode.
	Propagation ContainerMountPropagation `json:"propagation,omitempty"`
	// Owner permissions
	FsUser  *int64 `json:"fs_user,omitempty"`
	FsGroup *int64 `json:"fs_group,omitempty"`
}

type ContainerVolumeMountCephFS

type ContainerVolumeMountCephFS struct {
	Id string `json:"id"`
}

type ContainerVolumeMountDisk

type ContainerVolumeMountDisk struct {
	Index           *int   `json:"index,omitempty"`
	Id              string `json:"id"`
	SubDirectory    string `json:"sub_directory"`
	StorageSizeFile string `json:"storage_size_file"`
	// lower overlay 设置,disk 的 volume 会作为 upper,最终 merged 的目录会传给容器
	Overlay *ContainerVolumeMountDiskOverlay `json:"overlay"`
	// case insensitive feature is incompatible with overlayfs
	CaseInsensitivePaths []string `json:"case_insensitive_paths"`
	// 当 disk volume 挂载完后,需要 overlay 的目录设置
	PostOverlay []*ContainerVolumeMountDiskPostOverlay `json:"post_overlay"`
}

type ContainerVolumeMountDiskOverlay

type ContainerVolumeMountDiskOverlay struct {
	LowerDir     []string `json:"lower_dir"`
	UseDiskImage bool     `json:"use_disk_image"`
}

func (ContainerVolumeMountDiskOverlay) GetType

func (ContainerVolumeMountDiskOverlay) IsValid

type ContainerVolumeMountDiskPostOverlay

type ContainerVolumeMountDiskPostOverlay struct {
	// 宿主机底层目录
	HostLowerDir []string `json:"host_lower_dir"`
	// 合并后要挂载到容器的目录
	ContainerTargetDir string `json:"container_target_dir"`
}

type ContainerVolumeMountHostPath

type ContainerVolumeMountHostPath struct {
	Type ContainerVolumeMountHostPathType `json:"type"`
	Path string                           `json:"path"`
}

type ContainerVolumeMountHostPathType

type ContainerVolumeMountHostPathType string
const (
	CONTAINER_VOLUME_MOUNT_HOST_PATH_TYPE_DIRECTORY ContainerVolumeMountHostPathType = "directory"
	CONTAINER_VOLUME_MOUNT_HOST_PATH_TYPE_FILE      ContainerVolumeMountHostPathType = "file"
)

type ContainerVolumeMountText

type ContainerVolumeMountText struct {
	Content string `json:"content"`
}

type ContainerVolumeMountType

type ContainerVolumeMountType string
const (
	CONTAINER_VOLUME_MOUNT_TYPE_DISK      ContainerVolumeMountType = "disk"
	CONTAINER_VOLUME_MOUNT_TYPE_HOST_PATH ContainerVolumeMountType = "host_path"
	CONTAINER_VOLUME_MOUNT_TYPE_TEXT      ContainerVolumeMountType = "text"
	CONTAINER_VOLUME_MOUNT_TYPE_CEPHF_FS  ContainerVolumeMountType = "ceph_fs"
)

type DeletePreventableResourceBaseListInput

type DeletePreventableResourceBaseListInput struct {
	// 是否禁止删除
	DisableDelete *bool `json:"disable_delete"`
}

type DistinctFieldInput

type DistinctFieldInput struct {
	Field      []string
	ExtraField []string
}

type DistinctFieldsInput

type DistinctFieldsInput struct {
	Field         []string
	ExtraField    []string
	ExtraResource string
}

type DomainLevelResourceBaseUpdateInput

type DomainLevelResourceBaseUpdateInput struct {
	StandaloneResourceBaseUpdateInput
}

type DomainLevelResourceDetails

type DomainLevelResourceDetails struct {
	StandaloneResourceDetails

	DomainizedResourceInfo
}

type DomainizedResourceCreateInput

type DomainizedResourceCreateInput struct {
	DomainizedResourceInput
}

type DomainizedResourceInfo

type DomainizedResourceInfo struct {
	// 资源归属项目的域名称
	ProjectDomain string `json:"project_domain"`
}

type DomainizedResourceInput

type DomainizedResourceInput struct {
	// 指定项目归属域名称或ID
	// required: false
	ProjectDomainId string `json:"project_domain_id" help:"name or id of the belonging domain"`

	// swagger:ignore
	// Deprecated
	Domain string `json:"domain" yunion-deprecated-by:"project_domain_id"`
	// swagger:ignore
	// Deprecated
	// Project domain Id filter, alias for project_domain
	ProjectDomain string `json:"project_domain" yunion-deprecated-by:"project_domain_id"`
	// swagger:ignore
	// Deprecated
	// Domain Id filter, alias for project_domain
	DomainId string `json:"domain_id" yunion-deprecated-by:"project_domain_id"`
}

type DomainizedResourceListInput

type DomainizedResourceListInput struct {
	ScopedResourceInput

	DomainizedResourceInput

	// 对具有域属性的资源,严格匹配域ID
	ProjectDomainIds []string `json:"project_domain_ids"`
	// Deprecated
	// swagger:ignore
	ProjectDomains []string `json:"project_domains" yunion-deprecated-by:"project_domain_ids"`

	// 按domain名称排序,可能值为asc|desc
	// pattern: asc|desc
	OrderByDomain string `json:"order_by_domain"`

	// filter by domain tags
	DomainTags tagutils.TTagSetList `json:"domain_tags"`
	// filter by domain tags
	NoDomainTags tagutils.TTagSetList `json:"no_domain_tags"`
}

type EnabledBaseResourceCreateInput

type EnabledBaseResourceCreateInput struct {
	// 该资源是否被管理员*人为*启用或者禁用
	// required: false
	Enabled *bool `json:"enabled" help:"turn on enabled flag"`

	// 该资源是否被管理员*人为*禁用, 和enabled互斥
	// required: false
	Disabled *bool `json:"disabled" help:"turn off enabled flag"`
}

func (*EnabledBaseResourceCreateInput) AfterUnmarshal

func (input *EnabledBaseResourceCreateInput) AfterUnmarshal()

func (*EnabledBaseResourceCreateInput) SetDisabled

func (self *EnabledBaseResourceCreateInput) SetDisabled()

func (*EnabledBaseResourceCreateInput) SetEnabled

func (self *EnabledBaseResourceCreateInput) SetEnabled()

type EnabledResourceBaseListInput

type EnabledResourceBaseListInput struct {
	// 以资源是否启用/禁用过滤列表
	Enabled *bool `json:"enabled"`
}

type EnabledStatusDomainLevelResourceBaseUpdateInput

type EnabledStatusDomainLevelResourceBaseUpdateInput struct {
	StatusDomainLevelResourceBaseUpdateInput
}

type EnabledStatusDomainLevelResourceDetails

type EnabledStatusDomainLevelResourceDetails struct {
	StatusDomainLevelResourceDetails
}

type EnabledStatusInfrasResourceBaseDetails

type EnabledStatusInfrasResourceBaseDetails struct {
	StatusInfrasResourceBaseDetails
}

type EnabledStatusInfrasResourceBaseUpdateInput

type EnabledStatusInfrasResourceBaseUpdateInput struct {
	StatusInfrasResourceBaseUpdateInput
}

type EnabledStatusStandaloneResourceBaseUpdateInput

type EnabledStatusStandaloneResourceBaseUpdateInput struct {
	StatusStandaloneResourceBaseUpdateInput
}

type EnabledStatusStandaloneResourceDetails

type EnabledStatusStandaloneResourceDetails struct {
	StatusStandaloneResourceDetails
}

type EncryptedResourceCreateInput

type EncryptedResourceCreateInput struct {
	// 是否新建密钥
	EncryptKeyNew *bool `json:"encrypt_key_new"`

	// 新建密钥算法
	EncryptKeyAlg *string `json:"encrypt_key_alg"`

	// 加密密钥的ID
	EncryptKeyId *string `json:"encrypt_key_id"`

	// 加密密钥的用户ID
	EncryptKeyUserId *string `json:"encrypt_key_user_id"`
}

func (EncryptedResourceCreateInput) NeedEncrypt

func (input EncryptedResourceCreateInput) NeedEncrypt() bool

type EncryptedResourceDetails

type EncryptedResourceDetails struct {
	// 秘钥名称
	EncryptKey string `json:"encrypt_key"`

	// 加密算法,aes-256 or sm4
	EncryptAlg string `json:"encrypt_alg"`

	// 密钥用户
	EncryptKeyUser string `json:"encrypt_key_user"`
	// 密钥用户ID
	EncryptKeyUserId string `json:"encrypt_key_user_id"`
	// 密钥用户域
	EncryptKeyUserDomain string `json:"encrypt_key_user_domain"`
	// 密钥用户域ID
	EncryptKeyUserDomainId string `json:"encrypt_key_user_domain_id"`
}

type ExternalizedResourceBaseListInput

type ExternalizedResourceBaseListInput struct {
	// 以资源外部ID过滤
	ExternalId string `json:"external_id"`
}

type GetClassMetadataInput

type GetClassMetadataInput struct {
}

type GetClassMetadataOutput

type GetClassMetadataOutput map[string]string

type GetDetailsStatusOutput

type GetDetailsStatusOutput struct {
	// 状态
	Status string `json:"status"`
}

type GetMetadataInput

type GetMetadataInput struct {
	// 指定需要获取的所有标签的KEY列表,如果列表为空,则获取全部标签
	// 标签分为
	//
	// | 类型     | 说明                                        |
	// |----------|---------------------------------------------|
	// | 系统标签 | 平台定义的标签                              |
	// | 用户标签 | key以user:为前缀,用户自定义标签            |
	// | 外部标签 | key以ext:为前缀,为从其他平台同步过来的标签 |
	//
	Field []string `json:"field"`

	// 按标签前缀过滤
	Prefix string `json:"prefix"`
}

获取资源的元数据输入

type GetMetadataOutput

type GetMetadataOutput map[string]string

获取资源标签(元数据)输出

type HTTPHeader

type HTTPHeader struct {
	// The header field name
	Name string `json:"name"`
	// The header field value
	Value string `json:"value"`
}

HTTPHeader describes a custom header to be used in HTTP probes

type IdNameDetails

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

type ImagePullPolicy

type ImagePullPolicy string

type IncrementalListInput

type IncrementalListInput struct {
	// 用于指定增量加载的标记
	PagingMarker string `json:"paging_marker"`
}

type InfrasResourceBaseDetails

type InfrasResourceBaseDetails struct {
	DomainLevelResourceDetails
	SharableResourceBaseInfo
}

type InfrasResourceBaseUpdateInput

type InfrasResourceBaseUpdateInput struct {
	DomainLevelResourceBaseUpdateInput
}

type JoinResourceBaseCreateInput

type JoinResourceBaseCreateInput struct {
	ResourceBaseCreateInput
}

type JointResourceBaseDetails

type JointResourceBaseDetails struct {
	ResourceBaseDetails
}

type JointResourceBaseListInput

type JointResourceBaseListInput struct {
	ResourceBaseListInput
}

type JointResourceBaseUpdateInput

type JointResourceBaseUpdateInput struct {
	ResourceBaseUpdateInput
}

type Meta

type Meta struct{}

Meta is embedded by every input or output params

func (Meta) JSON

func (m Meta) JSON(self interface{}) *jsonutils.JSONDict

type MetaGetPropertyTagValuePairsInput

type MetaGetPropertyTagValuePairsInput struct {
	MetadataListInput

	// 只输入Key
	KeyOnly *bool `json:"key_only"`
}

type MetadataBaseFilterInput

type MetadataBaseFilterInput struct {
	// 仅显示系统标签
	SysMeta *bool `json:"sys_meta"`

	// 仅显示同步下来的标签
	CloudMeta *bool `json:"cloud_meta"`

	// 仅显示用户标签
	UserMeta *bool `json:"user_meta"`

	// 同时显示系统标签
	WithSysMeta *bool `json:"with_sys_meta"`

	// 同时显示同步下来的标签
	WithCloudMeta *bool `json:"with_cloud_meta"`

	// 同时显示用户标签
	WithUserMeta *bool `json:"with_user_meta"`

	// 按key模糊匹配
	KeyLike string `json:"key_like"`

	// 按Key过滤
	Key []string `json:"key"`

	// 按Value过滤
	Value []string `json:"value"`
}

type MetadataListInput

type MetadataListInput struct {
	ModelBaseListInput

	ScopedResourceInput

	DomainizedResourceInput

	ProjectizedResourceInput

	MetadataBaseFilterInput

	// 按关联资源类型过滤
	Resources []string `json:"resources"`
}

type MetadataResourceInfo

type MetadataResourceInfo struct {
	// 标签
	Metadata map[string]string `json:"metadata"`
}

func (MetadataResourceInfo) GetMetricTags

func (self MetadataResourceInfo) GetMetricTags() map[string]string

type MetadataResourceListInput

type MetadataResourceListInput struct {
	// 通过标签过滤(包含这些标签)
	Tags tagutils.TTagSet `json:"tags"`

	// 通过一组标签过滤(还包含这些标签,OR的关系)
	ObjTags tagutils.TTagSetList `json:"obj_tags"`

	// 通过标签过滤(不包含这些标签)
	NoTags tagutils.TTagSet `json:"no_tags"`

	// 通过一组标签过滤(还不包含这些标签,AND的关系)
	NoObjTags tagutils.TTagSetList `json:"no_obj_tags"`

	// 通过标签排序
	OrderByTag string `json:"order_by_tag"`

	// deprecated
	// 返回资源的标签不包含用户标签
	WithoutUserMeta *bool `json:"without_user_meta"`

	// 返回包含用户标签的资源
	WithUserMeta *bool `json:"with_user_meta"`

	// 返回包含外部标签的资源
	WithCloudMeta *bool `json:"with_cloud_meta"`

	// 返回包含任意标签的资源
	WithAnyMeta *bool `json:"with_any_meta"`

	// 返回列表数据中包含资源的标签数据(Metadata)
	WithMeta *bool `json:"with_meta"`
}

type ModelBaseCreateInput

type ModelBaseCreateInput struct {
	Meta
}

type ModelBaseDetails

type ModelBaseDetails struct {
	Meta

	// 资源是否可以删除, 若为flase, delete_fail_reason会返回不能删除的原因
	// example: true
	CanDelete bool `json:"can_delete"`

	// 资源不能删除的原因
	DeleteFailReason httperrors.Error `json:"delete_fail_reason"`

	// 资源是否可以更新, 若为false,update_fail_reason会返回资源不能删除的原因
	// example: true
	CanUpdate bool `json:"can_update"`

	// 资源不能更新的原因
	UpdateFailReason httperrors.Error `json:"update_fail_reason"`
}

type ModelBaseListInput

type ModelBaseListInput struct {
	Meta

	// 查询限制量
	// default: 20
	Limit *int `json:"limit" default:"20" help:"max items per page"`
	// 查询偏移量
	// default: 0
	Offset *int `json:"offset"`
	// 列表排序时,用于排序的字段的名称,该字段不提供时,则按默认字段排序。一般时按照资源的新建时间逆序排序。
	OrderBy []string `json:"order_by"`
	// 列表排序时的顺序,desc为从高到低,asc为从低到高。默认是按照资源的创建时间desc排序。
	// example: desc|asc
	Order string `json:"order"`
	// 列表返回资源的更多详细信息。默认只显示基本字段,该字段为true则返回扩展字段信息。
	Details *bool `json:"details"`
	// 模糊搜索所有字段
	Search string `json:"search"`
	// 指定过滤条件,允许指定多个,每个条件的格式为"字段名称.操作符(匹配信息)",例如name字段等于test的过滤器为:name.equals('test')
	// 支持的操作符如下:
	//
	// | 操作符        | 参数个数 | 举例                                           | 说明                        |
	// |---------------|----------|------------------------------------------------|-----------------------------|
	// | in            | > 0      | name.in("test", "good")                        | 在给定数组中                |
	// | notin         | > 0      | name.notin('test')                             | 不在给定数组中              |
	// | between       | 2        | created_at.between('2019-12-10', '2020-01-02') | 在两个值之间                |
	// | ge            | 1        | created_at.ge('2020-01-01')                    | 大于或等于给定值            |
	// | gt            | 1        | created_at.gt('2020-01-01')                    | 严格大于给定值              |
	// | le            | 1        | created_at.le('2020-01-01')                    | 小于或等于给定值            |
	// | lt            | 1        | sync_seconds.lt(900)                           | 严格大于给定值              |
	// | like          | > 0      | name.like('%test%')                            | sql字符串匹配任意一个字符串 |
	// | contains      | > 0      | name.contains('test')                          | 包含任意一个给定字符串      |
	// | startswith    | > 0      | name.startswith('test')                        | 以任意一个给定字符串开头    |
	// | endswith      | > 0      | name.endswith('test')                          | 以任意一个给定字符串结尾    |
	// | equals        | > 0      | name.equals('test')                            | 等于任意一个给定值          |
	// | notequals     | 1        | name.notequals('test')                         | 不等于给定值                |
	// | isnull        | 0        | name.isnull()                                  | 值为SQL的NULL               |
	// | isnotnull     | 0        | name.isnotnull()                               | 值不为SQL的NULL             |
	// | isempty       | 0        | name.isempty('test')                           | 值为空字符串                |
	// | isnotempty    | 0        | name.isnotempty('test')                        | 值不是空字符串              |
	// | isnullorempty | 0        | name.isnullorempty('test')                     | 值为SQL的NULL或者空字符串   |
	//
	Filter []string `json:"filter"`
	// 指定关联过滤条件,允许指定多个,后端将根据关联过滤条件和其他表关联查询,支持的查询语法和filter相同,
	// 和其他表关联的语法如下:
	//     joint_resources.related_key(origin_key).filter_col.filter_ops(values)
	// 其中,joint_resources为要关联的资源名称,related_key为关联表column,origin_key为当前表column, filter_col为
	// 关联表用于查询匹配的field名称,field_ops为filter支持的操作,values为匹配的值
	// 举例:
	//     guestnetworks.guest_id(id).ip_addr.equals('10.168.21.222')
	JointFilter []string `json:"joint_filter"`
	// 如果filter_any为true,则查询所有filter的并集,否则为交集
	FilterAny *bool `json:"filter_any"`
	// 返回结果只包含指定的字段
	Field []string `json:"field"`
	// 用于数据导出,指定导出的数据字段
	ExportKeys string `json:"export_keys" help:"Export field keys"`
	// 返回结果携带delete_fail_reason和update_fail_reason字段
	ShowFailReason *bool `json:"show_fail_reason"`
}

func (ModelBaseListInput) GetExportKeys

func (o ModelBaseListInput) GetExportKeys() string

type ModelBaseShortDescDetail

type ModelBaseShortDescDetail struct {
	ResName string `json:"res_name"`
}

type ModelBaseUpdateInput

type ModelBaseUpdateInput struct {
	Meta
}

type MultiArchResourceBaseListInput

type MultiArchResourceBaseListInput struct {
	// 通过操作系统架构过滤
	// x86会过滤出os_arch为空或os_arch=i386或以x86开头的资源
	// arm会过滤出os_arch=aarch64或os_arch=aarch32或者以arm开头的资源
	// 其他的输入会过滤出以输入字符开头的资源
	// enmu: x86, arm
	OsArch []string `json:"os_arch"`
}

type OpsLogCreateInput

type OpsLogCreateInput struct {
	ModelBaseCreateInput

	ObjType string `json:"obj_type"`
	ObjId   string `json:"obj_id"`
	ObjName string `json:"obj_name"`
	Action  string `json:"action"`
	Notes   string `json:"notes"`

	ProjectId string `json:"tenant_id"`
	Project   string `json:"tenant"`

	ProjectDomainId string `json:"project_domain_id"`
	ProjectDomain   string `json:"project_domain"`

	UserId   string `json:"user_id"`
	User     string `json:"user"`
	DomainId string `json:"domain_id"`
	Domain   string `json:"domain"`
	Roles    string `json:"roles"`

	OwnerDomainId  string `json:"owner_domain_id"`
	OwnerProjectId string `json:"owner_tenant_id"`
}

type OpsLogDetails

type OpsLogDetails struct {
	ModelBaseDetails

	Id      int64  `json:"id"`
	ObjType string `json:"obj_type"`
	ObjId   string `json:"obj_id"`
	ObjName string `json:"obj_name"`
	Action  string `json:"action"`
	Notes   string `json:"notes"`

	ProjectId string `json:"tenant_id"`
	Project   string `json:"tenant"`

	ProjectDomainId string `json:"project_domain_id"`
	ProjectDomain   string `json:"project_domain"`

	UserId   string `json:"user_id"`
	User     string `json:"user"`
	DomainId string `json:"domain_id"`
	Domain   string `json:"domain"`
	Roles    string `json:"roles"`

	OpsTime time.Time `json:"ops_time"`

	OwnerDomainId  string `json:"owner_domain_id"`
	OwnerProjectId string `json:"owner_project_id"`

	OwnerDomain  string `json:"owner_domain"`
	OwnerProject string `json:"owner_tenant"`
}

type OpsLogListInput

type OpsLogListInput struct {
	OwnerProjectIds []string `json:"owner_project_ids"`
	OwnerDomainIds  []string `json:"owner_domain_ids"`

	// filter by obj type
	ObjTypes []string `json:"obj_type"`

	// filter by obj name or obj id
	Objs []string `json:"obj"`

	// filter by obj ids
	ObjIds []string `json:"obj_id"`

	// filter by obj name
	ObjNames []string `json:"obj_name"`

	// filter by action
	Actions []string `json:"action"`

	Since time.Time `json:"since"`

	Until time.Time `json:"until"`
}

type PerformChangeDomainOwnerInput

type PerformChangeDomainOwnerInput struct {
	DomainizedResourceInput
}

type PerformChangeProjectOwnerInput

type PerformChangeProjectOwnerInput struct {
	DomainizedResourceInput
	ProjectizedResourceInput
}

type PerformClassMetadataInput

type PerformClassMetadataInput map[string]string

type PerformDisableInput

type PerformDisableInput struct {
}

type PerformEnableInput

type PerformEnableInput struct {
}

type PerformFreezeInput

type PerformFreezeInput struct {
}

type PerformMetadataInput

type PerformMetadataInput map[string]string

设置资源的标签(元数据)输入

type PerformPrivateInput

type PerformPrivateInput struct {
}

type PerformPublicDomainInput

type PerformPublicDomainInput struct {
	// 共享项目资源的共享范围,可能的值为:project, domain和system
	// pattern: project|domain|system
	Scope string `json:"scope"`

	// 如果共享范围为域,则在此列表中指定共享的目标域
	SharedDomainIds []string `json:"shared_domain_ids"`
	// Deprecated
	// swagger:ignore
	SharedDomains []string `json:"shared_domains" yunion-deprecated-by:"shared_domain_ids"`
}

type PerformPublicProjectInput

type PerformPublicProjectInput struct {
	PerformPublicDomainInput

	// 如果共享范围为项目,则在此列表中指定共享的目标项目
	SharedProjectIds []string `json:"shared_project_ids"`
	// Deprecated
	// swagger:ignore
	SharedProjects []string `json:"shared_projects" yunion-deprecated-by:"shared_project_ids"`
}

type PerformSetClassMetadataInput

type PerformSetClassMetadataInput map[string]string

type PerformSetUserMetadataInput

type PerformSetUserMetadataInput map[string]string

全量替换资源的用户标签(元数据)输入

type PerformStatusInput

type PerformStatusInput struct {
	// 更改的目标状态值
	// required:true
	Status string `json:"status"`
	// swagger:ignore
	BlockJobsCount int `json:"block_jobs_count"`
	// 电源状态
	PowerStates string `json:"power_states"`
	// call from host id
	HostId string `json:"host_id"`

	// 更改状态的原因描述
	// required:false
	Reason string `json:"reason"`
}

type PerformUnfreezeInput

type PerformUnfreezeInput struct {
}

type PerformUserMetadataInput

type PerformUserMetadataInput map[string]string

设置资源的用户标签(元数据)输入

type PostpaidExpireInput

type PostpaidExpireInput struct {
	Duration   string    `json:"duration"`
	ExpireTime time.Time `json:"expire_time"`
}

type ProcessStats

type ProcessStats struct {
	CpuPercent   float64 `json:"cpu_percent"`
	MemPercent   float32 `json:"mem_percent"`
	MemSize      uint64  `json:"mem_size"`
	GoroutineNum int     `json:"goroutine_num"`
}

type ProjectStatistic

type ProjectStatistic struct {
	Count int
	Id    string
	Name  string
}

type ProjectizedResourceCreateInput

type ProjectizedResourceCreateInput struct {
	DomainizedResourceInput
	ProjectizedResourceInput
}

type ProjectizedResourceInfo

type ProjectizedResourceInfo struct {
	DomainizedResourceInfo

	// 资源归属项目的名称
	// alias:project
	Project string `json:"tenant"`

	// 资源归属项目的ID(向后兼容别名)
	// Deprecated
	TenantId string `json:"project_id" yunion-deprecated-by:"tenant_id"`

	// 资源归属项目的名称(向后兼容别名)
	// Deprecated
	Tenant string `json:"project" yunion-deprecated-by:"tenant"`

	ProjectMetadata map[string]string `json:"project_metadata"`
}

func (ProjectizedResourceInfo) GetMetricTags

func (self ProjectizedResourceInfo) GetMetricTags() map[string]string

type ProjectizedResourceInput

type ProjectizedResourceInput struct {
	// 指定项目的名称或ID
	// required: false
	ProjectId string `json:"project_id"`
	// swagger:ignore
	// Deprecated
	// Filter by project_id, alias for project
	Project string `json:"project" yunion-deprecated-by:"project_id"`
	// swagger:ignore
	// Deprecated
	// Filter by tenant ID or Name, alias for project
	Tenant string `json:"tenant" yunion-deprecated-by:"project_id"`
	// swagger:ignore
	// Deprecated
	// Filter by tenant_id, alias for project
	TenantId string `json:"tenant_id" yunion-deprecated-by:"project_id"`
}

type ProjectizedResourceListInput

type ProjectizedResourceListInput struct {
	DomainizedResourceListInput

	ProjectizedResourceInput

	// 对具有项目属性的资源,严格匹配项目ID
	ProjectIds []string `json:"project_ids"`
	// Deprecated
	// swagger:ignore
	Projects []string `json:"projects" yunion-deprecated-by:"project_ids"`

	// 按project名称排序,可能值为asc|desc
	// pattern: asc|desc
	OrderByProject string `json:"order_by_project"`
	// swagger:ignore
	// Deprecated
	OrderByTenant string `json:"order_by_tenant" yunion-deprecated-by:"order_by_project"`

	// filter by project tags
	ProjectTags tagutils.TTagSetList `json:"project_tags"`
	// filter by no project tags
	NoProjectTags tagutils.TTagSetList `json:"no_project_tags"`

	// filter by project organizations
	ProjectOrganizations []string `json:"project_organizations"`

	// ignore
	// project tag fitlers imposed by policy
	PolicyProjectTags tagutils.TTagSetList `json:"policy_project_tags"`
}

type PurgeSplitTableInput

type PurgeSplitTableInput struct {
	Tables []string `json:"tables"`
}

type RenewInput

type RenewInput struct {
	Duration string `json:"duration"`
}

type ResourceBaseCreateInput

type ResourceBaseCreateInput struct {
	ModelBaseCreateInput
}

type ResourceBaseDetails

type ResourceBaseDetails struct {
	ModelBaseDetails
}

type ResourceBaseListInput

type ResourceBaseListInput struct {
	ModelBaseListInput
}

type ResourceBaseUpdateInput

type ResourceBaseUpdateInput struct {
	ModelBaseUpdateInput
}

type SAccountShareInfo

type SAccountShareInfo struct {
	IsPublic      bool
	PublicScope   rbacscope.TRbacScope
	ShareMode     string
	SharedDomains []string
}

func (SAccountShareInfo) GetDomainShareInfo

func (i SAccountShareInfo) GetDomainShareInfo() SShareInfo

func (SAccountShareInfo) GetProjectShareInfo

func (i SAccountShareInfo) GetProjectShareInfo() SShareInfo

type SAdminSharableVirtualResourceBase

type SAdminSharableVirtualResourceBase struct {
	SSharableVirtualResourceBase
	Records string `json:"records"`
}

SAdminSharableVirtualResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SAdminSharableVirtualResourceBase.

type SAutoDeleteResourceBase

type SAutoDeleteResourceBase struct {
	// 是否跟随资源自动删除
	// example: false
	AutoDelete bool `json:"auto_delete"`
}

SAutoDeleteResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SAutoDeleteResourceBase.

type SCertificateResourceBase

type SCertificateResourceBase struct {
	Certificate string `json:"certificate"`
	PrivateKey  string `json:"private_key"`
	// derived attributes
	PublicKeyAlgorithm      string    `json:"public_key_algorithm"`
	PublicKeyBitLen         int       `json:"public_key_bit_len"`
	SignatureAlgorithm      string    `json:"signature_algorithm"`
	Fingerprint             string    `json:"fingerprint"`
	NotBefore               time.Time `json:"not_before"`
	NotAfter                time.Time `json:"not_after"`
	CommonName              string    `json:"common_name"`
	SubjectAlternativeNames string    `json:"subject_alternative_names"`
}

SCertificateResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SCertificateResourceBase.

type SDistinctField

type SDistinctField struct {
	// 资源类型
	// example: network
	ObjType string `json:"obj_type"`
	// 资源组合ID
	// example: obj_type::key::value
	Id string `json:"id"`
	// Distinct Field
	// exmaple: 部门
	Key string `json:"key"`
	// Distinct Value
	// example: 技术部
	Value string `json:"value"`
}

SDistinctField is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDistinctField.

type SDomainLevelResourceBase

type SDomainLevelResourceBase struct {
	SStandaloneResourceBase
	SDomainizedResourceBase
	// 归属Domain信息的来源, local: 本地设置, cloud: 从云上同步过来
	// example: local
	DomainSrc string `json:"domain_src"`
}

SDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDomainLevelResourceBase.

type SDomainizedResourceBase

type SDomainizedResourceBase struct {
	// 域Id
	DomainId string `json:"domain_id"`
}

SDomainizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDomainizedResourceBase.

type SEnabledResourceBase

type SEnabledResourceBase struct {
	// 资源是否启用
	Enabled *bool `json:"enabled,omitempty"`
}

SEnabledResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledResourceBase.

type SEnabledStatusDomainLevelResourceBase

type SEnabledStatusDomainLevelResourceBase struct {
	SStatusDomainLevelResourceBase
	SEnabledResourceBase
}

SEnabledStatusDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledStatusDomainLevelResourceBase.

type SEnabledStatusInfrasResourceBase

type SEnabledStatusInfrasResourceBase struct {
	SStatusInfrasResourceBase
	SEnabledResourceBase
}

SEnabledStatusInfrasResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledStatusInfrasResourceBase.

type SEnabledStatusStandaloneResourceBase

type SEnabledStatusStandaloneResourceBase struct {
	SStatusStandaloneResourceBase
	SEnabledResourceBase
}

SEnabledStatusStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledStatusStandaloneResourceBase.

type SEncryptInfo

type SEncryptInfo struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Key  string `json:"key"`

	Alg seclib2.TSymEncAlg `json:"alg"`
}

type SEncryptedResource

type SEncryptedResource struct {
	// 加密密钥ID
	EncryptKeyId string `json:"encrypt_key_id"`
}

SEncryptedResource is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEncryptedResource.

type SExternalizedResourceBase

type SExternalizedResourceBase struct {
	// 云上Id, 对应云上资源自身Id
	ExternalId string `json:"external_id"`
	// 资源导入时间
	ImportedAt time.Time `json:"imported_at"`
	// 资源来源, cloud: 从云上同步下来的资源, local: 从本地创建的资源或资源在本地更改过项目
	Source string `json:"source"`
}

SExternalizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SExternalizedResourceBase.

type SI18n

type SI18n struct {
	// 资源类型
	// example: network
	ObjType string `json:"obj_type"`
	// 资源ID
	// example: 87321a70-1ecb-422a-8b0c-c9aa632a46a7
	ObjId string `json:"obj_id"`
	// 资源KEY
	// exmaple: name
	KeyName string `json:"key_name"`
	// 资源原始值
	// example: 技术部
	KeyValue string `json:"key_value"`
	// KeyValue 对应中文翻译
	Cn string `json:"cn"`
	// KeyValue 对应英文翻译
	En string `json:"en"`
}

SI18n is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SI18n.

type SInfrasResourceBase

type SInfrasResourceBase struct {
	SDomainLevelResourceBase
	SSharableBaseResource
}

SInfrasResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SInfrasResourceBase.

type SJointResourceBase

type SJointResourceBase struct {
	SResourceBase
	RowId int64 `json:"row_id"`
}

SJointResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SJointResourceBase.

type SKeystoneCacheObject

type SKeystoneCacheObject struct {
	SStandaloneResourceBase
	SPendingDeletedBase
	DomainId string `json:"domain_id"`
	Domain   string `json:"domain"`
	Lang     string `json:"lang"`
}

SKeystoneCacheObject is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SKeystoneCacheObject.

type SLogBase

type SLogBase struct {
	Id int64 `json:"id"`
}

SLogBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SLogBase.

type SMetadata

type SMetadata struct {
	// 资源类型
	// example: network
	ObjType string `json:"obj_type"`
	// 资源ID
	// example: 87321a70-1ecb-422a-8b0c-c9aa632a46a7
	ObjId string `json:"obj_id"`
	// 资源组合ID
	// example: network::87321a70-1ecb-422a-8b0c-c9aa632a46a7
	Id string `json:"id"`
	// 标签KEY
	// exmaple: 部门
	Key string `json:"key"`
	// 标签值
	// example: 技术部
	Value string `json:"value"`
	// 是否被删除
	Deleted bool `json:"deleted"`
}

SMetadata is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SMetadata.

type SMultiArchResourceBase

type SMultiArchResourceBase struct {
	// 操作系统 CPU 架构
	// example: x86 arm
	OsArch string `json:"os_arch"`
}

SMultiArchResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SMultiArchResourceBase.

type SOpsLog

type SOpsLog struct {
	SLogBase
	ObjType         string    `json:"obj_type"`
	ObjId           string    `json:"obj_id"`
	ObjName         string    `json:"obj_name"`
	Action          string    `json:"action"`
	Notes           string    `json:"notes"`
	ProjectId       string    `json:"tenant_id"`
	Project         string    `json:"tenant"`
	ProjectDomainId string    `json:"project_domain_id"`
	ProjectDomain   string    `json:"project_domain"`
	UserId          string    `json:"user_id"`
	User            string    `json:"user"`
	DomainId        string    `json:"domain_id"`
	Domain          string    `json:"domain"`
	Roles           string    `json:"roles"`
	OpsTime         time.Time `json:"ops_time"`
	OwnerDomainId   string    `json:"owner_domain_id"`
	OwnerProjectId  string    `json:"owner_tenant_id"`
}

SOpsLog is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SOpsLog.

type SPendingDeletedBase

type SPendingDeletedBase struct {
	// 资源放入回收站时间
	PendingDeletedAt time.Time `json:"pending_deleted_at"`
	// 资源是否处于回收站中
	PendingDeleted bool `json:"pending_deleted"`
}

SPendingDeletedBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SPendingDeletedBase.

type SProjectizedResourceBase

type SProjectizedResourceBase struct {
	SDomainizedResourceBase
	// 项目Id
	ProjectId string `json:"tenant_id"`
}

SProjectizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SProjectizedResourceBase.

type SRecordChecksumResourceBase

type SRecordChecksumResourceBase struct {
	RecordChecksum string `json:"record_checksum"`
}

SRecordChecksumResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SRecordChecksumResourceBase.

type SResourceBase

type SResourceBase struct {
	// 资源创建时间
	CreatedAt time.Time `json:"created_at"`
	// 资源更新时间
	UpdatedAt time.Time `json:"updated_at"`
	// 资源被更新次数
	UpdateVersion int `json:"update_version"`
	// 资源删除时间
	DeletedAt time.Time `json:"deleted_at"`
	// 资源是否被删除
	Deleted bool `json:"deleted"`
}

SResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SResourceBase.

type SRole

type SRole struct {
	SKeystoneCacheObject
}

SRole is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SRole.

type SScopedResourceBase

type SScopedResourceBase struct {
	SProjectizedResourceBase
}

SScopedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SScopedResourceBase.

type SSharableBaseResource

type SSharableBaseResource struct {
	// 是否共享
	IsPublic bool `json:"is_public"`
	// 默认共享范围
	PublicScope string `json:"public_scope"`
	// 共享设置的来源, local: 本地设置, cloud: 从云上同步过来
	// example: local
	PublicSrc string `json:"public_src"`
}

SSharableBaseResource is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SSharableBaseResource.

type SSharableVirtualResourceBase

type SSharableVirtualResourceBase struct {
	SVirtualResourceBase
	SSharableBaseResource
}

SSharableVirtualResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SSharableVirtualResourceBase.

type SShareInfo

type SShareInfo struct {
	IsPublic       bool
	PublicScope    rbacscope.TRbacScope
	SharedDomains  []string
	SharedProjects []string
}

func (SShareInfo) Equals

func (i SShareInfo) Equals(i2 SShareInfo) bool

func (*SShareInfo) FixDomainShare

func (i *SShareInfo) FixDomainShare()

func (*SShareInfo) FixProjectShare

func (i *SShareInfo) FixProjectShare()

func (SShareInfo) Intersect

func (i SShareInfo) Intersect(i2 SShareInfo) SShareInfo

func (SShareInfo) IsViolate

func (i SShareInfo) IsViolate(i2 SShareInfo) bool

type SSharedResource

type SSharedResource struct {
	SResourceBase
	Id           int64  `json:"id"`
	ResourceType string `json:"resource_type"`
	ResourceId   string `json:"resource_id"`
	// OwnerProjectId  string `width:"128" charset:"ascii" nullable:"false" index:"true" json:"owner_project_id"`
	TargetProjectId string `json:"target_project_id"`
	TargetType      string `json:"target_type"`
}

SSharedResource is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SSharedResource.

type SStandaloneAnonResourceBase

type SStandaloneAnonResourceBase struct {
	SResourceBase
	// 资源UUID
	Id string `json:"id"`
	// 资源描述信息
	Description string `json:"description"`
	// 是否是模拟资源, 部分从公有云上同步的资源并不真实存在, 例如宿主机
	// list 接口默认不会返回这类资源,除非显示指定 is_emulate=true 过滤参数
	IsEmulated bool `json:"is_emulated"`
}

SStandaloneAnonResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStandaloneAnonResourceBase.

type SStandaloneResourceBase

type SStandaloneResourceBase struct {
	SStandaloneAnonResourceBase
	// 资源名称
	Name string `json:"name"`
}

SStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStandaloneResourceBase.

type SStatusDomainLevelResourceBase

type SStatusDomainLevelResourceBase struct {
	SDomainLevelResourceBase
	SStatusResourceBase
}

SStatusDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusDomainLevelResourceBase.

type SStatusDomainLevelUserResourceBase

type SStatusDomainLevelUserResourceBase struct {
	SStatusDomainLevelResourceBase
	// 本地用户Id
	OwnerId string `json:"owner_id"`
}

SStatusDomainLevelUserResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusDomainLevelUserResourceBase.

type SStatusInfrasResourceBase

type SStatusInfrasResourceBase struct {
	SInfrasResourceBase
	SStatusResourceBase
}

SStatusInfrasResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusInfrasResourceBase.

type SStatusResourceBase

type SStatusResourceBase struct {
	// 资源状态
	Status string `json:"status"`
	// 操作进度0-100
	Progress float32 `json:"progress"`
}

SStatusResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusResourceBase.

type SStatusStandaloneResourceBase

type SStatusStandaloneResourceBase struct {
	SStandaloneResourceBase
	SStatusResourceBase
}

SStatusStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusStandaloneResourceBase.

type STenant

type STenant struct {
	SKeystoneCacheObject
}

STenant is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.STenant.

type SUser

type SUser struct {
	SKeystoneCacheObject
}

SUser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SUser.

type SUserResourceBase

type SUserResourceBase struct {
	SStandaloneResourceBase
	// 本地用户Id
	OwnerId string `json:"owner_id"`
}

SUserResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SUserResourceBase.

type SVirtualJointResourceBase

type SVirtualJointResourceBase struct {
	SJointResourceBase
}

SVirtualJointResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SVirtualJointResourceBase.

type SVirtualResourceBase

type SVirtualResourceBase struct {
	SStatusStandaloneResourceBase
	SProjectizedResourceBase
	SPendingDeletedBase
	// 云上同步资源是否在本地被更改过配置, local: 更改过, cloud: 未更改过
	// example: local
	ProjectSrc string `json:"project_src"`
	// 是否是系统资源
	IsSystem bool `json:"is_system"`
	// 资源是否被冻结
	Freezed bool `json:"freezed"`
}

SVirtualResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SVirtualResourceBase.

type ScopedResourceBaseInfo

type ScopedResourceBaseInfo struct {
	ProjectizedResourceInfo
	Scope string `json:"scope"`
}

type ScopedResourceBaseListInput

type ScopedResourceBaseListInput struct {
	ProjectizedResourceListInput
	// 指定匹配的范围,可能值为project, domain or system
	BelongScope string `json:"belong_scope"`
}

type ScopedResourceCreateInput

type ScopedResourceCreateInput struct {
	ProjectizedResourceCreateInput
	Scope string `json:"scope"`
}

type ScopedResourceInput

type ScopedResourceInput struct {
	// 指定查询的权限范围,可能值为project, domain or system
	Scope string `json:"scope"`
}

type SharableResourceBaseCreateInput

type SharableResourceBaseCreateInput struct {
	// 是否共享
	// required: false
	IsPublic *bool `json:"is_public" token:"public" negative:"private" help:"Turn on/off public/private"`

	// 共享范围
	// required: false
	PublicScope string `json:"public_scope" help:"set public_scope, either project, domain or system" choices:"project|domain|system"`
}

type SharableResourceBaseInfo

type SharableResourceBaseInfo struct {
	// 共享的项目列表
	SharedProjects []SharedProject `json:"shared_projects"`
	// 共享的域列表
	SharedDomains []SharedDomain `json:"shared_domains"`
}

type SharableResourceBaseListInput

type SharableResourceBaseListInput struct {
	// 以资源是否共享过滤列表
	IsPublic *bool `json:"is_public"`
	// 根据资源的共享范围过滤列表,可能值为:system, domain, project
	PublicScope string `json:"public_scope"`
}

type SharableVirtualResourceBaseUpdateInput

type SharableVirtualResourceBaseUpdateInput struct {
	VirtualResourceBaseUpdateInput
}

type SharableVirtualResourceDetails

type SharableVirtualResourceDetails struct {
	VirtualResourceDetails
	SharableResourceBaseInfo
}

type SharableVirtualResourceListInput

type SharableVirtualResourceListInput struct {
	VirtualResourceListInput
	SharableResourceBaseListInput
	// 根据资源的共享范围过滤列表,可能值为:system, domain, project
	PublicScope string `json:"public_scope"`
}

type SharedDomain

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

type SharedProject

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

	DomainId string `json:"domain_id"`
	Domain   string `json:"domain"`
}

type SplitTableExportInput

type SplitTableExportInput struct {
	Table  string `json:"table"`
	Offset int    `json:"offset"`
	Limit  int    `json:"limit"`
}

type StandaloneAnonResourceBaseUpdateInput

type StandaloneAnonResourceBaseUpdateInput struct {
	ResourceBaseUpdateInput

	// 资源描述
	Description string `json:"description"`
}

type StandaloneAnonResourceCreateInput

type StandaloneAnonResourceCreateInput struct {
	ResourceBaseCreateInput

	// 资源描述
	// required: false
	// example: test create network
	Description string `json:"description" token:"desc" help:"description"`

	// 资源是否为模拟资源
	// description: the resource is an emulated resource
	// required: false
	IsEmulated *bool `json:"is_emulated" token:"emulated" negative:"no_emulated" help:"set is_emulated flag"`

	// 标签列表,最多支持20个
	// example: { "user:rd": "op" }
	Metadata map[string]string `json:"__meta__" token:"tag" help:"tags in the form of key=value"`

	// 预检验参数,若为true则仅检查参数,并不真正创建变更
	// default: false
	DryRun bool `json:"dry_run"`
}

type StandaloneAnonResourceDetails

type StandaloneAnonResourceDetails struct {
	ResourceBaseDetails

	MetadataResourceInfo
}

type StandaloneAnonResourceListInput

type StandaloneAnonResourceListInput struct {
	ResourceBaseListInput

	MetadataResourceListInput

	// 显示所有的资源,包括模拟的资源
	ShowEmulated *bool `json:"show_emulated" help:"show emulated resources" negative:"do not show emulated resources"`

	// 以资源ID过滤列表
	Ids []string `json:"id" help:"filter by ids"`
}

type StandaloneAnonResourceShortDescDetail

type StandaloneAnonResourceShortDescDetail struct {
	ModelBaseShortDescDetail

	Id string `json:"id"`
}

type StandaloneResourceBaseUpdateInput

type StandaloneResourceBaseUpdateInput struct {
	StandaloneAnonResourceBaseUpdateInput

	// 资源名称
	Name string `json:"name"`
}

type StandaloneResourceCreateInput

type StandaloneResourceCreateInput struct {
	StandaloneAnonResourceCreateInput

	// 资源名称,如果generate_name为空,则为必填项
	// description: resource name, required if generated_name is not given
	// unique: true
	// required: true
	// example: test-network
	Name string `json:"name" help:"name of newly created resource" positional:"true" required:"true"`

	// 生成资源名称的模板,如果name为空,则为必填项
	// description: generated resource name, given a pattern to generate name, required if name is not given
	// unique: false
	// required: false
	// example: test###
	GenerateName string `json:"generate_name" help:"pattern for generating name if no name is given"`
}

type StandaloneResourceDetails

type StandaloneResourceDetails struct {
	StandaloneAnonResourceDetails
}

type StandaloneResourceListInput

type StandaloneResourceListInput struct {
	StandaloneAnonResourceListInput

	// 以资源名称过滤列表
	Names []string `json:"name" help:"filter by names"`
}

type StandaloneResourceShortDescDetail

type StandaloneResourceShortDescDetail struct {
	StandaloneAnonResourceShortDescDetail

	Name string `json:"name"`
}

type StandaloneShortDesc

type StandaloneShortDesc struct {
	Id string `json:"id"`

	Name string `json:"name"`
}

type StatusBaseResourceCreateInput

type StatusBaseResourceCreateInput struct {
	// 用来存储资源的状态
	// required: false
	Status string `json:"status" help:"set initial status"`
}

type StatusDomainLevelResourceBaseUpdateInput

type StatusDomainLevelResourceBaseUpdateInput struct {
	DomainLevelResourceBaseUpdateInput
}

type StatusDomainLevelResourceDetails

type StatusDomainLevelResourceDetails struct {
	DomainLevelResourceDetails
}

type StatusDomainLevelResourceListInput

type StatusDomainLevelResourceListInput struct {
	DomainLevelResourceListInput
	StatusResourceBaseListInput
}

type StatusDomainLevelUserResourceCreateInput

type StatusDomainLevelUserResourceCreateInput struct {
	StatusDomainLevelResourceCreateInput

	// 本地用户Id,若为空则使用当前用户Id作为此参数值
	OwnerId string `json:"owner_id"`
}

type StatusDomainLevelUserResourceDetails

type StatusDomainLevelUserResourceDetails struct {
	StatusDomainLevelResourceDetails

	// 用户名称
	OwnerName string `json:"owner_name"`
}

type StatusDomainLevelUserResourceListInput

type StatusDomainLevelUserResourceListInput struct {
	StatusDomainLevelResourceListInput

	// 查询指定的用户(ID或名称)拥有的资源
	UserId string `json:"user_id"`
	// swagger:ignore
	// Deprecated
	// Filter by userId
	User string `json:"user" yunion-deprecated-by:"user_id"`
}

type StatusInfrasResourceBaseDetails

type StatusInfrasResourceBaseDetails struct {
	InfrasResourceBaseDetails
}

type StatusInfrasResourceBaseListInput

type StatusInfrasResourceBaseListInput struct {
	InfrasResourceBaseListInput
	StatusResourceBaseListInput
}

type StatusInfrasResourceBaseUpdateInput

type StatusInfrasResourceBaseUpdateInput struct {
	InfrasResourceBaseUpdateInput
}

type StatusResourceBaseListInput

type StatusResourceBaseListInput struct {
	// 以资源的状态过滤列表
	Status []string `json:"status"`
}

type StatusStandaloneResourceBaseUpdateInput

type StatusStandaloneResourceBaseUpdateInput struct {
	StandaloneResourceBaseUpdateInput
	Progress float32 `json:"progress"`
}

type StatusStandaloneResourceDetails

type StatusStandaloneResourceDetails struct {
	StandaloneResourceDetails
}

type StatusStandaloneResourceListInput

type StatusStandaloneResourceListInput struct {
	StandaloneResourceListInput
	StatusResourceBaseListInput
}

type StatusStatistic

type StatusStatistic struct {
	StatusInfo []StatusStatisticStatusInfo `json:"status_info,allowempty"`
	// CPU总量
	TotalCpuCount int
	// 内存总量
	TotalMemSizeMb int
	// 存储总量
	TotalDiskSizeMb int
}

type StatusStatisticStatusInfo

type StatusStatisticStatusInfo struct {
	Status string
	// 资源总数
	TotalCount int64 `json:"total_count"`
	// 回收站数量
	// 需要指定pending_delete=all
	PendingDeletedCount int64 `json:"pending_deleted_count"`
}

type StorageForceDetachHostInput

type StorageForceDetachHostInput struct {
	// Host id or name
	HostId string `json:"host_id"`
	// Deprecated
	// swagger:ignore
	Host string `json:"host" yunion-deprecated-by:"host_id"`
}

type SyncstatusInput

type SyncstatusInput struct {
}

type TOwnerSource

type TOwnerSource string

type TaskDetails

type TaskDetails struct {
	ModelBaseDetails
	ProjectizedResourceInfo

	// 资源创建时间
	CreatedAt time.Time `json:"created_at"`
	// 资源更新时间
	UpdatedAt time.Time `json:"updated_at"`
	// 资源被更新次数
	UpdateVersion int `json:"update_version"`
	// 开始任务时间
	StartAt time.Time `json:"start_at"`
	// 完成任务时间
	EndAt time.Time `json:"end_at"`

	DomainId  string `json:"domain_id"`
	ProjectId string `json:"tenant_id"`

	Id           string
	ObjName      string
	ObjId        string
	TaskName     string
	Params       *jsonutils.JSONDict
	Stage        string
	ParentTaskId string
}

type TaskListInput

type TaskListInput struct {
	ModelBaseListInput
	ProjectizedResourceListInput
	StatusResourceBaseListInput

	Id         []string `json:"id" help:"id filter"`
	ObjId      []string `json:"obj_id" help:"object id filter"`
	ObjType    []string `json:"obj_type" help:"object type (in singular form) filter"`
	ObjName    []string `json:"obj_name" help:"object name filter"`
	TaskName   []string `json:"task_name" help:"task name filter"`
	IsMulti    *bool    `json:"is_multi" negative:"is_single" help:"is multi task"`
	IsComplete *bool    `json:"is_complete" negative:"not_complete" help:"is task completed, either fail or complete"`
	IsInit     *bool    `json:"is_init" negative:"not_init" help:"is task started?"`
	Stage      []string `json:"stage" help:"task stage"`
	ParentId   []string `json:"parent_id" help:"filter tasks by parent_task_id"`
	IsRoot     *bool    `json:"is_root" help:"filter root tasks"`
}

type TotalCountBase

type TotalCountBase struct {
	Count int `json:"count"`
}

type URIScheme

type URIScheme string

URIScheme identifies the scheme used for connection to a host for Get actions

const (
	// URISchemeHTTP means that the scheme used will be http://
	URISchemeHTTP URIScheme = "HTTP"
	// URISchemeHTTPS means that the scheme used will be https://
	URISchemeHTTPS URIScheme = "HTTPS"
)

type UserResourceCreateInput

type UserResourceCreateInput struct {
	StandaloneResourceCreateInput

	// 本地用户Id,若为空则使用当前用户Id作为此参数值
	OwnerId string `json:"owner_id"`
}

type UserResourceDetails

type UserResourceDetails struct {
	StandaloneResourceDetails

	// 用户名称
	OwnerName string `json:"owner_name"`
}

type UserResourceListInput

type UserResourceListInput struct {
	StandaloneResourceListInput
	ScopedResourceInput

	// swagger:ignore
	// Is an admin call? equivalent to scope=system
	// Deprecated
	Admin *bool `json:"admin"`

	// 查询指定的用户(ID或名称)拥有的资源
	UserId string `json:"user_id"`
	// swagger:ignore
	// Deprecated
	// Filter by userId
	User string `json:"user" yunion-deprecated-by:"user_id"`
}

type VirtualJointResourceBaseDetails

type VirtualJointResourceBaseDetails struct {
	JointResourceBaseDetails
}

type VirtualJointResourceBaseListInput

type VirtualJointResourceBaseListInput struct {
	JointResourceBaseListInput
}

type VirtualJointResourceBaseUpdateInput

type VirtualJointResourceBaseUpdateInput struct {
	JointResourceBaseUpdateInput
}

type VirtualResourceBaseUpdateInput

type VirtualResourceBaseUpdateInput struct {
	StatusStandaloneResourceBaseUpdateInput
}

type VirtualResourceCreateInput

type VirtualResourceCreateInput struct {
	StatusStandaloneResourceCreateInput
	ProjectizedResourceCreateInput

	// description: indicate the resource is a system resource, which is not visible to user
	// required: false
	IsSystem *bool `json:"is_system"`
}

type VirtualResourceListInput

type VirtualResourceListInput struct {
	StatusStandaloneResourceListInput
	ProjectizedResourceListInput

	// 列表中包含标记为"系统资源"的资源
	System *bool `json:"system"`
	// 是否显示回收站内的资源,默认不显示(对实现了回收站的资源有效,例如主机,磁盘,镜像)
	PendingDelete *bool `json:"pending_delete"`
	// 是否显示所有资源,包括回收站和不再回收站的资源
	// TODO: fix this???
	PendingDeleteAll *bool `json:"-"`
}

Jump to

Keyboard shortcuts

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