-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from HubSpot/feature/newDiscoveries
Discoveries for new clients
- Loading branch information
Showing
23 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import hubspot.cms.pages as api_client | ||
from ...discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def landing_pages_api(self) -> api_client.LandingPagesApi: | ||
return self._configure_api_client(api_client, "LandingPagesApi") | ||
|
||
@property | ||
def site_pages_api(self) -> api_client.SitePagesApi: | ||
return self._configure_api_client(api_client, "SitePagesApi") |
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import hubspot.crm.lists as api_client | ||
from ...discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def lists_api(self) -> api_client.ListsApi: | ||
return self._configure_api_client(api_client, "ListsApi") | ||
|
||
@property | ||
def memberships_api(self) -> api_client.MembershipsApi: | ||
return self._configure_api_client(api_client, "MembershipsApi") | ||
|
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import hubspot.crm.objects.goals as api_client | ||
from ....discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def basic_api(self) -> api_client.BasicApi: | ||
return self._configure_api_client(api_client, "BasicApi") | ||
|
||
@property | ||
def batch_api(self) -> api_client.BatchApi: | ||
return self._configure_api_client(api_client, "BatchApi") | ||
|
||
@property | ||
def gdpr_api(self) -> api_client.GDPRApi: | ||
return self._configure_api_client(api_client, "GDPRApi") | ||
|
||
@property | ||
def public_object_api(self) -> api_client.PublicObjectApi: | ||
return self._configure_api_client(api_client, "PublicObjectApi") | ||
|
||
@property | ||
def search_api(self) -> api_client.SearchApi: | ||
return self._configure_api_client(api_client, "SearchApi") |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import hubspot.crm.objects.taxes as api_client | ||
from ....discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def basic_api(self) -> api_client.BasicApi: | ||
return self._configure_api_client(api_client, "BasicApi") | ||
|
||
@property | ||
def batch_api(self) -> api_client.BatchApi: | ||
return self._configure_api_client(api_client, "BatchApi") | ||
|
||
@property | ||
def gdpr_api(self) -> api_client.GDPRApi: | ||
return self._configure_api_client(api_client, "GDPRApi") | ||
|
||
@property | ||
def public_object_api(self) -> api_client.PublicObjectApi: | ||
return self._configure_api_client(api_client, "PublicObjectApi") | ||
|
||
@property | ||
def search_api(self) -> api_client.SearchApi: | ||
return self._configure_api_client(api_client, "SearchApi") |
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import hubspot.events.send as api_client | ||
from ...discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def behavioral_events_tracking_api(self) -> api_client.BehavioralEventsTrackingApi: | ||
return self._configure_api_client(api_client, "BehavioralEventsTrackingApi") |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import hubspot.settings.business_units as api_client | ||
from ...discovery_base import DiscoveryBase | ||
|
||
|
||
class Discovery(DiscoveryBase): | ||
@property | ||
def business_unit_api(self) -> api_client.BusinessUnitApi: | ||
return self._configure_api_client(api_client, "BusinessUnitApi") |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from hubspot import HubSpot | ||
from hubspot.cms.pages import LandingPagesApi, SitePagesApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().cms.pages | ||
assert isinstance(apis.landing_pages_api, LandingPagesApi) | ||
assert isinstance(apis.site_pages_api, SitePagesApi) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from hubspot import HubSpot | ||
from hubspot.crm.objects.goals import BasicApi, BatchApi, GDPRApi, PublicObjectApi, SearchApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().crm.objects.goals | ||
assert isinstance(apis.basic_api, BasicApi) | ||
assert isinstance(apis.batch_api, BatchApi) | ||
assert isinstance(apis.gdpr_api, GDPRApi) | ||
assert isinstance(apis.public_object_api, PublicObjectApi) | ||
assert isinstance(apis.search_api, SearchApi) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from hubspot import HubSpot | ||
from hubspot.crm.objects.taxes import BasicApi, BatchApi, GDPRApi, PublicObjectApi, SearchApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().crm.objects.taxes | ||
assert isinstance(apis.basic_api, BasicApi) | ||
assert isinstance(apis.batch_api, BatchApi) | ||
assert isinstance(apis.gdpr_api, GDPRApi) | ||
assert isinstance(apis.public_object_api, PublicObjectApi) | ||
assert isinstance(apis.search_api, SearchApi) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from hubspot import HubSpot | ||
from hubspot.crm.lists import ListsApi, MembershipsApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().crm.lists | ||
assert isinstance(apis.lists_api, ListsApi) | ||
assert isinstance(apis.memberships_api, MembershipsApi) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from hubspot import HubSpot | ||
from hubspot.events.send import BehavioralEventsTrackingApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().events.send | ||
assert isinstance(apis.behavioral_events_tracking_api, BehavioralEventsTrackingApi) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from hubspot import HubSpot | ||
from hubspot.settings.business_units import BusinessUnitApi | ||
|
||
|
||
def test_is_discoverable(): | ||
apis = HubSpot().settings.business_units | ||
assert isinstance(apis.business_unit_api, BusinessUnitApi) |