def add_appfwprofile(self, client) : try : obj = appfwprofile() obj.name = "pr1" type_ = [appfwprofile.Type.XML] obj.type = type_ appfwprofile.add(client, obj) print("add_appfwprofile - Done") except nitro_exception as e : print("Exception::add_appfwprofile::errorcode="+str(e.errorcode)+",message="+ e.message) except Exception as e: print("Exception::add_appfwprofile::message="+str(e.args))
def update_appfwprofile (self, client) : try : myprofile = appfwprofile() a=["xml"] myprofile.name = "pr1" myprofile.type = a client.warning = True appfwprofile.update(client, myprofile) except nitro_exception as e : print("Exception::update_appfwprofile::errorcode="+str(e.errorcode)+",message="+ e.message) except Exception as e: print("Exception::update_appfwprofile::message="+str(e.args))