Skip to content

Commit 973536d

Browse files
authored
auto codegen for UNet
1 parent 88023ad commit 973536d

3 files changed

Lines changed: 11 additions & 21 deletions

File tree

docs/services.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ IPSecVPN
101101
:members:
102102

103103

104-
UDDB
105-
----
106-
107-
.. autoclass:: ucloud.services.uddb.client.UDDBClient
108-
:members:
109-
110-
111104
UFS
112105
---
113106

@@ -128,3 +121,10 @@ UK8S
128121
.. autoclass:: ucloud.services.uk8s.client.UK8SClient
129122
:members:
130123

124+
125+
VPC
126+
---
127+
128+
.. autoclass:: ucloud.services.vpc.client.VPCClient
129+
:members:
130+

ucloud/client.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,6 @@ def udb(self):
8282
self.logger,
8383
)
8484

85-
def uddb(self):
86-
from ucloud.services.uddb.client import UDDBClient
87-
88-
return UDDBClient(
89-
self._auto_config("uddb"),
90-
self.transport,
91-
self.middleware,
92-
self.logger,
93-
)
94-
9585
def udpn(self):
9686
from ucloud.services.udpn.client import UDPNClient
9787

ucloud/services/unet/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def allocate_eip(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
2121
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。
2222
- **Region** (str) - (Config) 地域。
2323
- **Bandwidth** (int) - (Required) 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-10000]
24-
- **OperatorName** (str) - (Required) 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
24+
- **OperatorName** (str) - (Required) 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。
2525
- **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); Trial, 试用(需开启权限) 默认为按月付费
2626
- **CouponId** (str) - 代金券ID, 默认不使用
2727
- **Name** (str) - 弹性IP的名称, 默认为 "EIP"
@@ -178,7 +178,7 @@ def bind_eip(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
178178
- **Region** (str) - (Config) 地域
179179
- **EIPId** (str) - (Required) 弹性IP的资源Id
180180
- **ResourceId** (str) - (Required) 弹性IP请求绑定的资源ID
181-
- **ResourceType** (str) - (Required) 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡。如果EIP为普通带宽计费,且带宽值高于2G,则只允许绑定在快杰型云主机和ULB
181+
- **ResourceType** (str) - (Required) 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡;cube,Cube容器。如果EIP为普通带宽计费,且带宽值高于2G,则只允许绑定在快杰型云主机和ULB
182182
183183
**Response**
184184
@@ -1051,8 +1051,8 @@ def update_eip_attribute(
10511051
10521052
**Request**
10531053
1054-
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1055-
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
1054+
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1055+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
10561056
- **EIPId** (str) - (Required) EIP资源ID
10571057
- **Name** (str) - 名字(Name Tag Remark都为空则报错)
10581058
- **Remark** (str) - 备注

0 commit comments

Comments
 (0)