Skip to content

Commit

Permalink
sdk: rolling update for 0.11.34 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Jun 21, 2022
1 parent de7d0d6 commit 29ebf3c
Show file tree
Hide file tree
Showing 47 changed files with 3,473 additions and 557 deletions.
27 changes: 27 additions & 0 deletions ucloud/services/cube/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,33 @@ def modify_cube_tag(
resp = self.invoke("ModifyCubeTag", d, **kwargs)
return apis.ModifyCubeTagResponseSchema().loads(resp)

def reboot_cube_pod(
self, req: typing.Optional[dict] = None, **kwargs
) -> dict:
"""RebootCubePod - 重启Cube Pod
**Request**
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
- **CubeId** (str) - (Required) cube资源id(cube-xxxxxx)
- **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
**Response**
"""
# build request
d = {
"ProjectId": self.config.project_id,
"Region": self.config.region,
}
req and d.update(req)
d = apis.RebootCubePodRequestSchema().dumps(d)

resp = self.invoke("RebootCubePod", d, **kwargs)
return apis.RebootCubePodResponseSchema().loads(resp)

def renew_cube_pod(
self, req: typing.Optional[dict] = None, **kwargs
) -> dict:
Expand Down
24 changes: 24 additions & 0 deletions ucloud/services/cube/schemas/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,30 @@ class ModifyCubeTagResponseSchema(schema.ResponseSchema):
}


"""
API: RebootCubePod
重启Cube Pod
"""


class RebootCubePodRequestSchema(schema.RequestSchema):
"""RebootCubePod - 重启Cube Pod"""

fields = {
"CubeId": fields.Str(required=True, dump_to="CubeId"),
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
"Region": fields.Str(required=True, dump_to="Region"),
"Zone": fields.Str(required=False, dump_to="Zone"),
}


class RebootCubePodResponseSchema(schema.ResponseSchema):
"""RebootCubePod - 重启Cube Pod"""

fields = {}


"""
API: RenewCubePod
Expand Down
12 changes: 7 additions & 5 deletions ucloud/services/ipsecvpn/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def create_vpn_tunnel(
**Request**
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
- **IKEPreSharedKey** (str) - (Required) 预共享密钥
- **IKEVersion** (str) - (Required) ike版本,枚举值: "IKE V1","IKE V2",默认v1
- **IPSecLocalSubnetIds** (list) - (Required) 指定VPN连接的本地子网的资源ID,最多可填写10个。
Expand All @@ -111,7 +111,8 @@ def create_vpn_tunnel(
- **IKELocalId** (str) - 本端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为自动识别“auto”。IKEV2必填该参数
- **IKERemoteId** (str) - 客户端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为“自动识别“auto”。IKEV2必填该参数
- **IKESALifetime** (str) - IKE中SA的生存时间,可填写范围为600-604800。默认为86400。
- **IPSecAuthenticationAlgorithm** (str) - IPSec隧道中使用的认证算法,枚举值,"md5", "sha1"。默认值为“sha1”
- **IPSecAuthenticationAlgorithm** (str) - IPSec隧道中使用的认证算法,枚举值,"md5", "sha1","sha2-256"。默认值为“sha1”
- **IPSecCloseAction** (str) - IPSec隧道关闭后的处理动作,枚举值:“none”,流量触发;“restart”,自动重联,默认为none
- **IPSecEncryptionAlgorithm** (str) - IPSec隧道中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128”
- **IPSecPFSDhGroup** (str) - IPSec的PFS是否开启,枚举值,,不开启,"disable";数字表示DH组, "1", "2", "5", "14", "15", "16"。默认为“disable”。
- **IPSecProtocol** (str) - 使用的安全协议,枚举值,“esp”,“ah”。默认为“esp”
Expand Down Expand Up @@ -483,8 +484,8 @@ def update_vpn_tunnel_attribute(
**Request**
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
- **VPNTunnelId** (str) - (Required) VPN隧道的资源ID
- **IKEAuthenticationAlgorithm** (str) - IKE协商过程中使用的认证算法
- **IKEDhGroup** (str) - IKE协商过程中使用的DH组
Expand All @@ -496,6 +497,7 @@ def update_vpn_tunnel_attribute(
- **IKESALifetime** (str) - IKE中SA的生存时间
- **IKEVersion** (str) - 枚举值:"IKE V1","IKE V2"
- **IPSecAuthenticationAlgorithm** (str) - IPSec隧道中使用的认证算法
- **IPSecCloseAction** (str) - IPSec隧道关闭后的处理动作,默认与原本一致,若原本为空,必传。枚举值:“none”,不处理(推荐为none,流量会自动触发隧道重建);“restart”重建
- **IPSecEncryptionAlgorithm** (str) - IPSec隧道中使用的加密算法
- **IPSecLocalSubnetIds** (list) - 指定VPN连接的本地子网的id,用逗号分隔
- **IPSecPFSDhGroup** (str) - IPSec中的PFS是否开启
Expand Down
6 changes: 6 additions & 0 deletions ucloud/services/ipsecvpn/schemas/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ class CreateVPNTunnelRequestSchema(schema.RequestSchema):
"IPSecAuthenticationAlgorithm": fields.Str(
required=False, dump_to="IPSecAuthenticationAlgorithm"
),
"IPSecCloseAction": fields.Str(
required=False, dump_to="IPSecCloseAction"
),
"IPSecEncryptionAlgorithm": fields.Str(
required=False, dump_to="IPSecEncryptionAlgorithm"
),
Expand Down Expand Up @@ -423,6 +426,9 @@ class UpdateVPNTunnelAttributeRequestSchema(schema.RequestSchema):
"IPSecAuthenticationAlgorithm": fields.Str(
required=False, dump_to="IPSecAuthenticationAlgorithm"
),
"IPSecCloseAction": fields.Str(
required=False, dump_to="IPSecCloseAction"
),
"IPSecEncryptionAlgorithm": fields.Str(
required=False, dump_to="IPSecEncryptionAlgorithm"
),
Expand Down
Loading

0 comments on commit 29ebf3c

Please sign in to comment.