feat(gooddata-sdk): [AUTO] Add IP allowlist policy CRUD endpoints to metadata API#1630
Open
yenkins-admin wants to merge 2 commits into
Open
feat(gooddata-sdk): [AUTO] Add IP allowlist policy CRUD endpoints to metadata API#1630yenkins-admin wants to merge 2 commits into
yenkins-admin wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1630 +/- ##
==========================================
+ Coverage 79.03% 79.08% +0.04%
==========================================
Files 231 232 +1
Lines 15634 15697 +63
==========================================
+ Hits 12357 12414 +57
- Misses 3277 3283 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added IP allowlist policy CRUD endpoints to the SDK via raw HTTP calls. Created CatalogIpAllowlistPolicy and CatalogIpAllowlistPolicyAttributes model classes, added _do_json_request to GoodDataApiClient as a method-agnostic JSON:API HTTP helper, wired up 7 service methods on CatalogOrganizationService (get, list, create, update, delete, add_targets, remove_targets), exported both new classes from gooddata_sdk.init, and added an integration test covering the create/get/list/update/delete lifecycle.
Impact: new_feature | Services:
metadataSource commits (gdc-nas):
147ec88by Peter Plocháň — Merge pull request #22741 from gooddata/dnik/md-allowlist-crudFiles changed
packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/ip_allowlist_policy.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/organization/service.pypackages/gooddata-sdk/src/gooddata_sdk/client.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/catalog/test_catalog_organization.pyAgent decisions
Decisions (4)
raw HTTP instead of generated client — Use _do_json_request on GoodDataApiClient (requests.request wrapper) for all IP allowlist policy calls
not inheriting from Base — CatalogIpAllowlistPolicy uses plain @attrs.define without inheriting catalog.base.Base
_do_json_request placement — Added _do_json_request as a private method on GoodDataApiClient in client.py
skipped targets integration test — Rely on existing crud cassette; add_targets / remove_targets omitted from integration test
Assumptions to verify (4)
Risks (3)
Layers touched (3)
packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/ip_allowlist_policy.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/organization/service.pypackages/gooddata-sdk/src/gooddata_sdk/client.pypackages/gooddata-sdk/tests/catalog/test_catalog_organization.pyOpenAPI diff
Workflow run
Generated by SDK OpenAPI Sync workflow