platform-services-go-sdk
platform-services-go-sdk copied to clipboard
feat(IAM Policy Management): add access management account settings API
PR summary
PR Checklist
Please make sure that your PR fulfills the following requirements:
- [x] The commit message follows the Angular Commit Message Guidelines.
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] Docs have been added / updated (for bug fixes / features)
Current vs new behavior
Adds new Access Management Account Settings API (GET and PATCH paths)
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Other information
Issue: https://github.ibm.com/IAM/AM-issues/issues/2506
Integration tests:
go test -tags=integration
Running Suite: IamPolicyManagementV1 Suite
==========================================
Random Seed: 1717442301
Will run 249 of 249 specs
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 249 of 249 Specs in 21.582 seconds
SUCCESS! -- 249 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS
ok github.com/IBM/platform-services-go-sdk/iampolicymanagementv1 21.996s
Examples:
go test -tags=examples
Running Suite: IamPolicyManagementV1 Suite
==========================================
Random Seed: 1717442393
Will run 248 of 248 specs
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
...
GetSettings() result:
{
"external_account_identity_interaction": {
"identity_types": {
"user": {
"state": "monitor",
"external_allowed_accounts": []
},
"service_id": {
"state": "monitor",
"external_allowed_accounts": []
},
"service": {
"state": "monitor",
"external_allowed_accounts": []
}
}
}
}
•
UpdateSettings() result:
{
"external_account_identity_interaction": {
"identity_types": {
"user": {
"state": "monitor",
"external_allowed_accounts": []
},
"service_id": {
"state": "monitor",
"external_allowed_accounts": []
},
"service": {
"state": "monitor",
"external_allowed_accounts": []
}
}
}
}
•
Ran 248 of 248 Specs in 36.528 seconds
SUCCESS! -- 248 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS
ok github.com/IBM/platform-services-go-sdk/iampolicymanagementv1 36.933s