opsgenie / opsgenieclient

Apache License 2.0
20 stars 20 forks source link

New features added to the java sdk (Contacts, NotificaritonRules, Account and Policy api) #6

Closed mehmetdemircs closed 8 years ago

mehmetdemircs commented 8 years ago

_Notification Rule API _ Add Notification Rule Update Notification Rule Delete Notification Rule Enable Notification Rule Disable Notification Rule Change Notification Rule Order Repeat Notification Rule Get Notification Rule List Notification Rules

_Notification Rule Step API _ Add Notification Rule Step Update Notification Rule Step Delete Notification Rule Step Enable Notification Rule Step Disable Notification Rule Step

Contacts API Add Contact Update Contact Delete Contact Enable Contact Disable Contact Get Contact List Contact

Account API Get Account Info

Policy API Enable Policy Disable Policy

methods and test cases added.

public boolean isValid() throws ValidationException method added to the BaseRequest class. This will be overridden by necessary Requests. It will check the necessary parameters such as userName apiKey etc. This will prevent confusion between get and list methods.