File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed
Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ def hubdb(self):
2121 from .hubdb .discovery import Discovery as HubdbDiscovery
2222 return HubdbDiscovery (self .config )
2323
24+ @property
25+ def pages (self ):
26+ from .pages .discovery import Discovery as PagesDiscovery
27+ return PagesDiscovery (self .config )
28+
2429 @property
2530 def performance (self ):
2631 from .performance .discovery import Discovery as PerformanceDiscovery
Original file line number Diff line number Diff line change 1+ import hubspot .cms .pages as api_client
2+ from ...discovery_base import DiscoveryBase
3+
4+
5+ class Discovery (DiscoveryBase ):
6+ @property
7+ def landing_pages_api (self ) -> api_client .LandingPagesApi :
8+ return self ._configure_api_client (api_client , "LandingPagesApi" )
9+
10+ @property
11+ def site_pages_api (self ) -> api_client .SitePagesApi :
12+ return self ._configure_api_client (api_client , "SitePagesApi" )
Original file line number Diff line number Diff line change 1+ from hubspot import HubSpot
2+ from hubspot .cms .pages import LandingPagesApi , SitePagesApi
3+
4+
5+ def test_is_discoverable ():
6+ apis = HubSpot ().cms .pages
7+ assert isinstance (apis .landing_pages_api , LandingPagesApi )
8+ assert isinstance (apis .site_pages_api , SitePagesApi )
You can’t perform that action at this time.
0 commit comments