|
28 | 28 | class BaseantiController(BaseController): |
29 | 29 | class Meta: |
30 | 30 | label = 'baseanti' |
31 | | - help = '使用该子命令操作baseanti相关资源' |
| 31 | + help = '京东云DDoS基础防护相关接口' |
32 | 32 | description = ''' |
33 | | - baseanti cli 子命令,可以使用该子命令操作baseanti相关资源。 |
| 33 | + baseanti cli 子命令,京东云DDoS基础防护相关接口。 |
34 | 34 | OpenAPI文档地址为:https://www.jdcloud.com/help/detail/412/isCatalog/0 |
35 | 35 | ''' |
36 | 36 | stacked_on = 'base' |
37 | 37 | stacked_type = 'nested' |
38 | 38 |
|
39 | 39 | @expose( |
40 | 40 | arguments=[ |
41 | | - (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
42 | | - (['--ip'], dict(help="""(string) IP模糊匹配 """, dest='ip', required=False)), |
| 41 | + (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
| 42 | + (['--ip'], dict(help="""(string) IP模糊匹配 """, dest='ip', required=False)), |
43 | 43 | (['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)), |
44 | 44 | (['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)), |
45 | 45 | ], |
@@ -71,8 +71,8 @@ def describe_ip_resources(self): |
71 | 71 |
|
72 | 72 | @expose( |
73 | 73 | arguments=[ |
74 | | - (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
75 | | - (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
| 74 | + (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
| 75 | + (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
76 | 76 | (['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)), |
77 | 77 | (['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)), |
78 | 78 | ], |
@@ -104,9 +104,9 @@ def describe_ip_resource_info(self): |
104 | 104 |
|
105 | 105 | @expose( |
106 | 106 | arguments=[ |
107 | | - (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
108 | | - (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
109 | | - (['--clean-threshold-spec'], dict(help="""(cleanThresholdSpec) cc参数 """, dest='cleanThresholdSpec', required=True)), |
| 107 | + (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
| 108 | + (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
| 109 | + (['--clean-threshold-spec'], dict(help="""(cleanThresholdSpec) cc参数 """, dest='cleanThresholdSpec', required=True)), |
110 | 110 | (['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)), |
111 | 111 | (['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)), |
112 | 112 | ], |
@@ -138,10 +138,10 @@ def set_clean_threshold(self): |
138 | 138 |
|
139 | 139 | @expose( |
140 | 140 | arguments=[ |
141 | | - (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
142 | | - (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
143 | | - (['--start'], dict(help="""(int) 限制查询的开始范围 """, dest='start', required=False)), |
144 | | - (['--limit'], dict(help="""(int) 限制查询的记录数 """, dest='limit', required=False)), |
| 141 | + (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
| 142 | + (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
| 143 | + (['--start'], dict(help="""(int) 限制查询的开始范围 """, dest='start', type=int, required=False)), |
| 144 | + (['--limit'], dict(help="""(int) 限制查询的记录数 """, dest='limit', type=int, required=False)), |
145 | 145 | (['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)), |
146 | 146 | (['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)), |
147 | 147 | ], |
@@ -173,9 +173,9 @@ def describe_ip_resource_protect_info(self): |
173 | 173 |
|
174 | 174 | @expose( |
175 | 175 | arguments=[ |
176 | | - (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
177 | | - (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
178 | | - (['--end-time'], dict(help="""(string) 查询的结束时间,UTC时间,格式:yyyy-MM-dd'T'HH:mm:ssZ """, dest='endTime', required=False)), |
| 176 | + (['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)), |
| 177 | + (['--ip'], dict(help="""(string) 公网ip """, dest='ip', required=True)), |
| 178 | + (['--end-time'], dict(help="""(string) 查询的结束时间,UTC时间,格式:yyyy-MM-dd'T'HH:mm:ssZ """, dest='endTime', required=False)), |
179 | 179 | (['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)), |
180 | 180 | (['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)), |
181 | 181 | ], |
|
0 commit comments