Skip to content

Commit

Permalink
Merge pull request #360 from HubSpot/feature/update-discovery
Browse files Browse the repository at this point in the history
Update discoveries, Clean up
  • Loading branch information
alzheltkovskiy-hubspot authored Nov 18, 2024
2 parents 9a93a90 + 19e81ad commit 8ace27d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 14 deletions.
4 changes: 4 additions & 0 deletions hubspot/discovery/crm/associations/v4/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ def basic_api(self) -> api_client.BasicApi:
def batch_api(self) -> api_client.BatchApi:
return self._configure_api_client(api_client, "BatchApi")

@property
def report_api(self) -> api_client.ReportApi:
return self._configure_api_client(api_client, "ReportApi")

@property
def schema(self):
from .schema.discovery import Discovery as schemaDiscovery
Expand Down
3 changes: 3 additions & 0 deletions hubspot/discovery/crm/associations/v4/schema/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ class Discovery(DiscoveryBase):
def definitions_api(self) -> api_client.DefinitionsApi:
return self._configure_api_client(api_client, "DefinitionsApi")

@property
def definition_configurations_api(self) -> api_client.DefinitionConfigurationsApi:
return self._configure_api_client(api_client, "DefinitionConfigurationsApi")
7 changes: 4 additions & 3 deletions hubspot/discovery/crm/extensions/calling/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@


class Discovery(DiscoveryBase):
@property
def settings_api(self) -> api_client.SettingsApi:
return self._configure_api_client(api_client, "SettingsApi")

@property
def recording_settings_api(self) -> api_client.RecordingSettingsApi:
return self._configure_api_client(api_client, "RecordingSettingsApi")

@property
def settings_api(self) -> api_client.SettingsApi:
return self._configure_api_client(api_client, "SettingsApi")
8 changes: 4 additions & 4 deletions hubspot/discovery/crm/objects/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class Discovery(DiscoveryBase):
def basic_api(self) -> api_client.BasicApi:
return self._configure_api_client(api_client, "BasicApi")

@property
def search_api(self) -> api_client.SearchApi:
return self._configure_api_client(api_client, "SearchApi")

@property
def batch_api(self) -> api_client.BatchApi:
return self._configure_api_client(api_client, "BatchApi")

@property
def search_api(self) -> api_client.SearchApi:
return self._configure_api_client(api_client, "SearchApi")

@property
def calls(self):
from .calls.discovery import Discovery as CallsDiscovery
Expand Down
15 changes: 8 additions & 7 deletions hubspot/discovery/crm/pipelines/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@


class Discovery(DiscoveryBase):
@property
def pipeline_stages_api(self) -> api_client.PipelineStagesApi:
return self._configure_api_client(api_client, "PipelineStagesApi")

@property
def pipelines_api(self) -> api_client.PipelinesApi:
return self._configure_api_client(api_client, "PipelinesApi")

@property
def pipeline_audits_api(self) -> api_client.PipelineAuditsApi:
Expand All @@ -18,3 +11,11 @@ def pipeline_audits_api(self) -> api_client.PipelineAuditsApi:
@property
def pipeline_stage_audits_api(self) -> api_client.PipelineStageAuditsApi:
return self._configure_api_client(api_client, "PipelineStageAuditsApi")

@property
def pipeline_stages_api(self) -> api_client.PipelineStagesApi:
return self._configure_api_client(api_client, "PipelineStagesApi")

@property
def pipelines_api(self) -> api_client.PipelinesApi:
return self._configure_api_client(api_client, "PipelinesApi")
4 changes: 4 additions & 0 deletions hubspot/discovery/marketing/events/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ def attendance_subscriber_state_changes_api(self) -> api_client.AttendanceSubscr
def basic_api(self) -> api_client.BasicApi:
return self._configure_api_client(api_client, "BasicApi")

@property
def list_associations_api(self) -> api_client.ListAssociationsApi:
return self._configure_api_client(api_client, "ListAssociationsApi")

@property
def participant_state_api(self) -> api_client.ParticipantStateApi:
return self._configure_api_client(api_client, "ParticipantStateApi")
Expand Down

0 comments on commit 8ace27d

Please sign in to comment.