// 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 ( "time" "yunion.io/x/cloudmux/pkg/apis/compute" "yunion.io/x/onecloud/pkg/apis" billing_api "yunion.io/x/onecloud/pkg/apis/billing" ) const ( // 可用 NAS_STATUS_AVAILABLE = compute.NAS_STATUS_AVAILABLE // 不可用 NAS_STATUS_UNAVAILABLE = compute.NAS_STATUS_UNAVAILABLE // 扩容中 NAS_STATUS_EXTENDING = compute.NAS_STATUS_EXTENDING // 创建中 NAS_STATUS_CREATING = compute.NAS_STATUS_CREATING // 创建失败 NAS_STATUS_CREATE_FAILED = compute.NAS_STATUS_CREATE_FAILED // 未知 NAS_STATUS_UNKNOWN = compute.NAS_STATUS_UNKNOWN // 删除中 NAS_STATUS_DELETING = compute.NAS_STATUS_DELETING NAS_STATUS_DELETE_FAILED = "delete_failed" NAS_UPDATE_TAGS = "update_tags" NAS_UPDATE_TAGS_FAILED = "update_tags_fail" ) type FileSystemListInput struct { apis.SharableVirtualResourceListInput apis.ExternalizedResourceBaseListInput ManagedResourceListInput RegionalFilterListInput } type FileSystemCreateInput struct { apis.SharableVirtualResourceCreateInput // 协议类型 // enum: ["NFS", "SMB", "CPFS"] Protocol string `json:"protocol"` // 文件系统类型 // enmu: extreme, standard, cpfs FileSystemType string `json:"file_system_type"` // 容量大小 Capacity int64 `json:"capacity"` // IP子网Id NetworkId string `json:"network_id"` // 存储类型 // enmu: performance, capacity, standard, advance, advance_100, advance_200 StorageType string `json:"storage_type"` // 可用区Id, 若不指定IP子网,此参数必填 ZoneId string `json:"zone_id"` //swagger:ignore CloudregionId string `json:"cloudregion_id"` // 订阅Id, 若传入network_id此参数可忽略 ManagerId string `json:"manager_id"` // 包年包月时间周期 Duration string `json:"duration"` // 是否自动续费(仅包年包月时生效) // default: false AutoRenew bool `json:"auto_renew"` // 到期释放时间 ReleaseAt time.Time `json:"release_at"` // 计费方式 // enum: ["postpaid", "prepaid"] BillingType billing_api.TBillingType `json:"billing_type"` // swagger:ignore BillingCycle string `json:"billing_cycle"` } type FileSystemSyncstatusInput struct { } type FileSystemDetails struct { apis.SharableVirtualResourceDetails ManagedResourceInfo CloudregionResourceInfo Vpc string `json:"vpc"` Network string `json:"network"` Zone string `json:"zone"` } type FileSystemRemoteUpdateInput struct { // 是否覆盖替换所有标签 ReplaceTags *bool `json:"replace_tags" help:"replace all remote tags"` } type FileSystemSetQuotaInput struct { MaxGb *int64 MaxFiles *int64 }