def update_application_platform(application_name, copy_properties_for_upgraded_modules, body):
params = {}
if application_name is None:
print('--application_name required')
raise click.Abort()
if body is None:
print('--body required')
raise click.Abort()
if copy_properties_for_upgraded_modules:
params['copy_properties_for_upgraded_modules'] = copy_properties_for_upgraded_modules
file = open(body, "r")
file_body = file.read()
file.close()
client = Client()
response = client.put('/rest/applications/' + application_name + '/platforms', params=params, body=file_body)
utils.pretty_print(response)
platforms.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录