/** Use this API to update dnskey. */ public static base_response update(nitro_service client, dnskey resource) throws Exception { dnskey updateresource = new dnskey(); updateresource.keyname = resource.keyname; updateresource.expires = resource.expires; updateresource.units1 = resource.units1; updateresource.notificationperiod = resource.notificationperiod; updateresource.units2 = resource.units2; updateresource.ttl = resource.ttl; return updateresource.update_resource(client); }
/** Use this API to add dnskey. */ public static base_response add(nitro_service client, dnskey resource) throws Exception { dnskey addresource = new dnskey(); addresource.keyname = resource.keyname; addresource.publickey = resource.publickey; addresource.privatekey = resource.privatekey; addresource.expires = resource.expires; addresource.units1 = resource.units1; addresource.notificationperiod = resource.notificationperiod; addresource.units2 = resource.units2; addresource.ttl = resource.ttl; return addresource.add_resource(client); }