Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(IAM Policy Management): re-gen service and add examples after recent API changes #79

Merged
merged 9 commits into from
Feb 25, 2021

Conversation

padamstx
Copy link
Member

@padamstx padamstx commented Jan 29, 2021

PR summary

Updates the IAM Policy Management service and adds examples after recent API changes.

PR Checklist

Please make sure that your PR fulfills the following requirements:

  • The commit message follows the Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • New tests
  • Build/CI related changes
  • Documentation content changes
  • Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@padamstx padamstx self-assigned this Jan 29, 2021
@padamstx
Copy link
Member Author

@guicabr, this is the Python PR. The examples are in the "example" directory, similar to the node sdk project.

@codecov
Copy link

codecov bot commented Jan 29, 2021

Codecov Report

Merging #79 (d19148f) into main (121fab8) will decrease coverage by 0.01%.
The diff coverage is 88.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
- Coverage   93.58%   93.57%   -0.02%     
==========================================
  Files          21       21              
  Lines       19771    19815      +44     
==========================================
+ Hits        18503    18542      +39     
- Misses       1268     1273       +5     
Impacted Files Coverage Δ
ibm_platform_services/iam_policy_management_v1.py 93.65% <88.63%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 121fab8...d19148f. Read the comment docs.

@padamstx padamstx changed the base branch from master to main February 9, 2021 22:50
Copy link
Member Author

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I made one minor suggestion about variable names.

Edit: after pulling the branch and running the examples, I added one more comment related to the print statements. I think it would be good to print out the JSON marshalled form of each response object so we get pretty-printing, etc.


config = None

test_account_id = None
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the examples end up as part of the generated reference docs, it might be better to name variables like example_account_id instead of test_account_id. It's a really minor thing, but thought I'd mention it.

resources=[policy_resource]
).get_result()

print(policy)
Copy link
Member Author

@padamstx padamstx Feb 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(policy)
print(json.dumps(policy, indent=2))

Copy link
Contributor

@guicabr guicabr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@guicabr guicabr merged commit 3e92813 into main Feb 25, 2021
ibm-devx-automation pushed a commit that referenced this pull request Feb 25, 2021
## [0.17.12](v0.17.11...v0.17.12) (2021-02-25)

### Bug Fixes

* **IAM Policy Management:** re-gen service and add examples after recent API changes ([#79](#79)) ([3e92813](3e92813))
@ibm-devx-automation
Copy link

🎉 This PR is included in version 0.17.12 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants