-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to work correctly with V2 API (#23)
* Revamped the PagerDuty API. * Added documentation to all exported types. * Hid some internal functions to client. * Updated Team methods to return Team interface on get/set operations. * Fixed JSON conversion for Team object. * Removed unused fields from Integration object. * Updated field names to match official documentation. * Fixed JSON conversion for OnCall object. * implemented UpdateEscalationPolicy. * Vendored third-party libraries. * Updated service.CreateService to return a Service interface. * Fixed typo in error message. * Fixed typo in error message. * Updated functionality for client, escalation_policy, schedule, and service. * Added ability to parse and return the error object from PagerDuty API. * Added missing RepeatEnabled to escalation_policy. * Added return of Schedule for create/update. * Added return of Service for create/update. * Enhanced error response when creating,updating,getting resources. * Fixed problem with error response handling. * Updated MaintenanceWindow and User to return objects on create/update. * Removed vendored libraries per Luzifer's suggestion. * Fixed typo in README.md.
- Loading branch information
Showing
15 changed files
with
511 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.