@@ -22,7 +22,7 @@ def allocate_eip(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
2222 - **Region** (str) - (Config) 地域。
2323 - **Bandwidth** (int) - (Required) 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-10000]
2424 - **OperatorName** (str) - (Required) 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。
25- - **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); Trial, 试用(需开启权限) 默认为按月付费
25+ - **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费, 默认为按月付费。
2626 - **CouponId** (str) - 代金券ID, 默认不使用
2727 - **Name** (str) - 弹性IP的名称, 默认为 "EIP"
2828 - **PayMode** (str) - 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth".“PostAccurateBandwidth”:带宽后付费模式
@@ -96,51 +96,6 @@ def allocate_share_bandwidth(
9696 resp = self .invoke ("AllocateShareBandwidth" , d , ** kwargs )
9797 return apis .AllocateShareBandwidthResponseSchema ().loads (resp )
9898
99- def allocate_vip (self , req : typing .Optional [dict ] = None , ** kwargs ) -> dict :
100- """AllocateVIP -
101-
102- **Request**
103-
104- - **ProjectId** (str) - (Config)
105- - **Region** (str) - (Config)
106- - **SubnetId** (str) - (Required)
107- - **VPCId** (str) - (Required)
108- - **BusinessId** (str) -
109- - **Count** (int) -
110- - **Ip** (str) -
111- - **Name** (str) -
112- - **Remark** (str) -
113- - **Tag** (str) -
114- - **Zone** (str) -
115-
116- **Response**
117-
118- - **DataSet** (list) -
119- - **VIPSet** (list) - 见 **VIPSet** 模型定义
120-
121- **Response Model**
122-
123- **VIPSet**
124- - **VIP** (str) -
125- - **VIPId** (str) -
126- - **VPCId** (str) -
127-
128-
129- """
130- # build request
131- d = {
132- "ProjectId" : self .config .project_id ,
133- "Region" : self .config .region ,
134- }
135- req and d .update (req )
136- d = apis .AllocateVIPRequestSchema ().dumps (d )
137-
138- # build options
139- kwargs ["max_retries" ] = 0 # ignore retry when api is not idempotent
140-
141- resp = self .invoke ("AllocateVIP" , d , ** kwargs )
142- return apis .AllocateVIPResponseSchema ().loads (resp )
143-
14499 def associate_eip_with_share_bandwidth (
145100 self , req : typing .Optional [dict ] = None , ** kwargs
146101 ) -> dict :
@@ -483,12 +438,12 @@ def describe_firewall(
483438 - **Limit** (int) - 返回数据长度,默认为20,最大10000000
484439 - **Offset** (int) - 列表起始位置偏移量,默认为0
485440 - **ResourceId** (str) - 绑定防火墙组的资源ID
486- - **ResourceType** (str) - 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
441+ - **ResourceType** (str) - 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机;“uni”,虚拟网卡; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
487442
488443 **Response**
489444
490445 - **DataSet** (list) - 见 **FirewallDataSet** 模型定义
491- - **TotalCount** (int) -
446+ - **TotalCount** (int) - 防火墙资源数量
492447
493448 **Response Model**
494449
@@ -532,10 +487,10 @@ def describe_firewall_resource(
532487
533488 **Request**
534489
535- - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html >`_
536- - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html >`_
490+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
491+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
537492 - **FWId** (str) - (Required) 防火墙ID
538- - **Limit** (int) - 返回数据长度,默认为20,最大10000000
493+ - **Limit** (int) - 返回数据长度,默认为20,最大1000
539494 - **Offset** (int) - 列表起始位置偏移量,默认为0
540495
541496 **Response**
@@ -550,8 +505,11 @@ def describe_firewall_resource(
550505 - **PrivateIP** (str) - 内网IP
551506 - **Remark** (str) - 备注
552507 - **ResourceID** (str) - 绑定该防火墙的资源id
553- - **ResourceType** (str) - 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
508+ - **ResourceType** (str) - 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。
554509 - **Status** (int) - 状态
510+ - **SubResourceId** (str) - 资源绑定的虚拟网卡的ID
511+ - **SubResourceName** (str) - 资源绑定的虚拟网卡的名称
512+ - **SubResourceType** (str) - 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。
555513 - **Tag** (str) - 业务组
556514 - **Zone** (int) - 可用区
557515
@@ -620,37 +578,23 @@ def describe_share_bandwidth(
620578 resp = self .invoke ("DescribeShareBandwidth" , d , ** kwargs )
621579 return apis .DescribeShareBandwidthResponseSchema ().loads (resp )
622580
623- def describe_vip (self , req : typing .Optional [dict ] = None , ** kwargs ) -> dict :
624- """DescribeVIP -
581+ def disassociate_eip_with_share_bandwidth (
582+ self , req : typing .Optional [dict ] = None , ** kwargs
583+ ) -> dict :
584+ """DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽
625585
626586 **Request**
627587
628- - **ProjectId** (str) - (Config)
629- - **Region** (str) - (Config)
630- - **BusinessId ** (str ) -
631- - **SubnetId ** (str) -
632- - **Tag ** (str ) -
633- - **VPCId ** (str) -
634- - **Zone ** (str) -
588+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
589+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
590+ - **Bandwidth ** (int ) - (Required) 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下: 流量计费[1-200],带宽计费[1-800]
591+ - **ShareBandwidthId ** (str) - (Required) 共享带宽ID
592+ - **EIPIds ** (list ) - EIP的资源Id;默认移出该共享带宽下所有的EIP
593+ - **IPVersion ** (str) - 共享带宽类型,IPv4或者IPv6,不传默认IPv4
594+ - **PayMode ** (str) - 移出共享带宽后,EIP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; 默认为 "Bandwidth".
635595
636596 **Response**
637597
638- - **DataSet** (list) -
639- - **TotalCount** (int) -
640- - **VIPSet** (list) - 见 **VIPDetailSet** 模型定义
641-
642- **Response Model**
643-
644- **VIPDetailSet**
645- - **CreateTime** (int) -
646- - **Name** (str) -
647- - **RealIp** (str) -
648- - **SubnetId** (str) -
649- - **VIP** (str) -
650- - **VIPId** (str) -
651- - **VPCId** (str) -
652- - **Zone** (str) -
653-
654598
655599 """
656600 # build request
@@ -659,28 +603,25 @@ def describe_vip(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
659603 "Region" : self .config .region ,
660604 }
661605 req and d .update (req )
662- d = apis .DescribeVIPRequestSchema ().dumps (d )
663-
664- # build options
665- kwargs ["max_retries" ] = 0 # ignore retry when api is not idempotent
606+ d = apis .DisassociateEIPWithShareBandwidthRequestSchema ().dumps (d )
666607
667- resp = self .invoke ("DescribeVIP" , d , ** kwargs )
668- return apis .DescribeVIPResponseSchema ().loads (resp )
608+ resp = self .invoke ("DisassociateEIPWithShareBandwidth" , d , ** kwargs )
609+ return apis .DisassociateEIPWithShareBandwidthResponseSchema ().loads (
610+ resp
611+ )
669612
670- def disassociate_eip_with_share_bandwidth (
613+ def disassociate_firewall (
671614 self , req : typing .Optional [dict ] = None , ** kwargs
672615 ) -> dict :
673- """DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽
616+ """DisassociateFirewall - 解绑资源上的防火墙
674617
675618 **Request**
676619
677- - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
678- - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
679- - **Bandwidth** (int) - (Required) 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下: 流量计费[1-200],带宽计费[1-800]
680- - **ShareBandwidthId** (str) - (Required) 共享带宽ID
681- - **EIPIds** (list) - EIP的资源Id;默认移出该共享带宽下所有的EIP
682- - **IPVersion** (str) - 共享带宽类型,IPv4或者IPv6,不传默认IPv4
683- - **PayMode** (str) - 移出共享带宽后,EIP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; 默认为 "Bandwidth".
620+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
621+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
622+ - **FWId** (str) - (Required) 防火墙ID
623+ - **ResourceId** (str) - (Required) 需要解绑的资源ID
624+ - **ResourceType** (str) - (Required) 资源类型:ULB 表示负载均衡
684625
685626 **Response**
686627
@@ -692,12 +633,10 @@ def disassociate_eip_with_share_bandwidth(
692633 "Region" : self .config .region ,
693634 }
694635 req and d .update (req )
695- d = apis .DisassociateEIPWithShareBandwidthRequestSchema ().dumps (d )
636+ d = apis .DisassociateFirewallRequestSchema ().dumps (d )
696637
697- resp = self .invoke ("DisassociateEIPWithShareBandwidth" , d , ** kwargs )
698- return apis .DisassociateEIPWithShareBandwidthResponseSchema ().loads (
699- resp
700- )
638+ resp = self .invoke ("DisassociateFirewall" , d , ** kwargs )
639+ return apis .DisassociateFirewallResponseSchema ().loads (resp )
701640
702641 def get_eip_pay_mode (
703642 self , req : typing .Optional [dict ] = None , ** kwargs
@@ -801,18 +740,58 @@ def get_eip_upgrade_price(
801740 resp = self .invoke ("GetEIPUpgradePrice" , d , ** kwargs )
802741 return apis .GetEIPUpgradePriceResponseSchema ().loads (resp )
803742
743+ def get_throughput_daily_billing_info (
744+ self , req : typing .Optional [dict ] = None , ** kwargs
745+ ) -> dict :
746+ """GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息
747+
748+ **Request**
749+
750+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
751+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
752+ - **EIPId** (str) - (Required) EIP的资源ID
753+ - **EndTime** (int) - (Required) 查询结束时间时间戳
754+ - **StartTime** (int) - (Required) 查询开始时间时间戳
755+
756+ **Response**
757+
758+ - **EIPId** (str) - 资源ID
759+ - **Stats** (list) - 见 **ThroughputDailyBillingInfo** 模型定义
760+ - **TotalOut** (int) - 计费总流量
761+
762+ **Response Model**
763+
764+ **ThroughputDailyBillingInfo**
765+ - **BillingState** (str) - 是否已计费,“Yes”或者“No”
766+ - **EndTime** (int) - 计费结束时间
767+ - **QuantityOut** (int) - 计费流量,单位“GB”
768+ - **StartTime** (int) - 计费开始时间
769+
770+
771+ """
772+ # build request
773+ d = {
774+ "ProjectId" : self .config .project_id ,
775+ "Region" : self .config .region ,
776+ }
777+ req and d .update (req )
778+ d = apis .GetThroughputDailyBillingInfoRequestSchema ().dumps (d )
779+
780+ resp = self .invoke ("GetThroughputDailyBillingInfo" , d , ** kwargs )
781+ return apis .GetThroughputDailyBillingInfoResponseSchema ().loads (resp )
782+
804783 def grant_firewall (
805784 self , req : typing .Optional [dict ] = None , ** kwargs
806785 ) -> dict :
807786 """GrantFirewall - 将防火墙应用到资源上
808787
809788 **Request**
810789
811- - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html >`_
812- - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html >`_
790+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
791+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
813792 - **FWId** (str) - (Required) 防火墙资源ID
814793 - **ResourceId** (str) - (Required) 所应用资源ID
815- - **ResourceType** (str) - (Required) 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
794+ - **ResourceType** (str) - (Required) 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,”uni“,虚拟网卡,“cube”,Cube容器实例。
816795
817796 **Response**
818797
@@ -935,43 +914,15 @@ def release_share_bandwidth(
935914 resp = self .invoke ("ReleaseShareBandwidth" , d , ** kwargs )
936915 return apis .ReleaseShareBandwidthResponseSchema ().loads (resp )
937916
938- def release_vip (self , req : typing .Optional [dict ] = None , ** kwargs ) -> dict :
939- """ReleaseVIP -
940-
941- **Request**
942-
943- - **ProjectId** (str) - (Config)
944- - **Region** (str) - (Config)
945- - **VIPId** (str) - (Required)
946- - **Zone** (str) -
947-
948- **Response**
949-
950-
951- """
952- # build request
953- d = {
954- "ProjectId" : self .config .project_id ,
955- "Region" : self .config .region ,
956- }
957- req and d .update (req )
958- d = apis .ReleaseVIPRequestSchema ().dumps (d )
959-
960- # build options
961- kwargs ["max_retries" ] = 0 # ignore retry when api is not idempotent
962-
963- resp = self .invoke ("ReleaseVIP" , d , ** kwargs )
964- return apis .ReleaseVIPResponseSchema ().loads (resp )
965-
966917 def resize_share_bandwidth (
967918 self , req : typing .Optional [dict ] = None , ** kwargs
968919 ) -> dict :
969920 """ResizeShareBandwidth - 调整共享带宽的带宽值
970921
971922 **Request**
972923
973- - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html >`_
974- - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html >`_
924+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
925+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
975926 - **ShareBandwidth** (int) - (Required) 带宽值,单位为Mb,范围 [20-5000] (最大值受地域限制)
976927 - **ShareBandwidthId** (str) - (Required) 共享带宽的Id
977928
0 commit comments