@@ -1025,6 +1025,49 @@ def get_global_ssh_price(
10251025 resp = self .invoke ("GetGlobalSSHPrice" , d , ** kwargs )
10261026 return apis .GetGlobalSSHPriceResponseSchema ().loads (resp )
10271027
1028+ def get_global_ssh_traffic (
1029+ self , req : typing .Optional [dict ] = None , ** kwargs
1030+ ) -> dict :
1031+ """GetGlobalSSHTraffic - 获取GlobalSSH流量统计数据
1032+
1033+ **Request**
1034+
1035+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1036+ - **BeginTime** (int) - (Required) 查询起始时间,如1525017600
1037+ - **EndTime** (int) - (Required) 查询结束时间,如1525103999
1038+ - **UGAId** (str) - (Required) 资源ID,如uga-as5daw
1039+
1040+ **Response**
1041+
1042+ - **DataSet** (list) - 见 **TrafficDaily** 模型定义
1043+ - **TrafficDailyRecently** (list) - 见 **TrafficDailyRecently** 模型定义
1044+ - **UGAId** (str) - 资源ID
1045+
1046+ **Response Model**
1047+
1048+ **TrafficDailyRecently**
1049+ - **Day** (str) - 日期
1050+ - **TrafficUnitGB** (str) - 日流量(单位GB)
1051+ - **TrafficUnitMB** (str) - 日流量(单位MB)
1052+
1053+
1054+ **TrafficDaily**
1055+ - **BillingState** (str) - Yes:已扣费, No:未扣费
1056+ - **Date** (int) - 日期
1057+ - **Traffic** (int) - 流量(单位GB)
1058+
1059+
1060+ """
1061+ # build request
1062+ d = {
1063+ "ProjectId" : self .config .project_id ,
1064+ }
1065+ req and d .update (req )
1066+ d = apis .GetGlobalSSHTrafficRequestSchema ().dumps (d )
1067+
1068+ resp = self .invoke ("GetGlobalSSHTraffic" , d , ** kwargs )
1069+ return apis .GetGlobalSSHTrafficResponseSchema ().loads (resp )
1070+
10281071 def get_global_ssh_update_price (
10291072 self , req : typing .Optional [dict ] = None , ** kwargs
10301073 ) -> dict :
@@ -1224,6 +1267,35 @@ def get_uga_3update_price(
12241267 resp = self .invoke ("GetUGA3UpdatePrice" , d , ** kwargs )
12251268 return apis .GetUGA3UpdatePriceResponseSchema ().loads (resp )
12261269
1270+ def modify_global_ssh_origin_info (
1271+ self , req : typing .Optional [dict ] = None , ** kwargs
1272+ ) -> dict :
1273+ """ModifyGlobalSSHOriginInfo - 修改GlobalSSH 源站信息
1274+
1275+ **Request**
1276+
1277+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1278+ - **InstanceId** (str) - (Required) 资源ID:ugaa-xxxxxxx
1279+ - **InstanceType** (str) - (Required) Free,Basic,Enterprise,Ultimate
1280+ - **RsIP** (str) - (Required) 被SSH访问的源站IP
1281+ - **Area** (str) - 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填一个
1282+ - **AreaCode** (str) - AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个
1283+
1284+ **Response**
1285+
1286+ - **Message** (str) - 提示信息
1287+
1288+ """
1289+ # build request
1290+ d = {
1291+ "ProjectId" : self .config .project_id ,
1292+ }
1293+ req and d .update (req )
1294+ d = apis .ModifyGlobalSSHOriginInfoRequestSchema ().dumps (d )
1295+
1296+ resp = self .invoke ("ModifyGlobalSSHOriginInfo" , d , ** kwargs )
1297+ return apis .ModifyGlobalSSHOriginInfoResponseSchema ().loads (resp )
1298+
12271299 def modify_global_ssh_port (
12281300 self , req : typing .Optional [dict ] = None , ** kwargs
12291301 ) -> dict :
0 commit comments