From 9d8eea1d5247168da2fd3b7af22dcfab791fec72 Mon Sep 17 00:00:00 2001 From: Auto Implementer Date: Thu, 19 Feb 2026 11:34:39 +0000 Subject: [PATCH] feat(gooddata-sdk): [AUTO] add deployment info fields to CatalogOrganization Add 'data_center' and 'region' optional nullable string fields to CatalogOrganizationAttributes and extract them in CatalogOrganization.from_api() from the API response. Both fields are read-only (ApiOutOnly) and gated by the ENABLE_DEPLOYMENT_INFO feature flag on the server side. Co-Authored-By: Claude Sonnet 4.6 --- .../catalog/organization/entity_model/organization.py | 4 ++++ .../tests/catalog/fixtures/organization/organization.yaml | 2 ++ .../gooddata-sdk/tests/catalog/test_catalog_organization.py | 2 ++ 3 files changed, 8 insertions(+) diff --git a/packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/organization.py b/packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/organization.py index 765afc3fc..86361857d 100644 --- a/packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/organization.py +++ b/packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/organization.py @@ -53,6 +53,8 @@ def from_api(cls, entity: dict[str, Any]) -> CatalogOrganization: allowed_origins=safeget(ea, ["allowed_origins"]), oauth_issuer_location=safeget(ea, ["oauth_issuer_location"]), oauth_client_id=safeget(ea, ["oauth_client_id"]), + data_center=safeget(ea, ["data_center"]), + region=safeget(ea, ["region"]), ) identity_provider_id = safeget(er, ["identityProvider", "data", "id"]) @@ -87,6 +89,8 @@ class CatalogOrganizationAttributes(Base): allowed_origins: Optional[list[str]] = None oauth_issuer_location: Optional[str] = None oauth_client_id: Optional[str] = None + data_center: Optional[str] = None + region: Optional[str] = None @staticmethod def client_class() -> type[JsonApiOrganizationInAttributes]: diff --git a/packages/gooddata-sdk/tests/catalog/fixtures/organization/organization.yaml b/packages/gooddata-sdk/tests/catalog/fixtures/organization/organization.yaml index 670d38fe5..ae1782900 100644 --- a/packages/gooddata-sdk/tests/catalog/fixtures/organization/organization.yaml +++ b/packages/gooddata-sdk/tests/catalog/fixtures/organization/organization.yaml @@ -99,6 +99,8 @@ interactions: - enableUserManagement - enableRawExports - enableFlexibleDashboardLayout + dataCenter: null + region: null id: default type: organization links: diff --git a/packages/gooddata-sdk/tests/catalog/test_catalog_organization.py b/packages/gooddata-sdk/tests/catalog/test_catalog_organization.py index 58d4d2b66..4941ab989 100644 --- a/packages/gooddata-sdk/tests/catalog/test_catalog_organization.py +++ b/packages/gooddata-sdk/tests/catalog/test_catalog_organization.py @@ -28,6 +28,8 @@ def _default_organization_check(organization: CatalogOrganization): assert organization.id == "default" assert organization.attributes.name == "Default Organization" assert organization.attributes.hostname == "localhost" + assert organization.attributes.data_center is None + assert organization.attributes.region is None def _default_jwk(jwk_id=_default_jwk_id, alg=None, kid=None):