Files
cloudpods/pkg/apis/compute/input.go
2020-04-16 23:24:56 +08:00

174 lines
3.9 KiB
Go

// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package compute
import (
"yunion.io/x/onecloud/pkg/apis"
)
/*
type RegionalResourceCreateInput struct {
Cloudregion string `json:"cloudregion"`
CloudregionId string `json:"cloudregion_id"`
}
type ManagedResourceInput struct {
Manager string `json:"manager"`
ManagerId string `json:"manager_id"`
}
*/
type DeletePreventableCreateInput struct {
//删除保护,创建的资源默认不允许删除
//default: true
DisableDelete *bool `json:"disable_delete"`
}
type KeypairListInput struct {
apis.StandaloneResourceListInput
apis.UserResourceListInput
// list in admin mode
Admin *bool `json:"admin"`
// 加密类型
// example: RSA
Scheme []string `json:"scheme"`
// 指纹信息
// example: 1d:3a:83:4a:a1:f3:75:97:ec:d1:ef:f8:3f:a7:5d:9e
Fingerprint []string `json:"fingerprint"`
}
type CachedimageListInput struct {
apis.StandaloneResourceListInput
apis.ExternalizedResourceBaseListInput
ManagedResourceListInput
ZonalFilterListInput
// 镜像类型,可能值为: system(公有云公共镜像), customized(自定义镜像)
// example: system
ImageType []string `json:"image_type"`
}
type ExternalProjectListInput struct {
apis.StandaloneResourceListInput
apis.ProjectizedResourceListInput
apis.ExternalizedResourceBaseListInput
ManagedResourceListInput
}
type RouteTableListInput struct {
apis.StatusInfrasResourceBaseListInput
apis.ExternalizedResourceBaseListInput
VpcFilterListInput
// filter by type
Type []string `json:"type"`
}
type SnapshotPolicyCacheListInput struct {
apis.StatusStandaloneResourceListInput
apis.ExternalizedResourceBaseListInput
ManagedResourceListInput
RegionalFilterListInput
SnapshotPolicyFilterListInput
// filter by snapshotpolicy Id or Name
//Snapshotpolicy string `json:"snapshotpolicy"`
}
type NetworkInterfaceListInput struct {
apis.StatusInfrasResourceBaseListInput
apis.ExternalizedResourceBaseListInput
ManagedResourceListInput
RegionalFilterListInput
// MAC地址
Mac []string `json:"mac"`
// 绑定资源类型
AssociateType []string `json:"associate_type"`
// 绑定资源Id
AssociateId []string `json:"associate_id"`
}
type BaremetalagentListInput struct {
apis.StandaloneResourceListInput
ZonalFilterListInput
// 以状态过滤
Status []string `json:"status"`
// 以IP地址过滤
AccessIp []string `json:"access_ip"`
// 以AgentType过滤
AgentType []string `json:"agent_type"`
}
type DnsRecordListInput struct {
apis.AdminSharableVirtualResourceListInput
}
type DynamicschedtagListInput struct {
apis.StandaloneResourceListInput
SchedtagFilterListInput
// filter by enabled status
Enabled *bool `json:"enabled"`
}
type SchedpolicyListInput struct {
apis.StandaloneResourceListInput
SchedtagFilterListInput
//
Strategy []string `json:"strategy"`
//
Enabled *bool `json:"enabled"`
}
type GuestTemplateFilterListInput struct {
// 主机镜像
GuestTemplate string `json:"guest_template"`
// swagger:ignore
// Deprecated
GuestTemplateId string `json:"guest_template_id" "yunion:deprecated-by":"guest_template"`
}
type ServiceCatalogListInput struct {
apis.SharableVirtualResourceListInput
GuestTemplateFilterListInput
}
type SnapshotPolicyListInput struct {
apis.VirtualResourceListInput
// 是否启用?
IsActivated *bool `json:"is_activated"`
}
type DnsRecordDetails struct {
apis.AdminSharableVirtualResourceDetails
SDnsRecord
}