예제 #1
0
 /** Use this API to update auditnslogpolicy. */
 public static base_response update(nitro_service client, auditnslogpolicy resource)
     throws Exception {
   auditnslogpolicy updateresource = new auditnslogpolicy();
   updateresource.name = resource.name;
   updateresource.rule = resource.rule;
   updateresource.action = resource.action;
   return updateresource.update_resource(client);
 }
예제 #2
0
 /** Use this API to add auditnslogpolicy. */
 public static base_response add(nitro_service client, auditnslogpolicy resource)
     throws Exception {
   auditnslogpolicy addresource = new auditnslogpolicy();
   addresource.name = resource.name;
   addresource.rule = resource.rule;
   addresource.action = resource.action;
   return addresource.add_resource(client);
 }