class GetUHostInstancePriceResponseSchema(schema.ResponseSchema): """GetUHostInstancePrice - 根据UHost实例配置,获取UHost实例的价格。""" fields = { "PriceSet": fields.List(models.UHostPriceSetSchema(), required=False, load_from="PriceSet"), }
class UpgradeToArkUHostInstanceRequestSchema(schema.RequestSchema): """UpgradeToArkUHostInstance - 普通升级为方舟机型""" fields = { "CouponId": fields.Str(required=False, dump_to="CouponId"), "Region": fields.Str(required=True, dump_to="Region"), "UHostIds": fields.List(fields.Str()), "Zone": fields.Str(required=True, dump_to="Zone"), }
class DescribeUDBLogPackageResponseSchema(schema.ResponseSchema): """ DescribeUDBLogPackage - 列表UDB实例binlog或slowlog或errorlog备份信息 """ fields = { "TotalCount": fields.Int(required=False, load_from="TotalCount"), "DataSet": fields.List( models.LogPackageDataSetSchema(), required=False, load_from="DataSet" ), }
class DescribeUDBInstanceResponseSchema(schema.ResponseSchema): """ DescribeUDBInstance - 获取UDB实例信息,支持两类操作:(1)指定DBId用于获取该db的信息;(2)指定ClassType、Offset、Limit用于列表操作,查询某一个类型db。 """ fields = { "DataSet": fields.List( models.UDBInstanceSetSchema(), required=False, load_from="DataSet" ), "TotalCount": fields.Int(required=False, load_from="TotalCount"), }
class IsolationGroupSchema(schema.ResponseSchema): """ IsolationGroup - 硬件隔离组信息 """ fields = { "GroupId": fields.Str(required=False, load_from="GroupId"), "GroupName": fields.Str(required=False, load_from="GroupName"), "Remark": fields.Str(required=False, load_from="Remark"), "SpreadInfoSet": fields.List(SpreadInfoSchema()), }
class NatGatewayIPSetSchema(schema.ResponseSchema): """NatGatewayIPSet - IPSet信息""" fields = { "Bandwidth": fields.Int(required=True, load_from="Bandwidth"), "BandwidthType": fields.Str(required=True, load_from="BandwidthType"), "EIPId": fields.Str(required=True, load_from="EIPId"), "IPResInfo": fields.List(NatGWIPResInfoSchema()), "Weight": fields.Int(required=True, load_from="Weight"), }
class GetUcdnDomainRequestNumV2ResponseSchema(schema.ResponseSchema): """ GetUcdnDomainRequestNumV2 - 获取域名请求数 """ fields = { "RequestList": fields.List(models.RequestInfoSchema(), required=False, load_from="RequestList") }
class GetNewUcdnDomainHitRateResponseSchema(schema.ResponseSchema): """ GetNewUcdnDomainHitRate - 获取域名命中率 """ fields = { "HitRateList": fields.List(models.HitRateInfoSchema(), required=False, load_from="HitRateList") }
class GetRepoResponseSchema(schema.ResponseSchema): """ GetRepo - 获取镜像仓库 """ fields = { "RepoSet": fields.List( models.RepoSetSchema(), required=True, load_from="RepoSet" ), "TotalCount": fields.Int(required=True, load_from="TotalCount"), }
class GetImageTagResponseSchema(schema.ResponseSchema): """ GetImageTag - 获取镜像tag """ fields = { "TagSet": fields.List( models.TagSetSchema(), required=True, load_from="TagSet" ), "TotalCount": fields.Int(required=True, load_from="TotalCount"), }
class NestedArraySchema(schema.RequestSchema): fields = { "Interface": fields.List( Schema(default=lambda: "127.0.0.1"), default=lambda: [{ "IP": ["192.168.1.1"] }], ) }
class DescribePHostResponseSchema(schema.ResponseSchema): """ DescribePHost - 获取物理机详细信息 """ fields = { "PHostSet": fields.List( models.PHostSetSchema(), required=False, load_from="PHostSet" ), "TotalCount": fields.Int(required=False, load_from="TotalCount"), }
class DescribePHostTagsResponseSchema(schema.ResponseSchema): """ DescribePHostTags - 获取物理机tag列表(业务组) """ fields = { "TagSet": fields.List( models.PHostTagSetSchema(), required=False, load_from="TagSet" ), "TotalCount": fields.Int(required=False, load_from="TotalCount"), }
class DescribePHostImageResponseSchema(schema.ResponseSchema): """ DescribePHostImage - 获取物理云主机镜像列表 """ fields = { "ImageSet": fields.List( models.PHostImageSetSchema(), required=False, load_from="ImageSet" ), "TotalCount": fields.Int(required=False, load_from="TotalCount"), }
class UpdateVPCNetworkRequestSchema(schema.RequestSchema): """ UpdateVPCNetwork - 更新VPC网段 """ fields = { "Network": fields.List(fields.Str()), "ProjectId": fields.Str(required=True, dump_to="ProjectId"), "Region": fields.Str(required=True, dump_to="Region"), "VPCId": fields.Str(required=True, dump_to="VPCId"), }
class GetRegionResponseSchema(schema.ResponseSchema): """ GetRegion - 获取用户在各数据中心的权限等信息 """ fields = { "Regions": fields.List(models.RegionInfoSchema(), required=False, load_from="Regions") }
class GetUserInfoResponseSchema(schema.ResponseSchema): """ GetUserInfo - 获取用户信息 """ fields = { "DataSet": fields.List(models.UserInfoSchema(), required=True, load_from="DataSet") }
class GetRepoImageResponseSchema(schema.ResponseSchema): """ GetRepoImage - 获取镜像仓库下的镜像 """ fields = { "ImageSet": fields.List( models.ImageSetSchema(), required=True, load_from="ImageSet" ), "TotalCount": fields.Int(required=True, load_from="TotalCount"), }
class GetUcdnDomainLogResponseSchema(schema.ResponseSchema): """ GetUcdnDomainLog - 获取加速域名原始日志 """ fields = { "LogSet": fields.List(models.LogSetListSchema(), required=False, load_from="LogSet") }
class DescribeInterRegionBandwidthRequestSchema(schema.RequestSchema): """DescribeInterRegionBandwidth - 查询跨域带宽""" fields = { "InterRegionBandwidthIds": fields.List(fields.Str()), "Limit": fields.Int(required=False, dump_to="Limit"), "Offset": fields.Int(required=False, dump_to="Offset"), "ProjectId": fields.Str(required=True, dump_to="ProjectId"), "UGNId": fields.Str(required=True, dump_to="UGNId"), }
class GetUcdnTrafficResponseSchema(schema.ResponseSchema): """ GetUcdnTraffic - 获取流量信息 """ fields = { "TrafficSet": fields.List(models.TrafficSetSchema(), required=False, load_from="TrafficSet") }
class DescribeUGNResponseSchema(schema.ResponseSchema): """DescribeUGN - 查询云联网""" fields = { "Message": fields.Str(required=True, load_from="Message"), "TotalCount": fields.Int(required=False, load_from="TotalCount"), "UGNs": fields.List(models.UGNSchema(), required=False, load_from="UGNs"), }
class AllocateBackendBatchResponseSchema(schema.ResponseSchema): """ AllocateBackendBatch - 批量添加VServer后端节点 """ fields = { "BackendSet": fields.List(models.BackendSetSchema(), required=False, load_from="BackendSet") }
class DescribeUGNInstanceRequestSchema(schema.RequestSchema): """DescribeUGNInstance - 查询云联网实例""" fields = { "InstanceIds": fields.List(fields.Str()), "Limit": fields.Int(required=False, dump_to="Limit"), "Offset": fields.Int(required=False, dump_to="Offset"), "ProjectId": fields.Str(required=True, dump_to="ProjectId"), "UGNId": fields.Str(required=True, dump_to="UGNId"), }
class GetPHostPriceResponseSchema(schema.ResponseSchema): """ GetPHostPrice - 获取物理机价格列表 """ fields = { "PriceSet": fields.List(models.PHostPriceSetSchema(), required=False, load_from="PriceSet") }
class DescribeUGNRouteRuleRequestSchema(schema.RequestSchema): """DescribeUGNRouteRule - 查询路由规则""" fields = { "Limit": fields.Int(required=False, dump_to="Limit"), "Offset": fields.Int(required=False, dump_to="Offset"), "ProjectId": fields.Str(required=True, dump_to="ProjectId"), "RouteRuleIds": fields.List(fields.Str()), "UGNId": fields.Str(required=True, dump_to="UGNId"), }
class DescribeUDBBackupResponseSchema(schema.ResponseSchema): """ DescribeUDBBackup - 列表UDB实例备份信息.Zone不填表示多可用区,填代表单可用区 """ fields = { "DataSet": fields.List( models.UDBBackupSetSchema(), required=False, load_from="DataSet" ), "TotalCount": fields.Int(required=False, load_from="TotalCount"), }
class DescribeUMemcachePriceResponseSchema(schema.ResponseSchema): """DescribeUMemcachePrice - 获取umemcache组价格信息""" fields = { "DataSet": fields.List( models.UMemcachePriceSetSchema(), required=False, load_from="DataSet", ), }
class DescribeUDBParamGroupResponseSchema(schema.ResponseSchema): """ DescribeUDBParamGroup - 获取参数组详细参数信息 """ fields = { "DataSet": fields.List( models.UDBParamGroupSetSchema(), required=False, load_from="DataSet" ), "TotalCount": fields.Int(required=False, load_from="TotalCount"), }
class DescribeGlobalSSHInstanceResponseSchema(schema.ResponseSchema): """ DescribeGlobalSSHInstance - 获取GlobalSSH实例列表(传实例ID获取单个实例信息,不传获取项目下全部实例) """ fields = { "InstanceSet": fields.List(models.GlobalSSHInfoSchema(), required=False, load_from="InstanceSet") }