Todd Knight
aa4157639c
Change Format of API Error ( #784 )
...
This is a wire breaking change for json errors since we have removed and renamed a few fields, and changed part of the structure of the returned json error.
* Remove redundant fields in Status, details.error_id, details.TraceId and details.request_id from API errors.
* Added wrapped errors and "ops" field to indicate the internal operation of the errors returned by the API.
* Added error cli error reporting of Op and wrapped errors.
2020-12-07 14:25:16 -07:00
Jeff Mitchell
603b0582d7
Fix CLI help output and make more consistent ( #605 )
2020-10-09 20:26:48 -04:00
Todd Knight
6c6fb7a4d0
Format errors better for CLI ( #552 )
...
* Start making errors easier to read for Table based CLI UI.
* Add TODO about reporting "update_mask" related errors.
2020-10-06 14:08:49 -07:00
Jeff Mitchell
fa700dc002
Add account ID templating ( #518 )
...
* Remove default role and create via the same mechanism as other initial resources
2020-10-01 10:51:54 -04:00
Jeff Mitchell
6ddfe407a3
Update allowed formats of ACL strings ( #508 )
2020-10-01 01:49:20 -04:00
Jeff Mitchell
d479f307a4
Minor tweak to role output formatting
2020-09-29 20:41:32 -04:00
Todd Knight
fd0da998e8
SDK error revamp ( #432 )
...
SDK methods now return 1 error. To differentiate between Client errors and Server errors I've also implemented the AsServerError function which returns an *api.Error if it is an error originating from the remote server or nil otherwise.
2020-09-24 14:34:58 -07:00
Jeff Mitchell
03436a73de
Update CLI output functions to show scope info and cleanup ( #416 )
2020-09-23 03:01:39 -04:00
Jeff Mitchell
570e52cabb
Add missing set-grants to role command
2020-09-16 07:03:11 -04:00
Jeff Mitchell
a00ee7a948
Add Result types to Go SDK and properly populate body/map fields ( #358 )
2020-09-15 01:08:21 -04:00
Jeff Mitchell
1b2f73d1d4
Fix some old logic in some CLI commands ( #357 )
2020-09-14 12:45:56 -04:00
Jeff Mitchell
f8237fb945
Move some packages into SDK, out of internal
2020-09-09 01:24:25 -04:00
Todd Knight
c3ecea172d
Generate new version of SDK resources and Add Tests ( #331 )
2020-09-08 16:27:51 -04:00
Jeff Mitchell
1f065316ee
Initial ( #313 )
2020-08-28 01:28:26 -04:00
Jeff Mitchell
17ecb6f2ce
Separate accounts/host catalogs/host sets into their own packages ( #311 )
2020-08-27 20:43:33 -04:00
Jeff Mitchell
adfc5681be
Auth methods CLI ( #277 )
2020-08-18 17:46:34 -04:00
Jeff Mitchell
efaf58b568
Add users CLI command and do some cleanup ( #269 )
2020-08-13 20:59:32 -04:00
Jeff Mitchell
e89e9d1349
Add groups CLI command ( #266 )
2020-08-13 17:35:55 -04:00
Jeff Mitchell
b75a6fc5e5
Update scopes CLI command in the model of the roles command ( #262 )
...
* Update scopes CLI command in the model of the roles command
* Pull help functions to helper methods
2020-08-13 11:20:22 -04:00
Jeff Mitchell
6661117d4c
The name. The name. The name!
2020-08-10 17:15:02 -04:00
Jeff Mitchell
f07bb9dae6
Fix breakage after change to template from previous PR
2020-08-07 15:18:44 -04:00
Jeff Mitchell
908a299ea3
Convert SDK to the new options API ( #238 )
2020-08-07 12:55:02 -04:00
Jeff Mitchell
388a13b10d
Convert scopes to the new paradigm ( #206 )
2020-07-22 00:14:28 -04:00
Jeff Mitchell
99653727bb
Migrate grants to more structured output ( #194 )
2020-07-16 22:18:27 -04:00
Todd Knight
28dbcd84bd
Authenticate Handler API and SDK, and much more ( #183 )
2020-07-14 17:32:47 -04:00